/* Habla's site, in the app's look (App/Design/Theme.swift): white and cool light grey, one cobalt accent, pure black
   primary buttons, text #1D1D1F, porcelain tiles. Light only. System fonts (SF Pro on Apple devices), so nothing to
   download. */
:root {
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #a1a1a6;
  --mist: #f3f5f8;
  --mist2: #e8ebf0;
  --mist3: #dce0e7;
  --cobalt: #1c4ed8;
  --cobalt-wash: rgba(28, 78, 216, 0.07);
  --porcelain: #fcfdfe;
  --hair: rgba(18, 24, 38, 0.08);
  --shade: rgba(20, 30, 50, 0.10);
  --radius: 22px;
  --gutter: 20px;
  --wrap: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(40px, 6.2vw, 68px); font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.012em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
[lang="es"] { font-style: normal; }
i[lang="es"], em[lang="es"] { font-style: italic; }

/* The bar */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--hair); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav__links a { color: var(--secondary); }
.nav__links a:hover { color: var(--ink); text-decoration: none; }

/* Buttons and the store badge's place */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 15px; font-weight: 600; font-size: 16px; }
button.btn { border: 0; font-family: inherit; line-height: inherit; cursor: pointer; }
.btn--black { background: #000; color: #fff; box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.2), 0 9px 20px rgba(0, 0, 0, 0.18); }
.btn--black:hover { text-decoration: none; opacity: 0.86; }
.btn--line { background: #fff; color: var(--ink); border: 1px solid var(--mist3); }
.btn--line:hover { text-decoration: none; border-color: var(--tertiary); }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 7px 20px; border-radius: 14px; background: var(--mist); border: 1px solid var(--hair); color: var(--ink); line-height: 1.2; }
.store small { font-size: 12px; color: var(--secondary); }
.store strong { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.store--live { background: transparent; border: 0; padding: 0; }

/* The hero */
.hero { position: relative; padding: 64px 0 72px; background: radial-gradient(120% 90% at 50% 20%, #fff 0%, #f7f8fa 58%, #f0f2f6 100%); }
.hero__in { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--cobalt); letter-spacing: 0.01em; margin-bottom: 18px; }
.hero h1 { max-width: 11ch; }
.lede { font-size: 20px; line-height: 1.5; color: var(--secondary); margin-top: 22px; max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--secondary); }
.scene { position: relative; }
.scene__photo { border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(20, 30, 50, 0.35), 0 0 0 1px var(--hair); aspect-ratio: 16 / 11; }
.scene__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }

/* Porcelain: the app's tiles */
.porcelain { background: var(--porcelain); border-radius: var(--radius); border: 1px solid var(--hair); box-shadow: 0 1px 1px rgba(20, 30, 50, 0.04), 0 12px 28px -12px var(--shade); }
.chat { position: absolute; left: -36px; bottom: -40px; width: min(360px, 82%); padding: 18px 20px 20px; }
.who { display: flex; align-items: center; gap: 10px; }
.who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.who b { font-size: 15px; font-weight: 650; }
.who span { font-size: 13px; color: var(--tertiary); margin-left: 2px; }
.line { margin-top: 12px; font-size: 22px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.25; }
.gloss { margin-top: 4px; font-size: 15px; color: var(--secondary); }
.said { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
.tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.tile { display: inline-block; padding: 6px 10px; border-radius: 11px; background: #fff; border: 1px solid var(--mist3); box-shadow: 0 2px 4px -2px var(--shade); font-weight: 650; font-size: 16px; }
.tile--off { color: var(--cobalt); border-color: rgba(28, 78, 216, 0.45); background: var(--cobalt-wash); }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.verdict svg { width: 18px; height: 18px; }
.talk { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff; border: 2.5px solid var(--cobalt); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--cobalt-wash); margin-left: auto; }
.talk svg { width: 18px; height: 18px; color: var(--ink); }

/* Sections */
.section { padding: 96px 0; }
.section--mist { background: var(--mist); }
.section__head { max-width: 700px; margin-bottom: 44px; }
.section__head p { margin-top: 16px; font-size: 19px; color: var(--secondary); }

/* How a lesson works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 24px 22px 22px; display: flex; flex-direction: column; }
.step__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); font-size: 14px; font-weight: 650; color: var(--secondary); }
.step h3 { margin-top: 16px; }
.step > p { margin-top: 8px; font-size: 15.5px; color: var(--secondary); }
.step__eg { margin-top: auto; padding-top: 18px; }
.eg { background: var(--mist); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.eg b { display: block; font-weight: 650; font-size: 16.5px; letter-spacing: -0.008em; }
.eg span { display: block; color: var(--secondary); font-size: 14px; margin-top: 2px; }
.eg + .eg { margin-top: 8px; }
.eg .tiles { margin: 2px 0 8px; }
.eg .tile { font-size: 15px; padding: 4px 9px; }

/* The twelve units */
.units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.unit { overflow: hidden; display: flex; flex-direction: column; }
.unit img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--mist2); }
.unit__body { padding: 16px 18px 20px; }
.unit__n { font-size: 13px; font-weight: 600; color: var(--tertiary); letter-spacing: 0.02em; }
.unit h3 { font-size: 19px; margin-top: 4px; }
.unit p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--secondary); }
.units__foot { margin-top: 28px; font-size: 15px; color: var(--secondary); }

/* Talk */
.talkrow { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.talkrow__photo { border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); aspect-ratio: 4 / 5; max-width: 440px; }
.talkrow__photo img { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16.5px; }
.ticks svg { width: 22px; height: 22px; color: var(--cobalt); margin-top: 2px; }
.ticks b { font-weight: 650; }
.cast { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 34px; list-style: none; padding: 0; }
.cast li { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; text-align: center; font-size: 12.5px; color: var(--secondary); line-height: 1.25; }
.cast img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--hair), 0 6px 12px -8px var(--shade); }

/* Features in two columns */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { padding: 30px 30px 32px; }
.card h3 { font-size: 23px; }
.card > p { margin-top: 10px; color: var(--secondary); }
.card .ticks li { font-size: 16px; }

/* Mexico City Spanish */
.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.words li { padding: 16px 18px; }
.words b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.words span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--secondary); }

/* The price */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; }
.price .card { display: flex; flex-direction: column; }
.card .price__big { color: var(--ink); font-size: 40px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin-top: 6px; }
.price__label { font-size: 14px; font-weight: 600; color: var(--secondary); text-transform: none; }
.price__fine { margin-top: 18px; font-size: 14px; color: var(--secondary); }

/* Questions */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--mist3); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tertiary); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--secondary); }

/* The last word */
.closing { text-align: center; padding: 96px 0 104px; background: radial-gradient(120% 100% at 50% 0%, #fff 0%, #f3f5f8 100%); }
.closing img { width: 96px; height: 96px; margin: 0 auto 22px; }
.closing p { margin: 14px auto 0; color: var(--secondary); font-size: 19px; max-width: 36ch; }
.closing .hero__cta { justify-content: center; }

/* Plain pages (privacy, support) */
.plain { padding: 56px 0 88px; }
.plain .wrap { max-width: 760px; }
.plain h1 { font-size: clamp(36px, 5vw, 48px); }
.plain .lede { max-width: none; font-size: 19px; }
.plain h2 { font-size: 24px; margin-top: 44px; letter-spacing: -0.014em; }
.plain h3 { font-size: 18px; margin-top: 26px; }
.plain p, .plain li { color: #3a3a3f; }
.plain p { margin-top: 12px; }
.plain ul, .plain ol { padding-left: 22px; margin: 12px 0 0; }
.plain li { margin-top: 8px; }
.plain .updated { margin-top: 10px; font-size: 14px; color: var(--tertiary); }
.plain table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.plain th, .plain td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--mist3); }
.plain th { font-weight: 650; color: var(--ink); }
.callout { margin-top: 22px; padding: 18px 20px; }
.callout p:first-child { margin-top: 0; }

/* The footer */
.footer { border-top: 1px solid var(--hair); padding: 34px 0 40px; font-size: 14px; color: var(--secondary); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer__links a { color: var(--secondary); }
.footer__sign { width: 100%; margin-top: 4px; color: var(--tertiary); font-size: 13px; }
.footer .wordmark { font-size: 16px; }
.footer .wordmark img { width: 24px; height: 24px; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .units { grid-template-columns: repeat(3, 1fr); }
  .hero__in { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 13ch; }
  .chat { left: 16px; bottom: -36px; }
  .scene { margin-bottom: 36px; }
  .talkrow { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav .store, .nav .btn--sm { margin-left: auto; }
  .units { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .unit__body { padding: 12px 14px 16px; }
  .unit h3 { font-size: 17px; }
  .unit p { display: none; }
  .duo, .price { grid-template-columns: 1fr; }
  .words { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding: 40px 0 64px; }
  .lede { font-size: 18px; }
  .steps { grid-template-columns: 1fr; }
  .chat { position: relative; left: auto; bottom: auto; width: auto; margin: -48px 12px 0; }
  .scene { margin-bottom: 0; }
  .words { grid-template-columns: 1fr; }
  .card { padding: 24px 22px 26px; }
  .nav .store { display: none; }
  .footer__links { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* The website edition (Plan H6): the Download button's size, and the thank-you page's key */
.btn__meta { font-weight: 500; font-size: 14px; opacity: 0.72; }
.plain .thanks__h { margin-top: 0; }
.keybox { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 17px; color: var(--ink); background: #fff; border: 1px solid var(--mist3); border-radius: 12px; padding: 12px 14px; word-break: break-all; user-select: all; }
[hidden] { display: none !important; }
.btn--sm { min-height: 38px; padding: 0 16px; border-radius: 12px; font-size: 15px; }
