/* Wordish — marketing site. Calm, clever, quietly playful. */
@font-face { font-family: "Sunghyun Sans"; src: url("assets/fonts/sunghyun-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sunghyun Sans"; src: url("assets/fonts/sunghyun-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sunghyun Sans"; src: url("assets/fonts/sunghyun-ExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Sunghyun Sans"; src: url("assets/fonts/sunghyun-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }
: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;
  /* Sunghyun Sans is the single typeface across the whole site (SemiBold 600 → Black 900). */
  --font: "Sunghyun Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-display: "Sunghyun Sans", var(--font);
  --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; scroll-padding-top: 90px; }
@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; }
/* Brand display face on big type + wordmark; card titles (h3) stay rounded. */
h1, h2, .logo, .hero h1, .cta h2, .ward h2, .section-head h2, .doc h1 { font-family: var(--font-display); }
.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 ---- */
/* Fully-rounded pill buttons (Clucky-style): label first, apple mark after. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; letter-spacing: -0.02em; line-height: 1;
  border-radius: 100px; padding: 14px 22px; font-size: 16px; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s, opacity .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn .apple { width: 16px; height: 16px; display: block; transform: translateY(-1px); flex-shrink: 0; }
/* Black download pill */
.btn.btn-app { background: #0a0a0a; color: #fff; height: 48px; padding: 0 22px; }
.btn-app:hover { background: #0a0a0a; opacity: .85; box-shadow: none; }
/* White download pill (nav) */
.btn.btn-light { background: #fff; color: var(--ink); border: 2px solid #f1f1f1; padding: 11px 18px; font-size: 15px; }
.btn-light:hover { border-color: #e5e5e5; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }

/* ---- Nav (floating frosted pill) ---- */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 40;
  width: min(940px, calc(100% - 26px)); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 58px; padding: 0 10px 0 20px;
  background: rgba(228,228,225,0.72);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid rgba(228,228,225,0.5);
  border-radius: 100px;
  transition: background .25s; }
.nav.scrolled .nav-in { background: rgba(228,228,225,0.9); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.link { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a.link:hover { color: var(--ink); }
.nav-links .btn-light { padding: 9px 15px; font-size: 14px; }
@media (max-width: 720px) { .nav-links .link { display: none; } .nav-in { padding: 0 8px 0 16px; height: 54px; } }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 118px 0 66px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -30% 0 auto 0; height: 760px;
  background: radial-gradient(900px 520px at 50% 3%, rgba(2,121,251,.14), transparent 62%),
              radial-gradient(720px 380px at 50% 0%, rgba(211,225,234,.45), transparent 60%);
  pointer-events: none; z-index: 0; }
.hero-in { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 0.94; margin: 0 auto; }
.hero h1 .hl { color: var(--primary); }
.hero .lede { font-size: 19px; letter-spacing: -0.02em; line-height: 1.35; color: var(--muted); font-weight: 600; margin: 22px auto 30px; max-width: 480px; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn { min-width: 178px; }
.hero-meta { display: flex; justify-content: center; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta .m b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; display: block; }
.hero-meta .m span { font-size: 13px; color: var(--faint); font-weight: 600; }
.phone-stage { margin-top: 52px; }
@media (max-width: 640px) {
  .hero { padding: 96px 0 50px; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-meta .m b { font-size: 19px; }
  .hero-meta .m span { font-size: 12px; }
}

/* ---- 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: #fff; display: flex; flex-direction: column; }
/* iMessage-style header */
.imsg-header { padding: 40px 14px 9px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(250,250,250,.9); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06); position: relative; z-index: 2; }
.imsg-header .chev { position: absolute; left: 15px; top: 46px; color: var(--primary); font-size: 26px; line-height: 1; font-weight: 300; }
.imsg-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; overflow: hidden; }
.imsg-avatar img { width: 27px; height: 27px; }
.imsg-name { font-size: 12px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; letter-spacing: -0.01em; }
.imsg-name .ck { color: var(--faint); font-size: 11px; }
/* thread */
.imsg-thread { flex: 1; overflow: hidden; padding: 12px 12px 4px; display: flex; flex-direction: column; }
.imsg-time { text-align: center; font-size: 10.5px; color: var(--faint); margin: 2px 0 10px; }
.imsg-time b { color: #8a8a85; font-weight: 700; }
.imsg-row { display: flex; margin-top: 8px; }
.imsg-row.in { justify-content: flex-start; }
.imsg-row.out { justify-content: flex-end; }
.imsg-row.tight { margin-top: 2px; }
.bubble { max-width: 76%; padding: 8px 13px; font-size: 14.5px; line-height: 1.32; letter-spacing: -0.2px; border-radius: 19px; }
.bubble.in { background: #E9E9EB; color: #000; border-bottom-left-radius: 6px; }
.bubble.out { background: linear-gradient(180deg, #45A6FF, #0279FB); color: #fff; border-bottom-right-radius: 6px; }
/* input bar */
.imsg-input { display: flex; align-items: center; gap: 8px; padding: 8px 12px 16px; background: #fff; }
.imsg-input .field { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--faint); }
.imsg-send { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.imsg-send svg { width: 15px; height: 15px; color: #fff; }

/* ---- 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; }

/* ---- Feature showcase (3 tall cards + caption below) ---- */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.show-card { display: flex; flex-direction: column; }
.show-visual { height: 430px; border-radius: 24px; position: relative; overflow: hidden; display: grid; place-items: center; padding: 26px; box-shadow: var(--shadow-md); }
.show-learn { background: linear-gradient(165deg, #EAF4FF 0%, #C9DCEA 100%); }
.show-remember { background: #fff; border: 1px solid var(--line); }
.show-grow { background: url("assets/sky.jpg") center 40% / cover no-repeat; }
.show-cap { padding: 20px 6px 0; }
.show-cap b { font-weight: 800; font-size: 21px; display: block; letter-spacing: -0.02em; }
.show-cap span { color: var(--muted); font-size: 15.5px; font-weight: 600; display: block; margin-top: 6px; line-height: 1.5; }

/* Learn — floating word card */
.mini-word { background: #fff; border-radius: 22px; padding: 28px 22px; text-align: center; box-shadow: 0 18px 44px rgba(2,60,140,.18); width: 100%; }
.mini-word .mw-word { font-size: 31px; font-weight: 800; letter-spacing: -0.03em; }
.mini-word .mw-pron { font-size: 13px; opacity: .5; margin-top: 5px; font-weight: 600; }
.mini-word .mw-pos { display: inline-block; background: var(--primary-soft); color: var(--primary-deep); border-radius: 11px; padding: 3px 11px; font-size: 11px; font-weight: 700; margin-top: 13px; }
.mini-word .mw-def { font-size: 16px; line-height: 1.42; margin-top: 15px; color: var(--ink); font-weight: 600; }

/* Remember — quiz card */
.mini-quiz { width: 100%; }
.mini-quiz .mq-q { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--ink); }
.mini-quiz .mq-opt { border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 15px; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-quiz .mq-opt.correct { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-deep); }
.mini-quiz .mq-opt.correct svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Own it — streak + word web on blue */
.mini-grow { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; color: #fff; }
.mg-streak { display: inline-flex; align-items: baseline; gap: 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); border-radius: 18px; padding: 12px 20px; }
.mg-streak .flame { font-size: 20px; align-self: center; }
.mg-streak b { font-size: 27px; font-weight: 800; }
.mg-streak span:last-child { font-size: 13px; opacity: .85; font-weight: 600; }
.mg-web { position: relative; width: 220px; height: 150px; }
.mg-web svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mg-web svg line { stroke: rgba(255,255,255,.5); stroke-width: 1.5; }
.mg-web .node { position: absolute; background: rgba(255,255,255,.96); color: var(--primary-deep); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.18); transform: translate(-50%, -50%); }

/* ---- 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; }

/* ---- FAQ (SEO/AEO) ---- */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .18s; }
.faq-item[open] { border-color: var(--secondary); }
.faq-item summary { list-style: none; cursor: pointer; padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font); font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary-deep); }
.faq-chev { flex-shrink: 0; width: 20px; height: 20px; color: var(--faint); transition: transform .22s ease, color .22s; }
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--primary); }
.faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 16px; line-height: 1.62; }
.faq-a p { margin: 0; }
.faq-a p + p { margin-top: 10px; }

/* ---- Closing CTA ---- */
.cta { position: relative; overflow: hidden; border-radius: 32px; margin: 0 24px; padding: 72px 24px; text-align: center;
  background: url("assets/sky.jpg") center 30% / cover no-repeat; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(8,44,88,.18); }
.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: #fff; text-shadow: 0 2px 18px rgba(3,34,70,.35); }
.cta p { color: rgba(255,255,255,.92); font-size: 18px; margin: 16px auto 30px; max-width: 40ch; font-weight: 500; text-shadow: 0 1px 12px rgba(3,34,70,.3); }
.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; } }

/* ---- Cursor word-trail (hero only) — bare words in daily-word blues; color + size set inline per word ---- */
#cursor-trail { position: fixed; inset: 0; pointer-events: none; z-index: 35; overflow: hidden; }
.trail-word { position: fixed; transform: translate(-50%, -50%); will-change: transform, opacity;
  animation: trailFloat 1.1s cubic-bezier(.22,.61,.36,1) forwards;
  font-family: var(--font); font-weight: 800; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
@keyframes trailFloat {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.7) rotate(var(--rot, 0deg)); }
  16% { opacity: .9; }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 38px)) scale(1.06) rotate(var(--rot, 0deg)); }
}

/* ---- Doc pages (terms / privacy / support) ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 108px 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; }
