/* Loloma marketing site: clean and premium. White space, big phones, the app's Signal Red used sparingly.
   Colours are the app's own (ios/VantageConnect/DesignSystem/Theme.swift). */
:root {
  --red: #E63946;
  --red-deep: #D42F3D;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --line: #E8E8ED;
  --soft: #F5F5F7;
  --white: #FFFFFF;
  --charcoal: #232323;
  --paper: #F4F4F3;
  --green: #33B38C;
  --blue: #2763CC;
  --amber: #F2A633;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --r: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.center { text-align: center; }
.lead { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem); color: var(--ink-2); line-height: 1.45; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.75rem, 1.5rem + 5.4vw, 6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 0; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s var(--ease), opacity .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 0.9375rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { min-height: 44px; padding: 0 20px; background: var(--white); color: var(--ink); font-size: 0.9375rem; box-shadow: 0 0 0 1px var(--line) inset; }
.btn-light:hover { background: var(--soft); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.nav-inner { width: min(var(--wrap), 100% - 32px); margin-inline: auto; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.02em; }
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 0.875rem; }
.nav-links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* Store badges */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.store:hover { transform: translateY(-2px); background: #000; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; font-weight: 600; font-size: 1.1875rem; line-height: 1.1; letter-spacing: -0.01em; }
.store small { font-weight: 400; font-size: 0.6875rem; letter-spacing: 0.01em; opacity: .85; }
.store-light { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.store-light:hover { background: var(--white); }
.stores-center { justify-content: center; }

/* Hero */
.hero { padding: clamp(40px, 5vw, 64px) 0 0; overflow: hidden; background: linear-gradient(var(--white), var(--soft)); }
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 22px; }
.hero-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 12px 30px rgba(230, 57, 70, .25); }
.hero-copy .lead { max-width: 34ch; }
.hero-copy .stores { justify-content: center; margin-top: 8px; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; margin-top: clamp(36px, 4vw, 56px); height: clamp(360px, 34vw, 500px); overflow: hidden; padding-top: 8px; }

/* Phones: a simple bezel around the real screenshots */
.phone { position: relative; width: 300px; aspect-ratio: 647 / 1400; padding: 10px; background: #0B0B0C; border-radius: 54px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .08); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 44px; }
.hero .phone-main { width: clamp(240px, 24vw, 320px); z-index: 3; flex: none; }
.hero .phone-side { width: clamp(200px, 20vw, 270px); margin-top: 60px; flex: none; }
.hero .phone-left { transform: translateX(14%) rotate(-6deg); z-index: 2; }
.hero .phone-right { transform: translateX(-14%) rotate(6deg); z-index: 2; }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: clamp(72px, 9vw, 120px) 0; }
.promise { padding: 32px; border-radius: 24px; background: var(--soft); }
.promise h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 18px 0 8px; letter-spacing: -0.025em; }
.promise p { color: var(--ink-2); }
.dot { display: block; width: 14px; height: 14px; border-radius: 50%; }
.dot-green { background: var(--green); } .dot-red { background: var(--red); } .dot-blue { background: var(--blue); }

/* Feature rows */
.feature { padding: clamp(80px, 10vw, 140px) 0; }
.feature-alt { background: var(--soft); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
.feature-grid.flip .feature-text { order: 2; }
.feature-text { display: grid; gap: 22px; align-content: center; }
.feature-text > p { font-size: 1.1875rem; color: var(--ink-2); max-width: 44ch; line-height: 1.55; }
.feature-visual { display: flex; justify-content: center; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; transform: translateY(3px); }

/* Likes tabs */
.pills { display: inline-flex; gap: 4px; padding: 4px; background: var(--line); border-radius: 999px; justify-self: start; flex-wrap: wrap; }
.pills button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-size: 0.9375rem; font-weight: 600; color: #4A4A4F; cursor: pointer; transition: background-color .2s, color .2s; }
.pills button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.pill-copy { color: var(--ink); font-size: 1.0625rem; max-width: 44ch; min-height: 3.2em; }

/* Liveness screen, drawn from the app's LivenessCaptureView */
.phone-ui { background: #0B0B0C; }
.selfie-screen { width: 100%; height: 100%; border-radius: 44px; background: #fff; display: flex; flex-direction: column; align-items: center; padding: 56px 22px 28px; gap: 18px; }
.selfie-title { font-weight: 600; font-size: 1.0625rem; }
.selfie-oval { width: 72%; aspect-ratio: 3 / 4; border-radius: 50%; padding: 6px; background: conic-gradient(var(--green) 0 62%, var(--line) 0); }
.selfie-face { width: 100%; height: 100%; border-radius: 50%; background: #2A2A2E; display: grid; place-items: center; }
.selfie-face svg { width: 70%; height: auto; margin-top: 18%; }
.selfie-cue { font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; text-align: center; margin-top: 6px; }
.selfie-progress { width: 70%; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.selfie-progress span { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; animation: fill 2.8s var(--ease) infinite; }
@keyframes fill { from { transform: scaleX(.08); } to { transform: scaleX(1); } }
.selfie-note { color: var(--ink-2); font-size: 0.875rem; text-align: center; margin-top: auto; }

/* Prompt dealer */
.dealer { border-radius: 24px; background: var(--soft); padding: 26px; display: grid; gap: 14px; max-width: 440px; }
.dealer-count { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.dealer-prompt { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; min-height: 2.3em; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.dealer-prompt.swap { opacity: 0; transform: translateY(6px); }
.dealer .btn { justify-self: start; }

/* Double date card, drawn from the app's DuoCard */
.duo { width: min(400px, 100%); display: grid; gap: 18px; }
.duo-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .3); }
.duo-half { position: relative; background: linear-gradient(160deg, var(--c1), var(--c2)); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; }
.duo-half span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6rem; font-weight: 700; opacity: .85; }
.duo-half p { position: relative; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.duo-pill { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .9); color: var(--ink); font-weight: 600; font-size: 0.9375rem; padding: 7px 16px; border-radius: 999px; white-space: nowrap; }
.duo-actions { display: flex; justify-content: center; gap: 22px; }
.duo-actions span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; }
.duo-pass { background: var(--white); color: var(--red); box-shadow: 0 0 0 1px var(--line) inset; }
.duo-like { background: var(--red); color: #fff; }

/* Free vs Plus */
.plans { padding: clamp(80px, 10vw, 140px) 0; background: var(--soft); }
.plans .lead { max-width: 40ch; margin: 16px auto 0; }
.table { max-width: 820px; margin: 48px auto 0; background: var(--white); border-radius: 24px; padding: 8px 28px; }
.tr { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.tr:last-child { border-bottom: 0; }
.tr span:not(:first-child) { text-align: center; color: var(--ink-2); font-weight: 500; }
.th span { font-weight: 700 !important; color: var(--ink) !important; font-size: 1.0625rem; }
.th span:last-child { color: var(--blue) !important; }
.yes { color: var(--green) !important; font-weight: 600 !important; }
.no { color: #B0B0B5 !important; }
.tr-never span { color: var(--red) !important; font-weight: 700 !important; }
.tr-never span:first-child { color: var(--ink) !important; }

/* FAQ */
.faq { padding: clamp(80px, 10vw, 140px) 0; }
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.faq-list { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--ink-2); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 40px 22px 0; max-width: 60ch; }

/* Download */
.download { padding: clamp(88px, 11vw, 150px) 0; background: var(--charcoal); color: #fff; }
.download .wrap { display: grid; justify-items: center; gap: 20px; }
.download-icon { width: 104px; height: 104px; border-radius: 24px; }
.download .lead { color: #C7C7CC; max-width: 36ch; }
.download .stores { margin-top: 10px; }

/* Footer (kept from the first version) */
.foot { background: var(--charcoal); color: #fff; padding: 24px max(24px, calc((100% - var(--wrap)) / 2)) 28px; }
.blocks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; height: 34svh; align-items: end; }
.blocks span {
  height: var(--h); background: var(--c); color: var(--t, #fff); border-radius: var(--r);
  display: flex; align-items: flex-end; padding: 0 .08em; font-family: "Cabinet Grotesk", var(--font); font-weight: 800; font-size: clamp(3.5rem, 12.5vw, 12.5rem); line-height: .8; letter-spacing: -0.05em; overflow: hidden;
  transform-origin: bottom; transition: transform .6s var(--ease);
}
.foot-links { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; margin-top: 56px; }
.foot-links ul { grid-column: span 2; display: grid; gap: 8px; }
.foot-links a { text-decoration: none; font-size: 0.875rem; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-note { grid-column: 9 / 13; font-size: 0.875rem; color: #DDD; }
.foot-last { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; font-size: 0.875rem; }

/* Entrances (content stays visible without the script) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .phone-left.reveal { transform: translateX(14%) translateY(40px) rotate(-6deg); }
.js .hero .phone-right.reveal { transform: translateX(-14%) translateY(40px) rotate(6deg); }
.js .hero .phone-left.reveal.in { transform: translateX(14%) rotate(-6deg); }
.js .hero .phone-right.reveal.in { transform: translateX(-14%) rotate(6deg); }
.js .blocks span { transform: scaleY(.2); }
.js .blocks.in span { transform: none; }
.blocks span:nth-child(2) { transition-delay: 70ms; } .blocks span:nth-child(3) { transition-delay: 140ms; }
.blocks span:nth-child(4) { transition-delay: 210ms; } .blocks span:nth-child(5) { transition-delay: 280ms; }
.blocks span:nth-child(6) { transition-delay: 350ms; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero .phone-left.reveal, .js .hero .phone-right.reveal { transition: opacity .3s linear; }
  .js .hero .phone-left.reveal { transform: translateX(14%) rotate(-6deg); }
  .js .hero .phone-right.reveal { transform: translateX(-14%) rotate(6deg); }
  .js .reveal:not(.phone) { transform: none; }
  .js .blocks span { transform: none; }
  .selfie-progress span { animation: none; }
}

/* Tablet */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .promises { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid.flip .feature-text { order: 0; }
  .feature-text { text-align: left; }
  .faq-wrap { grid-template-columns: 1fr; gap: 16px; }
  .hero .phone-side { display: none; }
}

/* Phone */
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .hero-icon { width: 72px; height: 72px; border-radius: 18px; }
  .stores { width: 100%; }
  .store { flex: 1 1 100%; justify-content: center; }
  .phone { width: 260px; border-radius: 46px; padding: 8px; }
  .phone img, .selfie-screen { border-radius: 38px; }
  .hero .phone-main { width: 72vw; }
  .promise { padding: 24px; }
  .table { padding: 4px 16px; }
  .tr { grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; font-size: 0.9375rem; }
  .blocks { height: 22svh; }
  .blocks span { font-size: 14vw; }
  .foot-links ul { grid-column: span 6; }
  .foot-note { grid-column: 1 / -1; margin-top: 16px; }
}

/* ───────────── Legal pages (privacy.html, terms.html) ─────────────
   Long-form reading. Everything is scoped under .legal so the marketing page's rules stay untouched. */
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); }
.legal-head { display: grid; gap: 14px; max-width: 68ch; margin-bottom: clamp(32px, 5vw, 56px); }
.legal-head h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); }
.legal-meta { color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; }
.legal-head .lead { max-width: 52ch; }
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.legal-toc { background: var(--soft); border-radius: 20px; padding: 20px 22px; align-self: start; }
.legal-toc h2 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; font-size: 0.9375rem; line-height: 1.35; }
.legal-toc a { text-decoration: none; color: var(--ink); }
.legal-toc a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal-body { max-width: 68ch; font-size: 1.0625rem; line-height: 1.65; }
.legal-body > section { padding-top: 8px; }
.legal-body > section + section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.legal-body h2 { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem); letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 14px; scroll-margin-top: 80px; }
.legal-body h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 28px 0 8px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 1.35em; display: grid; gap: 8px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li::marker { color: var(--ink-2); }
.legal-body a { color: var(--red-deep); text-underline-offset: 3px; }
.legal-body strong { font-weight: 650; }
.legal-body code { font: 600 0.9em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.legal-summary { background: var(--soft); border-radius: 20px; padding: 22px 24px; margin-bottom: 8px; }
.legal-summary h2 { font-size: 1.25rem; margin-bottom: 10px; }
.legal-summary ul { margin-bottom: 0; }
.legal-callout { border-left: 4px solid var(--red); background: #FFF5F5; border-radius: 0 14px 14px 0; padding: 14px 18px; margin: 0 0 16px; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-caps { text-transform: uppercase; font-size: 0.9375rem; letter-spacing: 0.01em; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { background: var(--soft); font-weight: 700; white-space: nowrap; }
.legal-table td:first-child { font-weight: 600; white-space: nowrap; }

@media (min-width: 1000px) {
  .legal-grid { grid-template-columns: 260px minmax(0, 68ch); gap: clamp(48px, 6vw, 88px); }
  .legal-toc { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
@media (max-width: 600px) {
  .legal-body { font-size: 1rem; }
  .legal-summary, .legal-toc { padding: 18px; border-radius: 16px; }
  .legal-table td:first-child { white-space: normal; }
}
