/* FamSpot website — the app's "Pearl" design language on the web.
   Tokens mirror Views/Pearl/PearlTheme.swift so the site and the app read as one product. */

@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F6F5F2;
  --ink: #14161B;
  --ink2: #5B606B;
  --ink3: #8A8F99;
  --line: rgba(20, 22, 27, 0.09);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-b: rgba(255, 255, 255, 0.95);
  --glass-hi: #FFFFFF;
  --shadow: rgba(60, 55, 80, 0.10);
  --surface: rgba(255, 255, 255, 0.75);
  --cta: #14161B;
  --cta-ink: #FFFFFF;
  --accent: #5E5BE6;
  --soft: rgba(94, 91, 230, 0.10);
  --ok: #2F9A6F;
  --bad: #DC4F3A;
  --blob-a: #FFD8C6;
  --blob-b: #DCD4FF;
  --blob-c: #CFEFE2;
  --blob-d: #D3E4FF;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-card: 28px;
  --ease-soft: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.3, 1.4, .5, 1);
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0B0E;
    --ink: #F2F1EC;
    --ink2: #A2A5AD;
    --ink3: #7C808A;
    --line: rgba(255, 255, 255, 0.10);
    --glass: rgba(34, 36, 42, 0.52);
    --glass-b: rgba(255, 255, 255, 0.10);
    --glass-hi: rgba(255, 255, 255, 0.16);
    --shadow: rgba(0, 0, 0, 0.5);
    --surface: rgba(30, 32, 38, 0.72);
    --cta: #F2F1EC;
    --cta-ink: #0A0B0E;
    --accent: #A3A0FF;
    --soft: rgba(163, 160, 255, 0.14);
    --ok: #5ED2A0;
    --bad: #FF8471;
    --blob-a: #3A2318;
    --blob-b: #251E4A;
    --blob-c: #12352B;
    --blob-d: #142640;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cta); color: var(--cta-ink); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- Background: the app's drifting pearl blobs ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .95; }
.aurora .a { width: 52vmax; height: 52vmax; background: var(--blob-a); top: -22vmax; left: -16vmax; animation: a1 18s ease-in-out infinite; }
.aurora .b { width: 46vmax; height: 46vmax; background: var(--blob-b); top: 18vh; right: -22vmax; animation: a2 22s ease-in-out infinite; }
.aurora .c { width: 44vmax; height: 44vmax; background: var(--blob-c); bottom: -24vmax; left: 4vmax; animation: a3 20s ease-in-out infinite; }
.aurora .d { width: 30vmax; height: 30vmax; background: var(--blob-d); top: 30vh; left: 30vw; animation: a2 26s ease-in-out infinite reverse; opacity: .7; }
@keyframes a1 { 50% { transform: translate(6vmax, 8vmax) scale(1.18); } }
@keyframes a2 { 0%, 100% { transform: scale(1.08); } 50% { transform: translate(-7vmax, 5vmax) scale(.92); } }
@keyframes a3 { 50% { transform: translate(5vmax, -7vmax); } }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: .5px solid var(--glass-b);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 14px 40px var(--shadow);
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 720px); margin-inline: auto; }
section { scroll-margin-top: 96px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 14px; z-index: 50; margin-top: 14px; }
.site-header .bar {
  display: flex; align-items: center; gap: 18px;
  height: 58px; padding: 0 8px 0 20px; border-radius: 999px;
}
.wordmark { font-family: var(--serif); font-size: 26px; letter-spacing: -.3px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.wordmark img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: auto; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink2); padding: 9px 14px; border-radius: 999px; transition: color .25s, background .25s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .35s var(--ease-pop), opacity .2s;
}
.pill:active { transform: scale(.97); }
.pill.dark { background: var(--cta); color: var(--cta-ink); position: relative; overflow: hidden; }
.pill.dark::after { /* the app's button sheen */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 70px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-120%) skewX(-20deg); animation: sheen 4s 1.5s ease-in-out infinite;
}
@keyframes sheen { 0% { transform: translateX(-120%) skewX(-20deg); } 55%, 100% { transform: translateX(640%) skewX(-20deg); } }
.pill.light { color: var(--ink); }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; padding: 10px; border-radius: 26px;
         background: var(--surface); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
         border: .5px solid var(--glass-b); box-shadow: inset 0 1px 0 var(--glass-hi), 0 14px 40px var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 17px; }
  .menu-btn { display: inline-flex; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); align-items: center; justify-content: center; }
  .site-header .bar > .pill { display: none; }
}

/* ---------- Type ---------- */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.02; margin: 0; }
h1 em, h2 em, .display em { font-style: italic; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink2); line-height: 1.5; max-width: 34ch; }
.kicker { font-size: 15px; font-weight: 500; color: var(--ink2); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--soft); }
p { margin: 0 0 1em; }
.muted { color: var(--ink2); }
.small { font-size: 14px; color: var(--ink3); }

/* ---------- Hero: avatars orbit a real phone ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding: 64px 0 40px; min-height: min(860px, 92vh); }
.hero h1 { font-size: clamp(54px, 8.4vw, 112px); letter-spacing: -.035em; }
.hero h1 span { display: block; }
.hero .lede { margin-top: 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 16px; color: var(--ink); text-decoration: none; }
.store-badge svg { width: 22px; height: 22px; }
.store-badge small { display: block; font-size: 11.5px; color: var(--ink2); line-height: 1.1; }
.store-badge strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; }

.stage { position: relative; aspect-ratio: 1 / 1; width: min(100%, 620px); justify-self: center; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid var(--line); }
.ring.r1 { width: 100%; height: 100%; animation: orbit 60s linear infinite; }
.ring.r2 { width: 78%; height: 78%; animation: orbit 44s linear infinite reverse; }
.ring.r3 { width: 56%; height: 56%; border-style: dashed; animation: orbit 32s linear infinite; }
.ring .who { position: absolute; width: 54px; height: 54px; margin: -27px; }
.ring .who i { display: block; width: 100%; height: 100%; border-radius: 50%; color: #fff; font: normal 600 19px/54px var(--sans); text-align: center; box-shadow: 0 0 0 4px var(--bg), 0 14px 28px var(--shadow); }
.r1 .who { animation: counter 60s linear infinite; }
.r2 .who { animation: counter 44s linear infinite reverse; }
.sky { background: linear-gradient(135deg, #7FA8FF, #4B78F0); }
.peach { background: linear-gradient(135deg, #F59A7A, #E46F5A); }
.lilac { background: linear-gradient(135deg, #9D8BFF, #7462F0); }
.mint { background: linear-gradient(135deg, #5CC9A2, #2F9F7B); }
.sand { background: linear-gradient(135deg, #E8B86A, #C98A2E); }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes counter { to { transform: rotate(-360deg); } }

.phone {
  position: relative; width: 300px; aspect-ratio: 603 / 1311;
  border-radius: 46px; padding: 9px; background: #101114;
  box-shadow: 0 0 0 1.5px #3a3b40, 0 50px 100px rgba(20, 20, 30, .25), 0 20px 40px rgba(20, 20, 30, .15);
}
.phone img { width: 100%; height: 100%; border-radius: 38px; object-fit: cover; background: var(--bg); }
.stage .phone { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 46%; }
@media (prefers-color-scheme: dark) { .phone { box-shadow: 0 0 0 1.5px #3a3b40, 0 50px 100px rgba(0,0,0,.6); } }

/* One orchestrated load: headline lines blur up, the phone rises, avatars pop onto their rings. */
.reveal .line { opacity: 0; filter: blur(12px); translate: 0 16px; animation: bl .9s var(--ease-soft) forwards; }
.reveal .line:nth-child(2) { animation-delay: .1s; }
.reveal .line:nth-child(3) { animation-delay: .2s; }
.reveal .after { opacity: 0; animation: fu .9s .45s var(--ease-soft) forwards; }
.reveal .after2 { opacity: 0; animation: fu .9s .6s var(--ease-soft) forwards; }
.reveal .phone { opacity: 0; animation: rise 1.2s .2s var(--ease-soft) forwards; }
.reveal .who > i { animation: pop .8s var(--ease-pop) both; }
@keyframes bl { to { opacity: 1; filter: blur(0); translate: 0 0; } }
@keyframes fu { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
@keyframes rise { from { opacity: 0; translate: -50% -40%; } to { opacity: 1; translate: -50% -50%; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }

.status-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.status-chip .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ok); }
.status-chip small { display: block; font-weight: 400; color: var(--ink2); font-size: 12.5px; }
.chip-a { left: -2%; top: 18%; animation: fu .8s 1.2s var(--ease-soft) both, float 6s 2s ease-in-out infinite; }
.chip-b { right: -4%; bottom: 20%; animation: fu .8s 1.5s var(--ease-soft) both, float 7s 2.4s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -8px; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; min-height: 0; }
  .stage { width: min(100%, 460px); }
  .chip-a { left: 0; top: 10%; } .chip-b { right: 0; bottom: 12%; }
  .status-chip { font-size: 13px; padding: 8px 12px 8px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- Section headings ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(42px, 5.6vw, 72px); }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--ink2); max-width: 56ch; }

/* ---------- A day with FamSpot: sticky phone, steps scroll past ---------- */
.day { display: grid; grid-template-columns: 380px 1fr; gap: 80px; }
.day .sticky { position: sticky; top: 110px; height: fit-content; display: flex; justify-content: center; }
.day .phone { width: 320px; }
.day .sticky .phone img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); transition: opacity .6s var(--ease-soft); opacity: 0; }
.day .sticky .phone img.on { opacity: 1; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-left: 36px; border-left: 1px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; left: -6px; top: calc(50% - 60px); width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink3); transition: background .4s, border-color .4s, transform .4s var(--ease-pop); }
.step.active::before { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.step time { font-family: var(--serif); font-size: 26px; color: var(--accent); }
.step h3 { font-size: clamp(34px, 4vw, 50px); margin: 6px 0 14px; }
.step p { color: var(--ink2); font-size: 18px; max-width: 46ch; }
.step .inline-shot { display: none; }
@media (max-width: 900px) {
  .day { grid-template-columns: 1fr; gap: 0; }
  .day .sticky { display: none; }
  .step { min-height: 0; padding: 0 0 60px 26px; }
  .step::before { top: 10px; }
  .step .inline-shot { display: block; margin-top: 22px; width: min(220px, 64%); }
}

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.feature { padding: 28px 0; border-top: 1px solid var(--line); }
.feature .glyph { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent); margin-bottom: 16px; }
.feature .glyph svg { width: 20px; height: 20px; }
.feature h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: 0; line-height: 1.3; margin-bottom: 6px; }
.feature p { color: var(--ink2); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Gallery strip ---------- */
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(20px, calc((100vw - var(--max)) / 2)) 40px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 250px; }
.gallery figcaption { margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--ink2); }
.gallery-controls { display: flex; gap: 10px; justify-content: flex-end; margin-top: -36px; margin-bottom: 18px; }
.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); cursor: pointer; border: 0; }

/* ---------- Privacy promise ---------- */
.promise { border-radius: 40px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.promise h2 { font-size: clamp(40px, 5vw, 64px); }
.promise ul { list-style: none; margin: 0; padding: 0; }
.promise li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.promise li:last-child { border-bottom: 0; }
.promise li svg { color: var(--ok); margin-top: 3px; }
.promise li strong { display: block; font-weight: 600; }
.promise li span { color: var(--ink2); font-size: 15.5px; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr; } }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; align-items: stretch; }
.plan { border-radius: var(--radius-card); padding: 32px; }
.plan h3 { font-size: 40px; }
.plan .price { font-family: var(--serif); font-size: 54px; line-height: 1; margin: 18px 0 4px; }
.plan .price small { font-family: var(--sans); font-size: 15px; color: var(--ink2); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; }
.plan li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: var(--cta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' 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 / 11px no-repeat; }
.plan.premium { background: var(--cta); color: var(--cta-ink); position: relative; overflow: hidden; }
.plan.premium .muted, .plan.premium .price small { color: inherit; opacity: .7; }
.plan.premium li { border-color: rgba(255,255,255,.14); }
.plan.premium li::before { background-color: var(--accent); }
.plan.premium .glow { position: absolute; width: 320px; height: 320px; right: -110px; top: -140px; border-radius: 50%; background: conic-gradient(from 0deg, #FFB59A, #B8A8FF, #9FE3C9, #A9CBFF, #FFB59A); filter: blur(46px); opacity: .55; animation: orbit 14s linear infinite; pointer-events: none; }
.plan.premium > * { position: relative; }
@media (prefers-color-scheme: dark) { .plan.premium li { border-color: rgba(0,0,0,.12); } }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 19px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.8px solid var(--ink2); border-bottom: 1.8px solid var(--ink2); transform: rotate(45deg); transition: transform .35s var(--ease-pop); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 0 24px; color: var(--ink2); max-width: 66ch; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-card); padding: 28px; text-decoration: none; min-height: 280px; transition: transform .45s var(--ease-pop); }
.post-card:hover { transform: translateY(-4px); }
.post-card time { font-size: 14px; color: var(--ink3); }
.post-card h3 { font-size: 32px; margin: 12px 0; }
.post-card p { color: var(--ink2); font-size: 15.5px; }
.post-card .more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--accent); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Documents: privacy, terms, support, blog posts ---------- */
.page-head { padding: 80px 0 40px; }
.page-head h1 { font-size: clamp(50px, 7.4vw, 92px); }
.page-head p.small { font-size: 14px; color: var(--ink3); }
.page-head p { font-size: 19px; color: var(--ink2); margin-top: 18px; max-width: 58ch; }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-bottom: 100px; }
.toc { position: sticky; top: 104px; align-self: start; font-size: 14.5px; border-radius: 22px; padding: 18px; }
.toc strong { display: block; margin-bottom: 8px; font-weight: 600; }
.toc a { display: block; padding: 6px 0; color: var(--ink2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.doc { max-width: 70ch; }
.doc h2 { font-size: 36px; margin: 52px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: 0; margin: 26px 0 8px; line-height: 1.35; }
.doc p, .doc li { color: var(--ink2); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink2); }
.doc th { color: var(--ink); font-weight: 600; }
.doc .callout { border-radius: 22px; padding: 20px 22px; margin: 22px 0; }
.doc .callout p:last-child { margin: 0; }
.doc figure { margin: 30px 0; }
.doc figure .phone { width: 260px; margin: 0 auto; }
.doc figcaption { text-align: center; font-size: 14px; color: var(--ink3); margin-top: 14px; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; } }

.article { padding-bottom: 100px; }
.article .doc { margin-inline: auto; font-size: 18px; line-height: 1.7; }
.article .doc p:first-of-type { font-size: 21px; color: var(--ink); }
.post-meta { display: flex; gap: 14px; align-items: center; color: var(--ink3); font-size: 15px; margin-top: 18px; }

/* ---------- Support ---------- */
.contact-card { border-radius: var(--radius-card); padding: 28px; display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 40px; }
.contact-card h2 { font-size: 34px; margin: 0 0 6px; }

/* ---------- Join (invite) ---------- */
.join { min-height: 78vh; display: grid; place-items: center; padding: 50px 0; }
.join .card { width: min(100%, 460px); border-radius: 36px; padding: 36px 30px; text-align: center; }
.join .card img.icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 18px; box-shadow: 0 14px 34px var(--shadow); }
.join h1 { font-size: 46px; }
.join .code { font-family: var(--serif); font-size: 46px; letter-spacing: 6px; margin: 18px 0 2px; }
.join .actions { display: grid; gap: 10px; margin-top: 26px; }
.join .pill { width: 100%; min-height: 56px; font-size: 16.5px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 46px; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.site-footer a { display: block; text-decoration: none; color: var(--ink2); padding: 5px 0; font-size: 15px; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { margin-top: 40px; font-size: 13.5px; color: var(--ink3); display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* Scroll-into-view: only the gallery and plans use it (once), everything else is static. */
.inview { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease-soft), translate .9s var(--ease-soft); }
.inview.seen { opacity: 1; translate: 0 0; }
.no-js .inview { opacity: 1; translate: 0 0; }
