/* famonym.com homepage (docs/marketing.md). CSS only: the site runs no script. Every section is complete at rest and with reduced motion;
   motion is added on top where the browser supports it. Tokens come from famonym.css. */

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

/* ---------- Hero: a site assembling itself under a name ---------- */
.h-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.h-hero-g { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.h-copy h1 { font-size: clamp(52px, 8.4vw, 104px); line-height: .96; letter-spacing: -.03em; margin: 8px 0 0; }
.h-copy h1 span { display: block; color: var(--amethyst); }
.h-copy .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); margin: 22px 0 0; max-width: 34em; }
.h-copy .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.h-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); }
.h-stage { position: relative; min-width: 0; }
.h-win { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -28px rgba(42, 16, 66, .45); overflow: hidden; }
.h-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.h-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.h-url { margin-left: 10px; font: 600 14px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-soft); white-space: nowrap; overflow: hidden; }
.h-type { color: var(--amethyst); display: inline-block; }
.h-site { padding: 18px 20px 22px; display: grid; gap: 18px; }
.h-nav { display: flex; align-items: center; gap: 10px; }
.h-nav b { width: 26%; height: 12px; border-radius: 6px; background: var(--ink); }
.h-nav span { width: 10%; height: 8px; border-radius: 4px; background: var(--line); }
.h-nav em { margin-left: auto; width: 18%; height: 22px; border-radius: 999px; background: var(--amethyst); }
.h-main { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: center; }
.h-text { display: grid; gap: 10px; }
.h-k { width: 30%; height: 7px; border-radius: 4px; background: var(--amber); }
.h-n { width: 88%; height: 26px; border-radius: 8px; background: var(--ink); }
.h-l { width: 96%; height: 9px; border-radius: 5px; background: #ddd0e8; }
.h-l.s { width: 70%; }
.h-b { width: 42%; height: 30px; border-radius: 999px; background: var(--amethyst); margin-top: 6px; }
.h-photo { aspect-ratio: 4 / 5; border-radius: 16px; background: radial-gradient(circle at 50% 38%, #c79a83 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, #5a3b52 0 42%, transparent 43%), linear-gradient(160deg, #efe2f4, #d9c6e6); }
.h-chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.h-chips li { font: 700 13px/1 var(--body); padding: 8px 12px; border-radius: 999px; background: var(--soft); color: var(--amethyst-deep); }

/* ---------- The moment: someone searches your name ---------- */
.h-moment { background: var(--ink); color: var(--white); padding: clamp(56px, 9vw, 112px) 0; }
.h-moment h2 { font-size: clamp(30px, 4.4vw, 54px); max-width: 20ch; color: var(--white); }
.h-moment .lead { color: #d9cfe4; max-width: 40em; margin: 22px 0 0; font-size: clamp(17px, 1.5vw, 20px); }
.h-search { margin-top: 28px; display: flex; align-items: center; gap: 4px; max-width: 520px; padding: 14px 20px; border-radius: 999px; background: #2a2038; border: 1px solid #44365a; font: 600 18px/1 var(--body); color: var(--white); }
.h-search::before { content: ""; width: 14px; height: 14px; border: 2px solid #b9a8cf; border-radius: 50%; margin-right: 10px; flex: none; }
.h-q { display: inline-block; overflow: hidden; white-space: nowrap; }
.h-cursor { width: 2px; height: 20px; background: var(--amber); }

/* ---------- Us vs them: a tab set driven by radio buttons ---------- */
.cmp > input { position: absolute; opacity: 0; pointer-events: none; }
.cmp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.cmp-tabs label { cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); font: 700 15px/1 var(--body); color: var(--ink); background: var(--white); }
#w1:checked ~ .cmp-tabs [for="w1"], #w2:checked ~ .cmp-tabs [for="w2"], #w3:checked ~ .cmp-tabs [for="w3"], #w4:checked ~ .cmp-tabs [for="w4"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
#w1:focus-visible ~ .cmp-tabs [for="w1"], #w2:focus-visible ~ .cmp-tabs [for="w2"], #w3:focus-visible ~ .cmp-tabs [for="w3"], #w4:focus-visible ~ .cmp-tabs [for="w4"] { outline: 3px solid var(--amethyst); outline-offset: 3px; }
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.cmp-them article { display: none; height: 100%; padding: 26px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
#w1:checked ~ .cmp-grid .p1, #w2:checked ~ .cmp-grid .p2, #w3:checked ~ .cmp-grid .p3, #w4:checked ~ .cmp-grid .p4 { display: block; }
.cmp-them h3, .cmp-us h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 6px 0 14px; }
.cmp-k { font: 700 12px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); margin: 0; }
.cmp ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cmp-them li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.cmp-them li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 2px; background: #b2a6bf; }
.cmp-us { padding: 26px; border-radius: 18px; background: var(--amethyst); color: var(--white); }
.cmp-us .cmp-k { color: #f4d9a8; }
.cmp-us h3 { color: var(--white); }
.cmp-us li { padding-left: 30px; position: relative; color: #efe6f6; }
.cmp-us li b { color: var(--white); }
.cmp-us li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 14px; height: 8px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg); }
.cmp-us .btn { margin-top: 22px; background: var(--white); border-color: var(--white); color: var(--amethyst); }
.cmp-us .btn:hover { background: var(--soft); border-color: var(--soft); }

/* ---------- The work nobody sees ---------- */
.h-behind-g { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.files li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 14px 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.files code { font: 700 14px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--amethyst); }
.files code::before { content: "\2713"; display: inline-block; width: 18px; color: var(--amber-deep); }
.files span { color: var(--ink-soft); font-size: 15px; }

/* ---------- Authority ---------- */
.h-auth { background: var(--soft); }
.h-auth-g { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.h-auth h2 { font-size: clamp(30px, 3.6vw, 44px); }
.h-auth-t p { color: var(--ink-soft); font-size: 18px; margin: 0 0 14px; }
.h-auth-t .h-honest { color: var(--ink); font-weight: 700; border-left: 4px solid var(--amber); padding-left: 14px; }

/* ---------- Professions: a slow marquee ---------- */
.h-who { overflow: hidden; }
.marquee { display: flex; gap: 12px; margin-top: 28px; width: max-content; }
.marquee ul { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.marquee li { white-space: nowrap; padding: 12px 20px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font: 400 22px/1 var(--display); font-weight: 700; font-variation-settings: var(--soft); color: var(--ink); }
.marquee li:nth-child(3n+2) { background: var(--amethyst); border-color: var(--amethyst); color: var(--white); }
.marquee li:nth-child(5n+4) { background: var(--soft); }

/* ---------- Steps ---------- */
.steps3 { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps3 li { counter-increment: s; padding: 26px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.steps3 li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--amethyst); color: var(--white); font: 800 20px/1 var(--display); font-variation-settings: var(--soft); margin-bottom: 14px; }
.steps3 h3 { font-size: 24px; margin: 0 0 8px; }
.steps3 p { margin: 0; color: var(--ink-soft); }

/* ---------- Plans, with a yearly or monthly switch ---------- */
.bill > input { position: absolute; opacity: 0; pointer-events: none; }
.bill-t { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); margin: 4px 0 20px; }
.bill-t label { cursor: pointer; padding: 9px 18px; border-radius: 999px; font: 700 14px/1 var(--body); color: var(--ink); }
#by:checked ~ .bill-t [for="by"], #bm:checked ~ .bill-t [for="bm"] { background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
#by:focus-visible ~ .bill-t [for="by"], #bm:focus-visible ~ .bill-t [for="bm"] { outline: 3px solid var(--amethyst); outline-offset: 2px; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 26px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.plan.pro { border: 2px solid var(--amethyst); }
.plan h3 { font-size: 26px; margin: 0; }
.plan .price { margin: 10px 0 0; color: var(--ink-soft); }
.plan .price b { font: 800 40px/1 var(--display); font-variation-settings: var(--soft); color: var(--ink); margin-right: 4px; }
.plan .price.m { display: none; }
#bm:checked ~ .plans .price.y { display: none; }
#bm:checked ~ .plans .price.m { display: block; }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; color: var(--ink-soft); }
.plan ul li { padding-left: 26px; position: relative; }
.plan ul li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px; border-left: 3px solid var(--amethyst); border-bottom: 3px solid var(--amethyst); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Yours to keep, questions ---------- */
.keep3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.keep3 li { padding: 24px; border-radius: 18px; background: var(--white); }
.keep3 h3 { font-size: 22px; margin: 0 0 8px; }
.keep3 p { margin: 0; color: var(--ink-soft); }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font: 700 18px/1.35 var(--body); color: var(--ink); list-style-position: outside; }
.faq summary:focus-visible { outline: 3px solid var(--amethyst); outline-offset: 3px; border-radius: 6px; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .h-hero-g, .h-behind-g, .h-auth-g, .cmp-grid { grid-template-columns: minmax(0, 1fr); }
  .steps3, .plans, .keep3 { grid-template-columns: minmax(0, 1fr); }
  .files li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- Motion (only when the reader has not asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* The hero: the name types, then the site builds, then the files are written; it loops gently. */
  .h-type { animation: type 9s steps(8) infinite; width: 8ch; }
  @keyframes type { 0% { width: 0; } 12%, 100% { width: 8ch; } }
  .h-nav, .h-k, .h-n, .h-l, .h-b, .h-photo { animation: build 9s ease-out infinite both; }
  .h-nav { animation-delay: .9s; } .h-photo { animation-delay: 1.3s; } .h-k { animation-delay: 1.6s; } .h-n { animation-delay: 1.8s; }
  .h-l { animation-delay: 2.1s; } .h-l.s { animation-delay: 2.3s; } .h-b { animation-delay: 2.6s; }
  @keyframes build { 0%, 8% { opacity: 0; transform: translateY(10px) scale(.98); } 16%, 92% { opacity: 1; transform: none; } 100% { opacity: 1; } }
  .h-chips li { animation: chip 9s ease-out infinite both; }
  .h-chips li:nth-child(1) { animation-delay: 3s; } .h-chips li:nth-child(2) { animation-delay: 3.3s; } .h-chips li:nth-child(3) { animation-delay: 3.6s; }
  .h-chips li:nth-child(4) { animation-delay: 3.9s; } .h-chips li:nth-child(5) { animation-delay: 4.2s; }
  @keyframes chip { 0%, 30% { opacity: 0; transform: translateY(6px); } 36%, 100% { opacity: 1; transform: none; } }
  .h-win { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-6px); } }
  /* The search box: the query types and the cursor blinks. */
  .h-q { animation: query 6s steps(9) infinite; max-width: 12ch; }
  @keyframes query { 0% { max-width: 0; } 30%, 100% { max-width: 12ch; } }
  .h-cursor { animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  /* Professions drift by; hover or focus pauses them. */
  .marquee { animation: drift 60s linear infinite; }
  .h-who:hover .marquee { animation-play-state: paused; }
  @keyframes drift { to { transform: translateX(-50%); } }
  /* Tabs and plans change with a small fade. */
  #w1:checked ~ .cmp-grid .p1, #w2:checked ~ .cmp-grid .p2, #w3:checked ~ .cmp-grid .p3, #w4:checked ~ .cmp-grid .p4 { animation: swap .35s ease-out; }
  @keyframes swap { from { opacity: 0; transform: translateY(6px); } }
  .cmp-tabs label, .bill-t label, .btn { transition: background .2s ease, color .2s ease, transform .2s ease; }
  .btn:hover { transform: translateY(-1px); }
  /* Sections rise into place as they scroll in, where the browser can tie motion to scrolling. */
  @supports (animation-timeline: view()) {
    .files li, .steps3 li, .plan, .keep3 li, .faq details, .ex { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
  }
}
