/*
 * The site's own rules, shared with the ordering and cancellation pages.
 *
 * Extracted from index.html by scratchpad/extract.mjs rather than written by
 * hand: these pages are part of the same site and have to look like it, and a
 * hand-made copy of somebody else's button drifts the first time either one
 * changes. Re-run the script after touching the landing page.
 *
 * Everything specific to a form lives in forms.css next door.
 */
@import url('fonts.css');

:root {
  --bg: #FAFAF7;
  --bg-sand: #F2EFE6;
  --bg-sand-deep: #E9E3D2;
  --ink: #15181A;
  --ink-2: #2A2E31;
  --dim: #6B7075;
  --dim-2: #9A9DA0;
  --rule: #E5E1D6;
  --rule-soft: #EFEBDF;
  
  --teal: #15181A;
  --teal-deep: #000000;
  --teal-soft: #E8E5DD;
  --coral: #15181A;
  --coral-soft: #E8E5DD;
  --sun: #6B7075;
  --night: #0C0D0D;
  --night-2: #18191A;
  --night-rule: #232527;
  --night-dim: #8A8D91;
  --night-ink: #F2EEE3;
  /*
   * Die Seite darf die Breite nutzen, die da ist.
   *
   * 1320px stammten aus einer Zeit, in der ein grosser Schirm 1440 breit war;
   * auf 2560 stand die Seite als schmales Band in der Mitte. `min()` laesst sie
   * mitwachsen und deckelt sie erst bei 1760 — darueber wird aus Weite ein
   * Suchspiel, weil Kopf und Fuss einer Karte nicht mehr in einen Blick passen.
   *
   * Was NICHT mitwaechst, sind Textspalten: `.lede` und `.page-lede` haben
   * weiter ihr Mass in `ch`. Volle Breite ist eine Erlaubnis fuer Raster und
   * Karten, kein Grund fuer 300 Zeichen lange Zeilen.
   */
  --maxw: min(1760px, calc(100vw - 2 * var(--gutter)));
  --gutter: 32px;

  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius-card: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20,24,26,.04), 0 2px 8px rgba(20,24,26,.04);
  --shadow-md: 0 10px 30px -12px rgba(20,24,26,.18), 0 4px 12px rgba(20,24,26,.06);
  --shadow-lg: 0 40px 80px -30px rgba(20,24,26,.30), 0 12px 32px -8px rgba(20,24,26,.10);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

/*
 * Jede Klasse, die `display` setzt, sticht das hidden-Attribut aus.
 *
 * Das UA-Stylesheet gibt [hidden] ein `display: none` mit der Spezifitaet einer
 * Attributauswahl — `.order-grid { display: grid }` gewinnt dagegen mit
 * derselben Spezifitaet und spaeterer Position. Ein Element mit hidden stand
 * dann trotzdem da, und das sieht aus wie ein Zustandsfehler im Skript, obwohl
 * es einer im CSS ist.
 *
 * Die Landingpage hat diese Regel schon inline. Bestell- und Kuendigungsseite
 * laden sie von hier — sonst faellt dieselbe Falle noch einmal zu, an genau der
 * Stelle, an der eine Bestellung abgeschlossen wird.
 */
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.display {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.display em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; font-size: 1.18em; line-height: 0.9; }

.h1 { font-size: clamp(48px, 7.2vw, 96px); }

.h2 { font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }

.h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.18em; line-height: 0.9; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--teal);
}

.eyebrow.coral { color: var(--coral); }

.eyebrow.night { color: var(--coral); }

.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: var(--dim); max-width: 56ch; text-wrap: pretty; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--ink); color: var(--bg); }

.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }

.btn-secondary:hover { background: var(--ink); color: var(--bg); }

.btn-ghost { background: transparent; color: var(--ink); padding: 14px 4px; }

.btn-ghost:hover { color: var(--dim); }

.btn-ghost .arrow { transition: transform .2s ease; }

.btn-ghost:hover .arrow { transform: translateX(3px); }

.btn-sm { padding: 9px 16px; font-size: 14px; }

.btn-lg { padding: 18px 28px; font-size: 16px; }

.btn-primary-night { background: var(--night-ink); color: var(--night); }

.btn-primary-night:hover { background: #FFFFFF; color: var(--night); transform: translateY(-1px); }

.btn-secondary-night { background: transparent; color: var(--night-ink); border-color: rgba(242,238,227,.4); }

.btn-secondary-night:hover { background: rgba(242,238,227,.1); border-color: var(--night-ink); }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(250,250,247,.78);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}

.nav.scrolled { border-bottom-color: var(--rule); }

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

.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.025em; font-size: 19px; color: var(--ink); }

.brand-mark {
  width: 22px; height: 22px;
  color: var(--ink);
  flex: none;
  display: block;
}

.brand-logo { height: 26px; width: auto; flex: none; display: block; }

.brand-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(21,24,26, .18);
  padding: 3px 7px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .adm-stats { grid-template-columns: repeat(2,1fr); }
  .adm-body { grid-template-columns: 1fr; }
  .adm-side { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .adm-side-label { display: none; }
  .adm-side button { font-size: 12px; padding: 7px 10px; }
}

.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px; color: var(--ink-2);
}

.nav-links a { color: var(--dim); transition: color .18s ease; }

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

.nav-cta { display: flex; gap: 10px; align-items: center; }

.nav-roadmap {
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.55);
  color: var(--ink-2);
  gap: 7px;
}

.nav-roadmap svg { width: 15px; height: 15px; }

.nav-roadmap:hover { border-color: var(--ink); color: var(--ink); background: #fff; transform: translateY(-1px); }

.nav-demo {
  background: var(--ink); color: var(--bg);
  gap: 8px;
  box-shadow: 0 1px 2px rgba(20,24,26,.18);
}

.nav-demo .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.22);
  flex: none;
}

.nav-demo .arrow { width: 15px; height: 15px; transition: transform .2s ease; }

.nav-demo:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(20,24,26,.5); }

.nav-demo:hover .arrow { transform: translateX(3px); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

@media (max-width: 980px) {
  .stats-strip-inner { grid-template-columns: 1fr; gap: 28px; }
  .platform-row { justify-content: flex-start; }
}

.section-pad { padding: clamp(80px, 11vw, 140px) 0; }

.section-pad-lg { padding: clamp(100px, 13vw, 180px) 0; }

.section-head { max-width: 720px; margin-bottom: 60px; }

.section-head .eyebrow { margin-bottom: 18px; display: inline-block; }

.section-head h2 { margin: 0 0 22px; }

.section-head .lede { margin: 0; }

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

@media (max-width: 900px) {
  .collab-stage { grid-template-columns: 1fr; gap: 32px; }
  .collab-stage .copy { order: -1; }   
  .collab-vis { height: 480px; }
  .chat-app { height: 480px; }
}

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

@media (max-width: 900px) {
  .addon-row, .addon-row.reverse { grid-template-columns: 1fr; }
  .addon-row.reverse .copy { order: 0; }
}

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

@media (max-width: 900px) {
  .dark-grid { grid-template-columns: 1fr 1fr; }
  .dark-platform-row { grid-template-columns: 1fr; }
}

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

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

footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 32px;
  background: var(--bg);
  font-size: 13px;
}

.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left { display: flex; align-items: center; gap: 16px; color: var(--dim); }

.footer-right { display: flex; align-items: center; gap: 22px; color: var(--dim); }

.footer-right a { transition: color .18s ease; }

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

.footer-right .ghicon { display: inline-flex; align-items: center; gap: 6px; }

.footer-right .ghicon svg { width: 16px; height: 16px; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .tk-planner-body { grid-template-columns: 1fr; height: auto; }
  .tk-day-list, .tk-place-panel { display: none; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 12px; }
  .hero .display.h1 { font-size: clamp(40px, 8vw, 74px); }
  .hero h1 { max-width: 16ch; }
  .hero .lede { max-width: 60ch; }
  .hero-ctas { margin-bottom: 44px; }
  .hero-stage { margin: 0 -20px; height: auto; }
  .hero-mockup { position: relative; width: auto; max-width: 1000px; margin: 0 auto; transform: rotateX(2deg) rotateY(-2deg); transform-origin: center top; }
  .hero-stage::after { left: 8%; right: 8%; bottom: -34px; }
}

.nav-burger { display: none; }

.nav-burger .ic-close { display: none; }

.nav-burger[aria-expanded="true"] .ic-open { display: none; }

.nav-burger[aria-expanded="true"] .ic-close { display: block; }

.nav-mobile { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-roadmap { display: none; }
  .nav-demo { display: none; }   
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0;
    border: 1px solid var(--rule); border-radius: 10px;
    background: rgba(255,255,255,.55); color: var(--ink);
  }
  .nav-burger svg { width: 19px; height: 19px; }
  .nav-mobile {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250,250,247,.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    padding: 6px var(--gutter) 16px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-mobile.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-mobile a { display: block; padding: 13px 2px; font-size: 16px; color: var(--ink-2); border-bottom: 1px solid var(--rule-soft); }
  .nav-mobile a.nav-mobile-cta { margin-top: 10px; border: none; color: var(--bg); background: var(--ink); border-radius: var(--radius-pill); text-align: center; font-weight: 500; padding: 14px; }
}

@media (max-width: 980px) {
  
  .planner-anim-cursor, .planner-anim-ghost { display: none !important; }
  
  .snippet-body, pre.snippet-body { white-space: pre-wrap; word-break: break-word; }
  
  .host-grid > *, .ai-grid > *, .collab-stage > *, .plan-grid > * { min-width: 0; }
  .snippet-card, .planner-vis { max-width: 100%; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .trek-app { grid-template-columns: 1fr; }
  .trek-side, .trek-rail { display: none; }
  .hero-mockup .card-float { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  
  .planner-wrap { display: none; }
  
  #addons .section-head { display: none; }
  .addons-stack { margin-top: 0; }
  
  .admin-vis { display: none; }
  
  .section-host .vis { display: none; }

  
  .hero { padding: 36px 0 52px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn-lg { flex: 1 1 100%; justify-content: center; }
  .hero-ctas .btn-ghost { flex: 1 1 100%; justify-content: center; padding-left: 0; padding-right: 0; }
  .hero-ctas .note { width: 100%; margin-left: 0; text-align: center; }

  
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-left { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-right { flex-wrap: wrap; gap: 12px 18px; }

  
  .adm-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  
  .hero-stage { display: none; }
  .h1 { font-size: clamp(34px, 11vw, 50px); }
  .hero .display.h1 { font-size: clamp(34px, 11vw, 50px); }
  .h2 { font-size: clamp(27px, 8vw, 38px); }
  .section-head .lede, .hero .lede { font-size: 16px; }
}

@media (max-width: 900px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-badge { left: 24px; }
}
