/* Perch Web: Authentic Perch Studio Palette (Warm White, Olive-Obsidian, Perch Fin Vermilion) */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Default Light Mode: Crisp pearl-white canvas with deep olive-obsidian type */
  --bg: #ffffff;
  --bg-subtle: #fbfaf8;
  --bg-card: #ffffff;
  --text-main: #141715;
  --text-muted: #4e5651;
  --text-subtle: #757d77;
  --border: #e6e5df;
  --border-light: #f2f1ec;

  /* Perch Fin Vermilion: Warm, energetic, authentic */
  --brand: #ea580c;
  --brand-hover: #c2410c;
  --brand-light: #fff7ed;
  --brand-accent: #f97316;
  --brand-text: #ffffff;

  /* Perch River Reed Moss: Natural green for checkmarks and status badges */
  --moss: #166534;
  --moss-light: #f0fdf4;
  --moss-border: #bbf7d0;

  /* Perch Flank Gold: For review stars */
  --gold: #ca8a04;
  --gold-light: #fef9c3;

  --phone-bezel: #1c1917;
  --phone-screen: #ffffff;

  --shadow-sm: 0 1px 2px 0 rgb(20 23 21 / 0.04);
  --shadow-md: 0 4px 14px -2px rgb(20 23 21 / 0.06), 0 2px 4px -2px rgb(20 23 21 / 0.03);
  --shadow-lg: 0 16px 32px -4px rgb(20 23 21 / 0.08), 0 4px 8px -2px rgb(20 23 21 / 0.03);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111412;
  --bg-subtle: #171c19;
  --bg-card: #1c221e;
  --text-main: #f4f6f4;
  --text-muted: #9ba49e;
  --text-subtle: #6e7771;
  --border: #29322c;
  --border-light: #202722;

  --brand: #f97316;
  --brand-hover: #fb923c;
  --brand-light: #2a150c;
  --brand-accent: #ea580c;
  --brand-text: #ffffff;

  --moss: #4ade80;
  --moss-light: #14281b;
  --moss-border: #1d4329;

  --gold: #facc15;
  --gold-light: #2f2509;

  --phone-bezel: #0a0d0b;
  --phone-screen: #161c18;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.35);
  --shadow-md: 0 4px 14px -2px rgb(0 0 0 / 0.45);
  --shadow-lg: 0 16px 32px -4px rgb(0 0 0 / 0.6);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* Top Navigation */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding-block: 1rem;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand-link {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 1.15rem; font-weight: 750; color: var(--text-main); text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-link img { width: 2.1rem; height: 2.1rem; border-radius: 9px; }
.brand-tag {
  font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.55rem;
  border-radius: 999px; background: var(--bg-subtle); color: var(--text-subtle);
  border: 1px solid var(--border);
}
.nav-menu {
  display: none; align-items: center; gap: 2rem; font-size: 0.9375rem; font-weight: 550;
}
@media (min-width: 52rem) {
  .nav-menu { display: flex; }
}
.nav-menu a { color: var(--text-muted); text-decoration: none; }
.nav-menu a:hover { color: var(--text-main); }

.nav-right {
  display: flex; align-items: center; gap: 0.75rem;
}
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.35rem; height: 2.35rem; border-radius: 9px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); background: var(--bg-subtle); }
.theme-toggle[hidden] { display: none !important; }
/* In Light Mode: Show Moon icon to switch to dark */
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
/* In Dark Mode: Show Sun icon to switch to light */
:root[data-shown="dark"] .theme-toggle .sun { display: block; }
:root[data-shown="dark"] .theme-toggle .moon { display: none; }

.btn-header {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1.15rem; border-radius: 8px;
  background: var(--text-main); color: var(--bg);
  font-weight: 600; font-size: 0.875rem; text-decoration: none;
  transition: all 0.15s ease;
}
.btn-header:hover { opacity: 0.9; text-decoration: none; }

/* Hero Showcase Grid */
.hero-wrap {
  padding-block: clamp(3rem, 6vw, 6rem) clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--border-light);
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; }
}

.hero-copy { max-width: 36rem; }
.hero-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.hero-heading {
  font-size: clamp(2.35rem, 4.2vw, 3.6rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.035em; color: var(--text-main);
  margin: 0 0 1.25rem; text-wrap: balance;
}
.hero-text {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6; color: var(--text-muted);
  margin: 0 0 2rem; text-wrap: pretty;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem;
}
.btn-main {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.65rem; border-radius: 10px;
  background: var(--brand); color: var(--brand-text);
  font-weight: 650; font-size: 0.98rem; text-decoration: none;
  box-shadow: var(--shadow-md); transition: all 0.16s ease;
}
.btn-main:hover { background: var(--brand-hover); text-decoration: none; transform: translateY(-1.5px); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.65rem; border-radius: 10px;
  background: var(--bg-card); color: var(--text-main);
  border: 1px solid var(--border);
  font-weight: 650; font-size: 0.98rem; text-decoration: none;
  transition: all 0.16s ease;
}
.btn-outline:hover { background: var(--bg-subtle); text-decoration: none; }

.guarantees {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.25rem;
  font-size: 0.85rem; font-weight: 600; color: var(--text-subtle);
}
.guarantee-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.guarantee-check { color: var(--moss); font-weight: 800; font-size: 0.95rem; }

/* Interactive Device Mockup */
.device-showcase {
  display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 22rem; margin-inline: auto;
}
.demo-tabs {
  display: flex; gap: 0.35rem; padding: 0.35rem;
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 1.25rem; width: 100%;
}
.demo-tab {
  flex: 1; text-align: center; padding: 0.45rem 0.5rem;
  font-size: 0.75rem; font-weight: 700; border-radius: 6px;
  border: none; background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all 0.15s ease;
}
.demo-tab.active {
  background: var(--bg-card); color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.phone-frame {
  width: 100%; border-radius: 36px;
  background: var(--phone-bezel);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-notch {
  width: 5rem; height: 1rem; background: var(--phone-bezel);
  border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 10;
}
.phone-screen {
  background: var(--phone-screen); border-radius: 28px;
  overflow: hidden; min-height: 25rem;
  display: flex; flex-direction: column; font-size: 0.8125rem;
}
.phone-content { display: none; padding: 1.25rem; flex-direction: column; height: 100%; }
.phone-content.active { display: flex; }

.screen-header {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-light); padding-bottom: 0.65rem; margin-bottom: 0.85rem;
}
.screen-title { font-weight: 800; font-size: 0.95rem; color: var(--text-main); }
.screen-badge {
  font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px;
  background: var(--moss-light); color: var(--moss); border: 1px solid var(--moss-border);
}
.screen-hero {
  background: var(--bg-subtle); padding: 0.75rem; border-radius: 10px; margin-bottom: 0.85rem;
  text-align: center;
}
.screen-hero-h { font-weight: 800; font-size: 1.05rem; margin: 0 0 0.2rem; color: var(--text-main); }
.screen-hero-p { font-size: 0.75rem; color: var(--text-muted); margin: 0; }

.screen-items { display: grid; gap: 0.45rem; margin-bottom: 0.85rem; }
.screen-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.45rem 0.6rem; border-radius: 6px; background: var(--bg-subtle);
}
.screen-item-name { font-weight: 600; color: var(--text-main); }
.screen-item-price { font-weight: 700; color: var(--brand); font-family: var(--font-mono); }

.screen-cta {
  margin-top: auto; padding: 0.65rem; border-radius: 8px;
  background: var(--brand); color: #ffffff; text-align: center;
  font-weight: 700; font-size: 0.8125rem; text-decoration: none;
}

/* Sections */
.section { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section-alt { background: var(--bg-subtle); border-block: 1px solid var(--border-light); }

.section-head {
  text-align: center; max-width: 40rem; margin-inline: auto; margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-kicker {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--brand); margin-bottom: 0.5rem;
}
.section-heading {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--text-main); margin: 0 0 0.75rem; line-height: 1.15;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-muted); margin: 0; line-height: 1.55;
}

/* Packages Grid */
.packages-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 54rem) {
  .packages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pkg-card {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem; border-radius: 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.pkg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pkg-card.highlight {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
}
.pkg-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 0.85rem; border-radius: 999px;
  background: var(--brand); color: #ffffff;
  font-size: 0.7rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em;
}

.pkg-title { font-size: 1.35rem; font-weight: 800; color: var(--text-main); margin: 0 0 0.35rem; }
.pkg-desc { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 1.5rem; min-height: 2.6rem; }
.pkg-price-row {
  display: flex; align-items: baseline; gap: 0.35rem;
  padding-bottom: 1.25rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.pkg-price {
  font-size: clamp(2.4rem, 3.2vw, 3rem); font-weight: 800;
  color: var(--text-main); letter-spacing: -0.03em;
}
.pkg-period { font-size: 0.8125rem; font-weight: 600; color: var(--text-subtle); }

.pkg-features {
  list-style: none; padding: 0; margin: 0 0 2rem;
  display: grid; gap: 0.75rem; font-size: 0.875rem;
}
.pkg-features li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  color: var(--text-muted); line-height: 1.45;
}
.pkg-features li strong { color: var(--text-main); font-weight: 650; }
.pkg-check { color: var(--moss); font-weight: 800; flex: none; font-size: 0.95rem; }

.pkg-card .btn-pkg {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.25rem; border-radius: 9px; font-weight: 650; font-size: 0.9375rem;
  text-decoration: none; width: 100%; transition: all 0.15s ease;
}
.btn-pkg--solid { background: var(--brand); color: #ffffff; }
.btn-pkg--solid:hover { background: var(--brand-hover); text-decoration: none; }
.btn-pkg--ghost { background: var(--bg-subtle); color: var(--text-main); border: 1px solid var(--border); }
.btn-pkg--ghost:hover { background: var(--border); text-decoration: none; }

/* How It Works Steps */
.steps-wrap {
  display: grid; gap: 1.5rem;
}
@media (min-width: 48rem) {
  .steps-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.step-box {
  padding: 2rem; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-size: 0.85rem; font-weight: 800; font-family: var(--font-mono);
  color: var(--brand); padding: 0.25rem 0.6rem; border-radius: 6px;
  background: var(--brand-light); display: inline-block; margin-bottom: 1rem;
}
.step-h { font-size: 1.15rem; font-weight: 750; color: var(--text-main); margin: 0 0 0.5rem; }
.step-p { font-size: 0.92rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* Comparison Cards */
.compare-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 48rem) {
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.compare-card {
  padding: 2.25rem; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.compare-card h3 { font-size: 1.25rem; font-weight: 800; color: var(--text-main); margin: 0 0 0.65rem; }
.compare-card p { font-size: 0.95rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* FAQ Cards */
.faq-list {
  display: grid; gap: 1rem; max-width: 50rem; margin-inline: auto;
}
.faq-box {
  padding: 1.6rem 1.85rem; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.faq-q { font-size: 1.1rem; font-weight: 750; color: var(--text-main); margin: 0 0 0.45rem; }
.faq-a { font-size: 0.9375rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* Callout Section */
.callout {
  padding: clamp(2.5rem, 5vw, 4rem); border-radius: 22px;
  background: var(--bg-card); border: 1px solid var(--border);
  text-align: center; box-shadow: var(--shadow-md);
  max-width: 52rem; margin-inline: auto;
}
.callout-h { font-size: clamp(1.8rem, 3.2vw, 2.35rem); font-weight: 800; color: var(--text-main); margin: 0 0 0.85rem; }
.callout-p { font-size: 1.05rem; color: var(--text-muted); max-width: 34rem; margin: 0 auto 1.85rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding-block: 3.5rem 4.5rem; background: var(--bg);
}
.footer-row {
  display: grid; gap: 2rem 3rem;
}
@media (min-width: 48rem) {
  .footer-row { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); }
}
.footer-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin: 0.85rem 0 0; max-width: 26rem; }
.footer-col-title { font-size: 0.8rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); margin: 0 0 0.85rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; text-decoration: none; }
.footer-links a:hover { color: var(--text-main); text-decoration: underline; }
