/* The Review Plate — landing page, brand edition.
   Design system derived from the flagship plate colourways:
   charcoal ink #404040 · periwinkle #4285F4 · blush #FCCFC9 · pale tints ·
   the wavy-ribbon motif, used sparingly. One font, one radius, one shadow. */

@font-face {
  font-family: 'Poppins';
  src: url('/assets/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --peri: #4285f4;
  --peri-deep: #2f66c9;
  --blush: #fccfc9;
  --blush-deep: #e08a80;
  --gold: #fbbc05;
  --ink: #333438;
  --ink-2: #55575e;
  --muted: #8f919a;
  --page: #fffdfc;
  --tint-blue: #eef3fb;
  --tint-blush: #fff4f1;
  --border: rgba(64, 64, 64, 0.12);
  --radius: 18px;
  --shadow-soft: 0 18px 44px rgba(64, 64, 64, 0.14);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.65;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

h1, h2, h3 { line-height: 1.14; margin: 0 0 0.5em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.15rem); letter-spacing: -0.015em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: var(--ink-2); }
.lede { font-size: clamp(1rem, 2.4vw, 1.15rem); }
.q { color: var(--peri-deep); }
.caption { font-size: 0.82rem; color: var(--muted); }
.cite { font-size: 0.7em; vertical-align: super; text-decoration: none; color: var(--peri-deep); margin-left: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 30px;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn-primary {
  background: var(--peri);
  color: #fff;
  box-shadow: 0 8px 22px rgba(66, 133, 244, 0.32);
}
.btn-primary:hover { background: var(--peri-deep); }
.btn-primary:active { transform: scale(0.98); }
.btn-small { padding: 9px 20px; font-size: 0.9rem; }
.btn-big { padding: 16px 40px; font-size: 1.05rem; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand em { font-style: normal; color: var(--peri); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 86% -6%, rgba(66, 133, 244, 0.22), transparent 64%),
    radial-gradient(820px 460px at -8% 104%, rgba(252, 207, 201, 0.65), transparent 62%),
    linear-gradient(180deg, #fdfcff 0%, #fff9f7 100%);
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 110px);
}
.hero::after {
  /* the brand wave, easing the hero into the page */
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 84px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,58 C220,104 440,12 720,50 C1000,88 1220,24 1440,62 L1440,122 L0,122 Z' fill='%23ffffff'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(24px, 5vw, 54px); align-items: center; }
.hero-sub { font-size: clamp(1.02rem, 2.6vw, 1.19rem); max-width: 34em; }
.hero-actions { margin: 22px 0 6px; }

/* the colourway trio — spread like a hand of cards, Classic front-centre.
   Insets keep the whole fan inside its box, so it centres cleanly everywhere. */
.hero-trio {
  position: relative;
  width: min(460px, 86vw);
  aspect-ratio: 1.08;
  margin: 0 auto;
}
/* plates ride high in their box so the fan's optical centre matches the
   text column's centre line */
.hero-trio img {
  position: absolute;
  bottom: 16%;
  border-radius: 8%/8%;
  box-shadow: var(--shadow-soft);
}
.hero-trio .t-left {
  left: 3%; width: 52%;
  transform: rotate(-13deg) translateY(-6%);
  transform-origin: bottom center;
}
.hero-trio .t-right {
  right: 3%; width: 52%;
  transform: rotate(13deg) translateY(-6%);
  transform-origin: bottom center;
}
.hero-trio .t-front {
  left: 50%; bottom: 12%;
  transform: translateX(-50%);
  width: 58%;
  box-shadow: 0 26px 60px rgba(64, 64, 64, 0.24);
  z-index: 2;
}

/* ---------- trust row (lives in the final CTA section) ---------- */
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 0;
  font-size: 0.85rem; color: var(--ink-2);
}
.trust-row span { display: inline-flex; align-items: center; }
.trust-row span + span::before {
  content: '·';
  margin: 0 14px;
  color: var(--muted);
}
.final-trust { margin-top: 30px; }

/* ---------- flow lines: sections join on waves, not hard edges ---------- */
.flow {
  position: relative;
  padding-bottom: calc(clamp(46px, 7vw, 88px) + 58px);
}
.flow::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 58px;
  background: var(--wave) bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.flow-flip::after { transform: scaleX(-1); }
.flow-white {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,58 C220,104 440,12 720,50 C1000,88 1220,24 1440,62 L1440,122 L0,122 Z' fill='%23ffffff'/%3E%3C/svg%3E");
}
.flow-blush {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,58 C220,104 440,12 720,50 C1000,88 1220,24 1440,62 L1440,122 L0,122 Z' fill='%23FFF4F1'/%3E%3C/svg%3E");
}
.flow-blue {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,58 C220,104 440,12 720,50 C1000,88 1220,24 1440,62 L1440,122 L0,122 Z' fill='%23EEF3FB'/%3E%3C/svg%3E");
}

/* ---------- sections ---------- */
.section { padding: clamp(46px, 7vw, 88px) 0; }
.section.alt { background: var(--tint-blue); }
.section.alt-blush { background: var(--tint-blush); }
.section h2 { margin-bottom: 0.6em; }

/* ---------- tap animation ---------- */
.tapdemo {
  position: relative;
  max-width: 560px; margin: 30px auto 10px;
  height: clamp(240px, 52vw, 330px);
}
.td-plate {
  position: absolute; left: 6%; top: 0;
  width: clamp(180px, 40vw, 250px);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.td-phone {
  position: absolute; right: 5%; bottom: 0;
  width: clamp(110px, 24vw, 150px); height: clamp(210px, 46vw, 290px);
  border-radius: 26px; background: var(--ink);
  padding: 10px;
  box-shadow: 0 18px 40px rgba(64, 64, 64, 0.3);
  animation: td-tap 4s ease-in-out infinite;
}
.td-screen {
  width: 100%; height: 100%; border-radius: 18px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  overflow: hidden;
}
.td-stars { display: flex; gap: 3px; font-size: clamp(15px, 3vw, 20px); }
.td-stars span { color: var(--gold); opacity: 0; animation: td-star 4s ease-in-out infinite; }
.td-stars span:nth-child(2) { animation-delay: 0.12s; }
.td-stars span:nth-child(3) { animation-delay: 0.24s; }
.td-stars span:nth-child(4) { animation-delay: 0.36s; }
.td-stars span:nth-child(5) { animation-delay: 0.48s; }
.td-posted {
  font-size: clamp(10px, 2.2vw, 13px); font-weight: 700; color: var(--peri-deep);
  opacity: 0; animation: td-posted 4s ease-in-out infinite;
}
.td-ripple {
  position: absolute; left: 40%; top: 40%;
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--peri);
  opacity: 0; animation: td-ripple 4s ease-out infinite;
}
@keyframes td-tap {
  0%, 8% { transform: translate(24px, 10px) rotate(6deg); }
  22%, 34% { transform: translate(-26px, -14px) rotate(-3deg); }
  52%, 100% { transform: translate(24px, 10px) rotate(6deg); }
}
@keyframes td-ripple {
  0%, 24% { opacity: 0; transform: scale(0.4); }
  30% { opacity: 0.9; }
  48% { opacity: 0; transform: scale(2.6); }
  100% { opacity: 0; }
}
@keyframes td-star {
  0%, 38% { opacity: 0; transform: scale(0.4); }
  48%, 88% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}
@keyframes td-posted {
  0%, 55% { opacity: 0; }
  65%, 88% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .td-phone, .td-stars span, .td-posted, .td-ripple { animation: none; }
  .td-stars span, .td-posted { opacity: 1; }
}

/* ---------- stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 26px auto 14px;
}
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 3px 12px rgba(64, 64, 64, 0.05);
}
.stat-big { font-size: 2.4rem; font-weight: 700; color: var(--peri); line-height: 1; margin-bottom: 10px; }
.stat-card:nth-child(2) .stat-big { color: var(--gold); }
.stat-card:nth-child(3) .stat-big { color: var(--blush-deep); }
.stat-card p { margin: 0; font-size: 0.95rem; }

/* ---------- solution section: steps beside the tap animation ---------- */
.solution-split { margin-top: 30px; align-items: center; }
.mini-steps {
  list-style: none;
  counter-reset: ms;
  padding: 0; margin: 0;
}
.mini-steps li {
  counter-increment: ms;
  position: relative;
  padding-left: 56px;
  margin-bottom: 24px;
}
.mini-steps li::before {
  content: counter(ms);
  position: absolute; left: 0; top: 2px;
  width: 38px; height: 38px; border-radius: 50%;
  color: #fff; font-weight: 700;
  display: grid; place-items: center;
  background: var(--peri);
}
.mini-steps li:nth-child(2)::before { background: var(--blush-deep); }
.mini-steps li:nth-child(3)::before { background: var(--gold); }
.mini-steps h3 { margin-bottom: 4px; }
.mini-steps p { margin: 0; font-size: 0.95rem; }
.solution-split .tapdemo { margin-top: 0; }

.protip { font-size: 0.95rem; margin-top: 18px; }

/* ---------- dashboard split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(26px, 5vw, 60px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink-2); }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--peri); font-weight: 700;
}
.soon {
  font-size: 0.72rem; font-weight: 700; color: var(--peri-deep);
  background: rgba(66, 133, 244, 0.12); padding: 2px 8px; border-radius: 999px;
  vertical-align: middle; margin-left: 4px;
}
.dash-mock {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow-soft);
}
.dash-title { font-weight: 700; margin-bottom: 14px; }
.dash-note { font-size: 0.7rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dash-tile {
  background: var(--tint-blue); border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.dash-tile:nth-child(3) { background: var(--tint-blush); }
.dash-tile span { font-size: 0.7rem; color: var(--muted); }
.dash-tile b { font-size: 1.15rem; color: var(--ink); }
.dash-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 110px;
  padding: 0 2px;
}
.dash-chart i {
  flex: 1; height: var(--h);
  background: var(--peri); border-radius: 5px 5px 0 0; opacity: 0.9;
}
.dash-chart i:nth-child(3n) { background: var(--blush); }
.dash-axis { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--muted); margin-top: 6px; }

/* ---------- product module ---------- */
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 3.5vw, 34px);
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(20px, 3.5vw, 44px);
  align-items: center;
}
.p-stage {
  background: var(--tint-blue);
  border-radius: 18px;
  padding: clamp(14px, 2vw, 22px);
}
.p-stage img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(64, 64, 64, 0.18);
  transition: opacity 0.18s ease;
}
.p-colors {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 14px;
}
.p-swatch {
  background: #fff; border: 2px solid var(--border); border-radius: 14px;
  padding: 8px 10px 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font: inherit; color: var(--ink-2); font-size: 0.78rem; font-weight: 700;
  transition: border-color 0.12s ease, transform 0.08s ease;
}
.p-swatch img { width: clamp(38px, 8vw, 52px); border-radius: 8px; }
.p-swatch:hover { transform: translateY(-2px); background: #fff; }
.p-swatch.active { border-color: var(--peri); color: var(--peri-deep); }
.p-right h2 { margin-bottom: 2px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.p-tag { color: var(--ink-2); margin-bottom: 10px; }
.p-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.price-now { font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1; }
.p-price-note { color: var(--muted); font-size: 0.88rem; }
.p-bundles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.p-bundle {
  background: #fff; border: 2px solid var(--border); border-radius: 14px;
  padding: 10px 8px; cursor: pointer; text-align: center;
  font: inherit; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 1px; align-items: center;
  transition: border-color 0.12s ease;
}
.p-bundle:hover { background: #fff; border-color: var(--peri); }
.p-bundle b { color: var(--ink); font-size: 0.92rem; }
.p-bundle span { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.p-bundle em { font-style: normal; font-size: 0.72rem; color: var(--peri-deep); font-weight: 700; }
.p-bundle.active { border-color: var(--peri); background: var(--tint-blue); }
.p-buy { display: block; width: 100%; }
.p-note { text-align: center; margin: 8px 0 0; }
.p-info {
  grid-column: 1 / -1;
  columns: 3; column-gap: 36px;
  border-top: 1px solid var(--border);
  padding-top: 18px; margin-top: 2px;
}
.p-info li { font-size: 0.88rem; margin-bottom: 8px; break-inside: avoid; }
@media (max-width: 1024px) {
  .p-info { columns: 2; }
}
.prosoon { margin-top: 26px; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- faq ---------- */
#faq details {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 0 18px; margin-bottom: 10px;
}
#faq summary {
  cursor: pointer; font-weight: 700; padding: 15px 0;
  list-style: none; position: relative; padding-right: 30px; color: var(--ink);
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--peri); font-weight: 400;
}
#faq details[open] summary::after { content: '–'; }
#faq details p { padding-bottom: 16px; margin: 0; font-size: 0.95rem; }

/* ---------- final + footer ---------- */
.final {
  padding-bottom: clamp(60px, 9vw, 110px);
  background:
    radial-gradient(700px 380px at 12% 20%, rgba(252, 207, 201, 0.55), transparent 62%),
    radial-gradient(700px 380px at 88% 80%, rgba(66, 133, 244, 0.16), transparent 62%),
    var(--page);
}
.final h2 { margin-bottom: 0.9em; }
.footer { border-top: 1px solid var(--border); padding: 30px 0 92px; background: #fff; }
.footer em { font-style: normal; color: var(--peri); }
.footer p { margin-bottom: 4px; }

/* ---------- sticky mobile bar ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 253, 252, 0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.stickybar.show { transform: translateY(0); }
.sb-text { font-weight: 700; font-size: 0.95rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .hero-trio { width: min(380px, 86vw); }
  .split { grid-template-columns: 1fr; }
  .stats-grid, .steps-grid { grid-template-columns: 1fr; max-width: 480px; }
  .product-card { grid-template-columns: 1fr; }
  .p-info { columns: 1; }
  .trust-row { font-size: 0.78rem; }
  .trust-row span + span::before { margin: 0 8px; }
}
@media (min-width: 861px) {
  .stickybar { display: none; }
  .footer { padding-bottom: 34px; }
}
