/* FurLink marketing site. Same tokens as lib/core/theme/app_colors.dart:
   cream paper, cocoa primary, dusty rose secondary. Single light theme,
   like the app. */
:root {
  --cream: #FBF6EC;
  --paper: #FFFFFF;
  --ink: #23201A;
  --muted: #6B6152;
  --line: #DCD0B6;
  --line-soft: #EADFCB;
  --cocoa: #7C4A2D;
  --cocoa-dark: #5A3620;
  --rose: #D98C82;
  --rose-dark: #B85C52;
  --rose-tint: #F6DEDA;
  --sand: #F3EADB;
  --success: #2E9E63;
  --error: #D64545;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cocoa); }
a:hover { color: var(--cocoa-dark); }
:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.4vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0; }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-dark);
}
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 15px/1 var(--body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--cocoa); color: #fff; }
.btn-primary:hover { background: var(--cocoa-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--cocoa); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cocoa); color: var(--cocoa-dark); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--cocoa); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .hero .container { grid-template-columns: minmax(0, 1fr); } }

/* Postcard: the app's service-update card, as an illustration */
.postcard-stage { position: relative; display: grid; place-items: center; padding: 24px 8px; }
.postcard-stage::before {
  content: "";
  position: absolute;
  inset: 4% 10% 8% 6%;
  background: var(--rose-tint);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
}
.postcard {
  position: relative;
  width: min(100%, 380px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 24px 48px -28px rgba(90, 54, 32, 0.45);
  transform: rotate(-2deg);
}
.postcard-art {
  background: var(--sand);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.postcard-art img { width: 62%; height: auto; }
.postcard-body { display: grid; gap: 8px; padding: 16px 4px 4px; }
.postcard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.postcard-title { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.2; }
.postcard-note { font-size: 15px; color: var(--ink); }
.postcard-stamp {
  position: absolute;
  top: -14px;
  right: 18px;
  background: var(--cocoa);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 999px;
  transform: rotate(3deg);
}

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.band { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 22px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.band .service { background: var(--cream); }
.service img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 6px; }
.service p { font-size: 15px; color: var(--muted); }
.licence-tag {
  justify-self: start;
  font-size: 12px;
  font-weight: 600;
  color: var(--cocoa);
  background: var(--rose-tint);
  border-radius: 999px;
  padding: 3px 10px;
  margin-top: 4px;
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { display: grid; gap: 10px; align-content: start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 44px;
  font-weight: 600;
  color: var(--rose);
  line-height: 1;
}
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.trust > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.trust > div:nth-child(odd) { border-right: 1px solid var(--line); }
.trust > div:nth-child(even) { padding-left: 28px; padding-right: 0; }
.trust p { color: var(--muted); }
@media (max-width: 720px) {
  .trust { grid-template-columns: minmax(0, 1fr); }
  .trust > div:nth-child(n) { padding: 24px 0; border-right: 0; }
}

/* Providers */
.providers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.providers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.providers li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.providers li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin: 8px 0 0 4px;
  border-radius: 50%;
  background: var(--rose);
}
.provider-art { background: var(--rose-tint); border-radius: var(--radius-xl); padding: 32px; display: grid; place-items: center; }
.provider-art img { width: min(260px, 70%); }
@media (max-width: 860px) {
  .providers { grid-template-columns: minmax(0, 1fr); }
  .provider-art { order: -1; }
}

/* Waitlist form */
.join {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 56px);
}
.join-intro { display: grid; gap: 14px; align-content: start; }
@media (max-width: 860px) { .join { grid-template-columns: minmax(0, 1fr); } }

form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
label, legend { font-weight: 600; font-size: 14px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], select {
  font: 16px var(--body);
  color: var(--ink);
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
}
input:focus, select:focus { outline: none; border-color: var(--cocoa); box-shadow: 0 0 0 3px rgba(124, 74, 45, 0.15); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: 999px; padding: 4px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
}
.segmented input:checked + label { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(35, 32, 26, 0.12); }
.segmented input:focus-visible + label { outline: 2px solid var(--cocoa); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  background: var(--paper);
}
.chip input:checked + span { background: var(--cocoa); border-color: var(--cocoa); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--cocoa); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); }
.form-error { color: var(--error); font-size: 14px; font-weight: 500; }
.form-success { display: grid; gap: 10px; align-content: start; padding: 8px 0; }
.form-success h3 { color: var(--success); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 24px;
  font-weight: 400;
  color: var(--cocoa);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding: 0 32px 20px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--cocoa); }

/* Legal and support pages */
.doc { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.doc .container { max-width: 760px; }
.doc header { display: grid; gap: 12px; margin-bottom: 36px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; margin: 12px 0; }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }
.table-wrap { overflow-x: auto; }
.callout { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; margin: 20px 0; }

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