/* 1% Learning – one stylesheet for every page.
   Same look as the app: white page, black ink, Instrument Sans,
   Gochi Hand for the logo, pink buttons, green highlighter. */

@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/instrument-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Gochi Hand'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/gochi-hand-latin-400-normal.woff2') format('woff2'); }

:root {
  --bg: #ffffff;
  --ink: #191919;
  --muted: #6f6e69;
  --line: #e7e5e0;
  --soft: #f6f5f2;
  --green: #bdeccb;
  --yellow: #ffe58a;
  --err: #d4483b;
  --brand: #ff385c;
  --brand-hover: #e31c5f;
  --link: #d70466;
  --radius: 16px;
  --section: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: var(--link); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.hand { font-family: 'Gochi Hand', cursive; font-weight: 400; }
.pct { display: inline-block; transform: rotate(-8deg); }
.hl { background: var(--green); padding: 0 4px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.display .hl { background: linear-gradient(transparent 16%, var(--green) 16%, var(--green) 92%, transparent 92%); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; color: #fff; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 30px; line-height: 1; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 20px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 16px; font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.site-footer .brand { display: flex; flex-direction: column; gap: 6px; }
.site-footer .brand .hand { font-size: 26px; line-height: 1; }
.site-footer .brand p { font-size: 15px; color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Shared pieces */
.section { padding: var(--section) 0; }
.section.soft { background: var(--soft); }
.section.flush-top { padding-top: 0; }
.stack { display: flex; flex-direction: column; }
h1.display { font-size: 58px; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
h2.title { font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 500px; }
.small { font-size: 15px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; font-size: 19px; text-decoration: none; }
.btn:hover { background: var(--brand-hover); color: #fff; }
.pill { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 600; background: var(--soft); border-radius: 999px; padding: 4px 12px; }
.pill.yellow { background: var(--yellow); }
.pill.big { font-size: 15px; padding: 8px 16px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.card-text { font-size: 20px; line-height: 1.45; }
.rule { height: 1px; background: var(--line); }
.wavy { text-decoration: underline wavy var(--err); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tag { font-size: 12px; }

.steps { display: grid; gap: 40px; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .hand { font-size: 34px; line-height: 1; }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.steps.four h3 { font-size: 19px; }
.steps.four p { font-size: 16px; }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; align-items: flex-start; width: 100%; }
.lesson { display: flex; flex-direction: column; gap: 14px; }
.lesson .card { padding: 22px 24px; }
.score { font-size: 18px; font-weight: 700; }
.score span { color: var(--muted); font-weight: 500; }

.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.app { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; min-height: 200px; text-decoration: none; color: var(--ink); }
a.app { border-color: var(--ink); }
a.app:hover { color: var(--ink); background: var(--soft); }
.app .hand { font-size: 34px; line-height: 1.1; }
.app .native { font-size: 15px; color: var(--muted); }
.app .grow { flex-grow: 1; }
.app .more { font-size: 15px; font-weight: 700; color: var(--link); min-height: 28px; display: flex; align-items: flex-end; }

/* 1% German */
.logo-big { font-size: 48px; line-height: 1; }
.levels { display: flex; gap: 8px; flex-wrap: wrap; }
.levels button { font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.levels button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.carousel { display: flex; flex-direction: column; gap: 16px; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; visibility: hidden; }
.slide.on { visibility: visible; }
.dots { display: none; justify-content: center; gap: 2px; margin-top: -10px; }
.dots button { width: 30px; height: 44px; border: 0; background: none; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dots span { display: block; width: 6px; height: 6px; border-radius: 3px; background: #d6d3cd; transition: width 0.2s; }
.dots button[aria-current="true"] span { width: 18px; background: var(--ink); }

/* Phones: swipe through the examples by hand, with dots like the app */
@media (max-width: 640px) {
  .carousel .levels { display: none; }
  .dots { display: flex; }
  .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; }
  .slides::-webkit-scrollbar { display: none; }
  .slide { flex: 0 0 100%; visibility: visible; scroll-snap-align: start; }
}
.example { padding: 24px 26px; gap: 12px; }
.example .card-text { font-size: 20px; line-height: 1.45; }
.score b { font-weight: 700; }

.lisa-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center; }
.lisa-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.lisa-sub { font-size: 21px; line-height: 1.4; font-weight: 500; margin-top: -8px; }
.lisa-body { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.lisa-note { font-size: 15px; line-height: 1.5; color: var(--muted); }
.lisa .s { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.lisa .t { stroke-width: 3.2; }
.lisa .sh { stroke: #fff; stroke-width: 2.2; stroke-linecap: round; fill: none; }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tiers h3 { font-size: 19px; font-weight: 700; }
.tiers p { font-size: 16px; line-height: 1.55; color: var(--muted); }

.price { max-width: 760px; display: flex; flex-direction: column; gap: 32px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { padding: 26px; gap: 6px; }
.plan.best { border: 2px solid var(--ink); padding: 25px; }
.plan .amount { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; }
.plan .per { font-size: 15px; color: var(--muted); }
.plan .name { font-size: 15px; font-weight: 600; color: var(--muted); }

.closing { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.closing .hand { font-size: 40px; line-height: 1; }
.closing p { font-size: 18px; color: var(--muted); }

/* Legal pages */
.legal { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 64px; padding-bottom: var(--section); }
.legal-nav { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 2px; }
.legal-nav .label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 0 12px 8px; }
.legal-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 500; }
.legal-nav a:hover { background: var(--soft); color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--soft); }
.doc { flex: 999 1 560px; min-width: 0; max-width: 700px; }
.doc h1 { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.doc h2 { margin: 44px 0 12px; font-size: 24px; line-height: 1.25; font-weight: 700; }
.doc h3 { margin: 24px 0 6px; font-size: 18px; font-weight: 700; }
.doc p { margin: 0 0 12px; font-size: 17px; line-height: 1.65; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { font-size: 17px; line-height: 1.65; margin-bottom: 4px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc .summary { background: var(--soft); border-radius: var(--radius); padding: 24px 28px; margin: 28px 0 8px; }
.doc .summary h2 { margin: 0 0 12px; font-size: 20px; }
.doc .summary ul { margin: 0; }
.doc .en { color: var(--muted); font-style: italic; }
.gap { background: var(--yellow); padding: 0 4px; border-radius: 3px; }

/* Support */
.support { max-width: 780px; padding-top: var(--section); padding-bottom: var(--section); display: flex; flex-direction: column; gap: 48px; }
.support-head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.support-head h1 { font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.support-head .lead { font-size: 19px; max-width: none; }
.faq h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 8px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq .ans { padding: 0 0 22px; font-size: 17px; line-height: 1.65; }
.faq .ans p { margin: 0 0 10px; }
.faq .ans ul { margin: 0 0 10px; padding-left: 22px; }

/* 404 */
.notfound { padding: 120px 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

@media (min-width: 901px) { h1.display.sm { font-size: 54px; } }

/* Tablet */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps.three, .tiers { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tiers { gap: 20px; }
  .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lisa-row { grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: center; text-align: center; }
  .lisa-text { align-items: center; }
  .lisa-body, .lisa-note { text-align: left; align-self: stretch; }
  .lisa { width: 160px; height: auto; }
  h1.display { font-size: 42px; }
}

/* Phone */
@media (max-width: 520px) {
  :root { --section: 64px; }
  .steps.four, .apps, .plans { grid-template-columns: minmax(0, 1fr); }
  .app { min-height: 0; }
  h1.display { font-size: 36px; }
  .logo-big { font-size: 40px; }
  .btn { width: 100%; }
  .nav { gap: 12px; }
  .site-footer .wrap { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .site-footer .brand { align-items: center; }
  .site-footer nav { flex-direction: column; align-items: center; gap: 0; }
}

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