/* Hybrido — informational site
   Brand tokens mirror ios/Hybrido/Assets.xcassets (Forest / Sand / Paper / Amber).
   Self-contained: no external fonts, scripts, or images. */

:root {
  /* Brand */
  --forest-deep: #063D2E;
  --forest: #0A5C45;
  --forest-mid: #0A5C45;
  --green-accent: #1E8A65;
  --green-glow: #4AE0A8;
  --amber: #F0A500;

  /* Surfaces (light) */
  --sand: #F5F2EC;
  --paper: #FFFFFF;
  --sand-mid: #C9C2B8;
  --ink: #1C1C1E;
  --ink-soft: #5A5A5E;
  --hairline: #E7E2D8;

  --bg: var(--sand);
  --surface: var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --border: var(--hairline);
  --brand: var(--forest);
  --brand-strong: var(--forest-deep);
  --badge-bg: var(--ink);
  --office-fg: #fff;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(6, 61, 46, .05), 0 12px 32px rgba(6, 61, 46, .07);
  --shadow-sm: 0 1px 2px rgba(6, 61, 46, .06);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Keep the sticky header (64px) from covering anchor targets when jumping to them. */
#top, section[id], #download { scroll-margin-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--forest-deep) 92%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: #fff;
}
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: rgba(255, 255, 255, .82); font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; text-decoration: none; }
@media (max-width: 640px) { .nav a.nav-hide { display: none; } }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .18);
}
.lang a {
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 4px 7px;
  border-radius: 6px;
}
.lang a:hover { color: #fff; text-decoration: none; }
.lang a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .14); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-soft);
  margin: 0 0 32px;
}
.hero .badges { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .phone-col { order: -1; }
}

/* ---------- Store badges ---------- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 54px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--badge-bg);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-badge:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .txt small { font-size: 10px; opacity: .82; text-transform: uppercase; letter-spacing: .04em; }
.store-badge .txt strong { font-size: 17px; font-weight: 600; }
.store-badge[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- Coming-soon note (shown in place of store badges until launch) ---------- */
.soon-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  color: var(--brand-strong);
  font-weight: 600;
  font-size: 15px;
}
.soon-note svg { flex: none; color: var(--brand); }

/* ---------- Phone frame (holds a real screenshot) ---------- */
.phone {
  width: 300px;
  max-width: 82%;
  margin: 0 auto;
  border-radius: 44px;
  background: #0f1512;
  padding: 10px;
  box-shadow: var(--shadow);
}
.phone .screen {
  border-radius: 34px;
  overflow: hidden;
  display: block;
  background: #fff;
  line-height: 0;
}
.phone .screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Screenshot gallery ---------- */
/* Tightened against the fold: on a laptop the whole trio has to land in view
   after jumping to #screens, so this section runs a shorter head than the rest. */
#screens .section-head { margin-bottom: 28px; }
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}
.shots figure { margin: 0; text-align: center; }
/* Phones are tall (19.5:9); trade width for height so short windows still fit. */
.shots .phone { width: clamp(200px, 27vh, 260px); }
.shots figcaption {
  margin-top: 20px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
}
.shots figcaption span {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-soft);
}
@media (max-width: 780px) {
  .shots { grid-template-columns: 1fr; gap: 48px; }
  .shots .phone { width: 280px; }
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
/* Both are nav anchor targets: a shorter top means a jump doesn't spend the
   fold on empty space before the content starts. */
#features, #screens { padding-top: 40px; }
.section-head { margin: 0 0 40px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -.02em;
  margin: 0 0 12px;
  font-weight: 800;
}
.section-head p { color: var(--text-soft); font-size: 17px; margin: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* Privacy / support strip */
.strip {
  background: var(--forest-deep);
  color: #EAF3EE;
  border-radius: var(--radius);
  padding: 26px 32px;
  gap: 28px;
  align-items: center;
}
.strip h2 { color: #fff; font-size: 21px; letter-spacing: -.02em; margin: 0 0 6px; }
.strip p { color: #C7D8CF; margin: 0; font-size: 15px; }
.strip p + p { margin-top: 12px; }
.strip .pts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.strip .pts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #EAF3EE; }
.strip .pts li svg { width: 18px; height: 18px; flex: none; color: var(--green-glow); margin-top: 2px; }
@media (max-width: 720px) { .strip { grid-template-columns: 1fr; padding: 24px 24px; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--text-soft); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.02em; margin: 0 0 8px; }
.contact p { color: var(--text-soft); font-size: 17px; margin: 0 0 24px; }
.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  background: var(--surface);
  font-weight: 600;
  font-size: 16px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.email-btn:hover { background: var(--brand); color: #fff; text-decoration: none; transform: translateY(-1px); }
.email-btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  padding: 40px 0;
  margin-top: 24px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }

/* ---------- Legal page ---------- */
.legal { padding: 56px 0 24px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.02em; margin: 0 0 6px; }
.legal .updated { color: var(--text-soft); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-size: 20px; letter-spacing: -.01em; margin: 34px 0 10px; }
.legal p { color: var(--text); margin: 0 0 14px; }
.legal ul { color: var(--text); padding-left: 22px; margin: 0 0 14px; }
.legal li { margin: 6px 0; }
.legal .back { display: inline-block; margin-bottom: 28px; font-size: 15px; font-weight: 500; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
