/* Glancewords site. Colours are the app's own: the navy of its default Night lock screen, which every screenshot shows, and coral for the one action. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/onest-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: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/onest-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/onest-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --night: #1E2747;        /* the Night lock screen, the app's default */
  --panel: #2C3558;        /* the card on it, one step lighter */
  --hint: #262A38;         /* the notes panel above the card */
  --on-coral: #141826;     /* ink on coral */
  --mist: #F2F3F7;
  --paper: #FFFFFF;
  --ink: #141826;
  --soft: #555B6E;
  --on-dark: #FFFFFF;
  --on-dark-soft: #C4CADD;
  --coral: #FF6F3C;        /* the Night card's Got it */

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.25rem, 1.2rem + 4.4vw, 5rem);

  --gutter: clamp(16px, 3vw, 32px);
  --radius: 22px;
  --section: clamp(72px, 8vw, 120px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font: 400 var(--step-body)/1.55 "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.005em; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--coral); color: var(--on-coral); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; text-wrap: balance; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; }
.small { font-size: var(--step-small); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* The one action and its feedback */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px;
  border: 0; border-radius: 999px; background: var(--coral); color: var(--on-coral);
  font: 700 var(--step-body)/1 "Onest", system-ui, sans-serif; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.button:hover { background: #FF8A5E; transform: translateY(-2px); }
.button:active { transform: translateY(1px) scale(0.98); }

/* Bar: wordmark, a few links, the action */
.bar { background: var(--night); color: var(--on-dark); }
.bar .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.03em; text-decoration: none; }
.mark svg { width: 34px; height: 34px; flex: none; }
.bar nav { display: flex; gap: 24px; margin-left: auto; font-size: var(--step-small); font-weight: 600; }
.bar nav a { text-decoration: none; opacity: 0.86; transition: opacity 160ms; }
.bar nav a:hover, .bar nav a[aria-current] { opacity: 1; text-decoration: underline; }
.bar .button { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }

/* Hero: the lock screen */
.hero { background: var(--night); color: var(--on-dark); padding-block: clamp(40px, 6vw, 96px) var(--section); overflow: hidden; }
.hero .grid { align-items: center; row-gap: 56px; }
.hero-text { grid-column: 1 / 9; }
.hero-text .lead { margin-top: 36px; max-width: 34ch; color: var(--on-dark-soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 40px; }
.actions a:not(.button) { font-size: var(--step-small); font-weight: 600; color: var(--on-dark); }
.lock { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 18px; max-width: 460px; justify-self: end; width: 100%; }

/* Inside the live card: the app's own manners (data-ui) */
.clock { text-align: center; color: var(--on-dark); }
.clock time { display: block; font-size: var(--step-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock span { display: block; margin-top: 10px; font-size: var(--step-small); color: var(--on-dark-soft); }
.notes-area { min-height: 128px; display: flex; flex-direction: column; justify-content: flex-end; }
.try { text-align: center; font-size: var(--step-small); color: var(--on-dark-soft); }
.hints { background: var(--hint); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 14px; }
.hints p { font-size: var(--step-small); line-height: 1.45; color: var(--on-dark); }
.label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.label.compare { color: #9AD1FF; } .label.false { color: #FFC857; } .label.memory { color: #FFE08A; }
.label.usage { color: #B8E6B0; } .label.opposite { color: #D4BBFF; }
.card {
  position: relative; background: var(--panel); border-radius: var(--radius); padding: 24px 24px 20px; cursor: pointer;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease);
}
.card:hover { background: #343E66; }
.card:active { transform: scale(0.99); }
.card .deck { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }
.card .term { margin-top: 8px; font-size: var(--step-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; padding-right: 52px; }
.card .term small { display: block; margin-top: 6px; font-size: var(--step-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--on-dark-soft); }
.card .term small:empty { display: none; }
.card .meaning { margin-top: 14px; font-size: var(--step-lead); line-height: 1.3; }
.card .example { margin-top: 8px; font-size: var(--step-small); font-style: italic; color: var(--on-dark-soft); }
.card .dots { margin-top: 16px; font-size: 13px; letter-spacing: 0.25em; color: var(--on-dark-soft); }
.speak {
  position: absolute; top: 52px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: transparent; color: var(--on-dark); cursor: pointer; display: grid; place-items: center;
  transition: background-color 160ms, transform 160ms var(--ease);
}
.speak:hover { background: #3A4572; } .speak:active { transform: scale(0.92); }
.speak svg { width: 26px; height: 26px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.answers button {
  min-height: 64px; border: 0; border-radius: 999px; cursor: pointer; display: grid; place-content: center; gap: 2px;
  font: 700 var(--step-body)/1.1 "Onest", system-ui, sans-serif;
  transition: transform 160ms var(--ease), background-color 160ms;
}
.answers button small { font-size: var(--step-small); font-weight: 500; }
.answers .again { background: #3A4366; color: var(--on-dark); }
.answers .again:hover { background: #444E75; }
.answers .got { background: var(--coral); color: var(--on-coral); }
.answers .got:hover { background: #FF8A5E; }
.answers button:active { transform: scale(0.97); }
.after { min-height: 1.5em; text-align: center; font-size: var(--step-small); color: var(--on-dark-soft); }

/* The card hides its answer only when the script runs, so it reads in full without it */
.js .card.hidden .meaning, .js .card.hidden .example { display: none; }
.card .tap { display: none; margin-top: 14px; font-size: var(--step-lead); color: var(--on-dark-soft); }
.js .card.hidden .tap { display: block; }
.card.swap { animation: swap 420ms var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* How it works: the screenshot holds while the steps pass */
.how { background: var(--paper); padding-block: var(--section); }
.how-text { grid-column: 1 / 7; }
.how-text .lead { margin-top: 28px; max-width: 32ch; }
.step { padding-block: clamp(48px, 9vh, 104px) 0; max-width: 38ch; }
.step p { margin-top: 14px; }
.how-shot { grid-column: 8 / 13; margin: 0; align-self: start; position: sticky; top: 6vh; width: min(100%, 38vh); justify-self: center; }
.how-shot video, .ways img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--night); }
.how-shot figcaption, .ways figcaption { margin-top: 14px; font-size: var(--step-small); color: var(--soft); }

/* Notes: slips cut from the panel above the card */
.notes { padding-block: var(--section); }
.notes .intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.notes h2 { grid-column: 1 / 7; }
.notes .intro .lead { grid-column: 7 / 13; }
.slips { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.slip { background: var(--hint); color: var(--on-dark); border-radius: var(--radius); padding: 24px; }
.slip:nth-child(2) { margin-top: 64px; transform: rotate(1.2deg); }
.slip:nth-child(4) { margin-top: 32px; transform: rotate(-1deg); }
.slip .word { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; }
.slip p:last-child { font-size: var(--step-small); line-height: 1.5; }
.notes .also { margin-top: 64px; max-width: 60ch; }

/* Three ways to see a word */
.ways { background: var(--night); color: var(--on-dark); padding-block: var(--section); }
.ways h2 { max-width: 14ch; }
.ways ul { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.ways li:nth-child(2) { margin-top: 96px; }
.ways li:nth-child(3) { margin-top: 48px; }
.ways h3 { margin-top: 24px; }
.ways li p { margin-top: 10px; color: var(--on-dark-soft); max-width: 32ch; }
.ways .also { margin-top: 64px; color: var(--on-dark-soft); }

/* Courses: one printed sheet, scalloped at both ends */
.courses { padding-block: var(--section); }
.sheet {
  position: relative; max-width: 760px; margin: 0 auto; background: var(--paper); padding: 88px clamp(24px, 6vw, 72px);
}
.sheet::before, .sheet::after {
  content: ""; position: absolute; left: 0; right: 0; height: 16px; background-repeat: repeat-x; background-size: 32px 16px; background-position: center;
}
.sheet::before { top: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16'%3E%3Ccircle cx='16' cy='0' r='13' fill='%23F2F3F7'/%3E%3C/svg%3E"); }
.sheet::after { bottom: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16'%3E%3Ccircle cx='16' cy='16' r='13' fill='%23F2F3F7'/%3E%3C/svg%3E"); }
.sheet h2 { text-align: center; }
.sheet > .small { text-align: center; margin-top: 16px; color: var(--soft); }
.course { margin-top: 64px; }
.course h3 { text-align: center; }
.course .sub { text-align: center; margin-top: 6px; color: var(--soft); font-size: var(--step-small); }
.course dl { margin: 28px auto 0; max-width: 460px; }
.course dl div { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.course dt { font-weight: 500; }
.course dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.course .note { margin: 18px auto 0; max-width: 460px; text-align: center; font-size: var(--step-small); color: var(--soft); }
.sheet .own { margin-top: 64px; text-align: center; }

/* Price */
.price { background: var(--paper); padding-block: var(--section); }
.price-head { grid-column: 1 / 5; }
.price-head img { margin-top: 40px; width: 100%; max-width: 320px; border-radius: var(--radius); }
.price ul { grid-column: 6 / 13; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.price li { display: grid; gap: 10px; align-content: start; }
.price .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.015em; }
.price .row b { font-weight: 700; white-space: nowrap; }
.price li > p:last-child { color: var(--soft); max-width: 36ch; }

/* Privacy */
.privacy { background: var(--night); color: var(--on-dark); padding-block: var(--section); }
.privacy h2 { grid-column: 1 / 7; }
.privacy .body { grid-column: 7 / 13; display: grid; gap: 24px; }
.privacy .body p:first-child { font-size: var(--step-lead); line-height: 1.35; }
.privacy ul { margin: 0; padding-left: 1.1em; color: var(--on-dark-soft); }
.privacy li + li { margin-top: 6px; }
.privacy a { font-weight: 600; }

/* Questions */
.faq { padding-block: var(--section); }
.faq h2 { grid-column: 1 / 5; }
.faq .list { grid-column: 5 / 13; display: grid; gap: 12px; }
.faq details { background: var(--paper); border-radius: var(--radius); padding: 22px 26px; transition: background-color 200ms; }
.faq details:nth-child(even) { background: #E7E9F0; }
.faq summary { cursor: pointer; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; list-style: none; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; max-width: 58ch; }

/* Footer: the back of the card */
.foot { background: var(--night); padding-block: var(--section) var(--gutter); }
.back {
  position: relative; background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px) 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='20'%3E%3Ccircle cx='28' cy='0' r='20' fill='%231E2747'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 56px 20px; background-position: center top;
}
.back .grid { row-gap: 40px; }
.back .sign { grid-column: 1 / 8; }
.back .name { font-size: clamp(2.75rem, 1rem + 7.4vw, 8.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; }
.back .sign p { margin-top: 24px; max-width: 34ch; }
.back nav { grid-column: 9 / 13; display: grid; gap: 12px; align-content: start; font-size: var(--step-body); }
.back nav p { margin-top: 16px; font-size: var(--step-small); color: var(--soft); }
.imprint { margin-top: 64px; font-size: var(--step-small); color: var(--soft); max-width: 58ch; }

/* Legal pages */
.doc { padding-block: clamp(56px, 8vw, 120px) var(--section); }
.doc article { max-width: 760px; margin: 0 auto; background: var(--paper); border-radius: var(--radius); padding: clamp(28px, 6vw, 72px); }
.doc h1 { font-size: var(--step-head); }
.doc .effective { margin-top: 16px; color: var(--soft); }
.doc h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; margin-top: 48px; }
.doc p, .doc ul, .doc table { margin-top: 16px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid #DDE0E8; }
.doc th { font-weight: 600; }

/* Entrances: parts of a section rise in turn, once */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rise.in { opacity: 1; transform: none; }
.js .slip.rise.in:nth-child(2) { transform: rotate(1.2deg); }
.js .slip.rise.in:nth-child(4) { transform: rotate(-1deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { transform: none; transition: opacity 300ms; }
  .card.swap { animation: none; }
  .button, .card, .answers button, .speak { transition: none; }
}

/* Tablet */
@media (max-width: 1020px) {
  .hero-text, .lock { grid-column: 1 / -1; }
  .lock { justify-self: start; }
  .how-text { grid-column: 1 / 8; }
  .how-shot { grid-column: 8 / 13; }
  .slips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slip:nth-child(2), .slip:nth-child(4) { margin-top: 0; }
  .price-head, .price ul, .privacy h2, .privacy .body, .faq h2, .faq .list { grid-column: 1 / -1; }
  .price ul, .privacy .body, .faq .list { margin-top: 48px; }
  .back .sign, .back nav { grid-column: 1 / -1; }
}

/* Phone: its own composition */
@media (max-width: 680px) {
  .bar nav a.section-link { display: none; }
  .bar .wrap { gap: 14px; }
  .bar nav { gap: 14px; }
  .bar .button { display: none; }
  .hero-text .lead { margin-top: 24px; }
  .how-text, .how-shot { grid-column: 1 / -1; }
  .how-shot { position: static; margin-top: 56px; max-width: 360px; }
  .step { padding-top: 48px; }
  .notes h2, .notes .intro .lead { grid-column: 1 / -1; }
  .notes .intro .lead { margin-top: 24px; }
  .slips { grid-template-columns: 1fr; margin-top: 48px; }
  .slip, .slip:nth-child(2), .slip:nth-child(4), .js .slip.rise.in:nth-child(2), .js .slip.rise.in:nth-child(4) { transform: none; }
  .ways ul { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .ways li { display: grid; grid-template-columns: 42% 1fr; column-gap: 20px; align-items: center; }
  .ways li img { grid-row: 1 / 3; }
  .ways h3 { margin-top: 0; align-self: end; }
  .ways li p { align-self: start; }
  .ways li:nth-child(2), .ways li:nth-child(3) { margin-top: 0; }
  .price ul { grid-template-columns: 1fr; gap: 36px; }
  .faq summary { font-size: var(--step-body); }
}
