/* Wolfore website: shared styles (2026-10-10 refresh, David: "less polished, dark, not as high
   end as the apps"). The site now looks like the apps: soft-steel page, white cards with the
   apps' soft shadow, navy type, small ember accents. Navy is kept for the frame (header, footer)
   and one strong band. Colours come from /tokens.css (generated from tokens/brand.json): edit
   the brand file, never a hex here.
   Used by index.html, studio.html and pricing.html. Legal pages keep their own styles for now. */

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

:root {
  --navy: var(--brand-navy);
  --ember: var(--brand-ember);
  --ash: var(--brand-ash);
  --canvas: var(--brand-canvas);
  --ink: var(--brand-iron);
  --muted: #5B6B80;            /* body-secondary on light: ash is too faint for paragraphs */
  --line: var(--brand-gray-200);
  --display: var(--font-display);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 8px 24px rgb(30 58 95 / 0.06);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--canvas); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 46rem; }
.center { text-align: center; }
.center .narrow, .narrow.center { margin-left: auto; margin-right: auto; }

/* ── Header (navy frame; same flow as before: wordmark left, links + Sign in right) ── */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgb(30 58 95 / 0.96);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  font-family: var(--display); display: inline-block; line-height: 1;
  font-size: 1.5rem; letter-spacing: 0.12em; color: var(--canvas); text-decoration: none;
}
.brand::after {
  content: ''; display: block; width: 3.75rem; height: 2px;
  background: var(--ember); border-radius: 999px; margin: -0.02em auto 0;
}
/* Nav: Home · Studio · Pricing · Sign in on every page (David 2026-10-10: no way back to Home
   from Studio). Under 720px the same links move into a menu button (a <details>, so it works
   without JavaScript). */
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { font-size: 0.92rem; letter-spacing: 0.03em; color: var(--canvas); text-decoration: none; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ember); padding-bottom: 2px; }
.nav .signin {
  padding: 0.45rem 1rem; border: 1px solid rgb(238 240 242 / 0.35); border-radius: 10px;
  transition: border-color 0.2s;
}
.nav .signin:hover { border-color: var(--canvas); }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; margin-right: -10px;
  display: flex; align-items: center; justify-content: center; color: var(--canvas); border-radius: 10px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 24px; height: 24px; }
.menu .close { display: none; }
.menu[open] .open { display: none; }
.menu[open] .close { display: block; }
.menu-panel {
  position: absolute; right: -10px; top: 52px; width: min(16rem, calc(100vw - 2rem));
  background: #fff; border-radius: 16px; box-shadow: 0 12px 32px rgb(30 58 95 / 0.22); padding: 0.5rem;
}
.menu-panel a {
  display: block; padding: 0.8rem 1rem; border-radius: 10px; color: var(--navy);
  text-decoration: none; font-weight: 500;
}
.menu-panel a:hover { background: rgb(30 58 95 / 0.06); }
.menu-panel a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ember); background: rgb(30 58 95 / 0.05); }
.menu-panel .menu-label {
  margin: 0.5rem 1rem 0.25rem; padding-top: 0.6rem; border-top: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash);
}

/* Sign in chooser (wide screens): the Sign in button opens two labelled choices, so nobody
   lands in the wrong app. The phone menu shows the same choices under "Sign in". */
.signin-menu { position: relative; }
.signin-menu summary { list-style: none; cursor: pointer; font-size: 0.92rem; letter-spacing: 0.03em; color: var(--canvas); }
.signin-menu summary::-webkit-details-marker { display: none; }
.signin-menu[open] summary { border-color: var(--canvas); }
.signin-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 19rem;
  background: #fff; border-radius: 16px; box-shadow: 0 12px 32px rgb(30 58 95 / 0.22); padding: 0.5rem;
}
/* Each choice reads as its own button (David 2026-10-10: "not clear they are separate buttons"):
   a bordered card with an arrow, a gap between the two, a navy edge on hover. */
.choice {
  display: block; position: relative; padding: 0.8rem 2.5rem 0.8rem 1rem; margin: 0.5rem;
  border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.choice::after {
  content: ''; position: absolute; right: 1rem; top: 50%; width: 0.5rem; height: 0.5rem;
  border-top: 2px solid var(--navy); border-right: 2px solid var(--navy); transform: translateY(-50%) rotate(45deg);
}
.nav .choice { color: var(--navy); letter-spacing: 0; }
.choice:hover { border-color: var(--navy); background: rgb(30 58 95 / 0.04); }
.choice-name { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--navy); }
.choice-name .ember { color: var(--ember); }
.choice-sub { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.4; margin-top: 0.1rem; }
.choice-note { margin: 0.5rem 1rem 0.5rem; font-size: 0.8rem; color: var(--ash); }
.menu-panel .choice { margin: 0.5rem 0; }
@media (max-width: 720px) { .nav { display: none; } .menu { display: block; } }

/* Numbered explainer (Pricing: how Studio pricing works) */
.steps { list-style: none; counter-reset: step; margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-left: 2.75rem; color: var(--muted); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 1.9rem; height: 1.9rem; border-radius: 999px; border: 1.5px solid var(--navy);
  color: var(--navy); font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }
.example { margin-top: 1.75rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: rgb(30 58 95 / 0.05); color: var(--ink); }
.example strong { color: var(--navy); }

/* ── Hero (light) ── */
.hero { padding: 5.5rem 0 4.5rem; text-align: center; }
.wordmark {
  font-family: var(--display); font-weight: 400; color: var(--navy);
  font-size: clamp(3.25rem, 11vw, 5.75rem); letter-spacing: 0.1em; line-height: 1;
  display: inline-flex; flex-direction: column; align-items: center;
}
.wordmark .rule { display: block; width: 2.5em; height: 4px; background: var(--ember); border-radius: 999px; margin-top: -0.02em; }
.wordmark .studio { color: var(--ember); }
.wordmark.lockup { flex-direction: column; gap: 0.35em; }
@media (min-width: 640px) {
  .wordmark.lockup { flex-direction: row; align-items: flex-start; gap: 0.25em; }
}
.lockup .name { display: flex; flex-direction: column; align-items: center; }
.tagline { margin-top: 1.4rem; font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ash); }
.subhead { max-width: 40rem; margin: 1.5rem auto 0; font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--ink); }

/* ── Buttons (the apps' system: navy main action, navy outline second) ── */
.cta-row { margin-top: 2.25rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cta-row.left { justify-content: flex-start; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 1.5rem; border-radius: 12px; font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: transform 0.08s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgb(30 58 95 / 0.22); }
.btn-primary:hover { background: #24466f; }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: rgb(30 58 95 / 0.05); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--canvas); }
.btn-ghost-light { border: 1.5px solid rgb(238 240 242 / 0.45); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }

/* ── Sections ── */
section { padding: 4.5rem 0; }
section.tight { padding: 3rem 0; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); margin-bottom: 0.75rem; }
h2 {
  font-family: var(--display); font-weight: 400; color: var(--navy);
  font-size: clamp(1.9rem, 4.2vw, 2.6rem); letter-spacing: 0.01em; line-height: 1.18;
}
h3 { font-family: var(--display); font-weight: 400; color: var(--navy); font-size: 1.3rem; line-height: 1.3; }
.lead { margin-top: 1rem; font-size: 1.12rem; color: var(--muted); }
.lead + .lead { margin-top: 0.85rem; }

/* Cards (the apps' white card with the soft shadow) */
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow); }
.grid { display: grid; gap: 1.1rem; margin-top: 2.5rem; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card p.eyebrow { color: var(--ember); font-size: 0.75rem; }
.card p.lead { font-size: 1.08rem; }
.icon {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: rgb(30 58 95 / 0.08); color: var(--navy);
}
.icon svg { width: 22px; height: 22px; }

/* Split rows: text beside a picture (screenshots go in .shot when we have them) */
.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.shot { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }

/* Check list */
.checks { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem; border-radius: 999px;
  background: rgb(30 58 95 / 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A5F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

/* ── Navy band (the one strong block on a light page) ── */
.band { background: var(--navy); color: rgb(238 240 242 / 0.85); }
.band h2 { color: #fff; }
.band .lead { color: rgb(238 240 242 / 0.8); }
.band .eyebrow { color: #F0A37C; }

/* Store badges: official artwork only, unmodified; 40px = Apple's minimum height on screen. */
.store-row { display: flex; gap: 0.75rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }
.store-row a { display: inline-block; line-height: 0; transition: opacity 0.2s; }
.store-row a:hover { opacity: 0.85; }
.store-row img { height: 40px; width: auto; }

/* ── Pricing ── */
.price-grid { display: grid; gap: 1.1rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: rgb(200 81 27 / 0.45); box-shadow: inset 0 3px 0 var(--ember), var(--shadow); }
.plan .for { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); }
.plan .name { font-family: var(--display); color: var(--navy); font-size: 1.45rem; margin-top: 0.25rem; }
.price { margin-top: 1rem; font-family: var(--display); color: var(--navy); font-size: 2.6rem; line-height: 1; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.price-alt { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }
.plan .checks { margin-top: 1.25rem; font-size: 0.97rem; }
.plan .btn { margin-top: auto; }
.plan .spacer { flex: 1; min-height: 1.5rem; }

/* FAQ */
.faq { margin-top: 2rem; display: grid; gap: 0.75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ember); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

/* Buttons inside cards on a phone: full width and stacked, so a pair never ends up two different
   widths (David 2026-10-10). */
@media (max-width: 520px) {
  .card .cta-row { flex-direction: column; align-items: stretch; }
}

/* ── Documents (legal pages, 2026-10-10): the text on a white "paper" card, easy to read ── */
main.doc-page { padding: 2.5rem 0 4rem; }
.doc {
  max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: clamp(1.75rem, 5vw, 3.25rem);
  color: var(--ink); line-height: 1.75;
}
.doc h1 { font-family: var(--display); font-weight: 400; color: var(--navy); font-size: clamp(2.1rem, 6vw, 2.8rem); line-height: 1.15; }
.doc .updated { color: var(--ash); font-size: 0.85rem; margin-top: 0.5rem; }
.doc .accent-bar { width: 2.5rem; height: 3px; background: var(--ember); border-radius: 999px; margin: 1.5rem 0 2rem; }
.doc h2 { font-family: var(--display); font-weight: 400; color: var(--navy); font-size: 1.45rem; line-height: 1.3; margin: 2.5rem 0 0.6rem; }
.doc h3 { margin: 1.75rem 0 0.5rem; font-size: 1.15rem; }
.doc p { margin-bottom: 1rem; }
.doc a { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: rgb(200 81 27 / 0.5); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--ember); }
.doc strong { color: var(--navy); font-weight: 600; }
.doc ul, .doc ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.doc li { margin-bottom: 0.5rem; }
.doc li::marker { color: var(--ash); }
.doc .foot { margin-top: 3rem; color: var(--ash); font-size: 0.8rem; letter-spacing: 0.08em; }

/* ── Footer (navy frame; same flow as before: links left, store badges right, legal beneath) ──
   The faint top edge keeps it apart from a navy band directly above it (Studio page). */
footer.site {
  background: var(--navy); color: var(--ash); font-size: 0.9rem; padding: 3rem 0 3.5rem;
  border-top: 1px solid rgb(238 240 242 / 0.14);
}
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links a { color: var(--canvas); text-decoration: none; }
.foot-links a:hover { color: #fff; }
footer.site .store-row { margin-top: 0; justify-content: flex-end; }
.foot-legal { line-height: 1.9; }
.foot-legal a { color: var(--canvas); text-decoration: none; }
.foot-legal .sep { margin: 0 0.5rem; opacity: 0.5; }
/* Legal (David 2026-10-10): every legal document lives in one "Legal" link, the same on every
   page and every screen size. It opens a white card like the Sign in chooser, grouped by product. */
.legal-menu { position: relative; }
.legal-menu summary { display: inline-block; list-style: none; cursor: pointer; color: var(--canvas); font: inherit; letter-spacing: inherit; -webkit-tap-highlight-color: transparent; }
.legal-menu summary::-webkit-details-marker { display: none; }
.legal-menu summary:hover, .legal-menu[open] summary { color: #fff; }
.legal-panel {
  position: absolute; left: 0; bottom: calc(100% + 10px); width: 17rem; z-index: 20;
  background: #fff; border-radius: 16px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.28); padding: 0.5rem;
}
.legal-group {
  margin: 0.6rem 0.75rem 0.25rem; font-family: var(--display); font-size: 1.05rem; color: var(--navy);
}
.legal-group .ember { color: var(--ember); }
.foot-links .legal-link {
  display: block; padding: 0.5rem 0.75rem; border-radius: 10px; color: var(--muted); font-size: 0.92rem;
}
.foot-links .legal-link:hover { color: var(--navy); background: rgb(30 58 95 / 0.06); }
@media (max-width: 640px) {
  .foot-row { flex-direction: column; align-items: flex-start; }
  /* Phone: one row of links (2026-10-10, was a two-column grid). Legal stays next to the others
     (David 2026-10-10). Its card is anchored to the whole link row, not to the word Legal, so it
     lines up with the page margin and never runs off the left edge. */
  .foot-links { display: flex; flex-wrap: nowrap; gap: 1.1rem; width: 100%; position: relative; }
  .legal-menu { position: static; }
  .legal-panel { left: 0; right: auto; width: min(17rem, 100%); }
  footer.site .store-row { justify-content: flex-start; }
  .foot-legal .sep { display: none; }
  .foot-legal .rights { display: block; }
}
@media (max-width: 360px) {
  .foot-links { gap: 0.8rem; font-size: 0.85rem; }
}
