/* ==========================================================================
   Mundo360 - "panorama atlas"
   A bright oceanic travelogue: full-bleed panoramic photography, a single
   horizon gradient reserved for one signature treatment, airy sky-paper
   surfaces and shadows tinted to the page hue.

   Shape rule (locked, applied everywhere):
     buttons / pills        -> full pill (999px)
     cards / tiles / panels -> var(--r)      18px
     inputs / chips / notes -> var(--r-sm)   10px

   Colour rule (locked): one accent, azure. Coral and amber exist ONLY as
   stops inside --horizon, the single signature gradient. They are never
   used as standalone accents.

   Theme: light, page-wide. Dark panels are photographic scrims over real
   imagery, not an inverted section theme.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #f2f7fc;
  --bg-2: #e6f0f9;
  --surface: #ffffff;
  --panel: #e8f1fa;
  --line: #d3e4f2;
  --line-2: #bed8ee;

  /* ink */
  --text: #0b2540;
  --ink-soft: #3d566f;
  --muted: #4d6b87;
  --on-photo: #f4faff;

  /* accent (single) */
  --accent: #1073c8;
  --accent-deep: #084a8c;
  --accent-abyss: #062f5c;
  --accent-soft: rgba(16, 115, 200, 0.1);
  --accent-line: rgba(16, 115, 200, 0.24);

  /* the one signature gradient */
  --horizon: linear-gradient(96deg, #084a8c 0%, #1073c8 34%, #ff6a5a 78%, #ffb347 100%);
  --azure-grad: linear-gradient(140deg, #1888e2 0%, #084a8c 100%);
  --ocean: linear-gradient(165deg, #062f5c 0%, #084a8c 52%, #1073c8 100%);

  /* geometry */
  --r-pano: 28px;
  --r: 18px;
  --r-sm: 10px;
  --header-h: 72px;

  /* elevation, tinted to the page hue - never pure black */
  --shadow: 0 22px 50px rgba(7, 52, 100, 0.14);
  --shadow-sm: 0 8px 22px rgba(7, 52, 100, 0.09);
  --shadow-lift: 0 30px 64px rgba(7, 52, 100, 0.2);

  /* type */
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --font-body: 'Onest', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; }

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

.container {
  width: min(1200px, calc(100% - 2.6rem));
  margin-inline: auto;
}

.container-wide {
  width: min(1420px, calc(100% - 2.6rem));
  margin-inline: auto;
}

/* Reading width belongs to the container, never to a paragraph. */
.container-narrow {
  width: min(720px, calc(100% - 2.6rem));
  margin-inline: auto;
}

.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-tint { background: var(--bg-2); }

/* Reading width sits on the head container, never on the paragraph itself. */
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
  max-width: 62ch;
}
.section-head h2 { max-width: 20ch; }
.section-head > p {
  color: var(--muted);
  font-size: 1.06rem;
}
.section-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 58ch;
  margin-inline: auto;
}
.section-head--center h2 { max-width: 58ch; }

/* The single signature treatment: a short horizon rule above a heading. */
.hz-rule {
  display: block; /* it is a <span>: without this, width/height are ignored */
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: var(--horizon);
  margin-bottom: 1.1rem;
}
.section-head--center .hz-rule { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* --------------------------------------------------------------------------
   Buttons  (pill radius, per the shape rule)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  white-space: nowrap;
  padding: 0.82rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary {
  background: var(--azure-grad);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(8, 74, 140, 0.28);
}
.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(8, 74, 140, 0.34);
}
.btn-primary:active { transform: scale(0.985); }

.btn-ghost {
  background: var(--surface);
  color: var(--accent-deep);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  color: var(--accent-deep);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.btn-ghost:active { transform: scale(0.985); }

/* Over photography: a scrim plus a stroke keeps the label readable. */
.btn-onphoto {
  background: rgba(6, 32, 60, 0.42);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-onphoto:hover {
  color: #062f5c;
  background: rgba(255, 255, 255, 0.94);
  border-color: #ffffff;
  transform: translateY(-2px);
}
.btn-onphoto:active { transform: scale(0.985); }

.btn-sm { padding: 0.58rem 1.15rem; font-size: 0.88rem; }
.btn-lg { padding: 1rem 1.95rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  direction: ltr; /* keeps the logo left in every locale */
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(242, 247, 252, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo { display: inline-flex; align-items: center; }

.site-nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav-desktop a:not(.btn) {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.2rem 0;
  transition: color 0.2s var(--ease);
}
.site-nav-desktop a:not(.btn):hover,
.site-nav-desktop a.active { color: var(--accent-deep); }
.site-nav-desktop a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.lang-switcher { display: flex; align-items: center; gap: 0.3rem; }

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--surface);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang-pill:hover { color: var(--accent-deep); border-color: var(--accent); }
.lang-active {
  color: #ffffff;
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  cursor: pointer;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-deep);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle:checked ~ .site-header .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .site-header .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .site-header .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav is a SIBLING of <header>, never a child (stacking context). */
.site-nav { display: none; }

@media (max-width: 940px) {
  .site-nav-desktop { display: none; }
  .nav-burger { display: flex; }

  .site-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 800;
    padding: 1.1rem 1.3rem 1.6rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-115%);
    visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0.28s var(--ease);
  }
  .site-nav a:not(.btn) {
    padding: 0.65rem 0;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .btn { width: 100%; margin-top: 0.9rem; }
  .site-nav .lang-switcher { padding: 0.9rem 0 0; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); visibility: visible; }
}

/* --------------------------------------------------------------------------
   Hero  (layout family 1: full-bleed panorama, asymmetric copy block)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(94deg, rgba(6, 34, 62, 0.9) 0%, rgba(6, 34, 62, 0.72) 38%, rgba(6, 34, 62, 0.18) 74%, rgba(6, 34, 62, 0.05) 100%),
    linear-gradient(180deg, rgba(6, 34, 62, 0.5) 0%, rgba(6, 34, 62, 0) 34%);
}

/* Asymmetric: copy occupies the left 7 of 12, the panorama breathes right. */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
}

/* The column is sized in px, not ch: `ch` here resolves against the 1rem body
   font and would squeeze the 62px headline onto three lines. The headline
   fills this column; the subtext gets its own, narrower reading wrapper. */
.hero-copy { color: var(--on-photo); max-width: 660px; }
.hero-copy h1 { color: #ffffff; }
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(94deg, #7fd0ff, #ffd08a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.3rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(6, 34, 62, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.hero-pill svg { width: 1.05rem; height: 1.05rem; }

.hero-sub-wrap { max-width: 48ch; margin: 1.2rem 0 2rem; }
.hero-sub {
  margin: 0;
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  color: rgba(238, 247, 255, 0.92);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* The horizon gradient as a literal horizon at the foot of the panorama. */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--horizon);
}

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(6, 34, 62, 0.62) 0%, rgba(6, 34, 62, 0.86) 62%, rgba(6, 34, 62, 0.92) 100%);
  }
  .hero-copy { max-width: none; }
  .hero-sub-wrap { max-width: none; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Showcase  (layout family 2: asymmetric photo mosaic, 7 tiles, 7 cells)
   -------------------------------------------------------------------------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r);
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.tile:hover img { transform: scale(1.05); }

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 34, 62, 0.02) 0%, rgba(6, 34, 62, 0.52) 48%, rgba(6, 34, 62, 0.9) 100%);
}

.tile-cap { padding: 1.25rem 1.35rem 1.4rem; color: #ffffff; }
.tile-cap h3 { color: #ffffff; margin-bottom: 0.35rem; }
.tile-cap p {
  color: rgba(236, 246, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.tile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(6, 34, 62, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
}
.tile-mark svg { width: 1.2rem; height: 1.2rem; }

/* 7 items, 7 cells, deliberate rhythm and no empty cell. */
.tile-a { grid-column: span 4; min-height: 340px; }
.tile-b { grid-column: span 2; }
.tile-c { grid-column: span 2; }
.tile-d { grid-column: span 2; }
.tile-e { grid-column: span 2; }
.tile-f { grid-column: span 3; }
.tile-g { grid-column: span 3; min-height: 300px; }

@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .tile,
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e, .tile-f, .tile-g {
    grid-column: span 1;
    min-height: 220px;
  }
  .tile-a { grid-column: span 2; min-height: 280px; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr; }
  .tile-a { grid-column: span 1; }
}

/* --------------------------------------------------------------------------
   Immersion  (layout family 3: full-bleed photo statement, used once)
   -------------------------------------------------------------------------- */

.immerse {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}
.immerse img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.immerse::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(6, 34, 62, 0.94) 0%, rgba(6, 34, 62, 0.8) 46%, rgba(6, 34, 62, 0.3) 100%);
}

.immerse-copy { max-width: 56ch; color: var(--on-photo); }
.immerse-copy h2 { color: #ffffff; }
.immerse-copy > p { color: rgba(234, 245, 255, 0.9); font-size: 1.06rem; }
.immerse-copy .hz-rule { margin-bottom: 1.2rem; }

.check-list {
  list-style: none;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 0.85rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 1rem;
}
.check-list svg {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  color: #7fd0ff;
}

/* --------------------------------------------------------------------------
   Why us  (layout family 4: hairline column list, deliberately no cards)
   -------------------------------------------------------------------------- */

.reasons {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem 3rem;
}
.reasons li { padding-top: 1.4rem; border-top: 2px solid var(--line-2); }
.reasons li:nth-child(3n + 1) { border-top-color: var(--accent); }
.reasons h3 { margin-bottom: 0.4rem; }
.reasons p { color: var(--muted); font-size: 0.98rem; margin: 0; }

@media (max-width: 900px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reasons { grid-template-columns: 1fr; gap: 1.8rem; } }

/* --------------------------------------------------------------------------
   Features  (layout family 5: asymmetric bento, one photo lead + icon cells)
   -------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}

.feat {
  border-radius: var(--r);
  padding: 1.7rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  grid-column: span 2;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat h3 { margin-bottom: 0.45rem; }
.feat p { color: var(--muted); font-size: 0.97rem; margin: 0; }

.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1.05rem;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.feat-icon svg { width: 1.45rem; height: 1.45rem; }

/* Lead cell carries a real photo so the grid is not six white text boxes. */
.feat-lead {
  grid-column: span 3;
  grid-row: span 2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  border: none;
  padding: 1.9rem 1.8rem;
}
.feat-lead img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feat-lead::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 34, 62, 0.1) 0%, rgba(6, 34, 62, 0.62) 52%, rgba(6, 34, 62, 0.93) 100%);
}
.feat-lead h3 { color: #ffffff; }
.feat-lead p { color: rgba(234, 245, 255, 0.92); }
.feat-lead .feat-icon {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

/* Fills the second row beside the row-spanning lead cell, so the grid never
   leaves a hole: lead(3)+tint(3) / lead(3)+wide(3) / 2+2+2. */
.feat-wide { grid-column: span 3; }

/* Tinted cell, second visual variation in the grid. */
.feat-tint {
  grid-column: span 3;
  background: var(--ocean);
  border-color: transparent;
  color: var(--on-photo);
}
.feat-tint h3 { color: #ffffff; }
.feat-tint p { color: rgba(234, 245, 255, 0.88); }
.feat-tint .feat-icon {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .feat { grid-column: span 2; }
  .feat-lead { grid-column: span 4; grid-row: auto; min-height: 280px; }
  .feat-tint,
  .feat-wide { grid-column: span 4; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .feat,
  .feat-lead,
  .feat-tint,
  .feat-wide { grid-column: span 1; }
}

/* --------------------------------------------------------------------------
   Closing invite band  (layout family 6)
   -------------------------------------------------------------------------- */

.invite {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-pano);
  padding: clamp(2.6rem, 5vw, 4.2rem) clamp(1.6rem, 4vw, 3.4rem);
  background: var(--ocean);
  color: var(--on-photo);
  text-align: center;
  box-shadow: var(--shadow);
}
.invite-body {
  width: min(56ch, 100%);
  margin-inline: auto;
  margin-bottom: 1.9rem;
}
.invite h2 { color: #ffffff; margin-inline: auto; max-width: 22ch; }
.invite-body p { color: rgba(234, 245, 255, 0.9); }
.invite::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--horizon);
}

/* --------------------------------------------------------------------------
   FAQ accordion  (layout family 7)
   -------------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 0.7rem;
  width: min(880px, 100%);
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq-item[open] { border-color: var(--accent-line); }

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1.35rem;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }

.faq-body {
  padding: 0 1.4rem 1.3rem;
  color: var(--muted);
  line-height: 1.72;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: clamp(3.2rem, 6vw, 5rem) 0 clamp(2.2rem, 4vw, 3.2rem);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 0.7rem; }
.page-hero p { color: var(--muted); font-size: 1.06rem; }

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.step {
  position: relative;
  padding: 1.7rem 1.5rem 1.5rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--azure-grad);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* --------------------------------------------------------------------------
   Pricing cards
   -------------------------------------------------------------------------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  width: min(900px, 100%);
  margin-inline: auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 1.8rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.price-op {
  font-size: 1.02rem;
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
}

.price-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}
.price-val {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}
.price-freq { color: var(--muted); font-size: 1rem; margin: 0; }

.price-trial {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 0.4rem;
}
.price-card .btn { margin-top: 1.4rem; width: 100%; }

.price-note {
  margin-top: 1.8rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.93rem;
}

/* --------------------------------------------------------------------------
   Opt-out box
   -------------------------------------------------------------------------- */

.optout {
  padding: 1.5rem 1.6rem;
  margin-bottom: 1rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.optout h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }

.optout-sms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 1rem;
}
.optout-to { color: var(--muted); }
.optout-kw {
  font-family: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  border: 1px dashed var(--accent-line);
  color: var(--accent-deep);
}
.optout-dest {
  font-family: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.optout-notes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem 1.6rem;
  margin: 1.6rem 0 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid var(--line);
}
.optout-notes li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.optout-notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Bullets (refund policy)
   -------------------------------------------------------------------------- */

.bullets {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  width: min(880px, 100%);
}
.bullets li {
  position: relative;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.68;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 1.15rem;
  top: 1.35rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--horizon);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}
.value-card {
  padding: 1.8rem 1.6rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.value-card h3 { margin-bottom: 0.45rem; }
.value-card p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1rem;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.value-icon svg { width: 1.4rem; height: 1.4rem; }

.vision {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-pano);
  padding: clamp(2.4rem, 5vw, 3.8rem) clamp(1.6rem, 4vw, 3.2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.vision::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--horizon);
}
.vision h2 { margin-bottom: 1rem; }
.vision p { color: var(--ink-soft); font-size: 1.04rem; }

/* --------------------------------------------------------------------------
   Care block (contact)
   -------------------------------------------------------------------------- */

.care-card {
  padding: 1.7rem 1.6rem;
  margin-bottom: 2rem;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line-2);
}
.care-card h2 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.care-card p { color: var(--ink-soft); }
.care-card a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Forms  (contact + sign in)
   -------------------------------------------------------------------------- */

.contact-form,
.form-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.form-card.narrow { width: min(520px, 100%); margin-inline: auto; }

.contact-form h3,
.form-card h3 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #64809b; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.signin-card button,
.form-card button { margin-top: 0.5rem; }

.error-msg,
.errorMsg {
  display: none;
  color: #c0281a;
  font-size: 0.82rem;
  margin-top: 0.3rem;
}
.form-success,
.successMsg {
  display: none;
  color: #12704a;
  font-weight: 600;
  margin-top: 1rem;
}
.form-disclaimer {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 1rem;
}

button[disabled] { opacity: 0.62; cursor: progress; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.not-found {
  min-height: 62vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.not-found .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 60ch;
}
.big-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 0 0 0.5rem;
  background: var(--horizon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found p { color: var(--muted); }
.not-found .btn { margin-top: 1.6rem; }

/* --------------------------------------------------------------------------
   Legal pages (shared partials render inside .legals and ship no styles)
   -------------------------------------------------------------------------- */

.legals-wrap { padding: 3.5rem 0; }
.legals { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem; }
.legals .container { width: min(840px, 92vw); margin-inline: auto; }
.legals h1 { display: none; } /* terms-dcb.html injects a hardcoded <h1> */
.legals h6 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 2rem 0 0.5rem;
}
.legals p { margin-bottom: 0.85rem; line-height: 1.75; color: var(--ink-soft); }
.legals ul { margin: 0.5rem 0 1rem; padding-inline-start: 1.2rem; }
.legals li { margin-bottom: 0.4rem; line-height: 1.7; color: var(--ink-soft); }
.legals a { word-break: break-word; }
.legals table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legals th,
.legals td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  text-align: start;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--accent-abyss);
  color: rgba(226, 240, 252, 0.86);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 5px solid transparent;
  border-image: var(--horizon) 1;
}
.site-footer a { color: rgba(226, 240, 252, 0.86); }
.site-footer a:hover { color: #ffffff; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

.footer-brand p {
  margin: 1.1rem 0 1.4rem;
  color: rgba(213, 232, 250, 0.82);
  font-size: 0.94rem;
}
.footer-brand .logo-mark { color: #ffffff; }

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { font-size: 0.93rem; }

.footer-entity {
  padding: 1.8rem 0 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-entity p {
  margin: 0 0 0.35rem;
  font-size: 0.87rem;
  color: rgba(209, 229, 248, 0.78);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1.4rem;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: rgba(209, 229, 248, 0.74); }
.footer-version { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */

.logo-mark { display: inline-flex; align-items: center; }
.logo-mark img {
  width: 172px;
  height: auto;
  transition: opacity 0.2s var(--ease);
}
.site-header .logo:hover .logo-mark img { opacity: 0.78; }

/* The wordmark's blue gradient only reaches 1.84:1 on the navy footer, so the
   footer gets a solid white version of the same artwork. */
.site-footer .logo-mark img { filter: brightness(0) invert(1); }

@media (max-width: 480px) { .logo-mark img { width: 142px; } }

/* --------------------------------------------------------------------------
   Motion. Motivated: sequences each section as the reader arrives so the
   photography lands after its heading instead of everything at once.
   Content is only ever hidden under html.js, never in plain CSS.
   -------------------------------------------------------------------------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }

html.js .mosaic .reveal:nth-child(2) { transition-delay: 60ms; }
html.js .mosaic .reveal:nth-child(3) { transition-delay: 120ms; }
html.js .mosaic .reveal:nth-child(4) { transition-delay: 60ms; }
html.js .mosaic .reveal:nth-child(5) { transition-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .tile:hover img,
  .tile:hover,
  .feat:hover,
  .price-card:hover,
  .btn:hover { transform: none; }
}
