/* The public Spanish pages (scripts/seo): Huerta's garden look, always the light (day) version. */
/* Fonts served from huertaapp.com itself (copied from @fontsource at build): no third party to wait for. */
@font-face {
  font-family: 'Figtree';
  font-weight: 400;
  font-display: swap;
  src: url('/spanish/fonts/figtree-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-weight: 600;
  font-display: swap;
  src: url('/spanish/fonts/figtree-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-weight: 700;
  font-display: swap;
  src: url('/spanish/fonts/figtree-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Young Serif';
  font-weight: 400;
  font-display: swap;
  src: url('/spanish/fonts/young-serif-400.woff2') format('woff2');
}
:root {
  --bg: #f1f4ec;
  --card: #ffffff;
  --ink: #17301f;
  --mute: #5a6b5e;
  --line: #dce4d6;
  --primary: #1f6b43;
  --primary-ink: #1f6b43;
  --on-primary: #ffffff;
  --soft: #e3efd8;
  --warm: #fbf3e2;
  --warm-edge: #ecd9b0;
  --odd: #fbe7c6;
  --odd-ink: #6b3d00;
  --shadow: 0 1px 2px rgb(23 48 31 / 0.06), 0 6px 20px rgb(23 48 31 / 0.06);
  --heading: 'Young Serif', Georgia, serif;
  --body: 'Figtree', system-ui, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--primary-ink);
}
img {
  display: block;
}
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 4px 16px 48px;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 6px 0 12px;
}
h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin: 44px 0 14px;
}
h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
}
p {
  margin: 0 0 12px;
}
.lead {
  font-size: 1.15rem;
  color: var(--mute);
  max-width: 64ch;
}
.small {
  font-size: 0.88rem;
  color: var(--mute);
}
.center {
  text-align: center;
  justify-content: center;
}
.kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-ink);
  margin-bottom: 6px;
}
.kicker a {
  text-transform: none;
}
.badge {
  display: inline-block;
  background: var(--soft);
  color: var(--primary-ink);
  border-radius: 6px;
  padding: 0 7px;
  font-size: 0.8rem;
  letter-spacing: 0;
}

/* Early-access ribbon, header and menu */
.ribbon {
  display: block;
  text-align: center;
  background: var(--primary-ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 16px;
}
header.site {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--heading);
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
}
.menu {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.menu a:hover {
  color: var(--primary-ink);
}
@media (max-width: 640px) {
  .menu {
    display: none;
  }
  .start {
    margin-left: auto;
  }
}
.crumbs {
  font-size: 0.9rem;
  color: var(--mute);
  margin: 4px 0 10px;
}

/* Buttons and calls to try Huerta */
.button,
.start {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.start {
  padding: 8px 18px;
  font-size: 0.95rem;
}
.button {
  padding: 14px 28px;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgb(31 107 67 / 0.25);
}
.button:hover,
.start:hover {
  transform: translateY(-1px);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 18px 0;
}
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  background: var(--warm);
  border: 1px solid var(--warm-edge);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 28px 0;
}
.inline-cta p {
  margin: 0;
  flex: 1 1 320px;
}
.sticky-cta {
  display: none;
}
@media (max-width: 640px) {
  .sticky-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 10;
    background: var(--primary);
    color: var(--on-primary);
    text-decoration: none;
    font-weight: 700;
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 6px 24px rgb(0 0 0 / 0.25);
  }
  .sticky-cta span {
    font-weight: 400;
    font-size: 0.8rem;
    opacity: 0.85;
  }
  body {
    padding-bottom: 76px;
  }
}

/* Home: hero, stats, features, steps, FAQ */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px 0 8px;
}
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.stats {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--mute);
  font-size: 0.95rem;
}
.stats b {
  color: var(--ink);
  font-size: 1.15rem;
}
.feature-grid,
.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.feature-grid article,
.faq > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px 8px;
  box-shadow: var(--shadow);
}
.feature-grid p,
.faq p {
  color: var(--mute);
}
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--soft);
  border-radius: 18px;
  padding: 18px 20px 8px;
}
.steps h3::before {
  content: counter(step) '. ';
  color: var(--primary-ink);
}
.final-cta {
  text-align: center;
  background: var(--soft);
  border-radius: 24px;
  padding: 28px 20px 18px;
  margin-top: 48px;
}
.final-cta h2 {
  margin-top: 0;
}

/* The review card drawn in HTML */
.demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 380px;
  width: 100%;
  justify-self: center;
}
.demo p {
  margin: 0 0 8px;
}
.demo-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--mute);
}
.demo-ask {
  font-size: 0.9rem;
  color: var(--mute);
}
.demo-prompt {
  font-family: var(--heading);
  font-size: 1.9rem;
}
.demo-answer {
  border: 2px solid #3f8f5f;
  border-radius: 14px;
  padding: 8px;
  font-size: 1.2rem;
  font-weight: 600;
}
.demo-ok {
  color: #3f8f5f;
  font-weight: 600;
  font-size: 0.9rem;
}
.demo-hook {
  font-size: 0.85rem;
  color: var(--mute);
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/* Why Huerta, at the foot of every page */
.why {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 56px;
  background: var(--soft);
  border-radius: 24px;
  padding: 26px 26px 14px;
}
.why h2 {
  margin-top: 0;
}
@media (max-width: 820px) {
  .why {
    grid-template-columns: 1fr;
  }
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
}
.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-ink);
  font-weight: 700;
}

/* Sentences: Spanish with its English underneath */
.pair span {
  display: block;
}
.pair .en,
.en {
  color: var(--mute);
}
.hook {
  font-size: 0.92rem;
  color: var(--mute);
}

/* Verb pages */
.glance {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 22px 10px;
  box-shadow: var(--shadow);
}
.glance h2 {
  margin-top: 16px;
}
.keys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.keys div {
  background: var(--soft);
  border-radius: 12px;
  padding: 8px 12px;
}
.keys dt {
  font-size: 0.8rem;
  color: var(--mute);
}
.keys dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
}
.jump,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.jump a,
.chips a {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 4px 13px;
  text-decoration: none;
  font-size: 0.92rem;
}
.note {
  font-size: 0.92rem;
  color: var(--mute);
}
.tense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.tense {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px 6px;
  scroll-margin-top: 12px;
}
.tense .use {
  font-size: 0.9rem;
  color: var(--mute);
}
.tense table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 10px;
}
.tense th,
.tense td {
  text-align: left;
  padding: 6px 8px;
  border-top: 1px solid var(--line);
}
.tense tr:first-child th,
.tense tr:first-child td {
  border-top: none;
}
.tense th {
  font-weight: 400;
  color: var(--mute);
  width: 48%;
  font-size: 0.92rem;
}
.tense td {
  font-weight: 700;
}
.tense .pair {
  font-size: 0.92rem;
  border-left: 3px solid var(--primary-ink);
  padding-left: 10px;
}
.odd {
  background: var(--odd);
  color: var(--odd-ink);
  border-radius: 4px;
  padding: 0 4px;
}
td.odd {
  border-radius: 0;
  padding: 6px 8px;
}
.verb-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
}
.verb-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
}
.verb-list .rank {
  color: var(--mute);
  font-size: 0.85rem;
  min-width: 1.6em;
}
.verb-list .vname {
  font-weight: 700;
}
.verb-list .tag {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--mute);
}
.verb-list .tag.irregular {
  color: var(--odd-ink);
  background: var(--odd);
  border-radius: 999px;
  padding: 0 8px;
}

/* Word lists: stages, levels, words, grammar */
.stage-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.stage-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.stage-card .stage {
  font-family: var(--heading);
  font-size: 1.8rem;
  color: var(--primary-ink);
}
.stage-card .sname {
  font-weight: 700;
}
.stage-card .smeta,
.stage-card .sgoal {
  font-size: 0.9rem;
  color: var(--mute);
}
.goals {
  background: var(--soft);
  border-radius: 20px;
  padding: 2px 22px 8px;
}
.goals h2 {
  margin-top: 16px;
}
.level-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}
.level-card {
  display: flex;
  gap: 14px;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
}
.lnum {
  font-family: var(--heading);
  font-size: 1.5rem;
  color: var(--primary-ink);
  min-width: 1.6em;
}
.lbody {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ltitle {
  font-weight: 700;
}
.lsample {
  font-size: 0.92rem;
}
.lmeta {
  font-size: 0.82rem;
  color: var(--mute);
}
.grammar-list {
  display: grid;
  gap: 14px;
}
.grammar {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary-ink);
  border-radius: 16px;
  padding: 16px 20px 6px;
}
.pairs {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.word-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}
.word-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 6px;
}
.word-card .w {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.word-card .w .en {
  font-size: 0.95rem;
}
.word-card .pair {
  font-size: 0.95rem;
}
.word-card .hook {
  font-size: 0.85rem;
  border-top: 1px dashed var(--line);
  padding-top: 6px;
}
.regional {
  font-size: 0.85rem;
  color: var(--mute);
}
.table-link {
  display: inline-block;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.prevnext {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 32px;
}
.prevnext a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.foot-cols {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--mute);
}
@media (max-width: 820px) {
  .foot-cols {
    grid-template-columns: 1fr 1fr;
  }
  .foot-cols > div:first-child {
    grid-column: 1 / -1;
  }
}
.foot-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.foot-cols li {
  margin: 4px 0;
}
.foot-brand {
  font-family: var(--heading);
  font-size: 1.3rem;
  color: var(--ink);
}
.foot-h {
  font-weight: 700;
  color: var(--ink);
}

/* Home: everything in one place, and nothing to plan */
.all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.all-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px 8px;
  box-shadow: var(--shadow);
}
.all-grid .big {
  font-family: var(--heading);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--primary-ink);
  margin: 0 0 6px;
}
.all-grid p:last-child {
  color: var(--mute);
}
.no-effort {
  margin-top: 36px;
  background: var(--warm);
  border: 1px solid var(--warm-edge);
  border-radius: 24px;
  padding: 6px 26px 4px;
}
.no-effort h2 {
  margin-top: 20px;
}
.no-effort p {
  max-width: 70ch;
  font-size: 1.08rem;
}

/* Guides */
.guide {
  max-width: 760px;
}
.guide p,
.guide li {
  font-size: 1.05rem;
}
.answer {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary-ink);
  border-radius: 16px;
  padding: 14px 20px 4px;
  box-shadow: var(--shadow);
  margin: 18px 0 8px;
}
.answer-label,
.toc-h,
.callout-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-ink);
  margin: 0 0 6px;
}
.callout-label {
  display: block;
}
.takeaways {
  background: var(--soft);
  border-radius: 20px;
  padding: 4px 22px 8px;
  margin-top: 24px;
}
.takeaways h2 {
  margin-top: 16px;
  font-size: 1.25rem;
}
.toc {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 20px 8px;
  margin: 24px 0;
  background: var(--card);
}
.toc ol {
  margin: 0;
  padding-left: 1.2em;
}
.toc li {
  margin: 4px 0;
  font-size: 0.98rem;
}
.guide section[id] {
  scroll-margin-top: 12px;
}
.callout {
  background: var(--warm);
  border: 1px solid var(--warm-edge);
  border-radius: 14px;
  padding: 12px 16px;
}
.examples {
  border-left: 3px solid var(--primary-ink);
  padding-left: 14px;
  margin: 14px 0 18px;
}
.examples .pair span[lang='es'] {
  font-weight: 600;
}
.steps-list li {
  margin: 6px 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 14px 0 18px;
}
table.plain {
  border-collapse: collapse;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.98rem;
}
table.plain th,
table.plain td {
  text-align: left;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
table.plain thead th {
  background: var(--soft);
  border-top: none;
  font-weight: 700;
}
.conj {
  margin: 16px 0 20px;
}
.conj figcaption {
  font-weight: 700;
  margin-bottom: 6px;
}
.conj table {
  border-collapse: collapse;
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.conj th,
.conj td {
  text-align: left;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
}
.conj thead th {
  border-top: none;
  background: var(--soft);
}
.conj tbody th {
  font-weight: 400;
  color: var(--mute);
  font-size: 0.92rem;
}
.conj td {
  font-weight: 700;
}
.quiz details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px;
  margin: 8px 0;
}
.quiz summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.quiz summary::-webkit-details-marker {
  display: none;
}
.quiz summary::after {
  content: 'Show answer';
  float: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-ink);
}
.quiz details[open] summary::after {
  content: '';
}
.quiz details p {
  margin: 8px 0 2px;
}
.qn {
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary-ink);
  font-size: 0.85rem;
  margin-right: 6px;
}
.practise {
  background: var(--soft);
  border-radius: 22px;
  padding: 4px 22px 6px;
  margin-top: 36px;
}
.level-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.level-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  text-decoration: none;
  color: var(--ink);
}
.level-links .lnum {
  font-size: 1rem;
  background: var(--soft);
  border-radius: 999px;
  min-width: 1.9em;
  text-align: center;
}
.guide-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.gstage {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gtitle {
  font-family: var(--heading);
  font-size: 1.2rem;
  line-height: 1.25;
}
.gdesc {
  font-size: 0.92rem;
  color: var(--mute);
}
.guide-links {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 18px 4px;
  margin: 28px 0 0;
  background: var(--card);
}
.guide-links ul {
  padding-left: 1.1em;
}
