:root {
  --navy: #12283f;
  --navy-2: #193b58;
  --coral: #f26f61;
  --coral-dark: #d95348;
  --cream: #f7f4ee;
  --paper: #fffdf9;
  --ink: #142436;
  --muted: #617080;
  --line: #d9e0e5;
  --white: #fff;
  --shadow: 0 24px 70px rgba(18, 40, 63, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DejaVu Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input { font: inherit; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(18,40,63,.09);
  background: rgba(255,253,249,.92);
  backdrop-filter: blur(16px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { display: block; width: 220px; max-width: 52vw; height: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .9rem; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--coral-dark); }
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--coral); color: var(--navy); font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 22px rgba(242,111,97,.22);
  transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); background: #ff8072; }
.button.secondary { background: transparent; border: 1px solid rgba(255,255,255,.35); color: white; box-shadow: none; }
.button.ghost { background: transparent; border: 1px solid var(--line); color: var(--navy); box-shadow: none; }
.button.small { min-height: 42px; padding: 0 16px; }
.button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.hero { overflow: hidden; color: white; background: var(--navy); }
.hero-grid { min-height: 660px; padding: 76px 0 70px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 16px; color: var(--coral); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy { margin: 25px 0 30px; max-width: 620px; color: #dfe8ef; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #b9c9d7; font-size: .86rem; }
.trust-line span::before { content: "✓"; margin-right: 7px; color: var(--coral); font-weight: 900; }
.phone-stage { position: relative; min-height: 510px; display: grid; place-items: center; }
.phone-stage::before {
  content: ""; position: absolute; width: 470px; height: 470px; max-width: 100%;
  border-radius: 50%; background: rgba(242,111,97,.14); filter: blur(2px);
}
.phone {
  position: relative; width: min(310px, 84vw); padding: 12px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 38px; background: #071522; box-shadow: 0 35px 90px rgba(0,0,0,.38);
  transform: rotate(3deg);
}
.phone-screen { min-height: 540px; padding: 18px; overflow: hidden; border-radius: 28px; background: var(--cream); color: var(--ink); }
.phone-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: .72rem; font-weight: 800; }
.phone-mark { width: 28px; }
.mini-card { min-height: 380px; padding: 26px; display: flex; flex-direction: column; border-radius: 22px; background: white; box-shadow: 0 18px 40px rgba(18,40,63,.14); }
.mini-card .tag { color: var(--coral-dark); font-size: .68rem; font-weight: 900; letter-spacing: .13em; }
.mini-card h2 { margin: 38px 0 14px; font-size: 2rem; line-height: 1.05; letter-spacing: -.04em; }
.mini-card p { color: var(--muted); }
.mini-card .tap { margin-top: auto; color: var(--navy); font-size: .78rem; font-weight: 800; }
.swipe-dots { display: flex; justify-content: center; gap: 5px; margin-top: 18px; }
.swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: #bac4cc; }
.swipe-dots i:first-child { width: 20px; border-radius: 5px; background: var(--coral); }

.section { padding: 100px 0; }
.section.cream { background: var(--cream); }
.section.navy { background: var(--navy); color: white; }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading h2, .price-copy h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading p { margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature {
  min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--white);
}
.feature-no { color: var(--coral-dark); font-size: .8rem; font-weight: 900; letter-spacing: .12em; }
.feature h3 { margin: 42px 0 10px; font-size: 1.35rem; }
.feature p { margin: 0; color: var(--muted); }
.category-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 11px 15px; border: 1px solid #cbd5dc; border-radius: 999px; background: white; font-weight: 800; font-size: .86rem; }
.quote { margin: 42px 0 0; max-width: 780px; font-size: clamp(1.4rem,3vw,2.25rem); line-height: 1.25; letter-spacing: -.025em; }
.price-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; padding: 44px; border-radius: 24px; background: var(--navy); color: white; box-shadow: var(--shadow); }
.price-copy p { margin: 14px 0 0; color: #c9d7e2; }
.price-box { min-width: 260px; padding: 28px; border-radius: 17px; background: white; color: var(--ink); }
.price { display: flex; align-items: start; gap: 4px; font-size: 3.5rem; line-height: 1; font-weight: 900; letter-spacing: -.06em; }
.price sup { padding-top: 5px; font-size: 1rem; letter-spacing: 0; }
.price-box p { margin: 10px 0 20px; color: var(--muted); font-size: .85rem; }
.price-box .button { width: 100%; }
.fine { margin-top: 14px; color: #7c8b98; font-size: .76rem; }
footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-grid img { width: 155px; }

/* Card app */
.app-body { min-height: 100vh; background: var(--cream); }
.app-header { background: var(--navy); color: white; }
.app-nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-nav .brand img { width: 190px; filter: brightness(0) invert(1); }
.back-link { color: #dce6ee; font-size: .85rem; font-weight: 700; text-decoration: none; }
.app-shell { width: min(980px, calc(100% - 28px)); margin: 0 auto; padding: 32px 0 70px; }
.app-intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.app-intro h1 { color: var(--navy); font-size: clamp(2rem,6vw,3.4rem); }
.app-intro p { margin: 8px 0 0; color: var(--muted); }
.progress-wrap { min-width: 190px; text-align: right; color: var(--muted); font-size: .82rem; }
.progress-track { height: 7px; margin-top: 8px; overflow: hidden; border-radius: 6px; background: #dce2e5; }
.progress-bar { width: 12.5%; height: 100%; background: var(--coral); border-radius: inherit; transition: width .25s ease; }
.category-scroller { display: flex; gap: 8px; overflow-x: auto; padding: 4px 1px 17px; scrollbar-width: none; }
.category-scroller::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 1px solid #ccd5dc; border-radius: 999px;
  background: white; color: var(--muted); font-size: .8rem; font-weight: 800; cursor: pointer;
}
.filter.active { border-color: var(--navy); background: var(--navy); color: white; }
.filter.locked::after { content: " · locked"; font-weight: 500; }
.deck-layout { display: grid; grid-template-columns: minmax(0, 580px) 1fr; align-items: start; gap: 25px; }
.flip-card { min-height: 520px; perspective: 1400px; cursor: pointer; outline: none; }
.flip-card-inner {
  position: relative; min-height: 520px; transition: transform .62s cubic-bezier(.2,.75,.2,1);
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0; padding: clamp(28px,6vw,52px); display: flex; flex-direction: column;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid rgba(18,40,63,.1); border-radius: 26px; background: white; box-shadow: var(--shadow);
}
.card-back { transform: rotateY(180deg); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .75rem; font-weight: 900; letter-spacing: .1em; }
.card-category { color: var(--coral-dark); }
.card-number { color: #81909d; }
.card-face h2 { margin: auto 0 18px; max-width: 440px; font-size: clamp(2.4rem,8vw,4.4rem); line-height: .98; letter-spacing: -.055em; }
.card-description { margin: 0 0 auto; max-width: 440px; color: var(--muted); font-size: 1.08rem; }
.tap-hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--navy); font-size: .8rem; font-weight: 900; }
.try-title { margin: 24px 0 28px; font-size: .85rem; font-weight: 900; letter-spacing: .12em; color: var(--coral-dark); }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; margin: 0 0 22px; }
.steps li::before { content: counter(steps); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); font-weight: 900; }
.card-note { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 800; }
.safe-note { margin: 15px 0 0; color: var(--muted); font-size: .76rem; }
.deck-controls { display: grid; gap: 10px; }
.control-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.control-card strong { display: block; margin-bottom: 10px; }
.control-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.icon-button {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: white; color: var(--navy); font-weight: 800; cursor: pointer;
}
.icon-button:hover { border-color: var(--coral); }
.icon-button.saved { border-color: var(--coral); background: #fff2ef; }
.unlock { background: var(--navy); color: white; border-color: var(--navy); }
.unlock p { margin: 6px 0 14px; color: #ccdae4; font-size: .85rem; }
.unlock .button { width: 100%; }
.app-disclaimer { max-width: 680px; margin: 28px auto 0; color: var(--muted); text-align: center; font-size: .76rem; }

@media (max-width: 820px) {
  .nav-links a:not(.button) { display: none; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding-top: 58px; }
  .hero-copy { margin-top: 20px; }
  .phone-stage { min-height: 535px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature h3 { margin-top: 24px; }
  .price-panel { grid-template-columns: 1fr; padding: 30px; }
  .price-box { min-width: 0; }
  .deck-layout { grid-template-columns: 1fr; }
  .deck-controls { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1160px); }
  .nav { min-height: 66px; }
  .nav .button { min-height: 40px; padding: 0 13px; font-size: .78rem; }
  .hero-grid { padding: 48px 0 54px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .section { padding: 72px 0; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .app-nav .brand img { width: 160px; }
  .app-intro { align-items: start; flex-direction: column; }
  .progress-wrap { width: 100%; text-align: left; }
  .flip-card, .flip-card-inner { min-height: 510px; }
  .deck-controls { grid-template-columns: 1fr; }
  .control-card:first-child { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
