/* Otis landing page. Colours follow the app's Theme.swift, on warm storybook paper. */

:root {
  --paper: #F7F2EA;
  --paper-2: #EFE7DA;
  --surface: #FFFFFF;
  --ink: #1D1B18;
  --ink-2: #5B564E;
  --ink-3: #8A8378;
  --line: rgba(29, 27, 24, 0.1);
  --accent: #0E6E7A;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(14, 110, 122, 0.1);
  --car: #0A64D6;
  --home: #1E7A3E;
  --id: #7A1F2B;
  --money: #B34700;
  --other: #54545A;
  --soon: #B34700;
  --deep: #0B3F46;
  --deep-2: #082E33;
  --shadow: 0 1px 2px rgba(40, 30, 10, 0.06), 0 12px 32px -8px rgba(40, 30, 10, 0.18);
  --shadow-phone: 0 2px 4px rgba(40, 30, 10, 0.08), 0 40px 80px -20px rgba(40, 30, 10, 0.35);
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-card: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1416;
    --paper-2: #141C1F;
    --surface: #1C1C1E;
    --ink: #F2EEE8;
    --ink-2: #B8B2A8;
    --ink-3: #8A857D;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #3FB8C6;
    --accent-ink: #062226;
    --accent-soft: rgba(63, 184, 198, 0.14);
    --soon: #FF9F0A;
    --deep: #0A2A2F;
    --deep-2: #061C20;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -8px rgba(0, 0, 0, 0.6);
    --shadow-phone: 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 80px -20px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--round); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 750; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.accent-text { color: var(--accent); }
.eyebrow {
  font-family: var(--round);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.sub { color: var(--ink-2); font-size: 19px; margin-top: 18px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--round); font-weight: 800; font-size: 21px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 22.5%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  white-space: nowrap;
}
.pill-soon { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .pill-soon { margin-left: auto; }
}

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}
.btn:hover { text-decoration: none; }
a.btn-primary { cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); cursor: default; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn-ghost:hover { transform: translateY(-1px); }

/* Hero */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); margin-top: 24px; max-width: 34em; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--ink-2); font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%230E6E7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0 40px; }
.glow {
  position: absolute;
  inset: 8% -10% 0;
  background:
    radial-gradient(40% 40% at 30% 40%, color-mix(in srgb, var(--car) 22%, transparent), transparent 70%),
    radial-gradient(40% 40% at 70% 60%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    radial-gradient(35% 35% at 60% 20%, color-mix(in srgb, var(--id) 16%, transparent), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.phone {
  position: relative;
  margin: 0;
  width: min(300px, 70vw);
  aspect-ratio: 603 / 1311;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(145deg, #3a3a3c, #121214 40%, #2c2c2e);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  z-index: 1;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone-hero { width: min(320px, 72vw); transform: rotate(2deg); }

.float-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.3;
  animation: bob 6s ease-in-out infinite;
}
.float-note strong { display: block; font-weight: 650; }
.float-note small { color: var(--ink-3); font-size: 13px; }
.note-a { top: 14%; right: -4%; }
.note-b { bottom: 22%; left: -2%; animation-delay: -3s; }
.note-icon { width: 36px; height: 36px; border-radius: 10px; flex: none; background-position: center; background-repeat: no-repeat; background-size: 20px; }
.note-icon-car { background-color: var(--car); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M5 11l1.6-4.2A2 2 0 0 1 8.5 5.5h7a2 2 0 0 1 1.9 1.3L19 11a2 2 0 0 1 1.5 2v4a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1h-11v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-4A2 2 0 0 1 5 11zm2.2 0h9.6l-1.2-3.2a.6.6 0 0 0-.6-.4H9a.6.6 0 0 0-.6.4zM7 15a1.3 1.3 0 1 0 0-2.6A1.3 1.3 0 0 0 7 15zm10 0a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6z'/%3E%3C/svg%3E"); }
.note-icon-done { background-color: var(--home); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.otter { pointer-events: none; user-select: none; }
.hero-visual { justify-content: flex-end; padding-right: 2%; }
.otter-hero { position: absolute; z-index: 2; width: clamp(170px, 18vw, 240px); bottom: 0; left: 0; filter: drop-shadow(0 16px 20px rgba(60, 40, 10, 0.18)); }
.breathe { animation: breathe 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025, 1.035); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row, .trust { justify-content: center; }
  .note-a { right: 0; }
  .note-b { left: 0; }
  .hero-visual { justify-content: center; padding-right: 0; }
  .otter-hero { left: max(0px, calc(50% - 250px)); width: clamp(96px, 26vw, 140px); }
}
@media (max-width: 480px) {
  .float-note { font-size: 13px; padding: 10px 12px 10px 10px; }
  .note-a { top: 6%; right: -4px; }
  .note-b { display: none; }
}

/* Wallet strip */
.strip {
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-row { display: flex; gap: 14px; padding-right: 14px; }
@keyframes slide { to { transform: translateX(-50%); } }
.wcard {
  --c: var(--other);
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  width: 190px;
  height: 112px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  font-family: var(--round);
  font-weight: 700;
  font-size: 17px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 45%),
    var(--c);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--c) 80%, black);
  overflow: hidden;
}
.wcard::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 16px;
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
}
.wcard.car { --c: var(--car); }
.wcard.home { --c: var(--home); }
.wcard.id { --c: var(--id); }
.wcard.money { --c: var(--money); }
.wcard.other { --c: var(--other); }

/* Sections */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow); }
.step p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--round);
  font-weight: 800;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.review-demo { position: relative; display: flex; justify-content: center; align-items: flex-end; margin-top: clamp(48px, 7vw, 80px); }
.paper {
  position: relative;
  width: min(420px, 82vw);
  padding: 32px 32px 36px;
  background: #FFFDF9;
  color: #2A2620;
  border-radius: 14px;
  box-shadow: var(--shadow-phone);
  transform: rotate(-3deg);
  font-size: 16px;
}
.paper p { margin: 12px 0; }
.paper-title { font-family: var(--round); font-weight: 750; font-size: 20px; }
.paper .line { display: block; height: 8px; border-radius: 4px; background: #ECE6DC; margin: 12px 0; }
.w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; }
.paper mark {
  position: relative;
  background: rgba(14, 110, 122, 0.12);
  color: inherit;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px #0E6E7A;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 8px;
}
.paper mark::after {
  content: attr(data-n);
  position: absolute;
  top: -9px;
  right: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0E6E7A;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--round);
}
.otter-reading { width: clamp(150px, 20vw, 230px); margin-left: -40px; z-index: 2; filter: drop-shadow(0 16px 20px rgba(60, 40, 10, 0.18)); }
@media (max-width: 560px) {
  .review-demo { flex-direction: column; align-items: center; }
  .otter-reading { margin: -30px 0 0 50%; width: 140px; }
}

/* Features */
.features { padding-top: 0; }
.feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(32px, 8vw, 120px);
  padding: clamp(40px, 6vw, 72px) 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: auto 1fr; }
.feature.flip .feature-copy { order: 2; }
.feature-copy { max-width: 520px; }
.feature-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; margin-top: 18px; }
.feature .phone { width: min(290px, 70vw); }
.otter-side { position: absolute; z-index: 2; width: 170px; left: 250px; bottom: 50px; filter: drop-shadow(0 12px 16px rgba(60, 40, 10, 0.18)); }
.beta { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); font-size: 11px; letter-spacing: 0.04em; vertical-align: 1px; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.timings { display: grid; gap: 10px; margin-top: 24px; }
.timing {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 15px;
}
.timing span:last-child { color: var(--ink-2); text-align: right; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.car { background: var(--car); } .dot.home { background: var(--home); } .dot.id { background: var(--id); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { padding: 9px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 600; }

@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { max-width: 600px; }
  .ticks { justify-items: center; }
  .ticks li { text-align: left; }
  .chips { justify-content: center; }
  .timing { text-align: left; }
  .otter-side { left: auto; right: calc(50% - 230px); bottom: 60px; width: 130px; }
}
@media (max-width: 520px) {
  .timing { grid-template-columns: auto 1fr; }
  .timing span:last-child { grid-column: 2; text-align: left; }
  .otter-side { right: 0; width: 110px; }
}

/* Privacy */
.privacy {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
  background:
    radial-gradient(60% 80% at 85% 30%, rgba(63, 184, 198, 0.22), transparent 70%),
    linear-gradient(180deg, var(--deep), var(--deep-2));
  color: #EAF4F5;
  overflow: hidden;
}
.privacy h2 { color: #fff; }
.privacy .sub { color: rgba(234, 244, 245, 0.78); max-width: 34em; }
.eyebrow-light { color: #7FD6E0; }
.privacy-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.privacy-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.privacy-list li {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(234, 244, 245, 0.78);
  font-size: 15px;
}
.privacy-list strong { display: block; color: #fff; font-family: var(--round); font-size: 17px; margin-bottom: 6px; }
.privacy-art { position: relative; display: grid; place-items: center; }
.privacy-art .otter { position: relative; width: min(300px, 60vw); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }
.halo { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 244, 220, 0.22), transparent 65%); }
@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-art { order: -1; }
  .privacy-art .otter { width: 200px; }
}
@media (max-width: 600px) { .privacy-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
details {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0 24px;
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 32px 20px 0;
  position: relative;
  font-family: var(--round);
  font-weight: 700;
  font-size: 18px;
  min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
details p { color: var(--ink-2); padding-bottom: 22px; }

/* Closing */
.closing { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 10vw, 128px); }
.closing-inner { text-align: center; display: grid; justify-items: center; }
.otter-asleep { width: min(340px, 80vw); margin-bottom: 24px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer nav a { color: var(--ink-2); font-size: 15px; }
.fine { flex-basis: 100%; color: var(--ink-3); font-size: 13px; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breathe, .float-note, .strip-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Plain pages (privacy, 404) */
.page { padding: clamp(40px, 8vw, 96px) 0; }
.page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.page h2 { font-size: 24px; margin: 40px 0 10px; }
.page p, .page li { color: var(--ink-2); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 22px; }
.page .meta { color: var(--ink-3); font-size: 15px; }
.lost { text-align: center; display: grid; justify-items: center; gap: 16px; }
.lost img { width: 220px; }

/* On narrow screens the overlapping otters would cover the screenshots */
@media (max-width: 860px) { .otter-side { display: none; } }
@media (max-width: 560px) { .otter-hero { display: none; } }
