/* WordShine website. Follows the app's design rules (DESIGN.md at the repo root):
   words are the hero, chrome stays quiet; every button is a pill; cards are
   generously rounded; Fraunces for words and headings, Inter for the rest; one
   accent per look. Light and dark follow the visitor's system setting, like the
   app's Shine and Shine Light looks. No JavaScript. */

@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/Fraunces-Medium.woff") format("woff"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/Fraunces-Italic.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/Inter-SemiBold.woff") format("woff"); }

:root {
  color-scheme: light dark;
  /* Shine Light: sunlit cream, teal ink and actions. */
  --bg: #F7F0E2;
  --bg2: #FBF6EA;
  --surface: #FFFBF1;
  --line: rgba(13, 42, 48, 0.16);
  --ink: #0D2A30;
  --ink-soft: #33545A;
  --ink-faint: #4C676C;
  --accent: #0D6670;
  --on-accent: #F7F0E2;
  --sun: #E2A034;
  --shine: #B87514;
  --eyebrow: #8A5410;
  --glow: rgba(226, 160, 52, 0.26);
  --btn-glow: rgba(13, 102, 112, 0.35);
  --phone: #0D2A30;
  --radius-pill: 999px;
  --radius-field: 16px;
  --radius-card: 20px;
  --radius-sheet: 28px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Shine: the brand's night teal, with the sun's gold as the accent. */
    --bg: #0D2A30;
    --bg2: #123840;
    --surface: #133239;
    --line: rgba(247, 240, 226, 0.14);
    --ink: #F7F0E2;
    --ink-soft: #B5B9B0;
    --ink-faint: #8E9792;
    --accent: #F4BE5C;
    --on-accent: #0A1E23;
    --sun: #F4BE5C;
    --shine: #F4BE5C;
    --eyebrow: #F4BE5C;
    --glow: rgba(244, 190, 92, 0.16);
    --btn-glow: rgba(244, 190, 92, 0.32);
    --phone: #081A1E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(var(--bg), var(--bg2));
  background-attachment: fixed;
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--accent); color: var(--on-accent); padding: 10px 18px; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 40px); }

/* ---------------------------------------------------------------- header */
.site-head { position: relative; z-index: 5; padding-block: 16px; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; min-height: 44px; }
.mark { width: 40px; height: auto; display: block; overflow: visible; }
.mark .m-ink { stroke: var(--ink); }
.mark .m-sun { stroke: var(--sun); }
.mark .m-fill { fill: var(--sun); }
.wm { font: 500 27px/1 var(--serif); letter-spacing: -0.01em; }
.wm i { font-style: italic; font-weight: 400; color: var(--shine); }
.site-head nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 0 2px; margin-inline: -10px; }
.site-head nav a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 10px 10px; border-radius: var(--radius-pill); white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
@media (min-width: 820px) {
  .site-head nav { order: 0; width: auto; margin: 0; }
}

/* ---------------------------------------------------------------- buttons: always pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: var(--radius-pill); font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 28px -12px var(--btn-glow); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.btn.soon { color: var(--ink-faint); border-style: dashed; cursor: default; }
.btn.soon:hover { background: transparent; }
.btn.soon:active { transform: none; }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 70px); line-height: 1.04; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 58ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: italic 400 18px/1.2 var(--serif); color: var(--eyebrow); }
.eyebrow svg { width: 22px; height: auto; }
.eyebrow .m-ink { stroke: var(--eyebrow); }
.eyebrow .m-sun { stroke: var(--eyebrow); }
.eyebrow .m-fill { fill: var(--eyebrow); }
.label { font: 600 11.5px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--eyebrow); margin: 0 0 12px; }
.fine { font-size: 14.5px; color: var(--ink-faint); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(60% 55% at 50% 0%, var(--glow), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.pills li { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 7px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.hero-phone { display: flex; justify-content: center; }

/* A screen from the app, in a quiet frame. */
.phone { width: min(100%, 300px); margin: 0; padding: 9px; border-radius: 42px; background: var(--phone); border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.5); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 590 / 1278; border-radius: 33px; background: var(--phone); }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section.alt { background: color-mix(in srgb, var(--ink) 4%, transparent); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { margin-bottom: 16px; }
.section-head .lede { margin-bottom: 0; }
h2 + .lede { margin-top: 16px; }

.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { counter-increment: step; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); padding: 28px; }
.step::before { content: counter(step); display: block; font: 500 52px/1 var(--serif); color: var(--eyebrow); margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink-soft); }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }

.shots { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px clamp(20px, 5vw, 40px) 24px; margin-inline: calc(-1 * clamp(20px, 5vw, 40px)); justify-content: safe center; scrollbar-width: thin; }
.shot { flex: 0 0 clamp(210px, 21vw, 240px); scroll-snap-align: center; margin: 0; }
.shot figcaption { margin-top: 16px; text-align: center; font-size: 15.5px; color: var(--ink-soft); }
.shot figcaption strong { display: block; color: var(--ink); font: 500 19px/1.25 var(--serif); margin-bottom: 2px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.checks li strong { color: var(--ink); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }

.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 28px; }
.plan { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); padding: 28px; }
.plan.premium { border-color: color-mix(in srgb, var(--sun) 65%, var(--line)); }
.plan h3 { margin-bottom: 6px; }
.plan .sub { color: var(--ink-faint); font-size: 15.5px; margin-bottom: 18px; }
.plan .checks { gap: 10px; }
.plan .checks li { font-size: 16px; }
.how-pay { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px 28px; }
.how-pay p:last-child { margin-bottom: 0; }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font: 500 20px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--sans); color: var(--eyebrow); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 68ch; }

.cta { position: relative; overflow: hidden; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sheet); padding: clamp(40px, 7vw, 76px) clamp(20px, 5vw, 48px); background: var(--surface); }
.cta::before { content: ""; position: absolute; inset: -40% 0 auto; height: 120%; background: radial-gradient(55% 55% at 50% 0%, var(--glow), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }
.cta .actions { justify-content: center; margin: 24px 0 0; }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding-block: clamp(28px, 6vw, 72px) clamp(20px, 4vw, 40px); position: relative; }
.page-head::before { content: ""; position: absolute; inset: -30% 0 auto; height: 140%; background: radial-gradient(55% 55% at 50% 0%, var(--glow), transparent 70%); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 58px); margin-bottom: 18px; }
.page-head .lede { margin-bottom: 0; }
.prose { padding-bottom: clamp(56px, 8vw, 96px); }
.prose > * { max-width: 720px; }
.prose > .about-grid, .prose > .topics { max-width: none; }
.prose h2 { font-size: clamp(25px, 3vw, 31px); margin: 2.1em 0 0.55em; scroll-margin-top: 20px; }
.prose h3 { margin: 1.6em 0 0.4em; }
.prose .card h3 { margin: 0 0 8px; }
.prose ul { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; color: var(--ink-soft); }
.prose li::marker { color: var(--sun); }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose .meta { color: var(--ink-faint); font-size: 15px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px 26px; margin: 28px 0 8px; background: var(--surface); }
.toc .label { margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 240px; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; color: var(--ink-soft); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.about-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin: 12px 0 8px; }
.entry { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sheet); padding: clamp(26px, 4vw, 40px); margin: 28px 0; }
.entry .word { font: 500 clamp(34px, 5vw, 50px)/1.05 var(--serif); }
.entry .word i { font-style: italic; font-weight: 400; color: var(--shine); }
.entry .pos { font-family: var(--serif); font-style: italic; color: var(--eyebrow); margin-right: 10px; }
.entry .def { font: 400 21px/1.4 var(--serif); margin: 10px 0 8px; color: var(--ink); }
.entry .note { font-style: italic; font-family: var(--serif); color: var(--ink-soft); margin: 0; }

.contact-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sheet); padding: clamp(26px, 4vw, 40px); margin-bottom: 28px; }
.contact-card .mail { display: block; font: 500 clamp(19px, 5.6vw, 34px)/1.2 var(--serif); margin: 6px 0 22px; word-break: break-word; }
.topics { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 24px; }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 44px 56px; margin-top: 24px; }
.site-foot .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: 1.4fr 1fr; } }
.site-foot .brand { margin: 0 0 12px; }
.site-foot p { color: var(--ink-faint); font-size: 15px; margin: 0; max-width: 46ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; align-content: flex-start; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: var(--radius-pill); }
.foot-links .soon-link { color: var(--ink-faint); font-size: 15px; padding: 10px 14px; }
.foot-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }

.notfound { text-align: center; padding-block: clamp(60px, 14vw, 160px); }
.notfound h1 { margin-bottom: 16px; }
.notfound .actions { justify-content: center; margin-top: 28px; }

@media print {
  .site-head, .site-foot, .toc, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .prose p, .prose li { color: #000; }
  a { color: #000; }
}
