/* Thok — site styles */

@font-face {
  font-family: "Sora";
  src: url("assets/sora-variable.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --background: #FFF7E9;
  --foreground: #2D2A26;
  --paper: #FFFDF7;
  --border: #D9D6CF;
  --brand: #E9824F;
  --brand-secondary: #5E9F8F;
  --primary-foreground: #2D2A26;
  --font-sans: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { text-wrap: balance; }
html { scroll-behavior: smooth; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes switch-press {
  0%, 78%, 100% { transform: translateX(-50%) translateY(0); }
  84% { transform: translateX(-50%) translateY(7px); }
  91% { transform: translateX(-50%) translateY(1px); }
}

.site-shell { min-height: 100vh; overflow: hidden; background: var(--background); }
.site-header { width: min(calc(100% - 48px), 1180px); min-height: 80px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; }
.brand img { display: block; width: 92px; height: auto; }
.home-header { min-height: 112px; justify-content: center; border: 0; }
.home-header .brand img { width: 166px; }
nav { display: flex; gap: 28px; font-size: .82rem; font-weight: 650; }
nav a { text-decoration: none; transition: color .18s ease; }
nav a:hover, nav a:focus-visible, .footer-links a:hover, .footer-links a:focus-visible { color: var(--brand); }

.hero { position: relative; width: min(calc(100% - 48px), 1180px); margin: 0 auto; padding: 14px 0 82px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-glow { position: absolute; z-index: 0; top: 120px; left: 50%; width: min(1200px, 140%); aspect-ratio: 1 / .62; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(42% 46% at 50% 52%, color-mix(in oklab, var(--brand) 20%, transparent) 0%, transparent 68%),
    radial-gradient(30% 34% at 32% 62%, color-mix(in oklab, var(--brand-secondary) 16%, transparent) 0%, transparent 70%);
  filter: blur(18px); }
.hero-copy { width: 100%; max-width: 1030px; position: relative; z-index: 2; animation: hero-rise .7s cubic-bezier(.22,1,.36,1) both; }
.hero h1 { margin: 0; font-size: clamp(3rem, 5.2vw, 4.75rem); line-height: 1.015; letter-spacing: 0; font-weight: 750; }
.hero h1 span { display: block; }
.lede { margin: 20px 0 0; color: color-mix(in oklab, var(--foreground) 75%, transparent); font-family: var(--font-mono); font-size: clamp(.88rem, 1.4vw, 1.05rem); }
.product-stage { position: relative; z-index: 1; width: min(880px, 100%); height: 450px; margin-top: 24px; animation: hero-rise .8s cubic-bezier(.22,1,.36,1) .1s both; }
.switch-illustration { position: absolute; top: -8px; left: 50%; width: auto; height: 470px; transform: translateX(-50%); filter: drop-shadow(0 26px 44px color-mix(in oklab, var(--foreground) 16%, transparent)); animation: switch-press 5.5s cubic-bezier(.22,1,.36,1) 1.2s infinite; }
.app-panel { position: absolute; z-index: 4; left: 50%; bottom: 14px; width: 300px; height: auto; border-radius: 16px; box-shadow: 0 2px 0 color-mix(in oklab, var(--background) 60%, transparent) inset, 0 28px 60px color-mix(in oklab, var(--foreground) 30%, transparent); transform: translateX(-50%); }
.hero-action { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; animation: hero-rise .8s cubic-bezier(.22,1,.36,1) .2s both; }
.app-store-cta { position: relative; overflow: hidden; min-width: 390px; min-height: 62px; padding: 0 30px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid color-mix(in oklab, var(--brand) 72%, var(--foreground)); border-radius: 12px; color: var(--primary-foreground); background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 88%, white) 0%, var(--brand) 100%); box-shadow: 0 4px 0 color-mix(in oklab, var(--brand) 74%, var(--foreground)), 0 14px 30px color-mix(in oklab, var(--brand) 32%, transparent); font-size: 1.02rem; font-weight: 750; }
.apple-mark { width: 21px; height: 21px; flex: 0 0 auto; }
.coming-soon { color: color-mix(in oklab, var(--foreground) 52%, transparent); font-family: var(--font-mono); font-size: .65rem; text-transform: uppercase; }
.privacy-promise { margin: 19px 0 0; display: flex; align-items: center; gap: 9px; color: color-mix(in oklab, var(--foreground) 72%, transparent); font-family: var(--font-mono); font-size: .74rem; }
.privacy-promise svg { width: 27px; height: 27px; padding: 6px; border-radius: 7px; background: color-mix(in oklab, var(--brand-secondary) 35%, var(--background)); color: var(--foreground); }
.eyebrow, .feature-number, .effective-date { font-family: var(--font-mono); text-transform: uppercase; }
.eyebrow { margin: 0 0 14px; color: color-mix(in oklab, var(--foreground) 69%, transparent); font-size: .69rem; font-weight: 700; }
.features { padding: 110px max(24px, calc((100% - 1180px) / 2)); color: var(--background); background: var(--foreground); border-radius: 28px 28px 0 0; }
.features-inner { width: 100%; }
.section-heading { max-width: 720px; }
.features .eyebrow { color: color-mix(in oklab, var(--brand) 70%, var(--background)); }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.08; letter-spacing: 0; }
.feature-list { margin-top: 70px; display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; }
.feature-list article { padding-top: 22px; border-top: 1px solid color-mix(in oklab, var(--background) 27%, transparent); transition: border-color .25s ease; }
.feature-list article:hover { border-top-color: var(--brand); }
.feature-number { color: var(--brand); font-size: .68rem; }
h3 { margin: 25px 0 10px; font-size: 1.22rem; }
.feature-list p { margin: 0; color: color-mix(in oklab, var(--background) 78%, transparent); font-size: .92rem; line-height: 1.7; }
.permission-note { width: min(calc(100% - 48px), 980px); margin: 112px auto; display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 70px; }
.icon-frame { padding: 14px; border: 1px solid var(--border); border-radius: 22px; background: var(--paper); box-shadow: 0 20px 50px color-mix(in oklab, var(--foreground) 9%, transparent); }
.permission-note img { display: block; width: 100%; }
.permission-note p:not(.eyebrow) { max-width: 680px; color: color-mix(in oklab, var(--foreground) 75%, transparent); }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; color: color-mix(in oklab, var(--brand) 72%, var(--foreground)); font-weight: 700; text-decoration: none; }
.text-link svg { width: 16px; transition: transform .18s ease; }
.text-link:hover svg { transform: translateX(3px); }
.site-footer { padding: 46px max(24px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 28px; border-top: 1px solid var(--border); background: var(--paper); }
.site-footer img { width: 88px; }
.site-footer p { margin: 0; color: color-mix(in oklab, var(--foreground) 72%, transparent); font-size: .8rem; }
.footer-links { display: flex; gap: 22px; font-size: .78rem; font-weight: 650; }
.site-footer small { grid-column: 1/-1; color: color-mix(in oklab, var(--foreground) 57%, transparent); font-size: .66rem; }

.content-page { width: min(calc(100% - 48px), 920px); margin: 0 auto; padding: 94px 0 120px; }
.page-intro { max-width: 850px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.page-intro h1 { max-width: 820px; margin: 0; font-size: clamp(3rem,7vw,5.5rem); line-height: 1; letter-spacing: 0; }
.page-intro > p:not(.eyebrow,.effective-date) { max-width: 720px; margin: 26px 0 0; color: color-mix(in oklab, var(--foreground) 75%, transparent); font-size: 1.03rem; }
.effective-date { margin: 23px 0 0; color: color-mix(in oklab, var(--foreground) 60%, transparent); font-size: .69rem; }
.privacy-summary { margin: 48px 0 72px; display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid color-mix(in oklab, var(--brand-secondary) 72%, var(--border)); border-radius: 8px; color: var(--foreground); background: color-mix(in oklab, var(--brand-secondary) 25%, var(--background)); }
.privacy-summary span { padding: 18px; text-align: center; font-family: var(--font-mono); font-size: .69rem; font-weight: 700; text-transform: uppercase; }
.privacy-summary span + span { border-left: 1px solid color-mix(in oklab, var(--brand-secondary) 72%, var(--border)); }
.prose { max-width: 760px; }
.prose section + section { margin-top: 50px; padding-top: 50px; border-top: 1px solid var(--border); }
.prose h2, .support-grid h2, .support-contact h2 { font-size: clamp(1.4rem,3vw,1.95rem); }
.prose p, .support-grid p, .support-grid li, .support-contact p { color: color-mix(in oklab, var(--foreground) 80%, transparent); line-height: 1.75; }
.prose a, .contact-link { color: color-mix(in oklab, var(--brand) 70%, var(--foreground)); font-weight: 700; }
.support-grid { margin-top: 70px; display: grid; gap: 20px; }
.support-grid article { padding: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); }
.support-grid h2 { margin: 15px 0; }
.support-grid ol, .support-grid ul { margin: 0; padding-left: 1.4rem; }
.support-grid li + li { margin-top: 8px; }
.support-contact { margin-top: 70px; padding: 46px; display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 40px; border-radius: 8px; color: var(--background); background: var(--foreground); }
.support-contact img { width: 112px; }
.support-contact .eyebrow { color: color-mix(in oklab, var(--brand) 74%, var(--background)); }
.support-contact p:not(.eyebrow) { color: color-mix(in oklab, var(--background) 78%, transparent); }
.support-contact .contact-link { display: inline-flex; align-items: center; gap: 8px; color: color-mix(in oklab, var(--brand) 80%, var(--background)); }
.support-contact .contact-link svg { width: 17px; }

@media (max-width: 760px) {
  .site-header { width: min(calc(100% - 32px),1180px); }
  .brand img { width: 76px; }
  .home-header { min-height: 90px; }
  .home-header .brand img { width: 132px; }
  nav { gap: 16px; font-size: .73rem; }
  nav a:first-child { display: none; }
  .hero { width: min(calc(100% - 32px),1180px); padding-top: 8px; }
  .hero h1 { font-size: clamp(2.55rem,9vw,3.7rem); }
  .product-stage { height: 365px; margin-top: 20px; overflow: clip; }
  .switch-illustration { inset: 0 auto 0 50%; width: 690px; height: auto; }
  .app-panel { bottom: 10px; width: 245px; }
  .feature-list { grid-template-columns: 1fr; gap: 40px; }
  .permission-note { grid-template-columns: 88px 1fr; gap: 24px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { display: none; }
  .content-page { width: min(calc(100% - 32px),920px); padding: 66px 0 88px; }
  .privacy-summary { grid-template-columns: 1fr; }
  .privacy-summary span + span { border-top: 1px solid color-mix(in oklab, var(--brand-secondary) 72%, var(--border)); border-left: 0; }
  .support-contact { padding: 32px; grid-template-columns: 78px 1fr; gap: 24px; }
  .support-contact img { width: 78px; }
}

@media (max-width: 480px) {
  .site-header { min-height: 68px; }
  .home-header { min-height: 82px; }
  .home-header .brand img { width: 120px; }
  .hero { min-height: auto; padding: 7px 0 52px; }
  .hero h1 { font-size: clamp(2.2rem,11vw,3.1rem); }
  .lede { margin-top: 15px; font-size: .82rem; }
  .product-stage { height: 298px; margin-top: 17px; }
  .switch-illustration { width: 560px; }
  .app-panel { bottom: 6px; width: 200px; }
  .app-store-cta { width: min(100%,330px); min-width: 0; min-height: 54px; padding: 0 18px; font-size: .86rem; }
  .privacy-promise { align-items: flex-start; font-size: .68rem; }
  .features { padding-top: 78px; padding-bottom: 78px; }
  .permission-note { margin: 78px auto; grid-template-columns: 1fr; }
  .icon-frame { width: 94px; padding: 7px; border-radius: 16px; }
  .page-intro h1 { font-size: clamp(2.45rem,13vw,3.9rem); }
  .support-grid article { padding: 25px 21px; }
  .support-contact { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .switch-illustration { animation: none; }
  .hero-copy, .product-stage, .hero-action { animation: none; }
  * { transition-duration: .01ms !important; }
}
