/* =============================================================
   Plendy · Landing page styles
   Palette sourced from lib/config/colors.dart
   ============================================================= */

:root {
  /* Core neutrals */
  --bg:          #F8F5F2;   /* backgroundColor */
  --bg-mid:      #EBE6E0;   /* backgroundColorMid */
  --bg-dark:     #E5E4DF;   /* backgroundColorDark */
  --ink:         #1C1C1C;   /* primaryBlack */
  --ink-soft:    #4B4B4B;   /* primaryGreyDark */
  --hairline:    #D6D3CE;   /* primaryGrey */

  /* Accents */
  --wine:        #9E2A39;
  --wine-tint:   #AD4A57;
  --wine-light:  #CE949C;
  --wine-bold:   #862430;
  --wine-dark:   #6F1D28;
  --gold:        #C7A256;
  --teal:        #2F6F6D;
  --blush:       #E7B7BC;

  /* Deep surface for dark panel */
  --deep:        #1F1612;

  /* Motion */
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --gutter:      clamp(20px, 4vw, 48px);
  --max:         1240px;
}

/* Reset / base --------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Fraunces", "Playfair Display", "Times New Roman", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-variation-settings: "opsz" 64;
}

em {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--wine);
}

/* Eyebrow / label ----------------------------------------------- */
.p-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.p-eyebrow--light { color: rgba(255, 255, 255, 0.78); }

/* Buttons ------------------------------------------------------- */
.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.p-btn--ghost {
  color: var(--ink);
  border-color: rgba(28, 28, 28, 0.2);
  background: transparent;
}
.p-nav--scrolled .p-btn--ghost {
  border-color: rgba(28, 28, 28, 0.2);
}
.p-btn--ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.p-btn--primary {
  color: #fff;
  background: var(--wine);
  border-color: var(--wine);
}
.p-btn--primary svg { width: 16px; height: 16px; }
.p-btn--primary:hover {
  background: var(--wine-bold);
  border-color: var(--wine-bold);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(158, 42, 57, 0.55);
}

.p-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.p-text-link--light { color: rgba(255, 255, 255, 0.92); }
.p-text-link span {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.p-text-link span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.p-text-link:hover span::after { transform: scaleX(0); transform-origin: right; }
.p-text-link svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.p-text-link:hover svg { transform: translateX(4px); }

/* App Store badge ---------------------------------------------- */
.p-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #0c0c0c;
  color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.p-appstore:hover {
  transform: translateY(-2px);
  background: #000;
  box-shadow: 0 22px 40px -22px rgba(0, 0, 0, 0.45);
}
.p-appstore svg { width: 26px; height: 26px; fill: #fff; }
.p-appstore__copy { display: flex; flex-direction: column; line-height: 1; }
.p-appstore__copy small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2px;
}
.p-appstore__copy strong {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.p-appstore--dark { background: var(--ink); }
.p-appstore--dark:hover { background: #000; }

/* =============================================================
   Intro overlay
   ============================================================= */
.p-intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: p-intro-fade 900ms var(--ease) 700ms forwards;
}
.p-intro__mark img {
  width: min(320px, 66vw);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  animation: p-intro-mark 1.1s var(--ease-out) 120ms forwards;
}
@keyframes p-intro-mark {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes p-intro-fade {
  to { opacity: 0; visibility: hidden; }
}

/* =============================================================
   Navigation
   ============================================================= */
.p-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease),
    box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.p-nav--scrolled {
  padding: 12px 0;
  background: rgba(248, 245, 242, 0.82);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  box-shadow: 0 1px 0 rgba(28, 28, 28, 0.06);
}

.p-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.p-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  transition: color 0.35s var(--ease);
}
.p-nav--scrolled .p-nav__brand { color: var(--ink); }
.p-nav__logo {
  width: 156px;
  max-height: 58px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.05));
}
.p-nav--scrolled .p-nav__logo {
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.05));
}

.p-nav__links {
  display: flex;
  justify-content: center;
  gap: 36px;
}
.p-nav__links a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.3s var(--ease);
}
.p-nav--scrolled .p-nav__links a { color: var(--ink-soft); }
.p-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.p-nav__links a:hover { color: #fff; }
.p-nav--scrolled .p-nav__links a:hover { color: var(--wine); }
.p-nav__links a:hover::after { transform: scaleX(1); }

.p-nav__cta .p-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.p-nav__cta .p-btn--ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.p-nav--scrolled .p-nav__cta .p-btn--ghost {
  color: var(--ink);
  border-color: rgba(28, 28, 28, 0.25);
}
.p-nav--scrolled .p-nav__cta .p-btn--ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.p-nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.p-nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease),
    background 0.3s var(--ease);
}
.p-nav--scrolled .p-nav__toggle span { background: var(--ink); }
.p-nav--open .p-nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.p-nav--open .p-nav__toggle span:nth-child(2) { opacity: 0; }
.p-nav--open .p-nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================================
   Hero
   ============================================================= */
.p-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: start center;
  color: #fff;
  overflow: hidden;
  padding: clamp(108px, 11vh, 132px) var(--gutter) 80px;
  isolation: isolate;
}

.p-hero__bg {
  position: absolute;
  inset: -10% -5% -5% -5%;
  z-index: -1;
}
.p-hero__grid,
.p-hero__orb {
  position: absolute;
  pointer-events: none;
}
.p-hero__grid {
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 72%);
}
.p-hero__orb {
  width: clamp(280px, 38vw, 560px);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.68;
}
.p-hero__orb--one {
  left: 4%;
  top: 12%;
  background: radial-gradient(circle, rgba(158, 42, 57, 0.65), transparent 68%);
}
.p-hero__orb--two {
  right: 6%;
  bottom: 4%;
  background: radial-gradient(circle, rgba(199, 162, 86, 0.48), transparent 70%);
}
.p-hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 50% 12%, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(135deg, rgba(31, 22, 18, 0.86) 0%, rgba(111, 29, 40, 0.86) 48%, rgba(31, 22, 18, 0.95) 100%);
}

.p-hero__content {
  position: relative;
  max-width: 960px;
  text-align: center;
}

.p-hero__title {
  font-size: clamp(44px, 7.2vw, 104px);
  font-weight: 400;
  line-height: 1;
  margin: 22px 0 28px;
}
.p-hero__title .p-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.p-hero__title .p-line + .p-line { margin-top: 0.02em; }
.p-hero__title em { color: var(--gold); }

.p-hero__sub {
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.p-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
  margin-top: 42px;
}



.p-hero__showcase {
  position: relative;
  height: clamp(360px, 42vw, 520px);
  margin: clamp(48px, 7vw, 76px) auto 0;
  max-width: 720px;
}

.p-phone {
  position: absolute;
  width: clamp(190px, 24vw, 285px);
  aspect-ratio: 9 / 19.5;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(145deg, #2a2425, #0c0c0c);
  box-shadow: 0 34px 90px -42px rgba(0, 0, 0, 0.92), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.p-phone--map { left: 11%; top: 0; transform: rotate(-6deg); }
.p-phone--plan { right: 9%; top: 44px; transform: rotate(7deg); }
.p-phone__bar {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 18px;
  border-radius: 999px;
  background: #0a0a0a;
  z-index: 2;
}
.p-phone__screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: var(--bg);
}

.p-map-ui,
.p-map-panel {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(35deg, rgba(47, 111, 109, 0.12) 12%, transparent 12% 52%, rgba(158, 42, 57, 0.10) 52%),
    linear-gradient(120deg, transparent 0 44%, rgba(199, 162, 86, 0.20) 44% 50%, transparent 50%),
    var(--bg-mid);
}
.p-map-pin {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 999px 999px 999px 2px;
  background: var(--wine);
  transform: rotate(-45deg);
  box-shadow: 0 10px 24px rgba(158, 42, 57, 0.35);
}
.p-map-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: #fff;
}
.p-map-pin--one { left: 28%; top: 28%; }
.p-map-pin--two { left: 62%; top: 44%; background: var(--teal); }
.p-map-pin--three { left: 42%; top: 62%; background: var(--gold); }
.p-map-card,
.p-map-drawer {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: 0 20px 40px -26px rgba(28, 28, 28, 0.5);
}
.p-map-card span,
.p-map-drawer span { font-size: 12px; color: var(--ink-soft); }
.p-plan-ui {
  display: grid;
  gap: 12px;
  height: 100%;
  padding: 70px 18px 18px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.p-plan-ui__label {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wine);
  background: rgba(158, 42, 57, 0.1);
}
.p-plan-ui strong { font-family: "Fraunces", serif; font-size: 28px; line-height: 1; }
.p-plan-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-mid);
  font-size: 13px;
}
.p-plan-row b { color: var(--wine); font-size: 12px; }

.p-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.p-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.p-hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  height: 30%;
  background: #fff;
  animation: p-scroll-run 2.4s var(--ease) infinite;
}
@keyframes p-scroll-run {
  0%   { top: -30%; }
  100% { top: 130%; }
}

/* =============================================================
   Generic panel / intro
   ============================================================= */
.p-panel {
  padding: clamp(120px, 16vw, 200px) var(--gutter);
  background: var(--bg);
  position: relative;
}
.p-panel--intro {
  background: var(--bg);
}
.p-panel__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.p-panel__inner--wide { max-width: 1100px; }

.p-panel__title {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.08;
  margin: 22px 0 24px;
  letter-spacing: -0.015em;
}
.p-panel__title--light { color: #fff; }

.p-panel__body {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}
.p-panel__body--light { color: rgba(255, 255, 255, 0.78); }

/* Dark panel -------------------------------------------------- */
.p-panel--dark {
  background:
    radial-gradient(80% 60% at 20% 10%, rgba(199, 162, 86, 0.08), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(158, 42, 57, 0.18), transparent 60%),
    var(--deep);
  color: #fff;
}
.p-panel--dark em { color: var(--gold); }

.p-sources {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
}
.p-source {
  position: relative;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.4s var(--ease), color 0.4s var(--ease);
}
.p-source span {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}
.p-source:hover {
  background: rgba(199, 162, 86, 0.14);
  border-color: rgba(199, 162, 86, 0.5);
  transform: translateY(-2px);
}

/* =============================================================
   Feature sections (image + copy)
   ============================================================= */
.p-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  padding: clamp(90px, 12vw, 160px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.p-feature--warm {
  background: var(--bg-mid);
  max-width: none;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2));
}

.p-feature__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(28, 28, 28, 0.35);
}
.p-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
  transition: transform 8s linear;
}
.p-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.18));
}


.p-feature__media--app {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(70% 60% at 20% 20%, rgba(199, 162, 86, 0.28), transparent 62%),
    radial-gradient(80% 70% at 90% 90%, rgba(158, 42, 57, 0.22), transparent 66%),
    linear-gradient(145deg, #fff, var(--bg-mid));
}
.p-feature__media--app::after { display: none; }
.p-feature__media--collab {
  background:
    radial-gradient(75% 70% at 80% 20%, rgba(47, 111, 109, 0.22), transparent 64%),
    linear-gradient(145deg, var(--bg), #fff);
}
.p-feature__media--map {
  background: linear-gradient(145deg, #f8f5f2, #e4ded7);
}
.p-app-card {
  position: relative;
  z-index: 1;
  width: min(78%, 360px);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -42px rgba(28, 28, 28, 0.7);
}
.p-app-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Fraunces", serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}
.p-app-card p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
.p-app-card__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
}
.p-app-card--mini {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 190px;
  padding: 18px;
  border-radius: 22px;
  transform: rotate(4deg);
}
.p-app-card--mini strong { font-family: "Inter", sans-serif; font-size: 15px; margin: 0 0 4px; }
.p-app-card--mini span { font-size: 12px; color: var(--ink-soft); }
.p-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.p-chip-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(158, 42, 57, 0.09);
  color: var(--wine);
  font-size: 12px;
  font-weight: 600;
}
.p-avatar-row { display: flex; margin: 22px 0; }
.p-avatar-row span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.p-avatar-row span:first-child { margin-left: 0; }
.p-avatar-row span:nth-child(2) { background: var(--teal); }
.p-avatar-row span:nth-child(3) { background: var(--gold); }
.p-avatar-row span:nth-child(4) { background: var(--ink); }
.p-vote {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 14px;
}
.p-vote b { color: var(--wine); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.p-map-panel {
  width: min(78%, 390px);
  height: min(76%, 460px);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px -46px rgba(28, 28, 28, 0.7);
}

.p-feature__copy { max-width: 520px; }
.p-feature--right .p-feature__media { order: 2; }
.p-feature--right .p-feature__copy { order: 1; justify-self: end; }

.p-feature__title {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.1;
  margin: 18px 0 22px;
}

.p-feature__list {
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.p-feature__list li {
  position: relative;
  padding: 18px 0 18px 28px;
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.p-feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 14px;
  height: 1px;
  background: var(--wine);
}

/* =============================================================
   Quote / social proof
   ============================================================= */
.p-quote {
  padding: clamp(100px, 14vw, 180px) var(--gutter);
  background: var(--bg);
  text-align: center;
}
.p-quote__inner {
  max-width: 900px;
  margin: 0 auto;
}
.p-stars {
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 6px;
  margin-bottom: 28px;
}
.p-quote__body {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.p-quote__cite {
  margin-top: 26px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* =============================================================
   CTA
   ============================================================= */
.p-cta {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: var(--bg);
}
.p-cta__frame {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) clamp(28px, 6vw, 80px);
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(199, 162, 86, 0.18), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(158, 42, 57, 0.35), transparent 60%),
    #2a1c1e;
  color: #fff;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.p-cta__frame::before,
.p-cta__frame::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  inset: 14px;
  border-radius: 4px;
  pointer-events: none;
}
.p-cta__frame::after {
  inset: 28px;
  border-color: rgba(255, 255, 255, 0.05);
}

.p-cta__title {
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  margin: 22px auto 0;
  max-width: 820px;
  color: #fff;
}
.p-cta__title em { color: var(--gold); }

.p-cta__actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

/* =============================================================
   Footer
   ============================================================= */
.p-foot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  padding: 80px var(--gutter) 28px;
}
.p-foot__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  align-items: start;
}
.p-foot__brand img { height: 36px; filter: brightness(0) invert(1); }
.p-foot__brand p {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.p-foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.p-foot__cols h4 {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.p-foot__cols a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.p-foot__cols a:hover { color: #fff; transform: translateX(4px); }

.p-foot__bottom {
  max-width: var(--max);
  margin: 56px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* =============================================================
   Scroll reveal
   ============================================================= */
[data-reveal] {
  opacity: 1;
  transform: none;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Special reveal for hero lines: slide up from inside the overflow mask */
.p-hero__title .p-line {
  transform: none;
  transition: none;
}
[data-reveal].is-visible .p-line,
[data-reveal].is-visible + .p-line,
.p-hero__title[data-reveal].is-visible .p-line {
  transform: translateY(0);
}
.p-hero__title[data-reveal].is-visible .p-line:nth-child(2) {
  transition-delay: 0.15s;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 960px) {
  .p-nav__links { display: none; }

  .p-feature {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .p-feature--right .p-feature__media { order: 1; }
  .p-feature--right .p-feature__copy { order: 2; justify-self: start; }
  .p-feature__media { aspect-ratio: 5 / 4; }

  .p-foot__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .p-nav__logo { width: 126px; }
  .p-nav__inner { gap: 12px; }

  .p-hero { padding-top: 104px; }
  .p-hero__actions { flex-direction: column; gap: 16px; }
  .p-hero__showcase { height: 320px; max-width: 360px; }
  .p-phone { width: 178px; border-radius: 30px; padding: 9px; }
  .p-phone__screen { border-radius: 23px; }
  .p-phone__bar { top: 14px; height: 14px; }
  .p-phone--map { left: 0; }
  .p-phone--plan { right: 0; top: 34px; }
  .p-hero__scroll { display: none; }

  .p-foot__cols { grid-template-columns: 1fr 1fr; }
  .p-cta__actions { flex-direction: column; }
  .p-cta__actions .p-appstore,
  .p-cta__actions .p-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .p-hero__title .p-line { transform: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
