/* Public website (trip.expert): the trip.expert look.

   Loaded only by website/base.html and error_base.html, after tailwind.css. It is not
   in a cascade layer, so it wins over Tailwind's @theme tokens (which live in
   @layer theme). Tailwind utilities read those tokens as variables (bg-accent is
   var(--color-accent)), so redefining them here recolours every utility on the
   website. The backoffice and the login pages never load this file, so they keep
   their own colours. Same values as deploy/site/site.css (the personal page). */

/* ── Tokens ── */
:root {
  --color-page: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F4F4F6;
  --color-primary: #1B1B20;
  --color-body: #3B3B43;
  --color-muted: #6E6E78;
  --color-divider: #E6E6EA;
  --color-accent: #AB1F24;       /* the "Trip" in the logo */
  --color-accent-hover: #8F181D;
  --color-error: #B3261E;
  --color-success: #2F7A4A;

  --font-display: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 3px rgba(27, 27, 32, 0.06);
  --shadow-md: 0 4px 14px rgba(27, 27, 32, 0.08);
  --shadow-lg: 0 10px 28px -3px rgba(27, 27, 32, 0.12), 0 4px 8px -4px rgba(27, 27, 32, 0.06);
  --shadow-xl: 0 24px 48px -8px rgba(27, 27, 32, 0.16), 0 8px 20px -4px rgba(27, 27, 32, 0.08);

  /* Website-only tokens (no Tailwind utility reads them) */
  --red-soft: #FBEDEE;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
}

body { -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }

/* ── Page frame ── */
html { scroll-behavior: smooth; }
.site-body { min-height: 100vh; display: flex; flex-direction: column; overflow-y: scroll; font-size: 17px; line-height: 1.6; }
.site-main { flex: 1; }
.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.site-body a { text-decoration: none; }
section[id] { scroll-margin-top: var(--header-h); }

/* ── Buttons ── */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 17px/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.site-btn--red { background: var(--color-accent); color: #FFFFFF; }
.site-btn--red:hover { background: var(--color-accent-hover); }
.site-btn--line { border-color: var(--color-primary); color: var(--color-primary); }
.site-btn--line:hover { background: var(--color-primary); color: #FFFFFF; }
.site-btn--light-line { border-color: rgba(255, 255, 255, 0.6); color: #FFFFFF; }
.site-btn--light-line:hover { background: #FFFFFF; color: var(--color-primary); }
.site-btn--small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.site-btn--block { display: flex; width: 100%; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  user-select: none;
}
.site-header.is-scrolled { border-bottom-color: var(--color-divider); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-logo img { display: block; height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.site-btn) { font-size: 16px; font-weight: 500; color: var(--color-primary); }
.site-nav a:not(.site-btn):hover { color: var(--color-accent); }
.site-menu-btn {
  display: none;
  appearance: none;
  border: 0;
  background: none;
  padding: 8px;
  margin-right: -8px;
  color: var(--color-primary);
  cursor: pointer;
}
.site-menu-btn svg { width: 24px; height: 24px; }
.site-mobile-menu { display: none; border-top: 1px solid var(--color-divider); background: #FFFFFF; }
.site-mobile-menu nav { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; padding-bottom: 20px; }
.site-mobile-menu a:not(.site-btn) { padding: 10px 0; font-size: 17px; font-weight: 500; color: var(--color-primary); }
.site-mobile-menu .site-btn { margin-top: 8px; }

/* ── Footer ── */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--color-divider); font-size: 15px; color: var(--color-muted); user-select: none; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer__brand img { height: 26px; width: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-footer__nav a { color: var(--color-muted); }
.site-footer__nav a:hover { color: var(--color-primary); }

/* ── Scroll-to-top button ── */
.site-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-divider);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.2s;
}
.site-top-btn.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.site-top-btn:hover { box-shadow: var(--shadow-lg); }
.site-top-btn svg { width: 20px; height: 20px; }

/* ── Sections and type ── */
.web-section { padding: 96px 0; }
.web-section--panel { background: var(--color-surface-alt); }
.web-h1, .web-h2, .web-h3 { margin: 0; color: var(--color-primary); font-family: var(--font-display); }
.web-h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.web-h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.web-h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.web-lead { margin: 20px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--color-body); }
.web-head { max-width: 760px; margin-bottom: 48px; }
.web-note { margin: 0; font-size: 15px; color: var(--color-muted); }
.web-link { color: var(--color-accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.web-link:hover { color: var(--color-accent-hover); }

/* ── Hero: text, then the shared showcase animation (shared/static/showcase/) ── */
.web-hero { padding: 24px 0 96px; }  /* the phone column fills the screen height below the header */
.web-hero__text { max-width: 640px; align-self: start; padding-top: clamp(32px, 9vh, 110px); }  /* above the phone's centre */
.web-hero .web-h1 { font-size: clamp(38px, 3.9vw, 56px); }  /* fits the text column beside the phone */
.web-hero__kicker { margin: 0 0 18px; font-size: 16px; font-weight: 600; color: var(--color-accent); }
.web-hero .web-lead { max-width: 40ch; }
.web-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* Desktop: text left, animation right (showcase.js picks its compact layout for a
   column this narrow). 960px and below: the animation goes under the text. */
.web-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; }
.web-showcase .showcase { --sc-font: var(--font-body); }  /* the floating cards use the page font */
.web-showcase__note { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--color-muted); }

/* ── Cards (problem, features) ── */
.web-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.web-card { padding: 28px; border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: #FFFFFF; }
.web-card__icon { display: block; width: 24px; height: 24px; margin-bottom: 18px; color: var(--color-accent); }
.web-card p { margin: 10px 0 0; font-size: 16px; color: var(--color-body); }
.web-quotes { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; color: var(--color-body); }

/* ── How it works ── */
.web-split { display: grid; grid-template-columns: 0.85fr 1fr; gap: 72px; align-items: center; }
/* The owner, free: a photo plus one notification card (speaks to "you", see home.html). */
.web-owner { position: relative; margin: 0; max-width: 440px; }
.web-owner img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.web-owner__card {
  position: absolute;
  left: -32px;
  top: 8%;  /* on the blurred lamps, clear of the face and the phone */
  width: 260px;
  padding: 14px 16px;
  border: 1px solid var(--color-divider);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-xl);
}
.web-owner__app { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--color-primary); }
.web-owner__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.web-owner__time { margin-left: auto; font-weight: 400; color: var(--color-muted); }
.web-owner__msg { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--color-primary); }
.web-steps { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 28px; }
.web-steps li { position: relative; padding-left: 56px; counter-increment: step; }
.web-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 650;
}
.web-steps li:last-child::before { background: var(--color-accent); }
.web-steps p { margin: 6px 0 0; font-size: 16px; color: var(--color-body); }

/* ── Pricing ── */
.web-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.web-plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--color-divider);
  border-radius: 20px;
  background: #FFFFFF;
}
.web-plan--featured { border: 2px solid var(--color-primary); box-shadow: var(--shadow-lg); }
.web-plan__name { margin: 0; font-size: 20px; font-weight: 650; color: var(--color-primary); }
.web-plan--featured .web-plan__name { color: var(--color-accent); }
.web-plan__price { margin: 14px 0 0; font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--color-primary); }
.web-plan__price small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--color-muted); }
.web-plan__price--words { font-size: 34px; line-height: 48px; }
.web-plan__meta { margin: 6px 0 0; font-size: 15px; color: var(--color-muted); }
.web-plan__plus { margin: 28px 0 0; font-size: 15px; font-weight: 600; color: var(--color-muted); }
.web-plan__list { flex: 1; margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; align-content: start; font-size: 16px; }
.web-plan__plus + .web-plan__list { margin-top: 12px; }
.web-plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.web-plan__list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--color-accent); }
.web-plan__cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--color-divider); }
.web-pricing-notes { max-width: 760px; margin: 40px auto 0; text-align: center; display: grid; gap: 10px; }

/* ── Testimonials ── */
.web-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 32px; border: 1px solid var(--color-divider); border-radius: 20px; background: #FFFFFF; }
.web-quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: var(--color-primary); }
.web-quote figcaption { display: flex; align-items: center; gap: 14px; }
.web-quote img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.web-quote__name { margin: 0; font-size: 16px; font-weight: 650; color: var(--color-primary); }
.web-quote__role { margin: 0; font-size: 14px; color: var(--color-muted); }

/* ── FAQ ── */
.web-faq { max-width: 820px; border-top: 1px solid var(--color-divider); }
.web-faq details { border-bottom: 1px solid var(--color-divider); }
.web-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 600; color: var(--color-primary); }
.web-faq summary:hover { color: var(--color-accent); }
.web-faq summary svg { flex: none; width: 20px; height: 20px; color: var(--color-muted); }
.web-faq .faq-content { padding: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--color-body); max-width: 68ch; }

/* ── Final call to action: the one dark card, as on trip.expert ── */
.web-cta-wrap { padding: 24px 0 96px; }
.web-cta {
  position: relative;
  padding: 72px 56px;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  isolation: isolate;
}
.web-cta::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 50%;
  width: 560px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 26px, rgba(255, 255, 255, 0.07) 26px 40px);
  z-index: -1;
}
.web-cta .web-h2 { color: #FFFFFF; max-width: 18ch; }
.web-cta p { margin: 18px 0 0; max-width: 46ch; font-size: 19px; }
.web-cta :focus-visible { outline-color: #FFFFFF; }

/* ── Contact page ── */
.web-contact { padding: 72px 0 96px; background: var(--color-surface-alt); }
.web-contact__wrap { max-width: 608px; }  /* site-wrap padding included: 560px of content */
.web-contact__head { margin-bottom: 40px; text-align: center; }
.web-form-card { padding: 36px; border: 1px solid var(--color-divider); border-radius: 20px; background: #FFFFFF; }
.web-field + .web-field { margin-top: 20px; }
.web-field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--color-primary); }
.web-field label .web-required { color: var(--color-accent); }
.web-field input,
.web-field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #CFCFD6;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  font: 400 16px/1.5 var(--font-body);
  color: var(--color-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.web-field textarea { min-height: 120px; resize: vertical; }
.web-field input::placeholder, .web-field textarea::placeholder { color: #9A9AA3; }
.web-field input:focus, .web-field textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--red-soft); }
.web-field__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.web-field__error { margin: 6px 0 0; font-size: 14px; color: var(--color-error); }
.web-field__counter { margin: 6px 0 0 auto; font-size: 13px; color: var(--color-muted); }
.web-form-card .site-btn { margin-top: 28px; }
.web-form-note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--color-muted); }
.web-form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.web-success { padding: 18px 20px; border-left: 4px solid var(--color-success); border-radius: var(--radius-sm); background: #F1F7F3; font-size: 16px; line-height: 1.6; color: var(--color-primary); }
.web-honeypot { display: none; }

/* ── Demo page ── */
.web-demo { padding: 40px 0 72px; }
.web-demo__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: start; }
.web-demo__info { min-width: 0; }
.web-phone {
  width: 380px;
  padding: 12px 10px;
  border-radius: 40px;
  background: #1A1A1A;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), inset 0 0 0 2px #333333;
}
.web-phone__notch { width: 120px; height: 6px; margin: 0 auto 10px; border-radius: 3px; background: #333333; }
.web-phone__screen { height: clamp(520px, calc(100vh - var(--header-h) - 120px), 820px); border-radius: 28px; overflow: hidden; background: #FFFFFF; }
.web-phone__screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.web-phone__home { width: 100px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: #555555; }
.web-demo__kb {
  margin-top: 28px;
  max-height: clamp(360px, calc(100vh - var(--header-h) - 300px), 640px);
  overflow-y: auto;
  padding: 8px 28px 28px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: #FFFFFF;
}
.web-demo__kb section + section { border-top: 1px solid var(--color-divider); }
.web-demo__kb h2 { margin: 22px 0 8px; font-size: 17px; font-weight: 650; color: var(--color-primary); }
.web-demo__kb p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: var(--color-body); overflow-wrap: anywhere; }
.web-demo__empty { margin-top: 28px; padding: 28px; border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface-alt); }
.web-demo__empty p { margin: 0 0 16px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .web-section { padding: 72px 0; }
  .web-split { grid-template-columns: 1fr; gap: 48px; }
  .web-owner { display: none; }  /* stacked layout: the steps are enough; the photo would only push them down */
  .web-hero { padding-top: 56px; }
  .web-hero__text { padding-top: 0; }
  .web-hero .web-h1 { font-size: clamp(40px, 5.2vw, 64px); }
  .web-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .web-cards, .web-plans { grid-template-columns: 1fr 1fr; }
  .web-demo__grid { grid-template-columns: 1fr; justify-items: center; }
  .web-demo__info { width: 100%; }
  .web-demo__kb { max-height: none; }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-menu-btn { display: block; }
  .site-mobile-menu { display: block; }
}
@media (max-width: 640px) {
  .site-wrap { padding: 0 16px; }
  .site-body { font-size: 16px; }
  .web-hero { padding: 40px 0 72px; }
  .web-cards, .web-plans { grid-template-columns: 1fr; }
  .web-actions .site-btn { flex: 1 1 auto; }
  .web-cta { padding: 48px 24px; }
  .web-form-card { padding: 24px; }
  .web-phone { width: min(380px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
