@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(/smile60/fonts/nunito-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(/smile60/fonts/nunito-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(/smile60/fonts/nunito-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Baloo Bhaijaan 2'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/smile60/fonts/baloo-bhaijaan-2-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }

/* Smile 60 landing. build.mjs prepends the self-hosted @font-face rules (fonts/fonts.css). */

:root {
  --g1: #1FB463;
  --g2: #0E9E56;
  --g3: #35C97A;
  --glow: rgba(255, 255, 255, .34);
  --on-green: #fff;
  --on-green-soft: rgba(255, 255, 255, .88);
  --paper: #F6F4EF;
  --ink: #17181A;
  --ink-soft: rgba(23, 24, 26, .72);
  --accent: #12A85B;
  --flame: #FF7A1A;
  --line: rgba(23, 24, 26, .13);
  /* Brand marks keep their colours in both themes. */
  --tile: #fff;
  --face-disc: #F6F4EF;
  --face-ink: #17181A;
  --font: Nunito, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lh: 1.55;
  --lh-tight: 1.02;
  --lh-head: 1.15;
  --track: -.02em;
  --wrap: min(1180px, calc(100% - 2 * clamp(16px, 4vw, 40px)));
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --g1: #0C5C35;
    --g2: #083F25;
    --g3: #117A46;
    --glow: rgba(90, 240, 160, .16);
    --on-green-soft: rgba(255, 255, 255, .82);
    --paper: #1A1C1E;
    --ink: #EEECE6;
    --ink-soft: rgba(238, 236, 230, .74);
    --accent: #3DDB88;
    --line: rgba(238, 236, 230, .15);
  }
}

/* Scripts the rounded Latin face does not cover: Arabic gets Baloo's Arabic
   sibling, CJK the system fonts, with looser line spacing and no negative tracking. */
:lang(ar) { --font: "Baloo Bhaijaan 2", Nunito, "Geeza Pro", "Segoe UI", Tahoma, sans-serif; --lh: 1.75; --lh-tight: 1.25; --lh-head: 1.35; --track: 0; }
:lang(zh-Hans) { --font: Nunito, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; --lh: 1.8; --lh-tight: 1.18; --lh-head: 1.35; --track: 0; }
:lang(ja) { --font: Nunito, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; --lh: 1.85; --lh-tight: 1.2; --lh-head: 1.35; --track: 0; }
:lang(ko) { --font: Nunito, "Apple SD Gothic Neo", "Noto Sans CJK KR", "Noto Sans KR", "Malgun Gothic", sans-serif; --lh: 1.8; --lh-tight: 1.2; --lh-head: 1.35; --track: 0; }
:lang(ko) body { word-break: keep-all; }
:lang(ja) body { line-break: strict; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--g2);
  color: var(--on-green);
  font: 700 1.125rem/var(--lh) var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* Living background: the gradient drifts and two glows breathe, a full cycle ~20 s. */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--g2); }
.sky-drift {
  position: absolute;
  inset: -30%;
  background: linear-gradient(125deg, var(--g1) 0%, var(--g2) 48%, var(--g3) 100%);
  animation: drift 10s ease-in-out infinite alternate;
}
.glow {
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  animation: breathe 10s ease-in-out infinite alternate;
}
.glow-a { top: -34vmax; inset-inline-start: -24vmax; }
.glow-b { bottom: -40vmax; inset-inline-end: -30vmax; animation-delay: -5s; }
@keyframes drift { from { transform: rotate(0deg) scale(1); } to { transform: rotate(9deg) scale(1.08); } }
@keyframes breathe {
  from { transform: translate(0, 0) scale(1); opacity: .7; }
  to { transform: translate(6vmax, 5vmax) scale(1.14); opacity: 1; }
}

/* App icon: the logo on a white tile with the iOS corner. */
.app-icon { display: block; overflow: visible; }
.app-icon-bg { fill: var(--tile); }
.logo-heart { transform-box: fill-box; transform-origin: 50% 60%; }
.app-icon.is-beating .logo-heart { animation: beat-again 1s ease-in-out; }
@keyframes beat { 0%, 100% { transform: scale(1); } 18% { transform: scale(1.16); } 34% { transform: scale(.97); } 50% { transform: scale(1.09); } 68% { transform: scale(1); } }
@keyframes beat-again { 0%, 100% { transform: scale(1); } 18% { transform: scale(1.16); } 34% { transform: scale(.97); } 50% { transform: scale(1.09); } 68% { transform: scale(1); } }

/* First screen: header, hero and the scroll cue fill exactly the visible viewport. */
.first { display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100svh; }

/* Header */
.top-row { display: flex; align-items: center; gap: 14px; padding-block: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  font-size: 1.2rem;
  font-weight: 900;
  text-decoration: none;
}
.brand-icon { width: 36px; height: 36px; }
.top-store { display: flex; align-items: center; gap: 12px; }
@media (max-width: 719px) { .top-store { display: none; } }

.lang { position: relative; }
.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: .95rem;
  list-style: none;
  cursor: pointer;
}
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary, .lang summary:hover { background: rgba(255, 255, 255, .26); }
.globe { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang ul {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 5;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}
.lang ul a { display: block; padding: 9px 14px; border-radius: 12px; font-family: var(--font); font-size: 1rem; text-decoration: none; }
.lang ul a:hover { background: var(--line); }
.lang ul a[aria-current] { color: var(--accent); }

/* App Store badge: the official artwork; inert (no link) until the app is out. */
.store { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: clamp(20px, 3.2vh, 34px); }
.badge { display: inline-flex; line-height: 0; border-radius: 10px; }
.badge img { display: block; width: auto; height: 50px; }
.top-store .badge img { height: 40px; }
.badge.is-soon { cursor: default; }
.soon { max-width: 14em; font-size: .9rem; line-height: 1.3; color: var(--on-green-soft); }

/* Hero */
.hero {
  display: grid;
  gap: clamp(14px, 3vh, 40px);
  align-items: center;
  align-content: center;
  padding-block: clamp(4px, 2vh, 32px);
}
.hero-text { min-width: 0; container-type: inline-size; }
.hero-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 6rem);
  /* Sized by its column so the longest forced line ("60 Sekunden") always fits. */
  font-size: clamp(2.6rem, 15.5cqi, 7.25rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--track);
}
.hero-lead { margin: clamp(12px, 2.4vh, 26px) 0 0; max-width: 30em; font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--on-green-soft); }
.hero-note { margin: 12px 0 0; font-size: .95rem; color: var(--on-green-soft); }

/* The icon sits in a dial of 60 ticks that light up once, then the heart beats. */
.hero-art { order: -1; position: relative; width: clamp(112px, 19svh, 190px); aspect-ratio: 1; }
.ticks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ticks line {
  stroke: rgba(255, 255, 255, .28);
  stroke-width: 2.6;
  stroke-linecap: round;
  animation: tick-on .25s ease-out forwards;
  animation-delay: calc(.4s + var(--i) * 22ms);
}
.ticks .major { stroke-width: 3.6; }
@keyframes tick-on { to { stroke: #fff; } }
.hero-icon {
  position: absolute;
  inset: 20%;
  width: 60%;
  height: 60%;
  filter: drop-shadow(0 14px 26px rgba(6, 60, 30, .28));
  transition: transform .3s ease-out;
}
.hero-icon .logo-heart { animation: beat 1.1s ease-in-out 1.8s 2; }
.scroll-cue {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: clamp(10px, 2.4vh, 24px);
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
}
.scroll-cue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scroll-cue:hover { background: rgba(255, 255, 255, .14); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .hero-art { order: 0; justify-self: center; width: min(100%, 60svh, 500px); }
}

/* Paper panels: the only rounded cards on the page. */
.panel { background: var(--paper); color: var(--ink); border-radius: 32px; padding: clamp(28px, 5.5vw, 76px); }
.kicker { margin: 0 0 12px; font-weight: 800; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--accent); }

/* How it works */
.how { padding-top: clamp(20px, 4vw, 48px); scroll-margin-top: 16px; }
.how-title {
  margin: 0 0 clamp(28px, 4.5vw, 56px);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--track);
}
.steps { display: grid; gap: clamp(32px, 4vw, 56px); }
.step h3 { margin: 20px 0 10px; font-weight: 900; font-size: clamp(1.35rem, 2.1vw, 1.6rem); line-height: var(--lh-head); }
.step p { margin: 0; font-size: 1.05rem; color: var(--ink-soft); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.illu { display: block; width: 112px; height: auto; }
.i-track { fill: none; stroke: var(--line); stroke-width: 10; }
.i-arc { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; }
.i-on { fill: var(--accent); }
.i-off { fill: none; stroke: var(--line); stroke-width: 3; }
.i-card { fill: var(--paper); stroke: var(--ink); stroke-width: 3.5; }
.i-card-back { opacity: .4; }
.i-line { fill: none; stroke: var(--ink-soft); stroke-width: 5; stroke-linecap: round; }

/* What a smile does — three facts straight on the green, with their sources */
.why { padding-top: clamp(72px, 10vw, 140px); }
.why-title {
  margin: 0 0 clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--track);
}
.why-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.why-item { padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, .35); }
.why-icon { display: block; width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.why-item h3 { margin: 16px 0 10px; font-weight: 900; font-size: clamp(1.35rem, 2.1vw, 1.6rem); line-height: var(--lh-head); }
.why-item p { margin: 0; font-size: 1.05rem; color: var(--on-green-soft); }
.why-sources { margin: clamp(24px, 3vw, 36px) 0 0; font-size: .85rem; color: rgba(255, 255, 255, .7); }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Friends — straight on the green */
.friends {
  display: grid;
  gap: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(72px, 11vw, 150px);
}
.friends .kicker { color: var(--on-green-soft); }
.big { margin: 0; font-weight: 900; font-size: clamp(2.4rem, 6.5vw, 4.75rem); line-height: var(--lh-tight); letter-spacing: var(--track); }
.friends-body, .cta-body { margin: 18px 0 0; max-width: 32em; font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--on-green-soft); }
.streak { display: block; width: min(100%, 360px); height: auto; margin-inline: auto; }
.friend-disc { fill: var(--tile); }
.i-flame { fill: var(--flame); }
.i-flame-core { fill: #FFD27A; }
.friends-extra { display: grid; gap: 14px; padding-top: clamp(24px, 3vw, 36px); border-top: 2px dashed rgba(255, 255, 255, .4); }
.friends-extra p { margin: 0; max-width: 40em; color: var(--on-green-soft); }
.tape { display: block; width: min(100%, 368px); height: auto; }
.tape-ticks path { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 3; stroke-linecap: round; }
.tape-line { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.guitar > * { fill: var(--face-disc); }
.guitar-ink circle, .guitar-ink rect { fill: var(--face-ink); }
.guitar-ink path { fill: none; stroke: var(--face-ink); stroke-width: 1.4; stroke-linecap: round; }
[dir="rtl"] .tape { transform: scaleX(-1); }
@media (min-width: 900px) {
  .friends { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .friends-extra { grid-column: 1 / -1; grid-template-columns: 368px minmax(0, 1fr); align-items: center; gap: 40px; }
}

/* Privacy + price */
.duo .row { display: grid; gap: 14px; }
.duo .row + .row { margin-top: clamp(36px, 5vw, 60px); padding-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.duo h2 { margin: 0; font-weight: 900; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: var(--lh-tight); letter-spacing: var(--track); }
.row-body { margin: 0; max-width: 36em; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); }
.icon { display: block; width: 56px; height: 56px; margin-bottom: 18px; }
.icon-line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .duo .row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: end; }
}

/* Final call */
.cta { display: grid; justify-items: center; text-align: center; padding-block: clamp(80px, 12vw, 160px) clamp(56px, 8vw, 104px); }
.cta-icon { width: clamp(88px, 12vw, 124px); height: auto; margin-bottom: 26px; filter: drop-shadow(0 12px 22px rgba(6, 60, 30, .24)); }
.cta .cta-body { margin-inline: auto; }
.cta .store { justify-content: center; }

/* Footer */
.foot { border-top: 1px solid rgba(255, 255, 255, .22); }
.foot-row { display: grid; gap: 14px; padding-block: 28px 44px; font-size: .95rem; color: var(--on-green-soft); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-green); text-decoration: underline; text-underline-offset: 4px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.foot-langs a { font-family: var(--font); }
.foot-langs a[aria-current] { color: var(--on-green); }
@media (min-width: 900px) {
  .foot-row { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; }
  .foot-langs { justify-content: flex-end; }
}

/* Heading reveal: build.mjs splits every h1–h3 into word spans with --k running -1…1
   across a line. The middle words start lowest, so each line rises from a smile-shaped
   curve and settles with a small overshoot. Plays once per heading as it scrolls into
   view; .anim is set by the head script only when motion is allowed. */
.anim .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(calc(.2em + .42em * (1 - var(--k) * var(--k))));
  transition: transform .9s cubic-bezier(.2, .9, .3, 1.15), opacity .5s ease;
  transition-delay: calc(var(--i) * 22ms);
}
.anim .is-in .w { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .anim .w { opacity: 1; transform: none; transition: none; }
}

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
.panel :focus-visible, .lang ul :focus-visible { outline-color: var(--accent); }

@media (max-width: 480px) { body { font-size: 1.0625rem; } }

@media (prefers-reduced-motion: reduce) {
  .sky-drift, .glow { animation: none; }
  .ticks line { animation: none; stroke: #fff; }
  .logo-heart, .hero-icon .logo-heart { animation: none !important; }
  .hero-icon { transition: none; }
}
