/* ---------------------------------------------------------------------------
   Posta guides, slang and vos pages (built by che/scripts/site/build-learn.mjs).
   Same figuritas look as the landing: oat page, ink outlines with a hard
   shadow, rosa only for the one thing to act on.
   --------------------------------------------------------------------------- */

:root {
  --oat: #F7EFE6;
  --canvas: #EFE4D8;
  --surface: #FFF9F3;
  --line: #E6D8C8;
  --ink: #3A2A20;
  --ink-2: #7A6556;
  --rosa: #B44A60;
  --rosa-dark: #8A3347;
  --butter: #FFE08A;
  --sky: #A9D6F5;
  --sage: #A8D5BA;
  --peach: #FFB38A;
  --no-wash: #F1D9CE;
  --no-ink: #94371F;
  --stick: 0 0 0 2.5px var(--ink), 3px 4px 0 2.5px var(--ink);
  --stick-chip: 0 0 0 2px var(--ink), 2px 3px 0 2px var(--ink);
  --display: "Gabarito", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--oat);
  color: var(--ink);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rosa); text-underline-offset: 3px; }
a:hover { color: var(--rosa-dark); }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Top bar */
.top { padding-block: 18px; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px/1 var(--display); }
.brand img { border-radius: 10px; box-shadow: var(--stick-chip); }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--ink-2); }

/* Article */
main { padding-block: 12px 56px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 900; letter-spacing: -0.01em; margin: 18px 0 14px; }
h2 { font-size: clamp(23px, 3.6vw, 29px); font-weight: 800; margin: 44px 0 12px; }
h3 { font-size: 19px; font-weight: 800; margin: 26px 0 8px; }
p { margin: 0 0 14px; max-width: 66ch; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }
.lede { font-size: 19px; color: var(--ink-2); }
.updated { font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }
strong { font-weight: 800; }

/* The short answer under a question heading */
.answer {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--stick);
  padding: 18px 20px;
  margin: 6px 0 22px;
  font-size: 18px;
}
.answer p:last-child { margin-bottom: 0; }

/* Word header on slang pages */
.word { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 8px; }
.word h1 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--canvas); box-shadow: var(--stick-chip); }
.chip.rude { background: var(--no-wash); color: var(--no-ink); }
.chip.daily { background: var(--butter); }

/* Example sentences */
.examples { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; }
.examples li { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 2px var(--line); padding: 12px 16px; margin: 0; }
.examples .es { display: block; font-weight: 800; font-size: 18px; }
.examples .en { display: block; color: var(--ink-2); }

/* Tables */
.table { overflow-x: auto; margin: 0 0 20px; border-radius: 14px; box-shadow: 0 0 0 2px var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 800 13px/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); background: var(--canvas); }
tr:last-child td { border-bottom: 0; }
td.vos { font-weight: 800; color: var(--rosa-dark); }
td.tu { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(122,101,86,.5); }

/* Word and verb grids */
.grid { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 480px) {
  th, td { padding: 8px 10px; font-size: 15px; }
  .grid a { padding: 9px 12px; }
}
.grid li { margin: 0; }
.grid a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 2px var(--line); color: var(--ink); text-decoration: none; transition: box-shadow 160ms var(--ease-out), transform 160ms var(--ease-out); }
.grid a:hover { box-shadow: var(--stick-chip); transform: translateY(-1px); }
.grid b { font: 800 17px/1.25 var(--display); }
.grid span { font-size: 14px; color: var(--ink-2); line-height: 1.35; }

/* Numbered list of words (top 50) */
.ranked { list-style: none; padding: 0; counter-reset: w; display: flex; flex-direction: column; gap: 14px; }
.ranked li { counter-increment: w; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; margin: 0; }
.ranked li::before { content: counter(w); font: 900 18px/40px var(--display); text-align: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sky); box-shadow: var(--stick-chip); }
.ranked h3 { margin: 6px 0 4px; }
.ranked h3 a { color: var(--ink); }
.ranked p { margin: 0 0 4px; }
.ranked .ex { color: var(--ink-2); font-size: 16px; }

/* Call to action */
.cta {
  margin: 44px 0 0;
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--stick);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.cta img { border-radius: 16px; box-shadow: var(--stick-chip); }
.cta h2 { margin: 0 0 6px; font-size: 22px; }
.cta p { margin: 0 0 14px; color: var(--ink-2); }
.cta .stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .stores img { box-shadow: none; border-radius: 0; height: 44px; width: auto; }
.cta .soon { font-size: 14px; font-weight: 700; color: var(--ink-2); }
@media (max-width: 480px) { .cta { grid-template-columns: 1fr; } }

.related { margin-top: 36px; }

.note { font-size: 15px; color: var(--ink-2); }

/* Footer */
.foot { border-top: 2px solid var(--line); padding-block: 26px 40px; font-size: 14px; color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.foot a { color: var(--ink-2); }

/* Best-app page: the landing page's store shots, both badges and the waitlist
   card (wired by /script.js, same as the home page). */
.shots { margin: 26px calc(-1 * max(20px, env(safe-area-inset-left, 0px))) 0; padding: 4px 0 10px; overflow: hidden; }
@media (min-width: 800px) { .shots { margin-inline: 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); } }
.shots-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.shots.is-held .shots-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.shots-list { display: flex; gap: 12px; margin: 0; padding: 0 12px 0 0; list-style: none; }
.shots-list li { flex: none; width: min(40vw, 190px); margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 2px var(--ink); background: var(--oat); }
.get { display: grid; gap: 12px; margin: 14px 0 8px; }
.get .badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.get .badge { display: block; border-radius: 8px; transition: transform 160ms var(--ease-out); }
.get .badge img { display: block; height: 44px; width: auto; box-shadow: none; border-radius: 0; }
.get .badge[href]:active { transform: scale(0.97); }
.get .badge[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .get .badge[href]:hover { transform: translateY(-2px); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 24px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--rosa); box-shadow: var(--stick);
  color: #fff; font: 800 17px/1 var(--body); white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--rosa-dark); } }
.waitlist {
  display: grid; gap: 14px; width: 100%; max-width: 480px; padding: 18px;
  border-radius: 24px; background: var(--surface); box-shadow: var(--stick);
  animation: card-in 220ms var(--ease-out) both;
}
.cta .waitlist { background: var(--oat); }
.waitlist[hidden] { display: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } }
.waitlist p { margin: 0; }
.waitlist-intro { display: grid; gap: 4px; color: var(--ink-2); font-size: 15px; line-height: 1.4; text-wrap: pretty; }
.waitlist-intro strong { font: 800 19px/1.15 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input[type="email"] {
  flex: 1 1 190px; min-width: 0; min-height: 54px; padding: 0 16px;
  border: 0; border-radius: 16px; outline: 0; background: #fff;
  box-shadow: 0 0 0 2px rgba(58,42,32,.22);
  font: 600 16px/1 var(--body); color: var(--ink); transition: box-shadow 160ms ease;
}
.waitlist input[type="email"]::placeholder { color: rgba(58,42,32,.4); }
.waitlist input[type="email"]:focus { box-shadow: 0 0 0 2.5px var(--rosa); }
.waitlist .btn { flex: 1 0 auto; }
.waitlist-note { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.waitlist-note:empty { display: none; }
.waitlist.is-done > :not(.waitlist-note) { display: none; }
.waitlist.is-done .waitlist-note { font-size: 17px; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .shots-track { animation: none; }
  .shots { overflow-x: auto; }
  .waitlist { animation: none; }
}
