/* Orso landing — neo-brutalist system, brand palette */
:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --ink: #14120e;
  --muted: #5f5a50;
  --line: #171512;
  --paper: #ffffff;
  --green: #54c203;
  --green-dark: #388c00;
  --sky: #1a72d8;
  --amber: #ff9633;
  --cream: #f8f2dd;
  --shadow: 8px 8px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }

h1, h2, h3, .mega, .metric, .kicker, .eyebrow, .button, .chip, .logo {
  font-family: Geologica, Inter, ui-sans-serif, system-ui, sans-serif;
}
h1 { font-size: clamp(42px, 8.5vw, 96px); line-height: .92; font-weight: 900; letter-spacing: -0.01em; margin: 0 0 22px; }
h2 { font-size: clamp(30px, 5vw, 54px); line-height: .98; font-weight: 800; margin: 0 0 14px; }
h3 { font-size: 21px; line-height: 1.1; font-weight: 800; margin: 0 0 10px; }
.lede { font-size: clamp(18px, 2.4vw, 23px); line-height: 1.3; color: #2b2620; max-width: 760px; margin: 0 0 28px; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); margin: 0 0 14px; }
.eyebrow .ipa { text-transform: none; color: var(--sky); }
.ipa { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* nav */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 246, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; text-decoration: none; }
.logo img { width: 34px; height: 34px; border: 2px solid var(--line); }
.nav-links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav-links a { font-weight: 700; font-size: 14px; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.lang { font-weight: 800; font-size: 13px; border: 2px solid var(--line); padding: 4px 8px; text-decoration: none; background: var(--paper); }
.lang:hover { background: var(--cream); }

/* language dropdown (native <details>) */
.lang-dd { position: relative; font-family: Geologica, sans-serif; }
.lang-dd summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; border: 2px solid var(--line); padding: 4px 9px; background: var(--paper); user-select: none; }
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary:hover { background: var(--cream); }
.lang-dd .caret { font-size: 9px; transition: transform .15s ease; }
.lang-dd[open] summary { background: var(--cream); }
.lang-dd[open] .caret { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 140px; border: 2px solid var(--line); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); z-index: 30; padding: 4px; }
.lang-menu a { display: block; padding: 7px 10px; font-weight: 700; font-size: 14px; text-decoration: none; }
.lang-menu a:hover { background: var(--cream); }
.lang-menu a.active { background: var(--green); }
[dir="rtl"] .lang-menu { right: auto; left: 0; box-shadow: -6px 6px 0 var(--ink); }
[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .section-head, [dir="rtl"] .footer-inner, [dir="rtl"] .hero-actions { direction: rtl; }
[dir="rtl"] .quote { border-left: none; border-right: 6px solid var(--green); }
[dir="rtl"] .phone-top, [dir="rtl"] .submit-row { direction: rtl; }

/* buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 2px solid var(--line); border-radius: 0;
  background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
  box-shadow: 5px 5px 0 var(--line);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--line); }
.button.cta { background: var(--green); color: var(--ink); }
.button.small { min-height: 38px; padding: 0 14px; font-size: 14px; box-shadow: 4px 4px 0 var(--line); }

/* sections */
section { border-bottom: 2px solid var(--line); }
.hero { padding: 64px 0 56px; }
.section { padding: 64px 0; }
.compact { padding: 46px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }

/* grid + cards */
.grid { display: grid; gap: 18px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 2px solid var(--line); background: var(--paper);
  padding: 22px; box-shadow: var(--shadow);
}
.card.accent { background: var(--green); }
.card.sky { background: var(--sky); color: var(--paper); }
.card.amber { background: var(--amber); }
.card.dark { background: var(--ink); color: var(--cream); }
.card.dark .kicker { color: var(--green); }
.card.dark p { color: #cfc9bb; }
.card p { margin: 0; font-size: 15px; line-height: 1.45; }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; margin: 0 0 10px; color: var(--muted); }
.card.accent .kicker, .card.amber .kicker { color: #1c3a00; }
.card.sky .kicker { color: var(--paper); }
.metric { font-size: clamp(34px, 4.5vw, 46px); line-height: 1; font-weight: 900; margin: 0 0 8px; }
.mega { font-size: clamp(54px, 9vw, 104px); line-height: .88; font-weight: 900; margin: 0 0 14px; }

/* hero layout */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.store-badge { display: inline-block; transition: transform .16s ease; }
.store-badge:hover { transform: translate(-2px, -2px); }
.store-badge svg { display: block; height: 56px; width: auto; }

/* phone mockup */
.phone {
  border: 2px solid var(--line); background: var(--paper);
  box-shadow: 12px 12px 0 var(--ink);
  max-width: 340px; margin: 0 auto; padding: 18px 18px 22px;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; margin-bottom: 16px; }
.phone-level { border: 2px solid var(--line); background: var(--cream); padding: 3px 8px; }
.phone-streak { color: var(--amber); }
.phone-phrase { font-family: Geologica, sans-serif; font-size: 28px; font-weight: 900; line-height: 1.05; margin: 0 0 6px; }
.phone-ipa { font-size: 16px; color: var(--sky); margin: 0 0 4px; }
.phone-hint { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.phone-feedback {
  display: inline-block; border: 2px solid var(--line);
  background: var(--green); font-weight: 800; font-size: 14px;
  padding: 6px 10px; margin-bottom: 18px;
}
.phone-mic {
  width: 74px; height: 74px; margin: 0 auto;
  border: 2px solid var(--line); background: var(--green);
  box-shadow: 5px 5px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.phone-mic svg { width: 32px; height: 32px; }
.phone-listen { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); margin: 12px 0 0; }
.dots span {
  display: inline-block; width: 6px; height: 6px; background: var(--green);
  margin-left: 4px; animation: bounce 1.2s infinite;
}
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .dots span { animation: none; }
  html { scroll-behavior: auto; }
  .button, .store-badge { transition: none; }
}

/* steps flow */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.flow .card { background: var(--cream); }
.flow .step-num { font-family: Geologica, sans-serif; font-size: 15px; font-weight: 900; color: var(--paper); background: var(--ink); display: inline-block; padding: 2px 9px; margin-bottom: 12px; }

/* topics gallery */
.gallery-card { padding: 0; overflow: hidden; }
.gallery-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 2px solid var(--line); }
.gallery-card figcaption { padding: 14px 18px 18px; font-weight: 700; font-size: 15px; }
.gallery-card figcaption .muted { display: block; font-weight: 400; font-size: 13px; margin-top: 2px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { border: 2px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 700; padding: 6px 12px; }

/* privacy quote */
.quote {
  border-left: 6px solid var(--green); background: var(--paper);
  border-top: 2px solid var(--line); border-right: 2px solid var(--line); border-bottom: 2px solid var(--line);
  padding: 18px 22px; margin: 0; font-size: 17px; box-shadow: var(--shadow);
}
.quote cite { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* faq */
.faq details { border: 2px solid var(--line); background: var(--paper); margin-bottom: 14px; box-shadow: 5px 5px 0 var(--ink); }
.faq summary {
  cursor: pointer; font-family: Geologica, sans-serif; font-weight: 800; font-size: 17px;
  padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::after { content: "+"; font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: #2b2620; }

/* final cta */
.final { text-align: center; padding: 80px 0; }
.final .hero-actions { justify-content: center; margin-top: 10px; }

/* footer */
footer { padding: 34px 0 56px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer a { color: inherit; }

/* subpages: privacy & contact */
.page-wrap { max-width: 760px; margin: 0 auto; padding: 48px 16px 80px; }
.back-link { display: inline-block; font-size: 13px; font-weight: 800; font-family: Geologica, sans-serif; text-decoration: none; border: 2px solid var(--line); background: var(--paper); padding: 5px 10px; margin-bottom: 28px; box-shadow: 3px 3px 0 var(--ink); }
.back-link:hover { background: var(--cream); }
.page-wrap h1 { font-size: clamp(34px, 6vw, 56px); }
.updated { font-size: 13px; color: var(--muted); margin: 0 0 34px; }
.prose h2 { font-size: 24px; margin: 38px 0 10px; }
.prose p, .prose li { color: #2b2620; line-height: 1.6; font-size: 16px; }
.prose ul { padding-inline-start: 22px; }
.prose .tldr { border: 2px solid var(--line); background: var(--cream); padding: 16px 20px; box-shadow: var(--shadow); font-size: 16px; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; font-family: Geologica, sans-serif; font-weight: 800; }
.prose a { color: var(--sky); text-underline-offset: 2px; }
.prose strong { font-weight: 800; }

/* blog */
.crumb { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.byline { font-size: 13px; color: var(--muted); margin: 0 0 34px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.byline .dot { opacity: .5; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 2px solid var(--line); box-shadow: var(--shadow); }
.ctable { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
.ctable th, .ctable td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.ctable thead th { background: var(--ink); color: var(--cream); font-family: Geologica, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.ctable tbody tr:last-child td { border-bottom: none; }
.ctable tbody tr:nth-child(even) { background: var(--cream); }
.article-cta { border: 2px solid var(--line); background: var(--green); box-shadow: var(--shadow); padding: 26px 24px; margin: 40px 0 10px; }
.article-cta h3 { margin: 0 0 6px; color: #0f2600; }
.article-cta p { margin: 0 0 16px; color: #163a00; }
.faqq { border-top: 2px solid var(--line); padding-top: 18px; margin-top: 12px; }
.faqq h3 { margin: 22px 0 6px; font-size: 18px; }
.faqq p { margin: 0 0 4px; }

/* blog index cards */
.post-list { display: grid; gap: 18px; margin-top: 8px; }
.post-card { display: block; border: 2px solid var(--line); background: var(--paper); box-shadow: var(--shadow); padding: 22px 24px; text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.post-card:hover { transform: translate(-2px, -2px); box-shadow: 11px 11px 0 var(--ink); }
.post-card h2 { font-size: 22px; margin: 0 0 8px; }
.post-card p { margin: 0 0 10px; color: #2b2620; font-size: 15px; line-height: 1.5; }
.post-card .meta { font-size: 12px; color: var(--muted); font-weight: 700; }

.cform .field { margin-bottom: 20px; position: relative; }
.cform label { display: block; font-family: Geologica, sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.cform input, .cform textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 0; background: var(--paper);
  color: var(--ink); font: inherit; font-size: 15px;
}
.cform input:focus, .cform textarea:focus { outline: 3px solid var(--green); outline-offset: 2px; box-shadow: 4px 4px 0 var(--ink); }
.cform textarea { min-height: 150px; resize: vertical; }
.cform .field.invalid input, .cform .field.invalid textarea { border-color: #c81e1e; background: #fdf1f1; }
.cform .field-error { color: #c81e1e; font-size: 13px; margin-top: 6px; min-height: 15px; }
.cform .msg-count { font-size: 12px; color: var(--muted); text-align: right; margin-top: 6px; }
.cform .msg-count.over { color: #c81e1e; font-weight: 700; }
.cform .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cform .submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.cform button[type=submit] { -webkit-appearance: none; appearance: none; font: inherit; }
.cform button[type=submit]:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.cform .form-status { font-size: 14px; color: var(--muted); }
.cform .form-status.err { color: #c81e1e; }
.thanks-card { border: 2px solid var(--line); background: var(--paper); box-shadow: var(--shadow); padding: 36px 28px; text-align: center; }
.thanks-card .check { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--line); background: var(--green); font-size: 22px; font-weight: 900; margin-bottom: 14px; }
.thanks-card h3 { margin: 0 0 8px; }
.thanks-card p { color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .two, .three, .four, .flow { grid-template-columns: 1fr; }
  .card, .quote { box-shadow: 6px 6px 0 var(--ink); }
  .phone { box-shadow: 8px 8px 0 var(--ink); }
  .nav-links a.nav-anchor { display: none; }
}
