/* AIDEAS site, Direction 1 "Black Bar". Shared by every page.
   Palette: Snow ground, Caviar text and dark sections, Apple Butter on buttons only,
   Military Olive for small labels on light grounds only. Gold lives only in the logo and brass only in the footage.
   Pure #000 only in the top bar and the footer logo tile. Spacing: 4/8/12/16/24/32/48/64/96/128 only.
   Type scale: 12/14/16/20/24/32/40/56/72. */
:root {
  --snow: #F3F0EB;
  --snow-2: #EAE4DA;
  --caviar: #252324;
  --butter: #7F4642;
  --butter-hover: #8D514C;
  --olive: #67583E;
  --muted: #4A4446;          /* on Snow 8.4:1, on Snow-2 7.5:1 */
  --muted-dark: #D9D2C7;     /* on Caviar 10.5:1 */
  --hair: #D5CDC0;
  --hair-dark: rgba(243, 240, 235, 0.24);
  --focus: #252324;          /* 13.7:1 on Snow */
  --r: 8px;                  /* one radius for buttons, cards and glass */
  --e: cubic-bezier(0.22, 1, 0.36, 1);
  --bar: 64px;
  --f: "DM Sans", system-ui, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--caviar); scroll-padding-top: 80px; }
body { margin: 0; background: var(--snow); color: var(--caviar); font: 400 16px/1.5 var(--f); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.bar, .stage, .dark, .foot, .mbar, .skipform { --focus: #F3F0EB; }  /* Snow ring on dark grounds: 13.7:1 on Caviar, 21:1 on black */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1 { font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; max-width: 14em; }
h2 { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; max-width: 16em; }
h3 { font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 32em; }
.dark .lede, .dark p { color: var(--muted-dark); }
.label { font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive); }
@media (min-width: 861px) { h1 { font-size: 56px; } h2 { font-size: 40px; } }

/* links: one style, underline draws left to right */
.ul { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat; transition: background-size 200ms var(--e); padding-bottom: 2px; }
.ul:hover, .ul:focus-visible { background-size: 100% 1px; }
.ul[aria-current="page"] { background-size: 100% 1px; }

/* one button pair: Apple Butter fill (buttons only), outline secondary */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--r); font: 500 16px/1 var(--f); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background-color 200ms var(--e), transform 120ms var(--e); white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn--pri { background: var(--butter); border-color: var(--butter); color: var(--snow); }
.btn--pri:hover { background: var(--butter-hover); border-color: var(--butter-hover); }
.dark .btn--pri, .bar .btn--pri, .stage .btn--pri, .mbar .btn--pri { box-shadow: inset 0 0 0 1px rgba(243, 240, 235, 0.35); }
.btn--sec { background: transparent; border-color: var(--caviar); color: var(--caviar); }
.btn--sec:hover { background: var(--snow-2); }
.dark .btn--sec, .stage .btn--sec { border-color: var(--snow); color: var(--snow); }
.dark .btn--sec:hover, .stage .btn--sec:hover { background: rgba(243, 240, 235, 0.12); }

/* ---------- the black bar: the only place the logo lives (plus the footer tile) ---------- */
.bar { position: sticky; top: 0; z-index: 40; height: var(--bar); background: #000; color: var(--snow); }
.bar__row { max-width: none; padding: 0 max(24px, 5vw); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar__logo { display: block; width: 48px; height: 48px; flex: none; border-radius: 4px; }
.bar__logo { position: relative; isolation: isolate; overflow: hidden; }   /* the locked logo files sit on this pure-black bar; overlays (spark ring, light band) live inside and never edit the image */
.bar__logo img { width: 48px; height: 48px; }
.bar__logo .logo-lock { display: none; }
@media (min-width: 861px) {   /* the lockup needs 240px or more; below that the mark stands alone */
  :root { --bar: 96px; }
  .bar__logo { width: 256px; height: 88px; }
  .bar__logo .logo-mark { display: none; }
  .bar__logo .logo-lock { display: block; width: 256px; height: 88px; }
}
.bar__nav { display: flex; align-items: center; gap: 24px; }
.bar__nav .ul { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.bar__nav .btn { min-height: 44px; padding: 0 16px; margin-left: 8px; }
@media (max-width: 720px) {
  .bar__row { padding: 0 16px; }
  .bar__nav { gap: 12px; }
  .bar__nav .btn { display: none; }      /* the bottom bar carries the button on phones */
}

/* phone bottom bar: price and button from the first second */
.mbar { display: none; }
@media (max-width: 720px) {
  body.has-mbar { padding-bottom: 64px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 16px; background: var(--caviar); color: var(--snow); border-top: 1px solid var(--hair-dark); }
  .mbar__price { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
  .mbar__price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted-dark); margin-left: 4px; }
  .mbar .btn { min-height: 48px; padding: 0 16px; }
  html.lit .mbar { display: none; }
  html.lit body.has-mbar.home { padding-bottom: 0; }
}

/* ---------- sections: flat Snow and Caviar, no glass, no glow ---------- */
.sec { padding: 64px 0; background: var(--snow); }
.sec--alt { background: var(--snow-2); }
.sec--dark { background: var(--caviar); color: var(--snow); }
.sec > .wrap > * + * { margin-top: 24px; }
.sec > .wrap > h2 + .lede, .sec > .wrap > h1 + .lede { margin-top: 16px; }
.pagehead { padding: 64px 0; }
@media (min-width: 861px) { .sec { padding: 96px 0; } .pagehead { padding: 96px 0; } }

/* the connected step line: a real sequence, no numerals */
.steps { display: grid; gap: 32px; margin-top: 48px !important; }
.step { position: relative; padding-left: 48px; }
.step__dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--caviar); }
.step::after { content: ""; position: absolute; left: 7px; top: 24px; bottom: -32px; width: 2px; background: var(--caviar); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 28em; }
.dark .step__dot, .dark .step::after { background: var(--snow); }
@media (min-width: 861px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .step { padding: 48px 0 0; }
  .step__dot { top: 0; }
  .step::after { left: 16px; top: 7px; bottom: auto; width: auto; right: -48px; height: 2px; }
}

/* cards: one style */
.cards { display: grid; gap: 24px; }
.card { background: var(--snow-2); border: 1px solid var(--hair); border-radius: var(--r); padding: 32px; }
.sec--alt .card { background: var(--snow); }
.card > * + * { margin-top: 16px; }
.card .big { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.card .big small { font-size: 20px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.rows li { padding: 12px 0; border-top: 1px solid var(--hair); }
.rows li:last-child { border-bottom: 1px solid var(--hair); }
.card p, .card li { color: var(--muted); }
.card .big, .card h3 { color: var(--caviar); }
@media (min-width: 861px) { .cards { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } }
.twocol { display: grid; gap: 32px; }
@media (min-width: 861px) { .twocol { grid-template-columns: 1fr 1fr; gap: 64px; } }
.bullets li { padding: 12px 0; border-top: 1px solid var(--hair); color: var(--muted); max-width: 32em; }
.bullets li:last-child { border-bottom: 1px solid var(--hair); }
.plain { max-width: 34em; font-size: 20px; color: var(--caviar); }

/* big type-led price statement (home) */
.price-line { font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -0.045em; }
.price-line small { font-size: 20px; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-left: 12px; }
@media (max-width: 860px) { .price-line { font-size: 56px; } }

/* faq: plain details, works with no JS */
.faq details { border-top: 1px solid var(--hair); padding: 0; max-width: 40em; }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--caviar); border-bottom: 2px solid var(--caviar); transform: rotate(45deg) translate(-2px, -2px); transition: transform 200ms var(--e); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 34em; }
.faq summary:hover { color: var(--caviar); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- the lead form (flat, and inside the glass on the home hero) ---------- */
.field { display: block; margin-top: 16px; }
.field > span { display: block; font: 500 12px/1 var(--f); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 8px; }
.lead input[type=text] { width: 100%; min-height: 48px; font: 500 16px/1.3 var(--f); color: var(--snow); background: rgba(243, 240, 235, 0.08); border: 0; border-bottom: 1.5px solid var(--snow); border-radius: 4px 4px 0 0; padding: 8px 12px; }
.lead input::placeholder { color: #B9B1A4; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 16px; cursor: pointer; color: var(--snow); }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--snow); border-radius: 4px; background: transparent; cursor: pointer; transition: background-color 150ms var(--e); }
.check input:checked { background: var(--snow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23252324' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.lead .btn { margin-top: 24px; width: 100%; }
.lead .btn + .btn { margin-top: 12px; }
.lead .note { margin-top: 12px; font-size: 16px; color: var(--muted-dark); }
.lead .err { margin-top: 12px; font-size: 14px; color: #FFD9C7; }
.lead .sent { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--hair-dark); color: var(--snow); }
.lead .sent strong { display: block; font-size: 20px; margin-bottom: 8px; }
.lead .sent a { color: var(--snow); }
.start { display: grid; gap: 32px; }
.start__box { max-width: 480px; }
@media (min-width: 861px) { .start { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.contact { margin-top: 24px; }
.contact p + p { margin-top: 8px; }

/* ---------- footer: Caviar, the logo tile is the only #000 ---------- */
.foot { background: var(--caviar); color: var(--snow); padding: 64px 0; border-top: 1px solid var(--hair-dark); }
.foot__grid { display: grid; gap: 32px; }
.foot .tile { display: block; width: 96px; height: 96px; background: #000; padding: 8px; border-radius: var(--r); }
.foot .tile img { width: 80px; height: 80px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav .ul, .foot .contact .ul { display: inline-flex; align-items: center; min-height: 44px; }
.foot small { font-size: 14px; color: var(--muted-dark); }
.foot .contact { margin-top: 0; }
@media (min-width: 861px) { .foot__grid { grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; } }

/* ---------- section reveals: elements rise and fade, never a whole section ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rv { animation: rv 1ms var(--e) both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes rv { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
  }
}
.lead .field:first-child { margin-top: 0; }
