/* ============================================================
   TrailDog Web — Landing styles
   Built from tokens.css. Sections in DOM order:
     site-header / hero / features / how-it-works /
     screenshots / faq-pricing / site-footer.
   ============================================================ */

body {
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss03', 'ss01';
  background: var(--bg);
  color: var(--ink-900);
  letter-spacing: -0.005em;
}

/* ─── Reusable atoms ─────────────────────────────────────── */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-600);
  padding: 6px 12px;
  background: var(--forest-50);
  border: 1px solid var(--forest-100);
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--forest-500);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 14px;
  font-weight: 600; font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--forest-700), var(--forest-600));
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -16px rgba(15,80,55,.8); }
.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-700);
}
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink-700);
}
.btn-ghost:hover { color: var(--ink-900); }
.btn[disabled], .btn.is-disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
  transform: none;
}

.section { padding: 96px 0; position: relative; }
.section-eyebrow-row { margin-bottom: 20px; }
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  max-width: 22ch;
  margin: 0 0 14px;
}
.section-lede {
  font-size: 17px; line-height: 1.55;
  color: var(--ink-500);
  max-width: 62ch;
  margin: 0 0 48px;
}

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.012em;
  color: var(--ink-900);
}
/* App-icon brand mark. The icon image already carries its own dark-forest
   background and iOS-style rounded corners — the CSS just sizes it and
   keeps the soft drop-shadow that matched the previous gradient tile. */
.brand .mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 10px -4px rgba(15, 80, 55, .45);
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch, .theme-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px;
  font-size: 12px;
  color: var(--ink-500);
}
.lang-switch a {
  padding: 6px 10px; border-radius: 999px;
  font-weight: 600;
}
.lang-switch a.is-active {
  background: var(--forest-700); color: #fff;
}
.theme-toggle {
  width: 38px; height: 32px; padding: 0;
  justify-content: center;
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 540px; height: 540px;
  background: radial-gradient(circle at center, rgba(46,139,87,.15) 0%, rgba(46,139,87,0) 65%);
  pointer-events: none;
  z-index: 0;
}
.hero .row {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 940px) {
  .hero .row { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin: 18px 0 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--forest-700), var(--forest-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: 18px; line-height: 1.6;
  color: var(--ink-500);
  max-width: 52ch;
  margin: 0 0 28px;
}
.hero-badges {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: var(--ink-900); color: #fff;
  border-radius: 12px;
  position: relative;
  cursor: not-allowed;
}
[data-theme="dark"] .store-badge { background: var(--surface-3); color: var(--ink-900); }
.store-badge.is-disabled { opacity: .65; }
.store-badge svg { width: 22px; height: 22px; }
.store-badge .b-top { font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.store-badge .b-name { font-size: 14px; font-weight: 700; letter-spacing: -0.012em; line-height: 1.1; }
.store-badge .b-flag {
  position: absolute; top: -8px; right: -8px;
  font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold-500); color: var(--ink-900);
  padding: 3px 6px; border-radius: 999px;
}

.signup-card {
  margin-top: 24px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.signup-card h3 {
  font-size: 14px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 6px;
}
.signup-card .sub { font-size: 13.5px; color: var(--ink-500); margin-bottom: 14px; }
.signup-form {
  display: flex; gap: 8px;
}
.signup-form input[type=email] {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink-900);
}
.signup-form input[type=email]:focus { outline: none; border-color: var(--forest-500); background: var(--surface); }
.signup-form .btn { white-space: nowrap; }
.signup-honey { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.signup-success, .signup-already {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px; font-weight: 500;
}
.signup-success {
  background: var(--forest-50); color: var(--forest-700);
  border: 1px solid var(--forest-100);
}
.signup-already {
  background: var(--gold-200); color: var(--gold-600);
  border: 1px solid var(--gold-500);
}
.signup-error {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--clay-500);
  font-weight: 600;
}
.field-error {
  color: var(--clay-500);
  font-size: 12.5px;
  margin-top: 6px;
  display: block;
}

.hero-art {
  position: relative;
  aspect-ratio: 9 / 19.5;
  max-width: 320px;
  margin-left: auto;
  background: #0A0F0C;
  border-radius: 42px;
  padding: 6px;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(0,0,0,.4);
}
.hero-art::before {
  content: ""; position: absolute; inset: 0; border-radius: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 30%);
  pointer-events: none;
}
.hero-art .hero-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px;
  background: var(--surface);
  overflow: hidden;
  padding: 60px 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.hero-art .hero-screen::before {
  content: ""; position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 96px; height: 28px; background: #0A0F0C; border-radius: 14px;
}
.hero-art .placeholder-card {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 14px;
}
.hero-art .ph-num {
  font-size: 38px; font-weight: 800;
  background: linear-gradient(180deg, var(--forest-700), var(--forest-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.hero-art .ph-cap { font-size: 9.5px; color: var(--ink-500); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.hero-art .ph-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--ink-500); }
.hero-art .ph-row .v { font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.hero-art .ph-line {
  height: 56px; background: linear-gradient(180deg, var(--forest-50), transparent);
  border-radius: 10px;
  background-image:
    linear-gradient(180deg, var(--forest-50), transparent),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'><path d='M0,45 Q20,35 40,32 T80,20 T120,28 T160,12 T200,18' stroke='%232E8B57' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: cover;
}

/* ─── Features ───────────────────────────────────────────── */

.features { background: var(--surface-2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
[data-theme="dark"] .features { background: var(--surface); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--forest-50);
  border: 1px solid var(--forest-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest-700);
  margin-bottom: 14px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 {
  font-size: 16px; font-weight: 700; letter-spacing: -0.014em;
  margin-bottom: 6px;
}
.feature p {
  font-size: 13.5px; line-height: 1.55; color: var(--ink-500);
}
.feature.feature-accent .ico { background: var(--gold-200); border-color: var(--gold-500); color: var(--gold-600); }
.feature.feature-lavender .ico { background: var(--lavender-100); border-color: var(--lavender-700); color: var(--lavender-700); }

/* ─── How it works ──────────────────────────────────────── */

.how {
  position: relative;
}
.how-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 880px) {
  .how-steps { grid-template-columns: 1fr; }
}
.how-step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.how-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-600);
  font-weight: 500;
  letter-spacing: .04em;
}
.how-step .icon-block {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--forest-700), var(--forest-500));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px -10px rgba(15,80,55,.6);
}
.how-step .icon-block svg { width: 26px; height: 26px; }
.how-step h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.016em;
  margin-bottom: 8px;
}
.how-step p {
  font-size: 14px; line-height: 1.55; color: var(--ink-500);
}

/* ─── Screenshots ────────────────────────────────────────── */

.screenshots {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--border-soft);
}
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.shot {
  display: flex; flex-direction: column; gap: 14px;
  align-items: center;
}
.shot-frame {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 19.5;
  background: #0A0F0C;
  border-radius: 42px;
  padding: 6px;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(0,0,0,.4);
}
.shot-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 30%);
  pointer-events: none;
}
.shot-frame::after {
  content: ""; position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  width: 96px; height: 28px; background: #0A0F0C; border-radius: 14px; z-index: 2;
}
.shot-frame img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 36px;
  background: var(--surface-2);
}
.shot-frame .shot-empty {
  width: 100%; height: 100%;
  border-radius: 36px;
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0 12px, var(--surface-3) 12px 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-400); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.shot-cap {
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: var(--ink-700);
  max-width: 22ch;
}
.shot-cap .n {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-600);
  font-weight: 500;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

/* ─── FAQ + Pricing + Trust ─────────────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
}
@media (max-width: 880px) {
  .faq-grid { grid-template-columns: 1fr; }
}
.faq-list details {
  border: 1px solid var(--border-soft);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq-list details[open] { border-color: var(--forest-100); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-900);
  display: flex; align-items: center; justify-content: space-between;
  letter-spacing: -0.012em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 400;
  color: var(--forest-600);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-body {
  margin-top: 12px;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.6;
}

.pricing-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.pricing-card::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,116,.22) 0%, rgba(212,165,116,0) 65%);
  pointer-events: none;
}
.pricing-card .price-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--gold-600); text-transform: uppercase;
  margin-bottom: 12px;
}
.pricing-card .price {
  font-family: var(--font-sans);
  font-size: 44px; font-weight: 800;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--forest-700), var(--forest-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-card .price-sub {
  font-size: 13.5px;
  color: var(--ink-500);
  margin-bottom: 18px;
}
.pricing-card ul.price-perks {
  display: flex; flex-direction: column; gap: 10px;
  margin: 0;
}
.pricing-card ul.price-perks li {
  font-size: 13.5px;
  color: var(--ink-700);
  padding-left: 24px;
  position: relative;
}
.pricing-card ul.price-perks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--forest-500); font-weight: 800;
}

.trust-strip {
  margin-top: 56px;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: center;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-700);
}
.trust-pill svg { width: 16px; height: 16px; color: var(--forest-600); }

/* ─── Footer ─────────────────────────────────────────────── */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 32px;
  margin-top: 0;
}
[data-theme="dark"] .site-footer { background: var(--surface-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid.footer-grid-4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 720px) { .footer-grid, .footer-grid.footer-grid-4 { grid-template-columns: 1fr; gap: 24px; } }
.footer-grid h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-400);
  margin-bottom: 14px;
}
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul li a { font-size: 13.5px; color: var(--ink-700); }
.footer-grid ul li a:hover { color: var(--forest-600); }
.footer-grid .blurb { font-size: 13.5px; color: var(--ink-500); line-height: 1.6; max-width: 38ch; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--ink-400);
}
.footer-base .links { display: flex; gap: 18px; }

/* ─── Legal/info pages ───────────────────────────────────── */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 0;
}
.legal-page h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.022em;
  margin-bottom: 16px;
}
.legal-page h2 {
  font-size: 18px; font-weight: 700;
  margin-top: 32px; margin-bottom: 10px;
}
.legal-page p { color: var(--ink-700); line-height: 1.65; margin-bottom: 12px; font-size: 15px; }
.legal-page .todo {
  background: var(--gold-200); color: var(--gold-600);
  padding: 14px 18px; border-radius: 12px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 32px;
  border: 1px solid var(--gold-500);
}

/* ─── Error pages ────────────────────────────────────────── */
.error-page {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page .code {
  font-family: var(--font-mono);
  font-size: 80px; font-weight: 700;
  color: var(--forest-600);
  letter-spacing: -0.04em;
}
.error-page h2 {
  font-size: 22px; font-weight: 700;
  margin: 8px 0 12px;
}
.error-page p { color: var(--ink-500); margin-bottom: 18px; }
