/* Shared look for the plain pages (Privacy, Support). Matches index.html: light only, Inter, cream and ink, white cards, coloured bands. */
:root {
  color-scheme: light;
  --bg: #fff;
  --cream: #F5F1E4;
  --card: #fff;
  --line: #E9E5DA;
  --ink: #2C2E2A;
  --ink-soft: #62665E;
  --green: #8ED462;
  --blue: #2BA0FF;
  --pink: #EBC1FF;
  --yellow: #F5E211;
  --coral: #FF705D;
  --band: var(--green);
  --band-ink: var(--ink);
  --mark: rgba(245, 226, 17, .55);
  --shadow: 0 1px 2px rgba(44, 46, 42, .05), 0 18px 40px -18px rgba(44, 46, 42, .28);
  --ease: cubic-bezier(.65, 0, .25, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}
.support { --band: var(--pink); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Wordmark: the letters follow the ink colour so it reads in dark mode too */
.wordmark { height: 38px; display: block; }
.wordmark .tt { fill: var(--ink); stroke: var(--ink); }

/* Top bar: one white card */
.top { padding: 14px 0 0; }
.navcard { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 12px 0 20px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.pnav { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 16px; }
.pnav a { text-decoration: none; position: relative; }
.pnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.pnav a:hover::after, .pnav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.pnav .back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--band); color: var(--band-ink); font-weight: 600; }
.pnav .back::after { display: none; }

/* Coloured band with the page title */
.band { margin-top: 10px; background: var(--band); color: var(--band-ink); border-radius: 28px; padding: 64px 56px 58px; position: relative; overflow: hidden; }
.band h1 { font-size: clamp(42px, 6vw, 84px); line-height: .98; letter-spacing: -0.055em; font-weight: 500; margin: 0 0 18px; max-width: 13ch; }
.band .lead { font-size: 20px; line-height: 1.5; max-width: 620px; margin: 0; }
.band .date { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .55); font-weight: 600; font-size: 14px; }
.band .doodle { position: absolute; right: 5%; top: 50%; width: min(220px, 22vw); height: auto; transform: translateY(-50%) rotate(-4deg); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }

/* Body: a reading column with a sticky table of contents beside it */
.layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 64px; justify-content: center; padding: 64px 0 96px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.toc p { font-weight: 600; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* Each item gets the site's green arrow dot (like the buttons on the home page) */
.toc a { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; color: var(--ink-soft); line-height: 1.4; }
.toc a::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C2E2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h12M13 7l5 5-5 5'/%3E%3C/svg%3E") center / 11px no-repeat; transition: transform .35s var(--pop), background-position .35s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a:hover::before { transform: scale(1.12); background-position: 60% 50%; }
.toc a:hover span { text-decoration: underline; text-underline-offset: 4px; }

.doc h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; margin: 56px 0 14px; scroll-margin-top: 24px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18px; letter-spacing: -0.01em; margin: 26px 0 8px; }
.doc p, .doc li { font-size: 17px; color: var(--ink); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--ink-soft); }
.doc strong { font-weight: 600; }
.doc .soft { color: var(--ink-soft); }
.doc a { text-underline-offset: 3px; }
.doc code { font: 500 .92em ui-monospace, "SF Mono", Menlo, monospace; background: var(--cream); padding: 1px 6px; border-radius: 6px; }
.path { font-weight: 600; white-space: nowrap; }

/* "In short" summary with line-art icons */
.short { background: var(--cream); border-radius: 24px; padding: 30px; margin: 0 0 8px; }
.short > p { font-size: 19px; line-height: 1.5; margin: 0 0 22px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 16px; padding: 16px; }
.fact svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.fact span { display: block; font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; margin-top: 3px; }

/* At-a-glance table: becomes stacked cards on phones */
.glance { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 10px; font-size: 15.5px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.glance th, .glance td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.glance thead th { background: var(--cream); font-weight: 600; font-size: 14px; }
.glance tbody tr:last-child td { border-bottom: 0; }
.glance td:first-child { font-weight: 600; width: 26%; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--cream); }
.tag.stay { background: color-mix(in srgb, var(--green) 45%, transparent); }
.tag.out { background: color-mix(in srgb, var(--blue) 25%, transparent); }

/* Placeholder that must be replaced before launch */
.ph { background: var(--mark); padding: 1px 6px; border-radius: 6px; font-weight: 600; text-decoration: none; }

/* FAQ */
.faq { display: grid; gap: 12px; margin: 0 0 8px; }
.faq details { background: var(--cream); border-radius: 18px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 17.5px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362665E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .35s var(--pop); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 18px; }
.faq .ans p:last-child, .faq .ans ul:last-child, .faq .ans ol:last-child { margin-bottom: 0; }
.faq ol { margin: 0 0 14px; padding-left: 22px; }

/* Contact card */
.contact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; background: var(--band); color: var(--band-ink); border-radius: 24px; padding: 30px; }
.contact svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact h2 { margin: 0 0 8px !important; }
.contact p, .contact li { color: inherit !important; }
.mailbtn { display: inline-flex; align-items: center; gap: 12px; margin: 6px 0 14px; padding: 8px 8px 8px 18px; border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: var(--shadow); transition: transform .3s var(--pop); max-width: 100%; }
.mailbtn:hover { transform: translateY(-2px); }
.mailbtn .arr { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); flex: none; }
.mailbtn .arr svg { width: 15px; height: 15px; stroke: #2C2E2A; stroke-width: 2.6; }
.mailbtn .addr { overflow-wrap: anywhere; }

/* Footer: copied from index.html so it matches the home page exactly */
.store { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 16px; border-radius: 13px; background: #000; color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px #A6A6A6; transition: transform .3s var(--pop), box-shadow .3s; }
.store:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #A6A6A6, var(--shadow); }
.store .apple { font: 400 30px -apple-system, "SF Pro Display", system-ui, sans-serif; line-height: 1; margin-top: -4px; }
.store .st { display: flex; flex-direction: column; font: 600 22px/1 -apple-system, "SF Pro Display", Inter, sans-serif; letter-spacing: -0.02em; }
.store small { font-size: 11.5px; font-weight: 500; letter-spacing: 0; margin-bottom: 3px; }
.wavy { position: relative; white-space: nowrap; }
.wavy svg { position: absolute; left: 0; width: 100%; bottom: -.12em; height: .26em; overflow: visible; }
.wavy path { fill: none; stroke: var(--c, var(--pink)); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) .3s; }
.in .wavy path, .wavy.in path { stroke-dashoffset: 0; }
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .8s, transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
footer { background: var(--yellow); color: var(--ink); border-radius: 40px 40px 0 0; margin-top: 16px; padding: 80px 0 34px; line-height: 1.5; }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.foot-top p { font-size: 18px; max-width: 440px; margin: 0 0 22px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; font-weight: 500; }
.foot-links a { text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.foot-sign { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: nowrap; margin: 80px 0 40px; }
.signoff { white-space: nowrap; font-size: clamp(44px, 8.4vw, 136px); line-height: .9; letter-spacing: -0.065em; font-weight: 500; margin: 0 0 30px; }
.signoff .wavy { --c: var(--green); }
.signoff .wavy path { stroke-width: 10; }
.foot-bottom { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-size: 14px; font-weight: 500; padding-bottom: 30px; }
.foot-bottom .wordmark { height: 84px; }

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 44px 0 72px; }
  .toc { position: static; background: var(--cream); border-radius: 18px; padding: 18px 20px; }
  .toc ol { grid-template-columns: 1fr 1fr; gap: 6px 18px; }
  .band { padding: 52px 36px 48px; }
  .band .doodle { display: none; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .navcard { padding: 10px 10px 10px 14px; }
  .wordmark { height: 32px; }
  .pnav { gap: 14px; font-size: 15px; }
  .pnav .hide-sm { display: none; }
  .band { border-radius: 24px; padding: 40px 22px 36px; }
  .band .lead { font-size: 18px; }
  .layout { padding: 32px 6px 60px; }
  .toc ol { grid-template-columns: 1fr; }
  .doc h2 { font-size: 24px; margin-top: 44px; }
  .doc p, .doc li { font-size: 16px; }
  .short { padding: 22px 18px; }
  .short > p { font-size: 17px; }
  .facts { grid-template-columns: 1fr; }
  .glance, .glance tbody, .glance tr, .glance td { display: block; width: 100%; }
  .glance { border: 0; border-radius: 0; }
  .glance thead { display: none; }
  .glance tr { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
  .glance td { border-bottom: 0; padding: 4px 16px; }
  .glance td:first-child { width: 100%; padding-top: 14px; background: var(--cream); padding-bottom: 10px; margin-bottom: 6px; }
  .glance td:last-child { padding-bottom: 14px; }
  .glance td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
  .path { white-space: normal; }
  .faq details { padding: 0 16px; }
  .faq summary { font-size: 16.5px; }
  .contact { grid-template-columns: 1fr; padding: 24px 20px; }
  .mailbtn { padding-left: 14px; }
  footer .wrap { padding: 0 20px; }
  .foot-sign { flex-wrap: wrap; }
  .foot-bottom { align-items: flex-start; }
  .signoff { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  html { scroll-behavior: auto; }
}
