/* platepal.net landing page. Colors are the app's own (src/constants/theme.ts).
   System fonts only: no web-font requests to third parties (a Google Fonts
   embed transfers the visitor's IP abroad - not something a privacy-first
   page should need a consent banner for). */

:root {
  --bg: #fffdfa;
  --surface: #f5f1ec;
  --card: #ffffff;
  --text: #1d1a17;
  --muted: #5f5a55;
  --border: #e7e0d8;
  --primary: #e8623d;
  --primary-ink: #c24a28;
  --secondary: #4f7942;
  --accent: #f2b134;
  --hero-glow: rgba(232, 98, 61, 0.16);
  --shadow: 0 24px 60px -24px rgba(90, 45, 20, 0.35), 0 4px 14px -6px rgba(90, 45, 20, 0.18);
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --surface: #1d1a18;
    --card: #252220;
    --text: #f4efe9;
    --muted: #b6aea6;
    --border: #36312d;
    --primary: #f0805f;
    --primary-ink: #f59a7d;
    --secondary: #7fae72;
    --accent: #f5c563;
    --hero-glow: rgba(240, 128, 95, 0.14);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 4px 14px -6px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary-ink);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.mark {
  width: 34px;
  height: 34px;
}

.brand.small .mark {
  width: 28px;
  height: 28px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.topnav a:hover {
  color: var(--text);
}

.topnav .lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

@media (max-width: 640px) {
  .topnav a:not(.lang) {
    display: none;
  }
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(60% 70% at 85% 30%, var(--hero-glow), transparent 70%),
    radial-gradient(40% 50% at 5% 90%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 28px 0 22px;
}

.cta-row.centered {
  justify-content: center;
}

/* Google's badge PNG carries its own transparent margin (~6% each side);
   the negative margin lines its visible edge up with the text column. */
.play-badge {
  display: block;
  margin-left: -12px;
}

.cta-row.centered .play-badge {
  margin-left: 0;
}

.play-badge img {
  width: 216px;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust li,
.plan li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--secondary);
  margin-top: 0.15em;
}

.icon-lg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin: 0 0 12px;
}

/* The screenshots are cropped from the store frames (the app card only);
   this radius matches that card's own rounded corners at any size. */
.shot {
  width: 100%;
  border-radius: 5.8% / 2.6%;
  box-shadow: var(--shadow);
  background: #fff;
}

.hero-shot {
  justify-self: center;
  width: min(100%, 340px);
  transform: rotate(2deg);
}

@media (max-width: 860px) {
  .hero {
    padding: 36px 0 56px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-shot {
    width: min(78%, 320px);
  }
}

/* --------------------------------------------------------------- sections */

.section {
  padding: 88px 0;
}

.section.tinted {
  background: var(--surface);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
}

/* --------------------------------------------------------------- features */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 920px;
  margin: 0 auto 88px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature-shot {
  justify-self: center;
  width: min(100%, 270px);
}

.feature.flip .feature-shot {
  order: 2;
}

.feature-copy p {
  color: var(--muted);
  font-size: 1.1rem;
}

.feature-copy h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.step-no {
  display: inline-block;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary-ink);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 72px;
  }

  .feature.flip .feature-shot {
    order: 0;
  }

  .feature-shot {
    width: min(72%, 280px);
  }
}

/* ------------------------------------------------------------ extras grid */

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

@media (max-width: 960px) {
  .grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid4 {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ steps */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.steps li {
  counter-increment: step;
  text-align: center;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------------------------------------------------------------- pricing */

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

.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.plan.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}

.plan h3 {
  margin-bottom: 2px;
}

.plan-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.97rem;
}

.fine {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 28px 0 0;
}

@media (max-width: 860px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}

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

.faq {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  font-weight: 700;
  font-size: 1.08rem;
  position: relative;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  color: var(--muted);
  margin: 0 0 22px;
}

/* ------------------------------------------------------------- final CTA */

.final-cta {
  background:
    radial-gradient(50% 80% at 50% 0%, var(--hero-glow), transparent 70%),
    var(--bg);
}

.final-cta p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ----------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.footer-tagline {
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-nav a {
  color: var(--muted);
}
