/* ============================================================
   GrooveBook landing page — warm family refresh
   Mobile-first. Warm ivory + cornflower accent. No JavaScript.
   ============================================================ */

:root {
  --ink: #131A26;         /* headlines, body (deep navy) */
  --muted: #5C6B84;       /* secondary text (slate blue) */
  --paper: #F8FAFD;       /* ice-blue page background */
  --cream: #EDF2FA;       /* pale blue section background */
  --accent: #4F69D9;      /* primary: soft cornflower blue */
  --accent-dark: #3E54B4;
  --navy: #1B2B5C;      /* deep anchor blue */
  --lavender: #8FA9E6;    /* secondary accent (periwinkle) */
  --peach: #A9BCE8;       /* light blue accent (photo corners) */
  --line: #DFE6F1;        /* cool hairline borders */
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge, .cta { transition: none; }
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a:focus-visible,
.badge:focus-visible,
.cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ HERO ============ */

.hero { padding: 40px 0 72px; }

.hero-grid { display: block; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 52px;
}

.logo-mark { width: 32px; height: 32px; }

.logo-word {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.accent-word {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0 0.06em 0.12em;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 12" preserveAspectRatio="none"><path d="M4 8 Q 40 12 70 6 T 116 5" fill="none" stroke="%234F69D9" stroke-width="3.5" stroke-linecap="round"/></svg>') no-repeat bottom / 100% 0.14em;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  max-width: 11em;
  margin-bottom: 20px;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 27em;
  margin-bottom: 32px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 0 18px;
  line-height: 1.15;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(19, 26, 38, 0.16);
}

.badge svg { width: 24px; height: 24px; flex: none; }

.badge span {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 1rem;
}

.badge small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
}

.trust-line {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --- Phone mockup with soft organic shape + photo corners --- */

.hero-visual {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.phone-wrap {
  --visual-w: clamp(150px, 42vw, 250px);
  position: relative;
  display: flex;
  align-items: center;
}

/* Soft lavender-cream organic shape behind the phone */
.phone-wrap::before {
  content: "";
  position: absolute;
  inset: 2% -8% -6% -8%;
  background: radial-gradient(ellipse at 38% 42%,
              rgba(143, 169, 230, 0.30) 0%,
              rgba(237, 242, 250, 0.9) 62%,
              rgba(237, 242, 250, 0) 78%);
  border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
  z-index: 0;
}



.phone {
  position: relative;
  z-index: 1;
  width: var(--visual-w);
  height: auto;
  transform: rotate(-3deg);
  filter: drop-shadow(0 20px 36px rgba(19, 26, 38, 0.16));
}

/* Little printed photos escaping the phone — the product, made physical */
.print {
  position: absolute;
  z-index: 3;
  background: #FFFFFF;
  padding: 6px 6px 18px;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(19, 26, 38, 0.18);
}

.print svg {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 3px;
}

.print-1 {
  top: -18px;
  left: -16px;
  transform: rotate(-8deg);
}

.print-2 {
  bottom: -8px;
  right: -12px;
  transform: rotate(7deg);
}

/* The physical product: the photobook, same size as the phone */
.book {
  position: relative;
  z-index: 2;
  width: var(--visual-w);
  margin-left: calc(var(--visual-w) * -0.14);
  transform: rotate(6deg) translateY(14%);
  filter: drop-shadow(0 16px 28px rgba(19, 26, 38, 0.2));
}

.book svg { display: block; width: 100%; height: auto; }

/* ============ HOW IT WORKS ============ */

.how {
  background: var(--cream);
  border-radius: 32px;
  margin: 0 12px;
  padding: 64px 0;
}

.how h2,
.pricing h2 {
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  margin-bottom: 40px;
}

.steps {
  list-style: none;
  display: grid;
  gap: 40px;
}

.step-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(19, 26, 38, 0.05);
  margin-bottom: 18px;
}

.step-icon { width: 34px; height: 34px; }

.step-num {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.steps h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
  max-width: 30em;
}

/* ============ PRICING ============ */

.pricing { padding: 72px 0; }

.price-card {
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 420px;
  box-shadow: 0 2px 12px rgba(19, 26, 38, 0.04);
}

.price { margin-bottom: 20px; }

.price-amount {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-per {
  font-size: 1.125rem;
  color: var(--muted);
  margin-left: 4px;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
}

.price-features li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  color: var(--muted);
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 999px;
  transition: background 160ms ease, transform 160ms ease;
}

.cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ============ PROMO CODE ============ */

.promo {
  background: var(--navy);
  color: #fff;
  border-radius: 32px;
  margin: 0 12px;
  padding: 56px 0;
}

.promo-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.promo h2 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  margin-bottom: 8px;
}

.promo p { opacity: 0.88; max-width: 34em; }

.promo-chip {
  align-self: flex-start;
  transform: rotate(-2deg);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 12px 20px;
}

/* ============ FOOTER ============ */

.footer { padding: 48px 0 56px; }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.footer-brand { font-weight: 700; letter-spacing: -0.01em; }

.footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover { color: var(--accent); }

.footer-note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ============ DESKTOP ============ */

@media (min-width: 820px) {
  .hero { padding: 56px 0 96px; }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
  }

  .hero-visual { margin-top: 0; }

  .phone-wrap { --visual-w: 260px; }

  .how { padding: 96px 0; margin: 0 24px; }

  .pricing { padding: 104px 0; }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }

  .steps li { position: relative; }

  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    left: 84px;
    right: -28px;
    border-top: 2px dashed #B9C8E4;
  }

  .promo { padding: 72px 0; margin: 0 24px 24px; }

  .promo-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .promo-chip { align-self: center; }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer nav { flex-direction: row; gap: 28px; }
}

/* ============ LEGAL PAGES (privacy.html / terms.html) ============ */

.legal-header { padding: 32px 0 0; }

.legal-header .logo { margin-bottom: 0; }

.legal-main {
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.legal-main h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin-bottom: 8px;
}

.effective {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 36px;
}

.legal-main h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
}

.legal-main p { color: var(--muted); }

.legal-main p + p { margin-top: 14px; }

.legal-main a { color: var(--accent); }

body.legal .footer { margin-top: 0; }
