/* Esbayeni site: home, prices, contact, privacy, terms. Phone first; the app's own
   colours and fonts so the site and the app read as one thing. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-600-latin.woff2") format("woff2"); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-700-latin.woff2") format("woff2"); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-700-latin.woff2") format("woff2"); }
:root {
  --kraal: #173D27;  /* app header */
  --leaf: #1E5434;   /* app buttons */
  --tag: #F7E36B;    /* ear tag */
  --veld: #DCD3B8;   /* dry winter grass */
  --cream: #F2F1EB;  /* app background */
  --ink: #172015;
  --muted: #545B50;
  --line: #D8D6CB;
  --rust: #9A3209;
  --warn: #FBE6DA;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* .form is display: grid, which beats the UA rule */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.5 'Barlow', Arial, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--leaf); font-weight: 700; }
h1, h2, h3 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; line-height: 1; margin: 0; letter-spacing: -0.3px; }
h1 { font-size: clamp(44px, 12vw, 80px); }
h2 { font-size: clamp(34px, 8vw, 52px); }
h3 { font-size: 26px; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 2px; }

/* Header: the app's green bar, logo tile, two links and the way into the app. */
.top { background: var(--kraal); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: 28px; margin-right: auto; }
.brand img { width: 38px; height: 38px; display: block; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: #fff; text-decoration: none; white-space: nowrap; font-size: 16px; padding: 0 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tag); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav .open { background: var(--tag); color: var(--kraal); margin-left: 6px; padding: 0 14px; }
@media (max-width: 419px) { .nav .hide-xs { display: none; } }
@media (max-width: 359px) { .brand { font-size: 24px; gap: 8px; } .brand img { width: 32px; height: 32px; } .nav a { padding: 0 8px; } .nav .open { padding: 0 12px; } }

/* Buttons: big enough for a thumb in a glove. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 24px; border-radius: 14px; font: 700 19px/1 'Barlow', Arial, sans-serif; text-decoration: none; border: 2px solid var(--leaf); cursor: pointer; }
.btn.go { background: var(--leaf); color: #fff; }
.btn.alt { background: #fff; color: var(--leaf); }
.btn.tag { background: var(--tag); color: var(--kraal); border-color: var(--tag); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.small { font-size: 15px; color: var(--muted); }

/* Hero */
.hero { background: var(--veld); padding: 36px 0 0; overflow: hidden; }
.hero .wrap { display: grid; gap: 28px; }
.hero h1 { color: var(--kraal); }
.eyebrow { display: inline-block; background: var(--tag); color: var(--kraal); font-weight: 700; font-size: 15px; padding: 4px 10px; border-radius: 8px; margin-bottom: 14px; }
.lede { font-size: 20px; margin: 16px 0 22px; max-width: 34ch; }
.hero .small { margin-top: 12px; }
/* The phone is the posters' iPhone frame, baked into the image by marketing/framed.py. */
.phone { width: min(270px, 72vw); margin: 0 auto -60px; filter: drop-shadow(0 30px 40px rgba(10, 25, 15, .3)); }
.phone img { display: block; width: 100%; }
@media (min-width: 860px) {
  .hero { padding: 64px 0; }
  .hero .wrap { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .hero .phone { margin-bottom: 0; width: 290px; }
}

/* Sections */
.sec { padding: 64px 0; }
.sec + .sec { padding-top: 8px; }
.sec.first { padding-top: 96px; }
.sec h2 { margin-bottom: 12px; }
.sec .intro { color: var(--muted); max-width: 52ch; margin-bottom: 24px; }
.band { background: var(--kraal); color: #fff; }
.band h2 { color: #fff; }
.band .intro, .band p { color: #E6EDE7; }
.band.sec, .sec.band { padding: 56px 0; }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3 { margin: 10px 0 6px; font-size: 25px; }
.card p { color: var(--muted); }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tag); color: var(--kraal); display: inline-flex; align-items: center; justify-content: center; }
.ico svg { width: 26px; height: 26px; }

.split { display: grid; gap: 28px; align-items: center; }
.split .phone { margin: 0 auto; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }

.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 19px; font-weight: 600; counter-increment: s; }
.steps li::before { content: counter(s); flex: none; width: 44px; height: 44px; border-radius: 10px; border: 3px solid var(--ink); background: var(--tag); display: inline-flex; align-items: center; justify-content: center; font: 700 24px/1 'Barlow Condensed', sans-serif; }

/* Prices */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.plan.pick { border: 3px solid var(--leaf); }
.plan .name { font: 700 30px/1 'Barlow Condensed', sans-serif; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan .badge { font: 700 13px/1 'Barlow', sans-serif; background: var(--tag); color: var(--kraal); padding: 5px 8px; border-radius: 6px; }
.plan .for { color: var(--muted); }
.price { font: 700 52px/1 'Barlow Condensed', sans-serif; }
.price small { font: 600 17px/1 'Barlow', sans-serif; color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--leaf); }
.plan .btn { width: 100%; }
.note { background: var(--tag); color: var(--kraal); border-radius: 16px; padding: 16px 18px; font-weight: 600; margin-bottom: 20px; }
.mini { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.mini > div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; padding: 14px 16px; }
.mini b { display: block; font: 700 22px/1.1 'Barlow Condensed', sans-serif; color: #fff; }
.mini span { font: 700 34px/1.1 'Barlow Condensed', sans-serif; color: var(--tag); }

/* Questions */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--leaf); flex: none; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

/* Contact form */
.form { display: grid; gap: 16px; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form label span { font-weight: 400; color: var(--muted); font-size: 15px; }
.form input, .form select, .form textarea { font: 18px/1.3 'Barlow', Arial, sans-serif; color: var(--ink); width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid #C9C7BB; border-radius: 12px; background: #fff; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--leaf); outline: none; }
.form .err { color: var(--rust); font-weight: 600; }
.form .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.done { background: #E3EFE6; border: 2px solid var(--leaf); border-radius: 16px; padding: 18px; max-width: 560px; }
.done h3 { margin-bottom: 6px; }
.done.wait { background: #FFF6CF; border-color: #B58B00; }

/* Long reads (privacy, terms) */
.doc { max-width: 720px; padding: 32px 0 64px; }
.doc h1 { font-size: clamp(40px, 10vw, 60px); margin-bottom: 6px; }
.doc h2 { font-size: 28px; margin: 32px 0 8px; }
.doc p, .doc li { color: #2C352A; }
.doc p + p { margin-top: 12px; }
.doc .lang { display: flex; gap: 8px; margin: 16px 0; }
.doc .lang a { padding: 8px 14px; border: 1px solid #C9C7BB; border-radius: 999px; background: #fff; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.doc section + section { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 8px; }

/* Footer */
.foot { background: var(--kraal); color: #E6EDE7; padding: 36px 0 44px; font-size: 16px; }
.foot .wrap { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.foot .by { font: 700 24px/1.1 'Barlow Condensed', sans-serif; color: var(--tag); }

/* Wide screens, after the base rules so they win. */
@media (min-width: 860px) {
  .sec.first { padding-top: 72px; }
  .cards { grid-template-columns: repeat(3, 1fr); } /* six cards: 3 + 3, never 4 + 2 */
}
