/* ═══ Free Anki deck page ═══
   Layered over home.css + daylight.css, the same design as the homepage. */

/* Hero: the card image takes the phone's place */
@media (min-width: 960px) {
  .anki-hero .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .anki-hero .hero__visual.anki-hero__visual { width: 100%; max-width: 560px; }
}
.anki-hero__visual img { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.anki-hero .hero__title { font-size: clamp(2rem, 7vw, 3.6rem); font-size: min(8.4cqi, 4rem); }
.anki-hero .hero__lede { max-width: 540px; }

/* Stats strip */
.anki-stats { background: var(--paper-2); padding-bottom: 8px; }
.anki-stats__grid {
  display: grid; gap: 16px; grid-template-columns: 1fr;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 var(--line); padding: 28px;
}
.anki-stat { text-align: center; }
.anki-stat b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1.1; color: var(--sky-dd); }
.anki-stat:nth-child(2) b { color: var(--green-d); }
.anki-stat:nth-child(3) b { color: var(--pink-d); }
.anki-stat span { display: block; color: var(--muted); font-weight: 700; }
@media (min-width: 760px) { .anki-stats__grid { grid-template-columns: repeat(3, 1fr); } }

/* What's on a card */
.anki-inside__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .anki-inside__grid { grid-template-columns: 1.1fr .9fr; } }
.anki-sample {
  background: #fff; border: 2px solid var(--line); border-radius: 28px; box-shadow: 0 8px 0 var(--line);
  padding: 36px 28px; text-align: center;
}
.anki-sample__hint { color: var(--sky-dd); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.anki-sample__word { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 8vw, 4.4rem); color: var(--ink); line-height: 1.1; margin-top: 12px; }
.anki-sample__en { color: var(--muted); font-weight: 800; font-size: 1.2rem; }
.anki-sample__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 24px 0 20px; }
.anki-sample__buttons .btn { text-transform: none; letter-spacing: 0; }
.anki-sample__note { color: var(--muted); font-size: .98rem; }

/* Download: plans are reused from the homepage pricing block */
#download .plan__price span { font-size: 2.4rem; }
#download .plan .btn { text-align: center; }

/* Optional waitlist box, right under the downloads */
.anki-signup {
  display: grid; gap: 24px; align-items: center; max-width: 900px; margin: 40px auto 0;
  background: #fff; border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: 28px;
}
@media (min-width: 860px) { .anki-signup { grid-template-columns: .9fr 1.1fr; padding: 32px 36px; } }
.anki-signup__kicker { display: inline-block; font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  background: var(--paper-2); color: var(--sky-dd); padding: 4px 12px; border-radius: 99px; margin-bottom: 10px; }
.anki-signup h3 { font-size: 1.35rem; margin-bottom: 8px; }
.anki-signup__copy p:not(.anki-signup__kicker) { color: var(--muted); }
.anki-signup__fine { margin-top: 10px; color: var(--muted); font-size: .88rem; }
.anki-signup__fine a { color: var(--sky-dd); }
.anki-signup .signup--hero .signup__device { color: var(--muted); }

/* How to import */
.anki-howto { padding-top: 0; }
.anki-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.anki-steps li {
  counter-increment: step; position: relative; padding: 22px 24px 22px 84px;
  background: #fff; border: 2px solid var(--line); border-radius: 20px; box-shadow: 0 5px 0 var(--line); color: var(--muted);
}
.anki-steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; color: #fff; background: var(--sky); box-shadow: 0 4px 0 var(--sky-d);
}
.anki-steps b { color: var(--ink); font-weight: 900; }
.anki-steps a { color: var(--sky-dd); }
.anki-steps code { background: var(--paper-2); padding: 1px 6px; border-radius: 6px; font-weight: 800; }

/* FAQ links */
.faq details a { color: var(--sky-dd); }

/* Final card */
.anki-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; position: relative; }
.final__small a { color: var(--green-ink); font-weight: 900; }

/* The mid-hero letter tiles would sit behind the card image */
.anki-hero .hero__glyphs span:nth-child(5),
.anki-hero .hero__glyphs span:nth-child(6) { display: none; }

/* "Out now on Android" */
.anki-android {
  display: flex; align-items: center; gap: 14px; max-width: 540px; margin-top: 24px;
  padding: 12px 18px 12px 12px; border-radius: 20px; text-decoration: none;
  background: #fff; border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line);
  color: var(--muted); font-size: .95rem; line-height: 1.35;
  transition: transform .1s ease, box-shadow .1s ease;
}
.anki-android:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--line); }
.anki-android img { flex: none; width: 150px; height: auto; }
.anki-android b { color: var(--ink); font-weight: 900; }
.anki-android[hidden], .anki-signup__android[hidden], .nav__play[hidden] { display: none; }
.anki-signup__android { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--muted); font-weight: 800; font-size: .92rem; text-decoration: none; }
.anki-signup__android img { width: 135px; height: auto; }
.nav__play { display: none; }
.nav__play img { display: block; height: 36px; width: auto; }
@media (min-width: 960px) { .nav__play:not([hidden]) { display: block; margin-left: 4px; } }
@media (max-width: 420px) { .anki-android { flex-direction: column; align-items: flex-start; } }

/* Signup form: one clean column (email, device, full-width button) instead of a wrapping row */
.anki-signup .signup__row { flex-direction: column; align-items: stretch; gap: 14px; }
.anki-signup .signup--hero .btn { margin-left: 0; width: 100%; justify-content: center; }
.anki-signup .signup__device { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; justify-content: flex-start; align-self: flex-start; margin: 0; padding: 0; text-align: left; }
/* The homepage gives the hero form its own card on phones; here it already sits in one */
@media (max-width: 600px) {
  .anki-signup .signup--hero { background: none; border: 0; box-shadow: none; padding: 0; }
  .anki-signup { padding: 22px 18px; }
}

/* Phones: the long download button labels must wrap, or they stretch both plan cards off-screen */
#download .plans { grid-template-columns: minmax(0, 1fr); }
#download .plan .btn { white-space: normal; line-height: 1.3; }
@media (min-width: 760px) { #download .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
