/* Early Learning Shop: styles for the landing, thank-you, terms and privacy pages. */
@font-face { font-family: "Andika"; src: url("../fonts/andika-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url("../fonts/andika-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #fbfcfa;
  --ink: #17393d;
  --muted: #4a6366;
  --teal: #0f5c63;
  --teal-deep: #0b464c;
  --tint: #e5efee;
  --amber: #e8961e;
  --amber-press: #cf8114;
  --rule: #a9c7d4;
  --line: #d3dfde;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.els {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Andika", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, .els .wp-block-button__link:focus-visible, summary:focus-visible, input:focus-visible + *, .btn:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.measure { max-width: 62ch; }
.band { padding: 64px 0; }
.band-tint { background: var(--tint); }

/* buttons */
.btn, .els .wp-block-button__link {
  display: inline-block; background: var(--amber); color: #1f1300; font-weight: 700; text-decoration: none;
  border: 0; border-radius: 999px; padding: 12px 24px; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 0 var(--amber-press);
}
.btn:hover, .els .wp-block-button__link:hover { background: #f0a43a; }
.btn:active, .els .wp-block-button__link:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--amber-press); }
.btn-big, .els .btn-big .wp-block-button__link { font-size: 1.15rem; padding: 15px 30px; }
.small-print { font-size: .9rem; color: var(--muted); margin-top: .75em; }

/* hero: the headline sits on exercise-book writing lines */
.hero { padding: 40px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.kicker { color: var(--teal); font-weight: 700; margin-bottom: .6em; }
.hero h1 {
  padding-bottom: .35em;
  background:
    linear-gradient(var(--teal), var(--teal)) left bottom / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 8px, transparent 8px 14px) left calc(100% - .55em) / 100% 1px no-repeat;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-top: 1em; }
.hero-pages img { width: 100%; max-width: 520px; margin: 0 auto; }
@media (min-width: 880px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}

/* the American-to-UK swaps, written in the bundle's own handwriting */
.band-swap { background: #fff; }
.swaps { display: grid; gap: 10px 40px; margin-top: 28px; }
@media (min-width: 760px) { .swaps { grid-template-columns: 1fr 1fr; } }
.swap { width: 100%; height: auto; }
.swap .rule { stroke: var(--rule); stroke-width: 1; fill: none; }
.swap .rule-mid { stroke-dasharray: 5 4; }
.swap .rule-base { stroke: #5f8ea3; stroke-width: 1.4; }
.swap .us { stroke: #8f9c9e; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.swap .us-dot { fill: #8f9c9e; }
.swap .uk { stroke: var(--teal); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.swap .uk-dot { fill: var(--teal); }
.swap .strike { stroke: var(--amber); stroke-width: 4.5; fill: none; stroke-linecap: round; }
.swap .arrow { stroke: var(--muted); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* what's inside */
.sections { list-style: none; padding: 0; margin: 28px 0 !important; display: grid; gap: 28px 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .sections { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .sections { grid-template-columns: repeat(5, 1fr); } }
.sections img { border: 1px solid var(--line); border-radius: 4px; background: #fff; margin-bottom: 10px; box-shadow: 0 1px 0 var(--line); }
.sections h3 { font-size: 1rem; margin-bottom: .25em; }
.sections p { font-size: .92rem; color: var(--muted); margin: 0; }
.extras { max-width: 62ch; }

/* steps are a real sequence, so they are numbered */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--teal); color: var(--teal); font-weight: 700; display: grid; place-items: center;
}
.steps strong { display: block; }

.two-col { display: grid; gap: 32px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.fit ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.fit li { margin-bottom: .3em; }

/* questions */
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; padding: 14px 32px 14px 0; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--teal); }
details[open] summary::after { content: "−"; }
details p { max-width: 64ch; color: var(--muted); }

/* order form */
.buy { background: var(--teal); color: #fff; padding: 64px 0 72px; }
.buy h2 { color: #fff; }
.buy-intro p { color: #d4e7e8; max-width: 44ch; }
.buy-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .buy-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.order { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(5, 40, 44, .25); }
.order-line { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.order-line small { font-weight: 400; color: var(--muted); }
.addon, .consent { display: grid; gap: 12px; margin-top: 16px; cursor: pointer; }
.addon { grid-template-columns: 24px 70px 1fr; align-items: start; background: #fdf4e6; border: 2px dashed var(--amber); border-radius: var(--radius); padding: 14px; font-size: .95rem; }
.addon img { border: 1px solid var(--line); }
.consent { grid-template-columns: 24px 1fr; font-size: .92rem; color: var(--muted); }
.addon input, .consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal); }
.total { display: flex; justify-content: space-between; font-size: 1.2rem; margin: 20px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.btn-pay { width: 100%; }

/* simple pages: thank you, legal, errors */
.simple-page { padding: 48px 16px 64px; }
.simple-page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.downloads { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.downloads li { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; background: var(--tint); border-radius: var(--radius); padding: 16px; }
.dl-name { font-weight: 700; }

/* ---- WordPress blocks: let the plugin's layout win over block and theme defaults ---- */
.els .wp-block-group__inner-container { display: contents; }
.els figure, .els .wp-block-image { margin: 0; }
.els .wp-block-image img { height: auto; }
.els .wp-block-buttons { margin: 0 0 4px; }
.els .wp-block-button { margin: 0; }
.els .wp-block-button__link { font-size: inherit; line-height: 1.3; text-align: center; box-sizing: border-box; }
.els .btn-big .wp-block-button__link { font-size: 1.15rem; }
.els .wp-block-heading { margin-top: 0; }
.els .wp-block-list { margin-top: 0; }
.els .wp-block-details { margin: 0; }
.els .wp-block-details > p { margin: 0 0 16px; }
.els .section-card > :last-child { margin-bottom: 0; }
.els .hero-text > :last-child { margin-bottom: 0; }
.els .els-guarantee { display: block; }
.els.els-no-guarantee .els-guarantee { display: none; }
.els .buy-intro h2 { color: #fff; }

/* thank-you, terms and privacy pages */
.simple-header { border-bottom: 1px solid var(--line); padding: 14px 0; background: #fff; }
.simple-header a { font-weight: 700; color: var(--ink); text-decoration: none; }
.simple-header a:hover { color: var(--teal); }
.simple-page .wrap, .simple-page.wrap { padding-left: 16px; padding-right: 16px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 96px; font-size: .88rem; color: var(--muted); }
.footer-links a, .link-button { margin-right: 18px; }
.link-button { background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; font: inherit; cursor: pointer; }

/* cookie banner */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; max-width: 520px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 8px 28px rgba(5, 40, 44, .2); font-size: .93rem; }
.cookie p { margin: 0 0 .6em; }
.cookie-actions { display: flex; gap: 10px; }
.btn-plain { flex: 1; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--teal); background: #fff; color: var(--teal); font: inherit; font-weight: 700; cursor: pointer; }
.btn-plain:hover { background: var(--tint); }

/* sticky buy link on phones */
.sticky-buy { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; text-align: center; background: var(--amber); color: #1f1300;
  font-weight: 700; text-decoration: none; padding: 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
@media (min-width: 760px) { .sticky-buy { display: none; } }
