/* Wordish — marketing site. Calm, clever, quietly playful. */
:root {
  --ink: #191918;
  --paper: #FAFAF8;
  --raised: #F0F2F3;
  --line: #E6E9EC;
  --muted: #6B6B66;
  --faint: #9B9B95;
  --primary: #0279FB;
  --primary-deep: #005FC8;
  --primary-soft: #EAF4FF;
  --secondary: #D3E1EA;
  --orange: #F7B313;
  --white: #FFFFFF;
  --maxw: 1120px;
  --font: -apple-system, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(25,25,24,.05), 0 4px 14px rgba(25,25,24,.05);
  --shadow-md: 0 2px 4px rgba(25,25,24,.05), 0 18px 48px rgba(25,25,24,.10);
  --shadow-lg: 0 30px 80px rgba(2,60,140,.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--primary-deep);
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--primary); border-radius: 2px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600;
  border-radius: 14px; padding: 14px 22px; font-size: 16px; border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn-app { background: var(--ink); color: #fff; padding: 12px 22px; }
.btn-app:hover { background: #000; box-shadow: var(--shadow-md); }
.btn-app .apple { width: 21px; height: 21px; margin-top: -2px; }
.btn-app .lbl { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.btn-app .lbl small { font-size: 10px; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.btn-app .lbl b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--secondary); }
.btn-lg { padding: 16px 26px; font-size: 17px; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(250,250,248,.8);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.nav.scrolled { border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a.link:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links .link { display: none; } }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero::before { content: ""; position: absolute; inset: -40% 0 auto 0; height: 620px;
  background: radial-gradient(900px 460px at 72% 8%, rgba(2,121,251,.16), transparent 62%),
              radial-gradient(700px 360px at 12% 0%, rgba(211,225,234,.5), transparent 60%);
  pointer-events: none; z-index: 0; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 48px 0 60px; } }
.hero h1 { font-size: clamp(40px, 6vw, 62px); font-weight: 700; margin: 18px 0 0; }
.hero h1 .hl { color: var(--primary); }
.hero .lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); margin: 20px 0 30px; max-width: 30ch; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta .m b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; display: block; }
.hero-meta .m span { font-size: 13px; color: var(--faint); font-weight: 600; }

/* ---- Phone mockup ---- */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone { width: 288px; aspect-ratio: 288 / 590; border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #23262b, #0d0f12); box-shadow: var(--shadow-lg), 0 2px 6px rgba(0,0,0,.3);
  position: relative; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #0a0b0d; border-radius: 16px; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: url("assets/sky.png") center 18% / cover no-repeat; display: flex; flex-direction: column; }
.screen-top { display: flex; justify-content: space-between; align-items: center; padding: 42px 20px 0; color: var(--ink); }
.streak-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.72);
  border-radius: 20px; padding: 5px 11px 5px 8px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm); }
.streak-chip .flame { color: var(--orange); font-size: 15px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(25,25,24,.28); display: block; }
.dots i.on { width: 15px; background: var(--ink); }
.feed-card { margin: auto 14px 14px; background: var(--white); border-radius: 26px; padding: 26px 22px 18px;
  box-shadow: 0 12px 34px rgba(25,25,24,.14); text-align: center; }
.feed-card .word { font-size: 33px; font-weight: 600; letter-spacing: -1.4px; }
.feed-card .pron { font-size: 14px; color: var(--ink); opacity: .6; margin-top: 5px; }
.feed-card .pos { display: inline-block; background: rgba(2,121,251,.10); color: var(--primary-deep);
  border-radius: 11px; padding: 3px 10px; font-size: 11px; font-weight: 600; margin-top: 13px; }
.feed-card .def { font-size: 19px; line-height: 1.35; letter-spacing: -0.4px; margin-top: 15px; color: var(--ink); }
.feed-card .acts { display: flex; justify-content: center; gap: 20px; margin-top: 20px; color: var(--muted); }
.feed-card .acts svg { width: 22px; height: 22px; }
.feed-card .acts .save { color: var(--primary); }

/* ---- Section frame ---- */
.section { padding: 84px 0; }
.section.tight { padding: 60px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }

/* ---- Ritual steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; }
.step .n { position: absolute; top: 26px; right: 26px; font-size: 13px; font-weight: 700; color: var(--faint); }
.step .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-deep); margin-bottom: 18px; }
.step .ic svg { width: 26px; height: 26px; }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { color: var(--muted); font-size: 16px; margin: 10px 0 0; }

/* ---- Features grid ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--secondary); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--raised); color: var(--primary-deep); margin-bottom: 16px; }
.feature .ic svg { width: 23px; height: 23px; }
.feature h3 { font-size: 18px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 8px 0 0; }

/* ---- Ward callout ---- */
.ward { background: linear-gradient(180deg, var(--white), var(--paper)); border: 1px solid var(--line); border-radius: 28px;
  padding: 46px; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; box-shadow: var(--shadow-sm); }
@media (max-width: 700px) { .ward { grid-template-columns: 1fr; text-align: center; padding: 36px 26px; gap: 22px; } }
.ward-mark { width: 92px; height: 92px; }
@media (max-width: 700px) { .ward-mark { margin: 0 auto; } }
.ward h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; }
.ward p { color: var(--muted); font-size: 17px; margin: 12px 0 0; }

/* ---- Closing CTA ---- */
.cta { position: relative; overflow: hidden; border-radius: 32px; margin: 0 24px; padding: 72px 24px; text-align: center;
  background: url("assets/sky.png") center 30% / cover no-repeat; }
.cta-in { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 700; color: var(--ink); }
.cta p { color: #33506b; font-size: 18px; margin: 16px auto 30px; max-width: 40ch; font-weight: 500; }
.cta .btn-app { box-shadow: 0 14px 40px rgba(0,0,0,.22); }

/* ---- Footer ---- */
.footer { padding: 60px 0 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; } }
.footer .logo { margin-bottom: 14px; }
.footer .tag { color: var(--muted); font-size: 15px; max-width: 30ch; }
.footer h4 { font-size: 13px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: var(--muted); font-size: 15px; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }

/* ---- Reveal on scroll ----
   Hidden state is scoped under html.js so the page stays fully visible with no
   JS. .done is a failsafe that force-shows with transition:none, so content is
   never left invisible even if a transition is interrupted (hidden tab, deep-link). */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.done { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Doc pages (terms / privacy / support) ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 60px 24px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 12px 0 40px; font-weight: 600; }
.doc h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
.doc p, .doc li { color: #35352f; font-size: 16.5px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 7px 0; }
.doc a { font-weight: 600; }
.doc .lead { font-size: 19px; color: var(--muted); }
.doc .back { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; margin-bottom: 26px; color: var(--muted); }
.doc .back:hover { color: var(--ink); }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow-sm); margin: 24px 0; }
.contact-card a { font-size: 18px; }
