/* Pinky Proof website. Colors match the app (ios/PinkyProof/Design/Theme.swift). */
:root {
  color-scheme: light;
  --ground: #FFFFFF;
  --ground-2: #F5F6FA;
  --panel: #FFFFFF;
  --line: #E3E6EE;
  --ink: #17203A;
  --text: #3A4258;
  --muted: #66708A;
  --roo: #FF8A3D;
  --roo-deep: #B5470F;
  --roo-wash: #FFF1E6;
  --pink: #FF5C8A;
  --sun: #FFD45E;
  --parent: #2F5BD3;
  --parent-wash: #EBF0FC;
  --ok: #1F9E6E;
  --ok-wash: #E4F5EE;
  --grad: linear-gradient(95deg, #FF8A3D 0%, #FF5C8A 100%);
  --r-card: 24px;
  --card-shadow: 0 1px 2px rgba(23, 32, 58, 0.04), 0 10px 30px rgba(23, 32, 58, 0.06);
  --phone-shadow: drop-shadow(0 28px 40px rgba(23, 32, 58, 0.22));
  --head: "Poppins", ui-rounded, system-ui, sans-serif;
  --body: "Roboto", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--parent); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
h1 { font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 4.9rem); line-height: 1.04; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 0.85rem/1 var(--head); letter-spacing: 0.02em;
  color: var(--roo-deep); background: var(--roo-wash);
  padding: 8px 14px; border-radius: 999px;
}
.eyebrow.blue { color: var(--parent); background: var(--parent-wash); }
.eyebrow.green { color: #157A54; background: var(--ok-wash); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.15rem/1 var(--head); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font: 700 0.9rem/1 var(--head); color: #fff; background: var(--ink);
  padding: 11px 16px; border-radius: 999px; white-space: nowrap; text-decoration: none;
}
@media (max-width: 760px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* App Store badge (not live yet) */
.store { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 13px;
  background: #000; color: #fff; text-decoration: none; cursor: default;
  border: 1px solid #A6A6A6; user-select: none;
}
.badge svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.badge span { display: grid; line-height: 1.05; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; }
.badge small { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.01em; }
.badge strong { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
.soon { font: 700 0.8rem/1 var(--head); color: var(--muted); padding-left: 4px; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); background: radial-gradient(1200px 520px at 85% 0%, #FFF3E6 0%, rgba(255, 243, 230, 0) 70%), radial-gradient(900px 500px at 0% 100%, #FFEFF4 0%, rgba(255, 239, 244, 0) 70%); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 6px; }
.text-link { font: 700 1rem/1 var(--head); color: var(--ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; padding: 12px 0; }
.text-link:hover { color: var(--roo-deep); }
.hero-note { font-size: 0.95rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; flex: none; }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.phones .phone.back { position: absolute; right: 4%; top: 0; width: min(250px, 44%); transform: rotate(6deg); opacity: 0.98; }
.phones .phone.front { position: relative; width: min(280px, 52%); margin-right: 30%; transform: rotate(-4deg); z-index: 2; }
.roo-bubble {
  position: absolute; z-index: 3; left: 2%; bottom: 8%;
  background: #fff; border-radius: 18px; padding: 12px 14px 12px 12px;
  box-shadow: 0 14px 30px rgba(23, 32, 58, 0.16);
  display: flex; gap: 10px; align-items: center; max-width: 230px;
  font: 600 0.92rem/1.3 var(--head); color: var(--ink);
}
.roo-bubble img { width: 40px; height: 40px; border-radius: 10px; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .phones { min-height: 0; padding-top: 12px; }
  .phones .phone.front { width: min(250px, 58%); margin-right: 26%; }
  .phones .phone.back { width: min(220px, 50%); right: 2%; top: 8%; }
  .roo-bubble { left: 0; bottom: 4%; max-width: 200px; font-size: 0.85rem; }
}

/* Phone frame */
.phone { filter: var(--phone-shadow); }
.phone .screen {
  background: #0E1222; padding: 9px; border-radius: 46px;
}
.phone img { width: 100%; height: auto; aspect-ratio: 1170 / 2532; object-fit: cover; border-radius: 38px; background: var(--ground-2); }

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: var(--ground-2); }
.strip-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 22px; }
.strip-item { display: flex; align-items: center; gap: 12px; font: 600 0.98rem/1.35 var(--head); color: var(--ink); }
.strip-item .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.strip-item svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .strip-in { grid-template-columns: 1fr; gap: 12px; } }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; box-shadow: var(--card-shadow); display: grid; gap: 10px; align-content: start; }
.step-num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 800 1.15rem/1 var(--head); color: #fff; background: var(--grad); margin-bottom: 6px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Chapters: copy + phone */
.chapter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.chapter + .chapter { margin-top: clamp(72px, 10vw, 128px); }
.chapter.flip .chapter-copy { order: 2; }
.chapter-copy { display: grid; gap: 18px; justify-items: start; }
.chapter-art { display: flex; justify-content: center; position: relative; }
.chapter-art::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 40px; background: var(--roo-wash); z-index: -1; transform: rotate(-3deg); }
.chapter-art.blue::before { background: var(--parent-wash); transform: rotate(3deg); }
.chapter-art.green::before { background: var(--ok-wash); }
.chapter-art .phone { width: min(300px, 76%); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.ticks li::before {
  content: ""; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--roo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.ticks.blue li::before { background-color: var(--parent); }
.ticks.green li::before { background-color: var(--ok); }
.ticks strong { color: var(--ink); }
@media (max-width: 860px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter.flip .chapter-copy { order: 0; }
}

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; box-shadow: var(--card-shadow); display: grid; gap: 10px; align-content: start; }
.card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 6px; }
.card .ic svg { width: 24px; height: 24px; }
.card p { color: var(--text); font-size: 1rem; }
.ic.orange { background: var(--roo-wash); color: var(--roo-deep); }
.ic.blue { background: var(--parent-wash); color: var(--parent); }
.ic.green { background: var(--ok-wash); color: #157A54; }
.ic.pink { background: #FFE9EF; color: #C7325E; }
.ic.sun { background: #FFF6D9; color: #8A6100; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band { background: var(--ink); color: #D9DEEB; border-radius: 32px; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.privacy-band h2 { color: #fff; }
.privacy-band .lead { color: #C3C9D9; }
.privacy-band a { color: #FFB27A; font-weight: 700; text-decoration: none; }
.privacy-band a:hover { text-decoration: underline; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy-list li { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 14px 16px; color: #fff; font: 600 1rem/1.35 var(--head); }
.privacy-list svg { width: 22px; height: 22px; flex: none; color: #FFB27A; }
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; box-shadow: var(--card-shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 700 1.08rem/1.35 var(--head); color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.5rem/1 var(--head); color: var(--roo); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; }

/* Final CTA */
.cta { text-align: center; display: grid; justify-items: center; gap: 20px; padding: clamp(48px, 7vw, 88px) 24px; border-radius: 32px; background: radial-gradient(600px 300px at 50% 0%, #FFE3CC 0%, rgba(255, 227, 204, 0) 75%), var(--ground-2); border: 1px solid var(--line); }
.cta img.mascot { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 14px 30px rgba(255, 138, 61, 0.35); }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: clamp(64px, 9vw, 112px); padding-block: 36px 48px; font-size: 0.95rem; color: var(--muted); }
.footer-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer .fine { flex-basis: 100%; font-size: 0.82rem; }

/* Legal and help pages */
.doc { width: min(780px, 100% - 32px); margin: 0 auto; padding-block: clamp(40px, 6vw, 72px) 0; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.doc .updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 32px; }
.doc h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin: 40px 0 12px; letter-spacing: -0.01em; }
.doc h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.doc li::marker { color: var(--roo); }
.doc .summary { background: var(--roo-wash); border-radius: 20px; padding: 20px 22px; margin-bottom: 8px; }
.doc .summary ul { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--head); color: var(--ink); font-weight: 700; background: var(--ground-2); }
.table-scroll { overflow-x: auto; }
.contact-card { display: flex; gap: 16px; align-items: center; background: var(--ground-2); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin: 8px 0 24px; }
.contact-card img { width: 56px; height: 56px; border-radius: 14px; }
.contact-card a { font: 700 1.1rem/1.3 var(--head); text-decoration: none; }

:focus-visible { outline: 3px solid var(--parent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
