/* Sunnook site. Colors and fonts follow design/tokens.json (light: cream/ink/amber, dark: indigo/parchment/amber).
   Fonts are self-hosted subsets of Literata (headings) and Onest (text), SIL OFL 1.1 (fonts/OFL-*.txt). */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F6EDE1;          /* color.semantic.light.bg */
  --surface: #FFF9F1;     /* surface */
  --surface-2: #EFE2D0;   /* surface-2 */
  --text: #2B2440;        /* text-primary */
  --text-2: #5C5370;      /* text-secondary */
  --accent: #F2A23A;      /* accent */
  --accent-edge: #B5600F; /* accent-edge */
  --on-accent: #2B1606;   /* text-on-accent */
  --link: #9A480B;        /* accent-text */
  --divider: #E2D2BC;     /* divider */
  --currency: #B86E0E;    /* currency */
  --veil: 246, 237, 225;  /* bg as rgb, for the hero veil */
  --shadow: 0 30px 60px -30px rgba(110, 60, 10, .55);
  --display: "Literata", "Noto Serif", Georgia, serif;
  --ui: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11162E;
    --surface: #1B2142;
    --surface-2: #242B52;
    --text: #F7ECDD;
    --text-2: #B8B4D2;
    --accent: #FFB65C;
    --accent-edge: #D98A35;
    --on-accent: #2B1606;
    --link: #FFC57E;
    --divider: #2E3663;
    --currency: #FFC857;
    --veil: 17, 22, 46;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  }
}

/* One language at a time. assets/lang.js sets html[data-lang]; without scripts every language shows. */
html[data-lang="en"] .t:not([lang="en"]),
html[data-lang="ru"] .t:not([lang="ru"]),
html[data-lang="kk"] .t:not([lang="kk"]) { display: none !important; }
html:not([data-lang]) img.t:not([lang="en"]) { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}
p { margin: 0 0 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* Header */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  font: 600 23px/1 var(--display);
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.links { display: flex; gap: 22px; font-weight: 500; }
.links a { color: var(--text); text-decoration: none; padding: 6px 0; }
.links a:hover, .links a[aria-current="page"] { color: var(--link); }
.langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
}
.langs a {
  min-width: 44px;
  padding: 9px 10px;
  border-radius: 999px;
  color: var(--text-2);
  text-align: center;
  text-decoration: none;
  font: 600 13px/1 var(--ui);
  letter-spacing: .04em;
}
.langs a[aria-current="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .14);
}
@media (max-width: 600px) {
  .links { order: 3; width: 100%; gap: 20px; font-size: 16px; }
}

/* Phone frame around a real capture of the app */
.phone {
  position: relative;
  width: min(290px, 74vw);
  margin: 0;
  padding: 9px;
  border-radius: 46px;
  background: #1D1A26;
  box-shadow: var(--shadow), inset 0 0 0 1.5px #403A52;
}
.phone img {
  width: 100%;
  aspect-ratio: 600 / 1303;
  border-radius: 37px;
  object-fit: cover;
  background: var(--surface-2);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg) url("img/bg-day.webp") 25% 75% / cover no-repeat;
}
@media (prefers-color-scheme: dark) {
  .hero { background-image: url("img/bg-dusk.webp"); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--veil), .94) 0%, rgba(var(--veil), .78) 45%, rgba(var(--veil), .2) 100%);
}
.hero .top { padding-bottom: 0; }
.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  justify-items: center;
  padding-top: 32px;
  padding-bottom: 56px;
}
.hero-copy { width: 100%; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--link);
  font: 600 13px/1.3 var(--ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(36px, 6.2vw, 62px); max-width: 13em; }
.lead { margin: 20px 0 28px; max-width: 33em; color: var(--text-2); font-size: 19px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 20px 11px 18px;
  border: 1px solid var(--divider);
  border-radius: 26px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.status::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}
.status span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.status small { white-space: nowrap; }
.status b { font-weight: 600; }
.status small { color: var(--text-2); font-weight: 500; font-size: 15px; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}
.chips li { display: flex; align-items: center; gap: 7px; }
.chips li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.4 2.4 5-5.2' fill='none' stroke='%232B1606' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (min-width: 860px) {
  .hero::before {
    background: linear-gradient(90deg, rgba(var(--veil), .95) 0%, rgba(var(--veil), .82) 40%, rgba(var(--veil), 0) 72%);
  }
  .hero-grid {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 80px;
  }
  .hero .phone { width: 300px; }
}

/* Features */
.features { padding: 80px 0 8px; }
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 80px;
}
.feature .num { display: block; margin-bottom: 10px; color: var(--currency); font: 600 16px/1 var(--display); }
.feature h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.feature p { color: var(--text-2); font-size: 18px; max-width: 30em; }
.stage {
  display: flex;
  justify-content: center;
  padding: 36px 20px;
  border-radius: 32px;
  background: var(--surface);
}
.stage .phone { width: min(260px, 66vw); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature:nth-child(even) .feature-copy { order: 2; }
}

/* Kind by design */
.kind { padding: 0 0 72px; }
.kind-card {
  display: grid;
  gap: 28px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px;
  border-radius: 32px;
  background: var(--surface);
}
.kitten { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; justify-self: center; box-shadow: var(--shadow); }
.kind h2 { font-size: clamp(28px, 3.6vw, 40px); }
.checks { display: grid; gap: 12px; margin: 20px 0 24px; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.4 2.4 5-5.2' fill='none' stroke='%232B1606' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (min-width: 860px) {
  .kind-card { grid-template-columns: 300px 1fr; gap: 56px; padding: 56px; }
  .kitten { width: 280px; height: 280px; }
}

/* Closing */
.soon { padding: 8px 0 88px; text-align: center; }
.soon img { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 22px; box-shadow: var(--shadow); }
.soon h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 12px; }
.soon p { color: var(--text-2); }

/* Footer */
.foot { border-top: 1px solid var(--divider); padding: 28px 0 40px; color: var(--text-2); font-size: 15px; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.foot .row a { color: var(--text-2); }
.foot .fine { margin: 14px 0 0; font-size: 13px; max-width: 62em; }

/* Support and privacy pages */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 72px; }
html:not([data-lang]) .doc + .doc { border-top: 1px solid var(--divider); }
.doc h1 { font-size: clamp(26px, 7.4vw, 48px); }
.doc .meta { margin: 10px 0 28px; color: var(--text-2); font-size: 15px; }
.doc h2 { margin: 40px 0 10px; font-size: 24px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.callout {
  padding: 20px 22px;
  border: 1px solid var(--divider);
  border-radius: 20px;
  background: var(--surface);
}
.callout p:last-child { margin-bottom: 0; }
.contact {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--divider);
}
.contact p { margin: 0; color: var(--text-2); }
.contact .mail { color: var(--text); font: 600 22px/1.3 var(--display); }
@media (min-width: 640px) { .contact { grid-template-columns: 1fr auto; } }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 var(--accent-edge);
}
.btn:hover { filter: brightness(1.04); }
.faq {
  margin: 10px 0;
  border: 1px solid var(--divider);
  border-radius: 18px;
  background: var(--surface);
}
.faq summary {
  position: relative;
  padding: 17px 52px 17px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
}
.faq[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .a { padding: 0 20px 18px; color: var(--text-2); }
.faq .a p:last-child { margin-bottom: 0; }
.short { font-size: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform .2s ease; }
}
