/* ==========================================================================
   Pi Alarm — Landing page
   Mobile-first responsive
   ========================================================================== */

:root {
  --brand: #7341D0;
  --brand-dark: #552AA0;
  --brand-darker: #3D1F7A;
  --brand-soft: #F4EFFC;
  --brand-glow: rgba(115, 65, 208, 0.3);
  --accent: #FFCC00;
  --accent-soft: #FFF4C2;
  --text: #1A1A1A;
  --text-secondary: #3A3A40;
  --muted: #6B6B6F;
  --border: #E5E5EA;
  --border-soft: #EFEFF2;
  --bg: #FFFFFF;
  --bg-alt: #F7F7F9;
  --bg-dark: #0F0820;
  --success: #2E7D32;
  --shadow-sm: 0 1px 3px rgba(20, 0, 60, 0.06);
  --shadow-md: 0 6px 20px rgba(20, 0, 60, 0.08);
  --shadow-lg: 0 20px 60px rgba(20, 0, 60, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1100px;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', 'Spoqa Han Sans Neo', 'Noto Sans KR',
               'Apple SD Gothic Neo', 'Malgun Gothic',
               -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.4px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px var(--brand-glow);
}

.nav-links {
  display: none;
  gap: 28px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover { color: var(--brand); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--brand);
  color: #FFFFFF;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s ease;
}

.header-cta:hover { background: var(--brand-dark); color: #FFFFFF; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(115, 65, 208, 0.45) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(85, 42, 160, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, #1A0E40 0%, #0F0820 100%);
  color: #FFFFFF;
  overflow: hidden;
  padding: 56px 20px 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 204, 0, 0.15);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  border: 1px solid rgba(255, 204, 0, 0.3);
}

.hero h1 {
  margin: 16px 0 0;
  /* Fluid size so "Pi 지갑의 모든 거래," always fits one line on any width */
  font-size: clamp(20px, 8vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent) 0%, #FFE066 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
}

.hero-cta-row {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #FFFFFF;
  color: #1A0E40;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  min-width: 220px;
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  color: #1A0E40;
}

.btn-store .store-icon { width: 28px; height: 28px; flex-shrink: 0; }

.btn-store .store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.btn-store .store-text small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}

.btn-store-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-store-secondary:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* ---------- Hero phone mockup ---------- */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1000px;
}

.notif-stack {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notif-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transform-origin: top;
}

.notif-card.dim {
  opacity: 0.55;
  transform: scale(0.95) translateY(-4px);
}

.notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}

.notif-body { flex: 1; min-width: 0; }

.notif-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.notif-meta strong { color: var(--text); font-weight: 700; }

.notif-title {
  font-size: 14px;
  font-weight: 700;
  margin: 2px 0 2px;
  letter-spacing: -0.2px;
}

.notif-title .amount-in { color: var(--success); }
.notif-title .amount-out { color: #C0392B; }

.notif-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  word-break: break-all;
}

/* ---------- Section ---------- */

.section {
  padding: 64px 20px;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-eyebrow {
  display: block;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.6px;
  text-align: center;
  margin: 0 0 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  margin: 0 auto 40px;
  max-width: 600px;
  line-height: 1.6;
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  padding: 24px 22px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-soft);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- How it works ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 56px;
  font-weight: 900;
  color: var(--brand-soft);
  line-height: 1;
  letter-spacing: -2px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
  position: relative;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  position: relative;
}

/* ---------- Plans ---------- */

.section-plans { background: var(--bg-alt); }

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.plan-card {
  --plan-accent: var(--brand);
  --plan-tint: var(--bg);
  position: relative;
  padding: 28px 24px;
  background: var(--plan-tint);
  border: 2px solid rgba(115, 65, 208, 0.35);  /* uniform, slightly thick purple */
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

/* Purple family, clearly deeper Free → Basic → Pro */
.plan-card:nth-child(1) { --plan-tint: #F5EFFE; } /* Free  — lightest */
.plan-card:nth-child(2) { --plan-tint: #E6DAFB; } /* Basic — mid      */
.plan-card:nth-child(3) { --plan-tint: #D3C0F1; } /* Pro   — deepest  */

/* Pro stays gently lifted */
.plan-card.featured { box-shadow: var(--shadow-md); }

.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--plan-accent);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Plan tier rendered as a badge image (replaces the old text label). */
.plan-badge-img {
  display: block;
  /* Height only — width is left to the image's natural aspect ratio so it
     never distorts. (Specifying a width, even via the HTML attribute, forces
     a rounded ratio and slightly stretches the badge.) */
  height: 36px;
  /* The card is a column flexbox; without this the default align-items:stretch
     stretches the image to the card's full width (distorting it). flex-start
     keeps the image at its natural aspect ratio. */
  align-self: flex-start;
  margin: 0 0 8px;
}

/* Visually-hidden tier name kept for screen readers / SEO. */
.plan-name-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.plan-tag {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.plan-features li {
  font-size: 14px;
  padding: 8px 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-soft);
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li::before {
  content: "✓";
  color: var(--plan-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-features li.muted {
  color: var(--muted);
}

.plan-features li.muted::before {
  content: "—";
  color: var(--border);
}

.plan-features li strong {
  color: var(--text);
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-item summary {
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--brand);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 0 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Final CTA ---------- */

.section-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.section-cta .section-title { color: #FFFFFF; position: relative; }
.section-cta .section-sub { color: rgba(255, 255, 255, 0.78); position: relative; }

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ---------- Footer ---------- */

footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 20px 28px;
  font-size: 14px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-brand .logo { color: #FFFFFF; }

.footer-brand p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 14px;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ---------- Focus styles ---------- */

:focus-visible {
  outline: 3px solid rgba(255, 204, 0, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Tablet ≥ 700px
   ========================================================================== */

@media (min-width: 700px) {
  .hero { padding: 80px 24px 96px; }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .hero-text { flex: 1; }
  .hero-visual { flex: 1; }

  .hero h1 { font-size: clamp(28px, 4vw, 50px); letter-spacing: -1.2px; }
  .hero-sub { font-size: 19px; }

  .hero-cta-row { flex-direction: row; }

  .section { padding: 88px 24px; }

  .section-title { font-size: 36px; }
  .section-sub { font-size: 17px; margin-bottom: 56px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

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

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

  .cta-buttons { flex-direction: row; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }

  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }

  .nav-links { display: inline-flex; }
}

/* ==========================================================================
   Desktop ≥ 1024px
   ========================================================================== */

@media (min-width: 1024px) {
  .hero { padding: 100px 32px 120px; }
  .hero h1 { font-size: clamp(40px, 4.2vw, 52px); line-height: 1.1; }
  .hero-sub { font-size: 20px; }

  .section { padding: 100px 32px; }
  .section-title { font-size: 44px; }

  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Scroll reveal — fade + slide up as elements enter the viewport
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays — applied to grid siblings so they cascade in */
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* Motion-sensitive users: show everything immediately, no fade */
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   App-on-phone mockups — pure-CSS device frame wrapping real app screenshots
   ========================================================================== */
.device {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 1 / 1.95;              /* taller, real-phone proportions */
  border-radius: 34px;
  padding: 7px;                        /* black bezel thickness (thin) */
  background: #0a0a0c;
  box-shadow:
    0 34px 80px rgba(20, 0, 60, 0.45),
    0 10px 24px rgba(0, 0, 0, 0.40),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.22),   /* bright titanium rim */
    inset 0 0 3px 4px rgba(0, 0, 0, 0.55);
}
/* Side buttons — left volume rocker (+ action button) and right power */
.device::before,
.device::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #34343a, #101013);
  z-index: 1;
}
.device::before {            /* left side */
  left: -2px;
  top: 27%;
  height: 15%;
  box-shadow: 0 -34px 0 0 #2a2a30;   /* small action/silent button above */
}
.device::after {             /* right side — power */
  right: -2px;
  top: 33%;
  height: 12%;
}
.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* show full screenshot — no left/right cropping */
  display: block;
}
/* Dynamic Island */
.device-notch {
  position: absolute;
  top: 3.6%;
  left: 50%;
  transform: translateX(-50%);
  width: 31%;
  height: 5%;
  min-height: 17px;
  max-height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Hero: phone running the app + a push notification floating over the top */
.hero-phone-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.hero-phone-wrap .device { max-width: 300px; }
.notif-float {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 108%;
  max-width: 360px;
  height: auto;
  display: block;
  z-index: 5;
  opacity: 0.8;             /* slightly transparent — phone behind shows through */
  border-radius: 12px;      /* slightly round the notification corners */
  /* drop-shadow follows the PNG's rounded alpha shape (not a square box) */
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.42));
  animation: notifFloat 3.4s ease-in-out infinite;
}
@keyframes notifFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 7px)); }
}

/* App-preview showcase: phone beside highlight bullets */
.showcase {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--brand-soft) 100%);
}
.showcase-row {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.showcase-points {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 440px;
  width: 100%;
}
.showcase-point { display: flex; gap: 14px; align-items: flex-start; }
.showcase-point .sp-ic {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.showcase-point h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}
.showcase-point p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 700px) {
  .device { max-width: 300px; }
  .showcase-row {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 64px;
  }
}

/* ==========================================================================
   Section grouping — alternating backgrounds + a distinct colored eyebrow
   chip per section so Features / How it works / Plans / FAQ read as clearly
   separate blocks instead of one continuous white page.
   ========================================================================== */
#features      { background: var(--bg); border-top: 1px solid var(--border-soft); }
#how-it-works  { background: var(--brand-soft); border-top: 1px solid var(--border-soft); }
.section-plans { border-top: 1px solid var(--border-soft); }   /* bg: --bg-alt (gray) */
#faq           { background: var(--bg); border-top: 1px solid var(--border-soft); }

/* Per-section eyebrow chip colors (Plans keeps the default brand purple). */
#features .section-eyebrow     { background: var(--accent-soft); color: #8A6D00; } /* amber */
#how-it-works .section-eyebrow { background: #E8EDFF;            color: #3A57D7; } /* blue  */
#faq .section-eyebrow          { background: #E6F6E9;            color: var(--success); } /* green */

/* ==========================================================================
   Plan price display + in-card billing toggle (Pro only: monthly / annual)
   ========================================================================== */
.plan-price { margin: 4px 0 18px; min-height: 56px; }
.plan-price b { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.plan-price .per { font-size: 14px; color: var(--muted); margin-left: 3px; }
.price-free { font-size: 24px; font-weight: 800; color: var(--text); }
.price-note { display: inline; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--brand); }
.price-annual { display: none; }
.plan-price.show-annual .price-monthly { display: none; }
.plan-price.show-annual .price-annual  { display: block; }

/* Compact month/year toggle inside the Pro card */
.cycle-toggle {
  display: flex;
  width: fit-content;          /* block-level → price shows on the line below */
  gap: 3px;
  margin-bottom: 12px;
  padding: 3px;
  background: var(--bg-alt);
  border-radius: 999px;
}
.plan-price .price-monthly,
.plan-price .price-static { display: block; }
.cycle-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.cycle-opt.is-active { background: var(--brand); color: #FFFFFF; }
.save-badge {
  background: var(--accent-soft);
  color: #8A6D00;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
}
.cycle-opt.is-active .save-badge { background: #FFFFFF; color: var(--brand-dark); }
