@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #f3efe6;
  --paper: #fffdf8;
  --rule: #c9daf0;
  --rule-red: #e8a3a3;
  --q-new: #1e6fd9;
  --q-learn: #d32f2f;
  --q-review: #2e7d32;
  --ink: #15191f;
  --soft: #545c68;
  --line: #e3e0d8;
  --surface: #ffffff;
  --accent: #3f6be0;
  --accent-ink: #ffffff;
  --navy: #0c2136;
  --card: #eef1fb;
  --field: #ffffff;
  --field2: #f7f8fd;
  --save: #2f55c4;
  --tint: #e7ecfb;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --paper: #1e2128;
    --rule: #2b3646;
    --rule-red: #6b3434;
    --q-new: #3d82e0;
    --q-learn: #d64545;
    --q-review: #3f9446;
    --ink: #e8eaee;
    --soft: #a3abb7;
    --line: #262b33;
    --surface: #181c22;
    --accent: #8fb0ff;
    --accent-ink: #0b1a3a;
    --card: #1f2533;
    --field: #2a3142;
    --field2: #252b3a;
    --save: #8fb0ff;
    --tint: #1a2131;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
section { padding: 72px max(20px, 6vw); }

/* Top bar */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; gap: 44px;
  padding: 18px max(20px, 6vw);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.15rem; }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--soft); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .top nav { display: none; } }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 4vw;
  padding-top: 110px; padding-bottom: 60px;
  background: var(--bg);
}
.kicker { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin: 0 0 14px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--soft); max-width: 34rem; margin: 0 0 30px; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.play {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  padding: 15px 26px; border-radius: 14px; font-weight: 600; font-size: 1.05rem;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1);
}
.play:hover { transform: scale(1.04); }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.note { color: var(--soft); font-size: .9rem; }

/* The hanging card */
.stage { position: relative; z-index: 2; height: min(560px, 74vh); align-self: stretch; touch-action: none; }
.strap {
  position: absolute; left: 50%; top: -140px; width: 24px; margin-left: -12px;
  height: 300px; transform-origin: 50% 0;
  border-radius: 3px;
  background-color: var(--navy);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='34'%3E%3Crect x='6.5' y='9.5' width='11' height='10' rx='2' fill='none' stroke='%238a94a3' stroke-width='1.3'/%3E%3Cline x1='8.5' y1='14.5' x2='15.5' y2='14.5' stroke='%238a94a3' stroke-width='1.1'/%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.08) 30%, rgba(255,255,255,.08) 70%, rgba(0,0,0,.35));
  background-repeat: repeat-y, no-repeat;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  will-change: transform;
}
.card {
  position: absolute; left: 50%; top: 0;
  width: min(420px, 86vw); margin-left: calc(min(420px, 86vw) / -2);
  background: var(--card); border-radius: 30px; padding: 18px 16px 16px;
  box-shadow: 0 30px 60px -20px rgba(12, 33, 54, .45), 0 2px 6px rgba(12,33,54,.12);
  transform-origin: 50% 0;
  will-change: transform;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.card:active { cursor: grabbing; }
.clip { position: absolute; left: 50%; top: -30px; width: 24px; margin-left: -12px; height: 44px; }
.ring { position: absolute; left: 3px; top: 0; width: 18px; height: 18px; border: 4px solid #0d1117; border-radius: 50%; }
.hook { position: absolute; left: 9px; top: 15px; width: 6px; height: 22px; border-radius: 3px; background: #0d1117; }
.hook::after { content: ""; position: absolute; left: -5px; bottom: -6px; width: 16px; height: 9px; border-radius: 6px; background: #0d1117; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 12px; }
.deck { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.deck-icon { width: 15px; height: 17px; border-radius: 3px; background: var(--accent); transform: rotate(-12deg); }
.chev { font-size: .75rem; }
.icons { display: flex; gap: 16px; }
/* The two buttons on the real card: switch to review (Quiz) and settings (Tune), 20dp at 70% like the app. */
.icons svg { width: 20px; height: 20px; fill: var(--soft); opacity: .7; }
.field { position: relative; border-radius: 18px; padding: 16px 18px; font-size: 1.05rem; min-height: 56px; }
.field.front { background: var(--field); margin-bottom: 8px; }
.field.back { background: var(--field2); min-height: 84px; }
.ph { color: var(--soft); opacity: .7; }
.caret { display: none; width: 2px; height: 1.2em; background: var(--accent); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tr { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: .8rem; color: var(--soft); opacity: 0; transition: opacity .3s; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 6px 0; }
.type { font-weight: 500; font-size: .95rem; display: flex; flex-direction: column; }
.type small { color: var(--soft); font-size: .78rem; font-weight: 400; }
.save {
  background: color-mix(in srgb, var(--soft) 22%, transparent); color: var(--soft);
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: background .25s, color .25s, transform .25s cubic-bezier(.3,1.6,.5,1);
}
.save.ready { background: var(--save); color: var(--accent-ink); }
.save.done { transform: scale(1.08); }
.hint {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  color: var(--soft); font-size: .88rem; opacity: 0; transition: opacity .6s;
}
.hint.show { opacity: .8; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; gap: 10px; }
  .stage { order: -1; height: 420px; }
  .strap { top: -120px; }
  .hero-text { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
}

/* Card-box divider: the coloured tab the app files cards behind */
.divider {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--soft); margin-bottom: 18px;
}
.divider .tab {
  display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px;
  border-radius: 8px 8px 3px 3px; color: #fff; font-size: .82rem; letter-spacing: 0;
}
.divider.blue .tab { background: var(--q-new); }
.divider.red .tab { background: var(--q-learn); }
.divider.green .tab { background: var(--q-review); }
section h2 { max-width: 34rem; }
.sub { color: var(--soft); margin: -6px 0 0; }

/* Two moves */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; max-width: 900px; margin-top: 40px; }
.two figure { margin: 0; }
.two .lower { margin-top: 90px; }
.two figcaption { color: var(--soft); max-width: 22rem; margin: 22px 0 0; }
.phone {
  width: min(270px, 70vw); aspect-ratio: 540 / 1092;
  border-radius: 34px; overflow: hidden; background: #000;
  box-shadow: 0 30px 60px -25px rgba(12,33,54,.5);
}
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.aside { color: var(--soft); max-width: 30rem; margin: 50px 0 0; padding-left: 16px; border-left: 3px solid var(--q-review); }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; gap: 40px; } .two .lower { margin-top: 0; } .phone { margin: 0 auto; } }

/* Six flashcards on ruled index card stock */
.flashcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; max-width: 1040px; margin-top: 40px; perspective: 1400px; }
.fc {
  position: relative; height: 236px; border: 0; padding: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,1.35,.45,1);
}
.fc:nth-child(1) { --r: -1.6deg; } .fc:nth-child(2) { --r: 1.1deg; } .fc:nth-child(3) { --r: -.6deg; }
.fc:nth-child(4) { --r: .9deg; } .fc:nth-child(5) { --r: -1.2deg; } .fc:nth-child(6) { --r: 1.5deg; }
.fc { transform: rotate(var(--r)); }
.fc.turned { transform: rotate(var(--r)) rotateY(180deg); }
@media (hover: hover) { .fc:hover:not(.turned) { transform: rotate(var(--r)) translateY(-4px); } }
.face {
  position: absolute; inset: 0; border-radius: 6px; padding: 14px 22px 14px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    linear-gradient(transparent 63px, var(--rule-red) 63px, var(--rule-red) 65px, transparent 65px) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(transparent 0 25px, var(--rule) 25px 26px) 0 65px / 100% 100% no-repeat,
    var(--paper);
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 12px 24px -14px rgba(40,30,10,.4);
  display: flex; flex-direction: column;
}
.face.f b { font-size: 1.2rem; font-weight: 600; line-height: 1.15; min-height: 44px; display: flex; align-items: flex-end; }
.face.f i { margin-top: auto; align-self: flex-end; font-style: normal; font-size: .78rem; color: var(--soft); }
.face.b { transform: rotateY(180deg); color: var(--ink); font-size: .95rem; line-height: 26px; padding-top: 70px; }
@media (max-width: 900px) { .flashcards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flashcards { grid-template-columns: 1fr; } }

/* Looks */
.looks { display: grid; grid-template-columns: auto 1fr; gap: 6vw; align-items: center; max-width: 980px; }
.looks p { color: var(--soft); font-size: 1.08rem; max-width: 30rem; }
@media (max-width: 720px) { .looks { grid-template-columns: 1fr; } }

/* Screenshots */
.shots { padding-left: 0; padding-right: 0; }
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 0 max(20px, 6vw) 18px; scroll-snap-type: x mandatory; }
.strip img { height: min(520px, 70vh); border-radius: 22px; scroll-snap-align: start; flex: none; }

/* Free and Pro, as two index cards */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 860px; margin-top: 36px; }
.index {
  position: relative; border-radius: 6px; padding: 18px 26px 26px;
  background:
    linear-gradient(transparent 58px, var(--rule-red) 58px, var(--rule-red) 60px, transparent 60px) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(transparent 0 29px, var(--rule) 29px 30px) 0 60px / 100% 100% no-repeat,
    var(--paper);
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 16px 30px -16px rgba(40,30,10,.45);
  transform: rotate(-.8deg);
}
.index h3 { height: 40px; margin: 0 0 20px; font-size: 1.3rem; display: flex; align-items: center; }
.index ul { list-style: none; margin: 0; padding: 0; }
.index li { line-height: 30px; }
.index li::before { content: "–"; color: var(--soft); margin-right: 10px; }
.pro-card { transform: rotate(.9deg); }
.pro-card h3::after { content: "PRO"; margin-left: 10px; font-size: .7rem; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: var(--navy); color: #fff; }
.week { margin: 16px 0 0; font-size: .92rem; color: var(--soft); line-height: 1.5; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* Questions */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px dashed var(--line); padding: 18px 2px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--soft); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--soft); margin: 12px 0 0; }

footer { text-align: center; padding: 60px 20px 50px; border-top: 1px solid var(--line); color: var(--soft); }
.foot-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 28px; }
.foot-cta img { border-radius: 12px; }
footer .small { font-size: .8rem; max-width: 40rem; margin: 18px auto 0; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
}

/* Centred layout: each section is a centred column, headings and tabs centred */
section:not(.hero):not(.shots) { max-width: 1100px; margin-left: auto; margin-right: auto; text-align: center; }
section h2 { margin-left: auto; margin-right: auto; }
.sub { margin-left: auto; margin-right: auto; }
.divider { justify-content: center; }
.two { margin: 40px auto 0; justify-items: center; }
.two .lower { margin-top: 0; }
.two figcaption { margin: 22px auto 0; text-align: center; }
.phone { margin: 0 auto; }
.aside { margin: 50px auto 0; border-left: 0; padding-left: 0; }
.flashcards { margin: 40px auto 0; text-align: left; }
.looks { text-align: left; }
.looks p { max-width: 30rem; }
.plans { margin: 36px auto 0; text-align: left; }
.faq { max-width: 760px; }
.faq details { text-align: left; }
.hero { max-width: 1240px; margin: 0 auto; }
.top { max-width: 1240px; margin: 0 auto; }
@media (max-width: 720px) { .looks { text-align: center; } .looks p { margin: 0 auto; } }

/* Centred hero: the card drops in at the top, the words sit underneath */
.hero { grid-template-columns: 1fr; gap: 6px; padding-top: 96px; justify-items: center; }
.stage { order: -1; width: 100%; height: min(440px, 52vh); }
.hero-text { text-align: center; max-width: 46rem; }
.lead { margin-left: auto; margin-right: auto; }
.cta { justify-content: center; }
@media (max-width: 860px) { .stage { height: 420px; } }

/* Each of the three movements stays on one line in the headline. */
.nw { white-space: nowrap; }
