/* ─────────────────────────────────────────────────────────────
   onetallo.com

   Tokens mirror react-native/apps/mobile/src/constants/theme.ts
   (dark scheme). The app ships `userInterfaceStyle: "dark"`, so
   the site commits to the same warm near-black rather than
   carrying a second palette that matches nothing users will see.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #12100A;
  --surface: #1B1811;
  --raised: #252017;
  --border: #352E20;
  --text: #F8F5ED;
  --text-2: #BEB6A4;
  --text-3: #8B8371;
  --primary: #FFC53D;
  --primary-soft: #3A2B08;
  --success: #4ADE80;
  --brand-a: #FFD35C;
  --brand-b: #F2A81B;
  --on-brand: #221800;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  --wrap: 1120px;
  --gutter: 24px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.022em; }
p { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-brand);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .15s ease;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--gutter);
}
.wrap.narrow { max-width: 760px; }

/* ── buttons ─────────────────────────────────────────────── */

.btn {
  --shadow: 0 6px 20px rgba(242, 168, 27, .28);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: var(--on-brand);
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 14px 26px;
  border: 0; border-radius: var(--r-full);
  box-shadow: var(--shadow);
  cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(242, 168, 27, .36);
  filter: brightness(1.04);
}
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 38px; font-size: 17px; }

/* ── nav ─────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 16, 10, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex; align-items: center; gap: 20px;
  height: 72px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em; white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex; gap: 28px; margin-inline: auto;
  font-size: 15px;
}
.nav-links a { color: var(--text-2); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── hero ────────────────────────────────────────────────── */

.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }

.hero-wash {
  position: absolute; inset: -20% -10% auto; height: 720px;
  background:
    radial-gradient(58% 50% at 22% 12%, rgba(242,168,27,.20), transparent 70%),
    radial-gradient(46% 44% at 82% 0%, rgba(255,211,92,.13), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--primary-soft);
  border: 1px solid rgba(255,197,61,.22);
  color: var(--primary);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  padding: 7px 15px; border-radius: var(--r-full);
  margin-bottom: 26px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(74,222,128,.55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.17rem);
  color: var(--text-2);
  max-width: 34em;
  margin-bottom: 32px;
}

/* ── signup form ─────────────────────────────────────────── */

.signup { margin-bottom: 30px; }

.field {
  display: flex; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 8px;
  max-width: 480px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field:focus-within {
  border-color: rgba(255,197,61,.5);
  box-shadow: 0 0 0 4px rgba(255,197,61,.10);
}
.field input[type='email'] {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--text); font: inherit; font-size: 15px;
  padding: 12px 10px;
}
.field input::placeholder { color: var(--text-3); }
.field.invalid { border-color: rgba(240,104,94,.6); }

/* honeypot — off-canvas rather than display:none, which some bots skip */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 13px; color: var(--text-3);
  margin-top: 12px; padding-left: 4px;
  min-height: 20px;
}
.form-note.ok { color: var(--success); }
.form-note.err { color: #F0685E; }

.hero-points {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 11px;
  font-size: 14.5px; color: var(--text-2);
}
.hero-points li { display: flex; gap: 11px; align-items: flex-start; }
.hero-points li::before {
  content: '';
  flex: none; width: 17px; height: 17px; margin-top: 3px;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 1px solid rgba(255,197,61,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC53D' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}

/* ── phone ───────────────────────────────────────────────── */

.hero-device {
  position: relative;
  display: flex; justify-content: center;
}

.phone {
  position: relative; z-index: 1;
  width: 100%; max-width: 310px;
  /* matches the source recording (1080x2424) so nothing is cropped */
  aspect-ratio: 720 / 1616;
  background: #08070420;
  border: 9px solid #221E15;
  border-radius: 46px;
  box-shadow:
    0 0 0 2px #3A3427,
    0 34px 70px rgba(0,0,0,.62),
    0 0 90px rgba(242,168,27,.13);
  overflow: hidden;
}
.phone-screen { width: 100%; height: 100%; background: var(--bg); }
.phone-screen video { width: 100%; height: 100%; object-fit: cover; }

.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 44%; height: 26px;
  background: #221E15;
  border-radius: 0 0 16px 16px;
}

.phone-glow {
  position: absolute; inset: 12% -6% 6%;
  background: radial-gradient(50% 42% at 50% 50%, rgba(242,168,27,.24), transparent 70%);
  filter: blur(46px);
  pointer-events: none;
}

/* ── generic section ─────────────────────────────────────── */

.section { padding: 96px 0; }
.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.kicker {
  color: var(--primary);
  font-size: 13px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.65rem, 3.3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.03em;
  max-width: 20ch;
  margin-bottom: 48px;
}

.prose {
  color: var(--text-2); font-size: 16.5px;
  max-width: 46ch; margin-bottom: 18px;
}
.prose.muted { color: var(--text-3); font-size: 15px; }

/* ── steps ───────────────────────────────────────────────── */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px 30px;
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: var(--on-brand); font-weight: 800; font-size: 17px;
}
.steps h3 { font-size: 19px; margin-bottom: 11px; }
.steps p { color: var(--text-2); font-size: 15px; }

/* ── feature cards ───────────────────────────────────────── */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 30px 26px;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,197,61,.3); }
.ico {
  width: 44px; height: 44px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--primary-soft);
  color: var(--primary);
}
.ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; }

/* ── andy ────────────────────────────────────────────────── */

.andy-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

.chat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  display: grid; gap: 12px;
  box-shadow: 0 24px 52px rgba(0,0,0,.36);
}
.chat-head {
  display: flex; align-items: center; gap: 11px;
  padding-bottom: 16px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.chat-head strong { display: block; font-size: 15px; }
.chat-head span { font-size: 12.5px; color: var(--text-3); }

.bubble {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 5px;
  padding: 13px 16px;
  font-size: 14.5px; color: var(--text-2);
  max-width: 92%;
}
.bubble.user {
  margin-left: auto;
  border-radius: 16px 16px 5px 16px;
  background: var(--primary-soft);
  border-color: rgba(255,197,61,.26);
  color: var(--text);
}
.tool {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
  padding-left: 4px;
}
.spark {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* ── privacy ─────────────────────────────────────────────── */

.privacy {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
}
.privacy h3 {
  font-size: 17px; margin-bottom: 10px;
  padding-top: 18px;
  border-top: 2px solid var(--primary-soft);
}
.privacy p { color: var(--text-2); font-size: 15px; }

/* ── faq ─────────────────────────────────────────────────── */

details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
summary {
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 17px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details p {
  color: var(--text-2); font-size: 15.5px;
  margin-top: 14px; max-width: 62ch;
}

/* ── final cta ───────────────────────────────────────────── */

.cta {
  padding: 104px 0;
  text-align: center;
  background:
    radial-gradient(56% 78% at 50% 0%, rgba(242,168,27,.15), transparent 72%),
    var(--surface);
  border-top: 1px solid var(--border);
}
.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.cta p { color: var(--text-2); font-size: 17px; margin-bottom: 34px; }

/* ── footer ──────────────────────────────────────────────── */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
}
.footer-inner { display: grid; gap: 18px; justify-items: center; text-align: center; }
.disclaimer {
  color: var(--text-3); font-size: 13px;
  max-width: 62ch; line-height: 1.65;
}
.copyright { color: var(--text-3); font-size: 13px; }

/* ── responsive ──────────────────────────────────────────── */

@media (max-width: 940px) {
  .hero-grid, .andy-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 0 72px; }
  .section-title { max-width: none; }
  .steps, .cards, .privacy { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .brand { margin-right: auto; }
  .phone { max-width: 268px; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  h1 { font-size: clamp(1.95rem, 8.4vw, 2.6rem); }
  .section { padding: 72px 0; }
  .steps, .cards, .privacy { grid-template-columns: 1fr; }
  .field { flex-direction: column; border-radius: var(--r-xl); padding: 10px; }
  .field input[type='email'] { padding: 12px; text-align: center; }
  /* Only the stacked form/CTA buttons go full-width. Including the nav's
     .btn-sm here made it claim 100% of the header row, which pushed the page
     wider than the viewport and dragged every other block out with it. */
  .signup .btn, .cta .btn { width: 100%; }
  .cta { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
