/* Ambertide site: warm glass. Tokens mirror shared/design-tokens.json (same values as web/src/styles/tokens.css). */
:root {
  --canvas: #fbf1e6;
  --mesh-peach: #fcd9b8;
  --mesh-apricot: #fbc58a;
  --mesh-tangerine: #f7954f;
  --mesh-coral: #f26b4e;
  --mesh-butter: #fbe7a6;
  --glass-fill: rgba(255, 255, 255, 0.55);
  --glass-fill-strong: rgba(255, 255, 255, 0.82);
  --glass-stroke: rgba(255, 255, 255, 0.7);
  --grid-line: rgba(255, 255, 255, 0.5);
  --ink: #17120e;
  --ink-secondary: #5e5249;
  --ink-tertiary: #8a7b6f;
  --accent: #e2483c;
  --accent-start: #f7745b;
  --accent-end: #ee4a43;
  --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  --hairline: rgba(23, 18, 14, 0.1);
  --shadow-card: 0 10px 30px rgba(170, 80, 30, 0.12);
  --shadow-floating: 0 18px 40px rgba(238, 74, 67, 0.3);
  --font-display: 'Instrument Serif', 'New York', ui-serif, Georgia, serif;
  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-card: 22px;
  --gutter: 32px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1a1210;
    --mesh-peach: #3a2218;
    --mesh-apricot: #4a2a16;
    --mesh-tangerine: #6b3014;
    --mesh-coral: #7a2a22;
    --mesh-butter: #3d3320;
    --glass-fill: rgba(40, 28, 24, 0.55);
    --glass-fill-strong: rgba(52, 36, 30, 0.85);
    --glass-stroke: rgba(255, 255, 255, 0.1);
    --grid-line: rgba(255, 255, 255, 0.06);
    --ink: #fff4ec;
    --ink-secondary: #d8c4b6;
    --ink-tertiary: #a8927f;
    --accent: #ff8a74;
    --hairline: rgba(255, 244, 236, 0.1);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Mesh gradient + faint hairline grid, fixed behind everything. */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(60% 55% at 5% 0%, var(--mesh-butter), transparent 72%),
    radial-gradient(55% 60% at 100% 0%, var(--mesh-apricot), transparent 70%),
    radial-gradient(45% 45% at 60% 55%, color-mix(in srgb, var(--mesh-tangerine) 45%, transparent), transparent 72%),
    radial-gradient(60% 60% at 100% 100%, color-mix(in srgb, var(--mesh-coral) 75%, transparent), transparent 72%),
    radial-gradient(55% 55% at 0% 100%, var(--mesh-peach), transparent 72%),
    var(--canvas);
}

body::after {
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at 55% 45%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 55% 45%, #000 30%, transparent 85%);
}

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

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass-fill-strong);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--shadow-card);
}

/* ------------------------------------------------------------ header */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
}

.nav a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

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

.nav a[aria-current='page'] {
  background: var(--glass-fill-strong);
  color: var(--ink);
}

/* ------------------------------------------------------------ hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1;
  color: var(--ink-secondary);
}

.tagline em,
.display em {
  color: var(--accent);
}

.lede {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: 17px;
  color: var(--ink-secondary);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow-floating), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.pill-btn svg {
  width: 20px;
  height: 20px;
}

.pill-btn small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1.2;
}

.pill-btn span {
  line-height: 1.2;
}

.pill-ghost {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}

/* Illustrative "next deadline" pill + mini timeline, like the app's hero. */
.showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  min-width: 0;
}

.showcase__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.showcase__title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.showcase__meta {
  font-size: 12px;
  color: var(--ink-tertiary);
  white-space: nowrap;
}

.deadline-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-floating), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: rotate(-3deg);
}

.deadline-pill__icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-end);
}

.deadline-pill__icon svg {
  width: 18px;
  height: 18px;
}

.deadline-pill__label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1.3;
}

.deadline-pill__title {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
}

.deadline-pill__days {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  padding-left: 4px;
}

.deadline-pill__days small {
  font-family: var(--font-ui);
  font-size: 11px;
  opacity: 0.85;
  margin-left: 3px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--glass-fill-strong);
  font-size: 14px;
}

.steps .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
}

.steps .done .check {
  border: 0;
  background: var(--accent-gradient);
}

.steps .done span:nth-child(2) {
  color: var(--ink-tertiary);
  text-decoration: line-through;
}

.steps .when {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.steps .blocked .when::before {
  content: '';
}

/* ------------------------------------------------------------ features */
.section-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}

.feature {
  padding: 24px;
  border-radius: var(--r-card);
}

.badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(238, 74, 67, 0.28);
}

.badge svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin: 18px 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.feature p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 15px;
}

.feature ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--glass-fill-strong);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 72px;
  padding: 28px;
  border-radius: 28px;
}

.soon h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
}

.soon p {
  margin: 6px 0 0;
  color: var(--ink-secondary);
}

/* ------------------------------------------------------------ legal / support pages */
.page {
  padding-top: 24px;
  padding-bottom: 72px;
}

.page-head {
  max-width: 760px;
  margin: 0 auto 24px;
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.page-head p {
  margin: 12px 0 0;
  color: var(--ink-secondary);
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 40px;
  border-radius: 28px;
}

.prose h2 {
  margin: 32px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 20px 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--ink-secondary);
}

.prose strong {
  color: var(--ink);
}

.prose ul {
  padding-left: 20px;
}

.prose li + li {
  margin-top: 6px;
}

.summary {
  margin: 0 0 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--glass-fill-strong);
}

.summary p {
  margin: 0;
}

.summary ul {
  margin: 8px 0 0;
}

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

.faq details:last-of-type {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass-fill-strong);
  font-weight: 500;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details > div {
  padding-bottom: 12px;
}

.faq details p {
  margin: 0 0 10px;
}

.contact {
  margin-top: 28px;
  padding: 22px;
  border-radius: 20px;
  background: var(--glass-fill-strong);
}

.contact h2 {
  margin-top: 0;
}

.contact .pill-btn {
  margin-top: 6px;
}

/* ------------------------------------------------------------ footer */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink-tertiary);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.site-foot a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 24px;
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .site-head {
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .nav a {
    padding: 6px 10px;
    font-size: 13.5px;
  }
  .hero {
    padding-bottom: 48px;
  }
  .showcase {
    padding: 16px;
  }
  .deadline-pill {
    transform: rotate(-2deg);
  }
  .prose {
    padding: 22px 18px;
    border-radius: 22px;
  }
  .soon {
    padding: 22px 18px;
  }
  .site-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pill-btn {
    transition: transform 0.15s ease;
  }
  .pill-btn:hover {
    transform: translateY(-1px);
  }
}
