/* ==========================================================================
   AdminifAI — design system
   Hand-authored. Replaces the runtime Tailwind CDN build.
   Tokens mirror tailwind.config.js so the app and marketing site stay one family.
   ========================================================================== */

:root {
  /* ground */
  --ivory-50:  #FDFCF9;
  --ivory-100: #FAF8F4;
  --ivory-200: #F5F2EB;
  --line:      #E8E4DA;
  --line-soft: #EDE9DF;
  --line-mid:  #DDD9CE;

  /* ink */
  --char-950: #0F0F0F;
  --char-900: #1A1A1A;
  --char-800: #2A2A28;
  --char-700: #3A3A36;
  --char-600: #4A4A46;
  --char-500: #6B6B66;
  --char-400: #8A8A84;
  --char-300: #A5A59F;
  --char-200: #C4C0B6;

  /* near-black sections */
  --black:     #0B0B0A;
  --black-100: #211F1D;
  --black-200: #38352E;
  --black-300: #57544C;
  --black-400: #7A776E;
  --black-500: #8A877E;
  --black-600: #A5A196;
  --black-700: #C9C5BA;

  /* gold */
  --gold-600: #B8860B;   /* graphics only — 3.17:1 on ivory */
  --gold-text: #8A6508;   /* text-bearing gold — 5.19:1 on ivory */
  --gold-text-dk: #6E5106;
  --gold-700: #96700A;
  --gold-500: #D4A843;
  --gold-400: #E2C275;
  --gold-300: #F0DCA6;
  --gold-100: #F7EDD0;
  --gold-50:  #FDF8ED;

  --rose-500: #B76E79;
  --rose-300: #DBBBC0;

  --success:  #5B8C5A;
  --success-bg: #F1F5F0;
  --danger:   #A94442;

  --shadow-soft: 0 2px 20px rgba(15, 15, 15, 0.04);
  --shadow-card: 0 14px 44px rgba(15, 15, 15, 0.07);
  --shadow-mock: 0 24px 70px rgba(15, 15, 15, 0.11);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Libre Franklin', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --pad: 80px;      /* page gutter, desktop */
  --maxw: 1440px;
}

/* --------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory-50);
  color: var(--char-800);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.038em;
  color: var(--char-950);
}

p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

a { color: var(--gold-text); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--gold-text-dk); }

:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 100;
  background: var(--char-950); color: var(--ivory-50);
  padding: 12px 20px; border-radius: 2px; font-size: 14px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--ivory-50); }

/* --------------------------------------------------------------- layout */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.section       { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.section--soft  { background: var(--ivory-100); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--dark  { position: relative; background: var(--black); overflow: hidden; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--ivory-50); }
.section--edge  { border-bottom: 1px solid var(--line); }

/* film grain over the near-black bands */
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.section--dark > .wrap { position: relative; }

.split      { display: grid; gap: 90px; align-items: start; }
.split > *, .grid > * { min-width: 0; }
.split--end { align-items: end; }
.split--mid { align-items: center; }
.split-4-6  { grid-template-columns: 440px minmax(0, 1fr); }
.split-6-4  { grid-template-columns: minmax(0, 1fr) 440px; }
.split-3-7  { grid-template-columns: 320px minmax(0, 1fr); }
.split-half { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.grid    { display: grid; gap: 40px; }
.grid-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.gap-8  { gap: 8px; }  .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.start  { align-items: flex-start; }
.mt-auto { margin-top: auto; }

/* --------------------------------------------------------------- type */

.display   { font-size: clamp(3rem, 8.4vw, 8.625rem); line-height: 0.86; letter-spacing: -0.05em; }
.h1        { font-size: clamp(2.75rem, 6.2vw, 6rem);  line-height: 0.9;  letter-spacing: -0.045em; }
.h2        { font-size: clamp(2.25rem, 4.4vw, 4.875rem); line-height: 0.94; }
.h3        { font-size: clamp(1.75rem, 3vw, 3.5rem); line-height: 0.98; }
.h4        { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: 0; line-height: 1.35; color: var(--char-950); }
.h5        { font-family: var(--sans); font-weight: 600; font-size: 15.5px; letter-spacing: 0; line-height: 1.4; color: var(--char-950); }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-text);
}
.eyebrow--mute { color: var(--char-500); }
.eyebrow--dark { color: var(--gold-500); }
.eyebrow--rose { color: var(--rose-300); }

.lede  { font-size: 17px; line-height: 1.7; color: var(--char-600); }
.lede--lg { font-size: 20px; line-height: 1.6; }
.body  { font-size: 14.5px; line-height: 1.65; color: var(--char-600); }
.small { font-size: 13px; line-height: 1.55; color: var(--char-500); }
.mono  { font-family: var(--sans); font-size: 13px; color: var(--char-900); }

.on-dark        { color: var(--black-500); }
.on-dark-strong { color: var(--ivory-50); }
.on-dark-faint  { color: var(--black-500); }

.figure { font-family: var(--serif); font-weight: 300; line-height: 0.88; letter-spacing: -0.045em; color: var(--char-950); }
.figure--xl { font-size: 72px; }
.figure--lg { font-size: 56px; }
.figure--md { font-size: 44px; }
.figure--sm { font-size: 30px; }
.figure--gold { color: var(--gold-600); }
.figure--mute { color: var(--char-400); }
.figure--danger { color: var(--danger); }

.rule { width: 44px; height: 1px; background: var(--gold-500); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 18px 30px; border-radius: 2px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }

.btn--primary   { background: var(--gold-600); color: var(--char-950); }
.btn--primary:hover { background: var(--gold-500); color: var(--char-950); }

.btn--light     { background: var(--ivory-50); color: var(--black); }
.btn--light:hover { background: #fff; color: var(--black); }

.btn--ghost     { border: 1px solid #C9C5B8; color: var(--char-900); }
.btn--ghost:hover { border-color: var(--char-950); color: var(--char-950); }

.btn--ghost-dark { border: 1px solid var(--black-200); color: var(--ivory-50); }
.btn--ghost-dark:hover { border-color: var(--black-400); color: var(--ivory-50); }

.btn--sm { padding: 13px 24px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; }

/* --------------------------------------------------------------- badges */

.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 2px; white-space: nowrap;
}
.badge--gold    { background: var(--gold-600); color: var(--char-950); }
.badge--outline { background: var(--gold-50); border: 1px solid var(--gold-300); color: var(--gold-text); }
.badge--success { background: var(--success-bg); color: #3D6B3C; }
.badge--rose    { border: 1px solid var(--rose-300); color: var(--rose-500); }

.pill {
  display: inline-flex; align-items: center;
  font-size: 14px; color: var(--char-800);
  border: 1px solid var(--line); padding: 10px 18px; border-radius: 2px;
}
.pill--on { background: var(--char-950); border-color: var(--char-950); color: var(--ivory-50); }

.dot { width: 3px; height: 3px; border-radius: 50%; background: #D4D4CC; flex-shrink: 0; }

/* --------------------------------------------------------------- cards */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 32px 28px;
}
.card--raised { box-shadow: var(--shadow-card); }
.card--dark   { background: var(--black); border-color: var(--black-100); }
.card--dark .h4, .card--dark .h5 { color: var(--ivory-50); }
.card--flat   { background: var(--ivory-100); border-color: var(--line-soft); }

/* hairline list — the boxless alternative used across the site */
.hair       { border-top: 1px solid var(--line-soft); padding: 24px 0; }
.hair:first-child { border-top-color: var(--char-950); }
.hair--dark { border-top: 1px solid var(--black-100); padding: 24px 0; }
.hair--lead { border-top-color: var(--gold-500); }

.deflist { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 30px; }

/* --------------------------------------------------------------- header */

.announce {
  background: var(--char-950); text-align: center; padding: 12px 24px;
}
.announce p {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-300);
}
.announce--dark { background: transparent; border-bottom: 1px solid var(--black-100); }
.announce--dark p { color: var(--gold-500); }

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; height: 88px;
}
.masthead__brand { display: flex; align-items: center; gap: 11px; }
.masthead__word {
  font-family: var(--serif); font-size: 26px; font-weight: 400;
  color: var(--char-950); letter-spacing: 0;
}
.masthead__word em { font-style: normal; color: var(--gold-600); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--char-700);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--char-950); }
.nav a[aria-current="page"] { color: var(--char-950); font-weight: 600; border-bottom-color: var(--gold-600); }

.masthead__actions { display: flex; align-items: center; gap: 22px; }
.masthead__login { font-size: 14px; font-weight: 500; color: var(--char-700); }

.masthead--dark { border-bottom: 0; }
.masthead--dark .masthead__word { color: var(--ivory-50); }
.masthead--dark .masthead__word em { color: var(--gold-500); }
.masthead--dark .nav a { color: var(--black-500); }
.masthead--dark .nav a:hover { color: var(--ivory-50); }
.masthead--dark .nav a[aria-current="page"] { color: var(--ivory-50); border-bottom-color: var(--gold-500); }
.masthead--dark .masthead__login { color: var(--black-500); }

.site-header { background: var(--ivory-50); border-bottom: 1px solid var(--line); }

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 2px; }
.masthead--dark .burger { border-color: var(--black-200); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 60;
  background: var(--black); color: var(--ivory-50);
  transform: translateX(100%); transition: transform 0.28s ease;
  display: flex; flex-direction: column; padding: 24px 24px 40px;
  overflow-y: auto;
}
.mobile-nav[data-open="true"] { transform: translateX(0); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.mobile-nav a { font-family: var(--serif); font-size: 34px; font-weight: 300; color: var(--ivory-50); padding: 16px 0; border-bottom: 1px solid var(--black-100); }
.mobile-nav a:hover { color: var(--gold-500); }
.mobile-nav .btn { margin-bottom: 28px; }

/* --------------------------------------------------------------- footer */

.site-footer { padding: 72px 0 40px; background: var(--ivory-50); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: 360px repeat(3, minmax(0, 1fr)); gap: 56px; }
.site-footer h2 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--char-500); margin-bottom: 16px; }
.site-footer li { margin-bottom: 13px; }
.site-footer li a { font-size: 14px; color: var(--char-700); }
.site-footer li a:hover { color: var(--gold-600); }
.site-footer__base {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--char-500);
}

/* --------------------------------------------------------------- hero */

.hero__wave { width: 100%; height: auto; display: block; }
.hero__timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--black-100); }
.hero__timeline p { font-size: 15px; line-height: 1.5; color: var(--black-700); }
.hero__timeline .is-done p { color: var(--ivory-50); }

/* --------------------------------------------------------------- calculator */

.calc__field { display: flex; flex-direction: column; gap: 14px; }
.calc__label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.calc__label span:first-child { font-size: 14.5px; font-weight: 600; color: var(--char-800); }
.calc__value { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--char-950); }
.calc__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--char-500); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; border-radius: 2px;
  background: linear-gradient(to right, var(--gold-600) var(--pct, 40%), #E2DED2 var(--pct, 40%));
}
input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: #E2DED2; }
input[type="range"]::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--gold-600); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 19px; height: 19px; margin-top: -8px;
  background: var(--ivory-50); border: 1px solid var(--gold-600); border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 15, 15, 0.12);
}
input[type="range"]::-moz-range-thumb {
  width: 17px; height: 17px;
  background: var(--ivory-50); border: 1px solid var(--gold-600); border-radius: 50%;
}

.calc__panel { background: var(--black); border-radius: 3px; padding: 34px 30px; display: flex; flex-direction: column; gap: 26px; }
.calc__out { font-family: var(--serif); font-size: 64px; font-weight: 300; line-height: 0.9; letter-spacing: -0.045em; color: var(--ivory-50); }
.calc__out--gold { color: var(--gold-500); }

/* --------------------------------------------------------------- messages */

.msg { border-radius: 3px 12px 12px 12px; padding: 13px 16px; font-size: 14px; line-height: 1.55; max-width: 72%; }
.msg--in  { align-self: flex-start; background: var(--ivory-200); color: var(--char-800); }
.msg--out { align-self: flex-end; background: var(--char-800); color: var(--ivory-100); border-radius: 12px 3px 12px 12px; }
.msg-note {
  align-self: center; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; background: var(--gold-50); border: 1px solid var(--gold-300);
  border-radius: 2px; font-size: 12.5px; font-weight: 500; color: var(--gold-text);
}

/* --------------------------------------------------------------- hub mock */

.hub { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow-mock); overflow: hidden; }
.hub__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px; height: 58px; background: var(--black); }
.hub__tabs { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; color: var(--black-500); }
.hub__tabs .is-on { color: var(--ivory-50); padding-bottom: 2px; border-bottom: 1px solid var(--gold-500); }
.hub__body { display: grid; grid-template-columns: 310px minmax(0, 1fr) 300px; min-height: 520px; }
.hub__list { border-right: 1px solid var(--line-soft); background: var(--ivory-50); }
.hub__item { display: flex; gap: 12px; padding: 17px 20px; border-top: 1px solid #F0EEE7; }
.hub__item.is-on { background: var(--ivory-200); border-left: 2px solid var(--gold-600); border-top-color: transparent; }
.hub__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--line-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; color: var(--char-600); flex-shrink: 0; }
.hub__thread { display: flex; flex-direction: column; background: #fff; }
.hub__side { border-left: 1px solid var(--line-soft); background: var(--ivory-50); padding: 24px 22px; }

/* --------------------------------------------------------------- pricing */

.price { display: flex; align-items: baseline; gap: 8px; }
.price__fig { font-family: var(--serif); font-size: 72px; font-weight: 300; line-height: 0.9; letter-spacing: -0.045em; color: var(--char-950); }
.price__per { font-size: 15px; color: var(--char-500); }
.plan { display: flex; flex-direction: column; gap: 22px; }
.plan--lead { border-color: var(--char-950); box-shadow: var(--shadow-card); }
.plan__list { display: flex; flex-direction: column; gap: 11px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.plan__list li { font-size: 14px; line-height: 1.5; color: var(--char-800); display: flex; gap: 11px; }
.plan__list svg { flex-shrink: 0; margin-top: 3px; }

/* --------------------------------------------------------------- faq */

.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; text-align: left;
  font-family: var(--sans); font-size: 16.5px; font-weight: 600; color: var(--char-950);
}
.faq__q svg { flex-shrink: 0; transition: transform 0.22s ease; color: var(--char-400); }
.faq__q[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--gold-600); }
.faq__a { display: none; padding: 0 0 26px; max-width: 780px; font-size: 15px; line-height: 1.7; color: var(--char-600); }
.faq__a p + p { margin-top: 14px; }
.faq__item.is-open .faq__a { display: block; }

/* --------------------------------------------------------------- tables */

.ctable { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.ctable__row { display: grid; grid-template-columns: 380px repeat(2, minmax(0, 1fr)); }
.ctable__row > * { padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.ctable__row:last-child > * { border-bottom: 0; }
.ctable__head > * { background: var(--ivory-100); border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--char-700); }
.ctable__head .is-us { background: var(--char-950); color: var(--ivory-50); display: flex; align-items: center; gap: 9px; border-bottom-color: var(--char-950); }
.ctable__label { font-size: 14.5px; font-weight: 600; color: var(--char-950); }
.ctable__cell { font-size: 14px; line-height: 1.55; color: var(--char-600); }
.ctable__cell.is-us { background: var(--gold-50); color: var(--gold-text); font-weight: 600; }

/* --------------------------------------------------------------- journal */

.jrow { display: grid; grid-template-columns: 62px minmax(0, 1fr) 300px 120px; gap: 40px; align-items: baseline; padding: 34px 0; border-top: 1px solid var(--line); }
.jrow:last-child { border-bottom: 1px solid var(--line); }
.jrow__n { font-family: var(--serif); font-size: 26px; color: var(--char-400); }
.jrow__t { font-size: 34px; line-height: 1.14; letter-spacing: -0.022em; }
.jrow__t a { color: var(--char-950); }
.jrow__t a:hover { color: var(--gold-text-dk); }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }

.prose { max-width: 720px; min-width: 0; font-size: 17px; line-height: 1.75; color: var(--char-600); }
.prose h2 { font-size: 42px; margin: 56px 0 20px; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: 0; margin: 40px 0 14px; color: var(--char-950); }
.prose p + p { margin-top: 20px; }
.prose ul { margin: 20px 0; }
.prose li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 6px; height: 1px; background: var(--gold-600); }
.prose blockquote { margin: 40px 0; padding-left: 28px; border-left: 1px solid var(--gold-500); font-family: var(--serif); font-size: 28px; line-height: 1.4; color: var(--char-950); }
/* long-form tables scroll inside their own box instead of breaking the page */
.prose table {
  display: block; width: 100%; max-width: 100%; overflow-x: auto;
  border-collapse: collapse; margin: 32px 0; font-size: 14.5px;
  -webkit-overflow-scrolling: touch;
}
.prose thead { background: var(--ivory-100); }
.prose th, .prose td {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top; line-height: 1.5;
}
.prose th { font-weight: 600; color: var(--char-950); white-space: nowrap; }
.prose td { color: var(--char-600); min-width: 120px; }
.prose td:first-child, .prose th:first-child { padding-left: 0; }

/* --------------------------------------------------------------- forms */

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--char-700); }
.field input, .field textarea, .field select {
  height: 50px; padding: 0 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 14.5px; color: var(--char-900);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--char-500); }
.field__error { font-size: 12.5px; color: var(--danger); }

.form-note { font-size: 12.5px; line-height: 1.55; color: var(--char-400); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal[data-open="true"] { display: flex; }
.modal__scrim { position: absolute; inset: 0; background: rgba(11, 11, 10, 0.62); }
.modal__panel {
  position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  background: var(--ivory-50); border-radius: 3px; padding: 40px 40px 36px;
  box-shadow: 0 30px 90px rgba(15, 15, 15, 0.3);
}
.modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--char-400); }
.modal__close:hover { color: var(--char-950); }

/* --------------------------------------------------------------- utilities */

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-sm { max-width: 480px; } .maxw-md { max-width: 560px; } .maxw-lg { max-width: 680px; }
.nowrap { white-space: nowrap; }
.grow { flex-grow: 1; }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--char-500); }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  :root { --pad: 48px; }
  /* !important so inline grid-template-columns in page markup also collapses */
  .split:not(.split-half) { grid-template-columns: minmax(0, 1fr) !important; gap: 48px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub__body { grid-template-columns: 260px minmax(0, 1fr); }
  .hub__side { display: none; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .ctable__row { grid-template-columns: 240px repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --pad: 20px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .nav, .masthead__login { display: none; }
  .burger { display: inline-flex; }
  .grid, .grid-2, .grid-3, .grid-4, .split, .split-half { grid-template-columns: minmax(0, 1fr) !important; gap: 28px; }
  .row { flex-wrap: wrap; }
  .hero__timeline { grid-template-columns: 1fr; gap: 20px; }
  .deflist { grid-template-columns: 1fr; gap: 8px; }
  .jrow { grid-template-columns: 1fr; gap: 12px; }
  .jrow__t { font-size: 27px; }
  .hub__body { grid-template-columns: 1fr; }
  .hub__list { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__base { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn { width: 100%; }
  .btn--auto { width: auto; }
  /* header buttons must never stretch — they share the row with the burger */
  .masthead .btn, .mobile-nav__head .btn { width: auto; }
  .meta-row { gap: 10px 16px; }
  .modal__panel { padding: 32px 24px 28px; }

  /* comparison table becomes stacked cards on a phone */
  .ctable { border: 0; }
  .ctable__head { display: none; }
  .ctable__row { grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 3px; margin-bottom: 16px; }
  .ctable__row > * { padding: 14px 18px; }
  .ctable__cell::before { content: attr(data-col) " — "; font-weight: 600; color: var(--char-950); }
}

@media (max-width: 560px) {
  .masthead { gap: 16px; }
  .masthead .btn { display: none; }
  .masthead__word { font-size: 22px; }
  .display { letter-spacing: -0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .announce, .site-header, .mobile-nav, .modal, .btn { display: none !important; }
  body { background: #fff; }
  .section--dark { background: #fff !important; }
  .section--dark h1, .section--dark h2, .section--dark h3, .on-dark, .on-dark-strong { color: #000 !important; }
}
