/* wordcueapp.com: the app's own palette and type. Paper, ink, one blue; Georgia for words, the system face for the rest. */
:root {
  --paper: #FAFAF7;
  --card: #FFFFFF;
  --ink: #141413;
  --body: #45423C;
  --muted: #8A8A85;
  --line: #E7E4DC;
  --blue: #2F4BD7;
  --chip: #EEF0FC;
  --frame: #141413;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141413;
    --card: #1D1C1A;
    --ink: #F3F1EA;
    --body: #C9C7BE;
    --muted: #8A8A85;
    --line: #2E2D2A;
    --blue: #8EA0FF;
    --chip: #1F2440;
    --frame: #3A3935;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section.wrap { padding-top: 80px; padding-bottom: 80px; border-top: 1px solid var(--line); }
section.hero { border-top: 0; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.langs { display: flex; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.langs a, .langs span { padding: 6px 8px; border-radius: 8px; color: var(--muted); }
.langs span { color: var(--ink); background: var(--chip); }
.langs a:hover { color: var(--ink); text-decoration: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: end; }
section.hero { padding-top: 48px; padding-bottom: 0; }
.hero-text { padding-bottom: 96px; align-self: center; }
.entry { margin: 0 0 20px; font-size: 18px; color: var(--muted); }
.entry-word { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.ipa { color: var(--blue); margin: 0 4px; }
.entry i { font-family: var(--serif); }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
.lead { font-size: 19px; color: var(--body); max-width: 34em; margin: 24px 0 32px; }
.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 28px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 17px;
}
.store:hover { text-decoration: none; opacity: 0.88; }

/* the lock screen: an iPhone at its real proportions, cut off by the section edge */
.lock-clip { height: 560px; overflow: hidden; padding: 12px 12px 0; }
.lock {
  position: relative; width: 100%; aspect-ratio: 1206 / 2622; border-radius: 52px; padding: 64px 20px 0;
  background: linear-gradient(180deg, #7A8EDB 0%, #5568BF 40%, #34448C 100%);
  color: #fff; text-align: center;
  box-shadow: 0 0 0 10px var(--frame), 0 0 0 11px var(--line);
}
.lock::before {
  content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; border-radius: 14px; background: #000;
}
.lock-date { font-size: 15px; font-weight: 600; opacity: 0.9; }
.lock-time { font-size: 84px; font-weight: 200; line-height: 1; letter-spacing: -0.02em; margin: 2px 0 18px; }
.widget {
  text-align: left; padding: 13px 15px 14px; border-radius: 20px;
  background: rgba(16, 20, 44, 0.55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: opacity 0.35s ease;
}
.widget.out { opacity: 0; }
.widget-word { font-size: 20px; font-weight: 700; line-height: 1.2; }
.widget-meaning { font-size: 13px; line-height: 1.35; margin-top: 4px; opacity: 0.92; }
.widget-tr { font-size: 13px; margin-top: 6px; opacity: 0.6; }

/* how it works */
.how h2 { margin-bottom: 44px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how figure {
  margin: 0 0 24px; border-radius: 32px; overflow: hidden; border: 1px solid var(--line);
  background: #FAFAF7; aspect-ratio: 560 / 900;
}
.how figure img { width: 100%; }
.how h3 { font-size: 22px; display: flex; align-items: baseline; gap: 12px; }
.how .n { font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--blue); }
.how p { margin: 8px 0 0 26px; color: var(--body); }

/* packs, ruled like a word list */
.packs-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 36px; }
.packs-head p { margin: 0; color: var(--body); }
.packs ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.packs li {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.pack-name { font-weight: 600; }
.pack-samples { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--body); }
.pack-size { font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; white-space: nowrap; }
.pack-size small { color: var(--muted); font-size: 14px; }

/* support */
.support h2 { margin-bottom: 28px; }
.faq { margin: 0; max-width: 720px; }
.faq dt { font-weight: 600; margin-top: 26px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--body); }
.faq b { color: var(--ink); font-weight: 600; }

section.cta { text-align: center; padding-top: 56px; padding-bottom: 64px; }

/* text pages: privacy, support, 404 */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin-bottom: 20px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc em { color: var(--muted); font-style: normal; font-size: 15px; }
.doc .faq { margin-top: 12px; }
.back { margin-top: 48px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--body); }
.foot p { margin: 16px 0 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 56px; }
  .lock-clip { width: 300px; height: 420px; margin: 0 auto; }
  .hero-text { padding-bottom: 0; }
  .packs-head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section.wrap { padding-top: 56px; padding-bottom: 56px; }
  .top { height: 60px; }
  section.hero { padding-top: 24px; padding-bottom: 0; }
  .lead { font-size: 17px; }
  .how ol {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; scrollbar-width: none;
  }
  .how ol::-webkit-scrollbar { display: none; }
  .how li { flex: 0 0 78%; scroll-snap-align: start; }
  .how p { margin-left: 0; }
  .packs li { grid-template-columns: 1fr auto; gap: 2px 16px; }
  .pack-samples { grid-column: 1; grid-row: 2; font-size: 16px; }
  .pack-size { grid-row: 1 / span 2; align-self: center; }
  .store { width: 100%; justify-content: center; }
}
