/* ============================================================================
   OTTO — marketing site design system
   Warm coral -> pink light theme, mirrored from expo/theme/tokens.ts.
   Bold, tight typography. No tinted icon badges, no decorative chrome emoji.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-top: #f6e6ec;
  --bg-mid: #f2e4f1;
  --bg-bottom: #fbe3dd;
  --glow-coral: rgba(255, 138, 101, 0.35);
  --glow-pink: rgba(232, 75, 138, 0.28);

  /* Ink */
  --ink: #17131c;
  --ink-soft: #3a3340;
  --muted: #857e8c;
  --faint: #b4aebc;

  /* Cards */
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --card-border: rgba(23, 19, 28, 0.06);
  --hairline: rgba(23, 19, 28, 0.08);

  /* Accent (straight from the logo gradient) */
  --coral: #ff8a5b;
  --pink: #ff4d8d;
  --magenta: #e0428c;
  --bolt: #ff9f1c;
  --accent: linear-gradient(110deg, #ff8a5b 0%, #ff4d8d 55%, #e0428c 100%);
  --accent-v: linear-gradient(180deg, #ff8a5b 0%, #ff4d8d 55%, #e0428c 100%);
  --spice: linear-gradient(110deg, #ffc56b, #ff8a5b 38%, #ff4d8d 72%, #e0428c);

  /* Dark chat panel (the message-screenshot world) */
  --chat-panel: #141318;

  --green: #1fb873;

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --r-full: 999px;

  /* Type */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shadows (warm) */
  --shadow-soft: 0 4px 10px rgba(122, 46, 74, 0.08);
  --shadow-card: 0 8px 18px rgba(122, 46, 74, 0.12);
  --shadow-lift: 0 12px 24px rgba(122, 46, 74, 0.18);

  --maxw: 1120px;
}

/* ----------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-mid);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Soft brand-glow backdrop, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 50vh at 78% -8%, var(--glow-coral), transparent 60%),
    radial-gradient(55vw 45vh at 8% 8%, var(--glow-pink), transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--pink);
  color: #fff;
}

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

section {
  position: relative;
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
}

.gradient-text {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(250, 240, 244, 0.72);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 26px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--magenta);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--card-border);
  border-radius: var(--r-full);
  background: var(--card);
  overflow: hidden;
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 7px 13px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.lang-toggle button[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--r-full);
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-ghost {
  color: var(--ink);
  background: var(--card-solid);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 15px;
}

/* App-store style "coming soon" badge */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-card);
  cursor: default;
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-badge .store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-badge .store-badge-text small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.72;
  letter-spacing: 0.02em;
}

.store-badge .store-badge-text strong {
  font-size: 18px;
  font-weight: 800;
}

.store-soon {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--magenta);
  background: rgba(224, 66, 140, 0.1);
  border-radius: var(--r-full);
  padding: 4px 10px;
  vertical-align: middle;
}

/* ---------------------------------------------------------------- hero */
.hero {
  padding: 64px 0 40px;
}

/* Centered single-column hero (no phone/video demo). */
.hero-grid.hero-centered {
  display: block;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 30px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}

.stars {
  color: var(--bolt);
  letter-spacing: 2px;
  font-size: 15px;
}

/* ------------------------------------------------------ logos / app row */
.appbar {
  margin-top: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.appbar .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-full);
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--ink-soft);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

/* ------------------------------------------------------------ sections */
.section-pad {
  padding: 72px 0;
}

.section-head {
  max-width: 40ch;
  margin-bottom: 44px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
}

.section-head p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-soft);
}

/* Bento feature grid — asymmetric on purpose (no predictable 3-card row) */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.card {
  background: var(--card-solid);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-soft);
  font-size: 16px;
}

.card .kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 14px;
}

.bento .col-3 { grid-column: span 3; }
.bento .col-2 { grid-column: span 2; }
.bento .col-4 { grid-column: span 4; }
.bento .col-6 { grid-column: span 6; }

.card-feature {
  position: relative;
  overflow: hidden;
}

/* the "spice slider" mini visual */
.spice-demo {
  margin-top: 20px;
  height: 12px;
  border-radius: var(--r-full);
  background: var(--spice);
  position: relative;
}

.spice-demo::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 64%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

/* style chips inside a feature card */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip-row span {
  font-size: 14px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: var(--r-full);
  background: rgba(255, 138, 101, 0.12);
  color: var(--magenta);
}

/* Vibe Check chat preview inside a dark card */
.vibe-card {
  background: var(--chat-panel);
  color: #fff;
  border: 0;
}

.vibe-card h3 { color: #fff; }
.vibe-card p { color: rgba(255, 255, 255, 0.74); }

.vibe-meter {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.vibe-meter .ring {
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background:
    radial-gradient(closest-side, #141318 78%, transparent 79%),
    conic-gradient(var(--coral) 0, var(--pink) 82%, rgba(255, 255, 255, 0.12) 82%);
}

.vibe-meter .flags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.vibe-meter .flags b { font-weight: 700; }

.flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.flag .dot {
  width: 9px;
  height: 9px;
  border-radius: var(--r-full);
  flex: none;
}

.flag.good .dot { background: var(--green); }
.flag.bad .dot { background: var(--pink); }

/* --------------------------------------------------------- how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  position: relative;
  padding-top: 18px;
}

.step::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--accent);
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-soft);
  font-size: 16px;
}

/* ------------------------------------------------------------------ faq */
.faq {
  max-width: 760px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 6px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--magenta);
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* -------------------------------------------------------------- cta band */
.cta-band {
  margin: 24px 0 0;
  border-radius: var(--r-xl);
  background: var(--accent);
  color: #fff;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  position: relative;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 28px;
}

.cta-band .store-badge {
  background: #fff;
  color: var(--ink);
}

.cta-band .store-soon {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.cta-band .cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- footer */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.5);
  padding: 48px 0 56px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand img { height: 28px; margin-bottom: 14px; }

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 30ch;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 5px 0;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--magenta); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* -------------------------------------------------------- legal / docs */
.doc {
  max-width: 760px;
  margin-inline: auto;
  padding: 56px 0 24px;
}

.doc h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 10px;
}

.doc .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 36px;
}

.doc h2 {
  font-size: 22px;
  margin: 36px 0 12px;
}

.doc h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}

.doc p,
.doc li {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 12px;
}

.doc ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.doc li { margin-bottom: 8px; }

.doc a {
  color: var(--magenta);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--magenta);
  margin-bottom: 28px;
  text-decoration: none;
}

.support-card {
  background: var(--card-solid);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  margin: 24px 0;
}

.support-card a { font-size: 18px; }

/* i18n: hide the inactive language */
[data-lang]:not(.lang-active) { display: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .bento .col-3,
  .bento .col-2,
  .bento .col-4 { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .step::before { margin-inline: auto; }
  .step { text-align: center; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .hero { padding-top: 40px; }
  .section-pad { padding: 52px 0; }
  .cta-band { padding: 40px 22px; }
  .footer-cols { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
