/* Ramo website. Colors, fonts, radii and spacing come from assets/tokens.css only.
   Mobile first; breakpoints 768, 1100 (docs/02). */

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text-2);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
h1, h2, h3 { color: var(--text); font-family: var(--font-head); font-weight: 650; }
h1 { font-size: 44px; line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
strong { color: var(--text); font-weight: 650; }
code, .ipa { font-family: var(--font-mono); font-size: 13px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
[lang="pt"].pt, .pt { color: var(--lime); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--mint); color: var(--ink); padding: 10px 16px; border-radius: var(--r-btn); font-weight: 650;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 940px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-2); }
.mobile-only { display: block; }
.desktop-only { display: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
:target, section[id] { scroll-margin-top: 84px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-btn);
  font: 650 17px/1 var(--font-body); white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--line-2); color: var(--text); font-weight: 600; }
.btn-secondary:hover { border-color: var(--mint); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-weight: 600; }
.text-link svg { width: 18px; height: 18px; }
.text-link:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .btn, a { transition: none; }
  .btn-primary:hover { transform: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; flex: none; }
.logo svg { width: 112px; max-width: none; height: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-note { display: none; font-size: 14px; color: var(--text-3); }
.menu-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
}
.menu-button svg { width: 22px; height: 22px; }
.menu-close, .menu-button[aria-expanded="true"] .menu-open { display: none; }
.menu-button[aria-expanded="true"] .menu-close { display: inline; }
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
}
.site-nav a {
  display: flex; align-items: center; min-height: 48px; color: var(--text-2); font-weight: 500; font-size: 17px;
}
.site-nav a:hover { color: var(--text); }
.header-actions .btn-small span { display: inline; }

/* ---------- Shared pieces ---------- */
.eyebrow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
  font: 600 13px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--mint);
  margin-bottom: 14px;
}
.eyebrow-left { justify-content: flex-start; }
.eyebrow-pt { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); }
.eyebrow-pt::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--lime); }
.section-header { text-align: center; max-width: 900px; margin: 0 auto 40px; }
.section-header > p:not(.eyebrow) { max-width: 720px; margin: 16px auto 0; font-size: 17px; }
.body-large { font-size: 17px; line-height: 1.55; }
.body-large + .body-large { margin-top: 16px; }
.fine { font-size: 15px; color: var(--text-3); }
.fine-center { text-align: center; margin-top: 18px; }
.accent { color: var(--mint); }

.shot {
  width: 100%; border-radius: 14px; border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgb(0 0 0 / .45);
}
.shot-large { margin-bottom: 32px; }
.shot-narrow { max-width: 540px; justify-self: center; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px;
}
.card h3 { margin: 18px 0 10px; }
.card p { font-size: 16px; }
.card-row { display: flex; gap: 16px; align-items: flex-start; }
.card-row h3 { margin: 0 0 6px; }
.card-list { display: grid; gap: 14px; margin-top: 24px; }
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--mint) 12%, transparent); color: var(--mint);
}
.icon-tile svg { width: 20px; height: 20px; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

.checks { display: grid; gap: 14px; margin-top: 24px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 16px; }
.checks svg {
  flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: color-mix(in srgb, var(--mint) 14%, transparent); color: var(--mint); stroke-width: 2.4;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px;
  border-radius: var(--r-pill); font: 600 14px/1 var(--font-body); white-space: nowrap;
}
.pill svg { width: 14px; height: 14px; stroke-width: 2.4; }
.pill-yes { background: var(--deep); color: var(--mint); }
.pill-other { border: 1px solid var(--line-2); color: var(--text-2); }

.split { display: grid; gap: 32px; align-items: center; }
.split-top { align-items: start; }

/* ---------- Hero ---------- */
.hero { padding-top: 36px; overflow: hidden; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.lang-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--card); font-size: 14px;
  margin-bottom: 22px;
}
.lang-pill .pt { font-weight: 700; }
.lang-pill .ipa { color: var(--text-2); }
.lang-pill-meaning { padding-left: 12px; border-left: 1px solid var(--line-2); color: var(--text-2); }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 18px; margin-bottom: 26px; }
.actions { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-bottom: 22px; }
.pt-line { color: var(--text-3); margin-top: 4px; }
.hero-shot { margin-top: 36px; }
.hero-shot .shot { box-shadow: 0 -20px 120px color-mix(in srgb, var(--mint) 10%, transparent); }

/* ---------- Compare ---------- */
.compare-card { max-width: 1000px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { height: 64px; padding: 0 28px; border-top: 1px solid var(--line); text-align: left; }
.compare thead th {
  border-top: 0; font: 600 14px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.compare thead .compare-ramo { color: var(--mint); }
.compare tbody th { font-weight: 400; color: var(--text); font-size: 17px; }
.compare td, .compare thead th:not(:first-child) { text-align: center; width: 220px; white-space: nowrap; }
.footnote { max-width: 760px; margin: 48px auto 0; text-align: center; font-size: 14px; color: var(--text-3); }
.footnote-left { text-align: left; margin-top: 20px; }
.compare-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.compare-list li { display: flex; align-items: center; gap: 8px; padding: 14px 16px; color: var(--text); border-top: 1px solid var(--line); }
.compare-list li:first-child { border-top: 0; }
.compare-list li > span:first-child { flex: 1; }

/* ---------- The name ---------- */
.dictionary-word { font: 650 96px/1 var(--font-head); color: var(--mint); letter-spacing: -0.03em; }
.dictionary-meta { margin: 14px 0 18px; color: var(--text-2); }
.dictionary-meta .ipa { color: var(--text); margin-right: 8px; }
.dictionary-senses { list-style: decimal; padding-left: 22px; display: grid; gap: 10px; color: var(--text); margin-bottom: 22px; }
.highlight-title { font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; margin-bottom: 18px; }
.symbol-card {
  display: grid; gap: 32px; align-items: center; margin: 56px 0;
  background: var(--forest); border: 1px solid var(--line); border-radius: var(--r-card-lg); padding: 32px 24px;
}
.symbol-figure { display: grid; gap: 24px; align-items: center; }
.symbol-art { width: 160px; }
.anatomy { display: grid; gap: 14px; }
.anatomy dt { color: var(--text); font-weight: 600; font-size: 17px; }
.anatomy dd { font-size: 15px; }
.card-title-large { font-size: 24px; margin-bottom: 12px; }
.colors { margin-top: 24px; }
.color-card { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--card); }
.swatch { height: 140px; display: flex; align-items: flex-end; padding: 18px; font: 600 19px/1 var(--font-head); }
.swatch-forest { background: var(--forest); color: var(--text); }
.swatch-deep { background: var(--deep); color: var(--text); }
.swatch-mint { background: var(--mint); color: var(--ink); }
.swatch-lime { background: var(--lime); color: var(--ink); }
.color-text { padding: 18px; font-size: 15px; }
.color-pt { font: 600 13px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; }

/* ---------- Pricing and steps ---------- */
.steps { display: grid; gap: 26px; margin-top: 32px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps h3, .step-title { font: 600 19px/1.3 var(--font-head); color: var(--text); margin-bottom: 6px; }
.step-number {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--mint); color: var(--mint); font-weight: 600;
}
.steps-filled .step-number { border: 0; background: var(--deep); width: 40px; height: 40px; }
.price-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-card-lg); padding: 32px 24px; }
.price-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.price-card-head h3 { font-size: 22px; }
.chip { margin-left: auto; padding: 6px 12px; border-radius: var(--r-pill); background: var(--deep); color: var(--mint); font-size: 14px; font-weight: 600; white-space: nowrap; }
.price { display: flex; align-items: center; gap: 14px; }
.price-value { font: 700 72px/1 var(--font-head); color: var(--text); letter-spacing: -0.03em; }
.price-note { font-size: 17px; line-height: 1.45; }
.price-card .checks { margin: 26px 0 28px; }
.price-card .btn + .btn { margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 16px 0; cursor: pointer; list-style: none;
  font: 600 19px/1.35 var(--font-head); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-mark {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2);
}
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; border-radius: 1px;
  background: var(--text-2); transform: translate(-50%, -50%);
}
.faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--motion-quick) ease, opacity var(--motion-quick) ease; }
.faq-mark, .faq-mark::before { transition: background-color var(--motion-quick) ease, border-color var(--motion-quick) ease; }
.faq details[open] .faq-mark { background: var(--deep); border-color: var(--deep); }
.faq details[open] .faq-mark::before { background: var(--mint); }
.faq details[open] .faq-mark::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
.faq details p { padding: 0 54px 26px 0; font-size: 17px; }
.faq details { overflow: hidden; }
.faq a { color: var(--mint); text-decoration: underline; }

/* ---------- Closing call to action ---------- */
.cta-card {
  display: grid; gap: 24px; align-items: center;
  background: var(--forest); border: 1px solid var(--line); border-radius: var(--r-card-lg); padding: 36px 24px;
}
.cta-card h2 { margin-bottom: 14px; }
.cta-action { display: grid; justify-items: center; gap: 4px; }

/* ---------- Download ---------- */
.download h1 { margin: 26px 0 20px; }
.done-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--deep); color: var(--mint);
}
.done-mark svg { width: 30px; height: 30px; stroke-width: 2.4; }
.again { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; color: var(--text-3); }
.again code { color: var(--text-3); }
.need-card { padding: 30px; }
.card-label { font: 600 14px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.need-card .checks { margin: 22px 0; }
.need-card hr { border: 0; border-top: 1px solid var(--line); margin-bottom: 20px; }
.need-card p { margin-bottom: 10px; }
.placeholder { min-height: 50vh; }
.placeholder h1 { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 15px; }
.footer-top { display: grid; gap: 36px; }
.footer-brand p { margin-top: 16px; }
.footer-columns { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; justify-content: start; }
.footer-title { font: 600 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer-columns ul { display: grid; gap: 4px; }
.footer-columns a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-2); }
.footer-columns a:hover { color: var(--text); }
.footer-bottom { display: grid; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

/* ---------- Tablet (768+) ---------- */
@media (min-width: 768px) {
  .container { padding: 0 48px; }
  .mobile-only { display: none; }
  .desktop-only { display: block; }
  .section { padding: 80px 0; }
  h1 { font-size: 64px; }
  h2 { font-size: 44px; }
  .hero-text { align-items: center; text-align: center; }
  .hero .lead { max-width: 720px; font-size: 21px; }
  .actions { flex-direction: row; justify-content: center; width: auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr auto; }
  .footer-columns { gap: 80px; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .cta-card { grid-template-columns: 1fr auto; padding: 56px 64px; }
  .header-note { display: inline; }
}

/* ---------- Desktop (1100+) ---------- */
@media (min-width: 1100px) {
  .container { padding: 0 var(--page-pad); }
  .section { padding: var(--section-y) 0; }
  h1 { font-size: 92px; line-height: 1.02; }
  h2 { font-size: 52px; }
  .header-inner { min-height: 84px; }
  .logo svg { width: 140px; }
  .site-nav { display: block; position: static; margin: 0 auto; padding: 0; background: none; border: 0; }
  .site-nav ul { display: flex; gap: 32px; }
  .site-nav a { min-height: 44px; font-size: 17px; }
  .menu-button { display: none; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split-image-conflicts { grid-template-columns: 0.85fr 1.15fr; margin-top: 160px; }
  .highlight { margin-top: 96px; }
  .highlight-reverse > :first-child { order: 2; }
  .highlight-title { font-size: 44px; }
  .symbol-card { grid-template-columns: 1.1fr 1fr; padding: 72px 96px; }
  .symbol-figure { grid-template-columns: auto 1fr; gap: 48px; }
  .symbol-art { width: 220px; }
  .split-pricing { grid-template-columns: 1.2fr 1fr; gap: 120px; }
  .price-card { padding: 40px; }
  .split-download { grid-template-columns: 1.3fr 1fr; gap: 120px; align-items: start; }
  .download h1 { font-size: 64px; }
}

/* ---------- Narrow phones: the header Download button keeps its icon only ---------- */
@media (max-width: 389px) {
  .header-actions .btn-small span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Ramo Help (the app's pages) ---------- */
.help-layout { display: grid; gap: 32px; }
.help-nav { display: none; }
.help-nav ul { display: grid; gap: 2px; margin-bottom: 20px; }
.help-nav a { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; color: var(--text-2); }
.help-nav a:hover { color: var(--text); background: var(--card); }
.help-nav a[aria-current="page"] { color: var(--text); background: var(--card-2); font-weight: 600; }
.help-group { font: 600 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 0 12px 10px; }
.help-article { max-width: 720px; }
.help-article h1 { font-size: 40px; margin-bottom: 20px; }
.help-article h2 { font-size: 26px; margin: 36px 0 12px; }
.help-article h3 { margin: 24px 0 8px; }
.help-article p, .help-article li { font-size: 17px; }
.help-article p + p { margin-top: 12px; }
.help-article .help-ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.help-article .help-ol { list-style: decimal; padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.help-article code, kbd { font-family: var(--font-mono); font-size: 14px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.help-article pre { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; margin: 12px 0; }
.help-article pre code { border: 0; padding: 0; background: none; }
.help-tip { margin: 16px 0; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--mint) 10%, transparent); color: var(--text); }
.help-index { display: grid; gap: 8px; margin-top: 24px; }
.help-index a { color: var(--mint); font-weight: 600; }
@media (min-width: 1100px) {
  .help-layout { grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
  .help-nav { display: block; position: sticky; top: 108px; }
}

/* ---------- Legal pages ---------- */
.legal-article { max-width: 760px; margin: 0 auto; }
.legal-date { color: var(--text-3); font-size: 15px; margin-bottom: 20px; }
.legal-article h2 { font-size: 22px; margin: 32px 0 10px; }
.legal-article a { color: var(--mint); text-decoration: underline; }
