/* ==========================================================================
   Gather Hub landing — design system (Direction C refresh)
   Light "premium calm" skin aligned with the app: teal brand ramp, amber
   accent, warm stone neutrals, Inter display type, signature teal→amber
   gradients. All dimensions are in rem. The root font-size scales with the
   viewport on large screens (see "Adaptive scale" below), so 1080p, 1440p,
   and 4K users all see the page composed the same way.
   ========================================================================== */

/* ---- Tokens ---- */
:root {
  /* Color — warm stone surfaces, stone ink, teal brand, amber accent */
  --bg: #fafaf9;             /* stone-50 */
  --bg-raised: #ffffff;
  --bg-sunken: #f5f5f4;      /* stone-100 */
  --ink: #1c1917;            /* stone-900 body */
  --ink-bright: #0c0a09;     /* stone-950 headlines */
  --ink-strong: #292524;     /* stone-800 */
  --ink-80: rgba(28, 25, 23, 0.8);
  --ink-75: rgba(28, 25, 23, 0.75);
  --ink-72: rgba(28, 25, 23, 0.72);
  --ink-70: rgba(28, 25, 23, 0.7);
  --ink-60: rgba(28, 25, 23, 0.6);
  --ink-55: rgba(28, 25, 23, 0.55);
  --ink-50: rgba(28, 25, 23, 0.5);
  --ink-45: rgba(28, 25, 23, 0.45);
  --ink-40: rgba(28, 25, 23, 0.4);
  --gold: #b45309;           /* amber-700 — accent text on light */
  --gold-bright: #92400e;    /* amber-800 */
  --gold-tint: #fffbeb;      /* amber-50 */
  --gold-line: #fde68a;      /* amber-200 */
  --teal: #0f766e;           /* brand-700 */
  --teal-bright: #0d9488;    /* teal-600 */
  --teal-solid: #0f766e;
  --teal-deep: #115e59;      /* teal-800 */
  --teal-chip: #99f6e4;      /* teal-200 */
  --teal-tint: #f0fdfa;      /* teal-50 */
  --teal-tint-strong: #ccfbf1; /* teal-100 */
  --selection: #ccfbf1;
  --line-07: rgba(28, 25, 23, 0.07);
  --line-08: rgba(28, 25, 23, 0.08);
  --line-10: rgba(28, 25, 23, 0.1);
  --line-12: rgba(28, 25, 23, 0.12);
  --line-14: rgba(28, 25, 23, 0.14);
  --line-18: rgba(28, 25, 23, 0.18);
  --line-20: rgba(28, 25, 23, 0.2);
  --line-25: rgba(28, 25, 23, 0.25);
  --line-30: rgba(28, 25, 23, 0.3);
  --border-soft: rgba(28, 25, 23, 0.08);

  /* Signature gradients (Direction C) */
  --gradient-brand-soft: linear-gradient(115deg, #f0fdfa 0%, #ffffff 52%, #fffbeb 100%);
  --gradient-brand-deep: linear-gradient(140deg, #042f2e 0%, #134e4a 42%, #115e59 74%, #92400e 138%);
  --gradient-brand-rule: linear-gradient(90deg, #0d9488, #f59e0b);
  --gradient-brand-button: linear-gradient(180deg, #0f766e, #115e59);
  --gradient-brand-button-hover: linear-gradient(180deg, #115e59, #134e4a);

  /* Type */
  /* "Inter Variable" is what the bundled @font-face registers; naming only "Inter" falls through
     to the system stack while the font file downloads anyway. */
  --font-sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 77.5rem;      /* 1240px */
  --gutter: 1.75rem;         /* 28px */
  --header-offset: 4.375rem; /* 70px — anchors scroll below the fixed nav */

  /* Shape */
  --radius-xs: 0.1875rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 0.875rem;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 0.5rem 1.5rem rgba(28, 25, 23, 0.08);
}

/* ---- Adaptive scale ----
   Below 1920px the base stays at the browser default (16px). From 1920px up,
   the base grows with the viewport (100vw / 120 = 16px at 1920, 32px at 4K),
   so the composition fills a 4K monitor exactly like a 1080p one. */
@media (min-width: 120em) {
  html { font-size: calc(100vw / 120); }
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}
html, body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--selection);
  color: var(--ink-bright);
}
a {
  color: var(--teal);
}
a:hover {
  color: var(--teal-deep);
}
img {
  max-width: 100%;
}
svg {
  flex-shrink: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---- Shared type ---- */
.eyebrow {
  margin: 0;
  font-size: 0.84375rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 0.125rem;
  margin-right: 0.5625rem;
  vertical-align: 0.28em;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand-rule);
}
.eyebrow-sm {
  font-size: 0.8125rem;
}
.section-title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-feature-settings: "ss01" 1, "cv11" 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink-bright);
}
.section-sub {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-72);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn span {
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand-button);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--gradient-brand-button-hover);
  color: #fff;
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border: 1px solid var(--line-18);
  background: var(--bg-raised);
  color: var(--ink-strong);
  font-weight: 600;
}
.btn-outline:hover {
  background: var(--teal-tint);
  border-color: var(--teal-chip);
  color: var(--teal-deep);
  transform: translateY(-0.125rem);
}
.btn-lg {
  height: 3.25rem;
  gap: 0.625rem;
  padding: 0 1.625rem;
  font-size: 0.9375rem;
}
.btn-md {
  height: 3.125rem;
  gap: 0.5625rem;
  padding: 0 1.5rem;
  font-size: 0.90625rem;
}
.btn-xl {
  height: 3.625rem;
  gap: 0.6875rem;
  padding: 0 2.125rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-07);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 0.125rem;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.4), rgba(13, 148, 136, 0.08) 45%, rgba(245, 158, 11, 0.32));
  pointer-events: none;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9375rem;
  padding-bottom: 0.9375rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink-bright);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand .brand-mark {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}
.brand:hover {
  color: var(--ink-bright);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.nav-link {
  padding: 0.5rem 0.6875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-80);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--teal-tint);
  color: var(--teal-deep);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  border: 1px solid var(--line-12);
  border-radius: var(--radius-pill);
  padding: 0.1875rem;
  background: var(--bg-sunken);
}
.lang-pill {
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-60);
  background: transparent;
}
.lang-pill:hover {
  color: var(--ink-bright);
}
.lang-pill.is-active {
  background: var(--bg-raised);
  color: var(--teal-deep);
  box-shadow: var(--shadow-sm);
}
.lang-pill.is-active:hover {
  color: var(--teal-deep);
}
.nav-signin {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-strong);
  text-decoration: none;
  white-space: nowrap;
}
.nav-signin:hover {
  background: var(--teal-tint);
  color: var(--teal-deep);
}
.nav-cta {
  padding: 0.5625rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand-button);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover {
  background: var(--gradient-brand-button-hover);
  color: #fff;
}

/* ==========================================================================
   Hero — light split (Concept 1): copy left, product visual right
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 8% 10%, rgba(13, 148, 136, 0.2) 0%, rgba(13, 148, 136, 0) 55%),
    radial-gradient(ellipse at 92% 92%, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 58%);
  pointer-events: none;
}
.hero-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(28, 25, 23, 0.055) 1px, transparent 1px);
  background-size: 1.375rem 1.375rem;
  pointer-events: none;
}
.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 3.5rem;
  padding-top: 8.5rem;
  padding-bottom: 4.5rem;
  width: 100%;
}
.hero-copy {
  max-width: 36rem;
}
.hero-title {
  margin: 1.625rem 0 0;
  font-family: var(--font-display);
  font-feature-settings: "ss01" 1, "cv11" 1;
  font-weight: 600;
  font-size: clamp(2.5rem, 4.4vw, 4.125rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink-bright);
}
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.line {
  display: block;
}
.line-accent {
  font-style: italic;
  color: var(--teal);
}
.hero-sub {
  margin: 1.5rem 0 0;
  max-width: 33.75rem;
  font-size: 1.09375rem;
  line-height: 1.65;
  color: var(--ink-72);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-micro {
  margin: 1.375rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-55);
}
.hero-micro li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}
.hero-micro .icon-check {
  color: var(--teal);
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink-45);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-hint {
  display: block;
  width: 1px;
  height: 2.75rem;
  background: linear-gradient(rgba(28, 25, 23, 0.5), rgba(28, 25, 23, 0));
}

/* Product visual: browser-frame mock mini-dashboard over a teal→amber blob */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}
.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27rem;
  height: 27rem;
  transform: translate(-52%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.32), rgba(245, 158, 11, 0.3));
  filter: blur(3.25rem);
  pointer-events: none;
}
.mock-window {
  position: relative;
  width: min(100%, 24.5rem);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background: var(--bg-raised);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: hero-float 9s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-0.625rem) rotate(0.4deg); }
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--line-07);
  background: var(--bg-sunken);
}
.mock-dot {
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: 50%;
}
.mock-dot-a { background: var(--teal-chip); }
.mock-dot-b { background: var(--gold-line); }
.mock-dot-c { background: var(--line-14); }
.mock-img {
  display: block;
  width: 100%;
  height: auto;
}
.mock-line {
  display: block;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(28, 25, 23, 0.14);
}
.w-45 { width: 45%; }
.w-80 { width: 80%; }
.mock-badge {
  position: absolute;
  top: 0.25rem;
  right: 6%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  box-shadow: var(--shadow-md);
  padding: 0.5625rem 0.75rem;
  animation: hero-float 9s ease-in-out 0.6s infinite;
}
.mock-badge-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--gradient-brand-rule);
}
.mock-badge-lines {
  display: grid;
  gap: 0.3125rem;
  width: 4.5rem;
}
@media (prefers-reduced-motion: reduce) {
  .mock-window,
  .mock-badge {
    animation: none;
  }
}

/* Short viewports: shrink hero so actions never clip below the fold. */
@media (max-height: 56rem) {
  .hero-split {
    padding-top: 6.25rem;
    padding-bottom: 3rem;
    gap: 2.25rem;
  }
  .hero-title {
    font-size: clamp(2.125rem, 5vh, 3.25rem);
  }
  .hero-sub {
    margin-top: 1rem;
    font-size: 1rem;
  }
  .hero-actions {
    margin-top: 1.375rem;
  }
  .hero-micro {
    margin-top: 1rem;
  }
  .hero-blob {
    width: 21rem;
    height: 21rem;
  }
  .hero-scroll {
    display: none;
  }
}
@media (max-height: 56rem) and (max-width: 40rem) {
  .hero-split {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }
  .hero-title {
    font-size: clamp(1.875rem, 4.4vh, 2.5rem);
  }
}

/* Very narrow screens: keep the header on one row and the hero compact. */
@media (max-width: 40rem) {
  .nav-link {
    display: none;
  }
  .hero-split {
    padding-top: 7rem;
  }
  .hero-title {
    font-size: clamp(1.9rem, 7.6vw, 2.6rem);
  }
  .hero-sub {
    line-height: 1.55;
  }
}

/* Wide but short screens (e.g. zoomed laptops): compress the layered hero
   so the whole composition fits one screen. */
@media (min-width: 56.25em) and (max-height: 56rem) {
  .hero .hero-split {
    gap: 2.5rem;
    padding-top: 6rem;
    padding-bottom: 2rem;
  }
  .hero .hero-copy--layered .hero-title {
    font-size: clamp(2rem, 4.5vh, 2.875rem);
  }
  .hero .hero-sub {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.55;
  }
  .hero .hero-actions {
    margin-top: 1.5rem;
  }
  .hero .hero-micro {
    margin-top: 1rem;
  }
  .hero .hero-proof {
    margin-top: 1rem;
  }
  .hero .hero-visual--layered {
    padding: 1rem 0;
  }
  .hero .hero-visual--layered .hero-blob {
    width: 26rem;
    height: 26rem;
  }
  .hero .mock-window--layered {
    width: min(100%, 23rem);
  }
  .hero .stack-card--checkin {
    width: 9.5rem;
  }
  .hero .stack-card--notify {
    width: 9rem;
  }
  .hero .hero-scroll {
    display: none;
  }
}

/* ==========================================================================
   Story
   ========================================================================== */
.story {
  background: var(--bg-raised);
  border-top: 1px solid var(--line-07);
  scroll-margin-top: var(--header-offset);
}
.story-head {
  padding-top: 6.25rem;
  padding-bottom: 1.25rem;
}
.story-title {
  font-size: clamp(2.125rem, 4.2vw, 3.625rem);
  line-height: 1.06;
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21.25rem, 31.25rem);
  gap: 3.5rem;
  align-items: start;
  padding-top: 1.25rem;
  padding-bottom: 5rem;
}
.scene {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 33.75rem;
}
.scene-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4375rem;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.scene-title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-feature-settings: "ss01" 1, "cv11" 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.08;
  color: var(--ink-bright);
}
.scene-body {
  margin: 1.125rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-72);
}
.scene-instead {
  margin: 1.375rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.5625rem;
  flex-wrap: wrap;
}
.scene-instead-label {
  font-size: 0.71875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
  white-space: nowrap;
}
.scene-instead-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ink-60);
}

/* Sticky visual: calendar + scraps + tidy list */
.story-visual {
  position: sticky;
  top: max(var(--header-offset), calc(50vh - 20.625rem));
}
.cal-wrap {
  position: relative;
}
.cal-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1rem 0.75rem;
}
.cal-title {
  margin: 0 0 0.625rem;
  font-size: 0.71875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}
.cal-dow {
  text-align: center;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-40);
  padding-bottom: 0.125rem;
}
.cal-cell {
  min-height: 3.25rem;
  border: 1px solid var(--line-07);
  border-radius: 0.3125rem;
  padding: 0.1875rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  background: var(--bg);
}
.cal-day {
  font-size: 0.59375rem;
  font-weight: 700;
  color: var(--ink-45);
}
.cal-chip {
  display: block;
  border-radius: var(--radius-xs);
  padding: 0.09375rem 0.1875rem;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-chip-camp { background: var(--gold-tint); color: var(--gold-bright); border: 1px solid var(--gold-line); }
.cal-chip-choir { background: var(--teal-tint-strong); color: var(--teal-deep); }
.cal-chip-group { background: var(--teal-tint); color: var(--teal); }
.cal-chip-prayer { background: var(--gold-tint); color: var(--gold); }
.cal-chip-plain { background: var(--bg-sunken); color: var(--ink-72); }

.scrap-layer {
  position: absolute;
  inset: -0.875rem;
  z-index: 2;
  pointer-events: none;
}
.scrap {
  position: absolute;
  width: 12.25rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.5rem;
  background: var(--bg-raised);
  box-shadow: var(--shadow-md);
  padding: 0.6875rem 0.8125rem;
}
.scrap-title {
  margin: 0;
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.35;
}
.scrap-sub {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: var(--ink-50);
}

.tidy-panel {
  margin-top: 0.875rem;
  border: 1px solid var(--teal-chip);
  border-radius: var(--radius-lg);
  background: var(--teal-tint);
  padding: 0.875rem 1rem;
}
.tidy-label {
  margin: 0;
  font-size: 0.71875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.tidy-list {
  margin: 0.625rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4375rem;
}
.tidy-row {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  padding: 0.4375rem 0.6875rem;
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--ink-strong);
}
.tidy-row .icon-check {
  color: var(--teal);
}

/* ==========================================================================
   Modules
   ========================================================================== */
.modules {
  background: var(--gradient-brand-soft);
  border-top: 1px solid var(--line-07);
  scroll-margin-top: var(--header-offset);
}
.modules .container {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}
.modules-head {
  max-width: 42.5rem;
}
.modules-head .section-title {
  font-size: clamp(2.125rem, 4vw, 3.375rem);
}
.modules-grid {
  margin-top: 3.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 0.875rem;
}
.module-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
  padding: 1.625rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.module-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-0.125rem);
}
.module-q {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--ink-bright);
}
.module-a {
  margin: auto 0 0;
  padding-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-70);
}
.module-tag {
  display: inline-block;
  margin-right: 0.5rem;
  border-radius: 0.25rem;
  background: var(--teal-tint-strong);
  color: var(--teal-deep);
  padding: 0.125rem 0.5rem;
  font-size: 0.71875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing {
  background: var(--bg-raised);
  border-top: 1px solid var(--line-07);
  scroll-margin-top: var(--header-offset);
}
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 27.5rem);
  gap: 4rem;
  align-items: center;
  padding-top: 6.875rem;
  padding-bottom: 6.875rem;
}
.pricing-title {
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  line-height: 1.06;
}
.pricing-lead {
  margin-top: 1.125rem;
  max-width: 32.5rem;
  line-height: 1.7;
}
.pricing-bullets {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 32.5rem;
}
.pricing-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.6875rem;
  font-size: 0.96875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-strong);
}
.pricing-bullet .icon-check {
  margin-top: 0.1875rem;
  color: var(--teal);
}
.price-card {
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--gold-tint), #ffffff 70%);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem;
  text-align: center;
}
.price-card-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.price-amount {
  margin: 1.125rem 0 0;
  font-family: var(--font-display);
  font-feature-settings: "ss01" 1, "cv11" 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 4.75rem;
  line-height: 1;
  color: var(--gold);
}
.price-per {
  margin: 0.625rem 0 0;
  font-size: 0.90625rem;
  font-weight: 600;
  color: var(--ink-70);
}
.price-body {
  margin: 1.125rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-60);
}
.price-card .btn {
  margin-top: 1.5rem;
}
.price-note {
  margin: 0.875rem 0 0;
  font-size: 0.78125rem;
  color: var(--ink-50);
}

/* ==========================================================================
   Final CTA — deep brand gradient band (the dark counterpart of the soft skin)
   ========================================================================== */
.cta {
  background: var(--gradient-brand-deep);
  border-top: 1px solid var(--line-07);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 56.25rem;
  margin: 0 auto;
  padding: 8.125rem var(--gutter);
  text-align: center;
}
.cta .eyebrow {
  color: var(--teal-chip);
}
.cta-title {
  margin: 0;
  font-family: var(--font-display);
  font-feature-settings: "ss01" 1, "cv11" 1;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 1.02;
  color: #f2faf7;
}
.cta-sub {
  margin: 1.5rem auto 0;
  max-width: 32.5rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(231, 245, 240, 0.75);
}
.cta-actions {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}
.cta .btn-primary {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  color: #1c1917;
  box-shadow: 0 0.375rem 1.25rem rgba(245, 158, 11, 0.35);
}
.cta .btn-primary:hover {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #0c0a09;
}
.cta-small {
  margin: 1.125rem 0 0;
  font-size: 0.84375rem;
  color: rgba(231, 245, 240, 0.55);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line-07);
  background: var(--bg);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.375rem;
  padding-bottom: 1.375rem;
  font-size: 0.8125rem;
  color: var(--ink-45);
}

/* ==========================================================================
   Small screens
   ========================================================================== */
@media (max-width: 56.25em) {
  /* The header wraps to multiple rows on phones — give the hero room below it. */
  .hero {
    min-height: 0;
  }
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 9.5rem;
    padding-bottom: 3.5rem;
    text-align: center;
  }
  .hero-title {
    font-size: clamp(2.1rem, 8vw, 3.25rem);
  }
  .hero-sub {
    margin-top: 1.125rem;
    font-size: 1rem;
  }
  .hero-actions {
    margin-top: 1.5rem;
  }
  .hero-copy {
    max-width: 40rem;
    margin: 0 auto;
  }
  .hero-actions,
  .hero-micro {
    justify-content: center;
  }
  .hero-visual {
    padding: 0.5rem 0 1rem;
  }
  .hero-blob {
    width: 19rem;
    height: 19rem;
  }
  .mock-window {
    width: min(100%, 21.5rem);
  }
  .mock-badge {
    right: 2%;
  }
  .hero-scroll {
    display: none;
  }
  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-visual {
    position: static;
    max-width: 31.25rem;
  }
  .scene {
    min-height: 0;
    padding: 3.5rem 0;
  }
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .price-card {
    max-width: 27.5rem;
  }
  .scrap {
    width: 10.5rem;
  }
}

/* ==========================================================================
   Hero — layered product card (approved direction)
   Tilted browser-frame card over a teal→amber blob with two counter-rotated
   mini cards behind it; dotted texture + stronger glows live on .hero.
   ========================================================================== */
.hero-copy--layered .hero-title {
  font-size: clamp(2.75rem, 4.9vw, 4.625rem);
}
.hero-proof {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-55);
}
.hero-proof-avatars {
  display: inline-flex;
}
.hero-proof-avatars i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: -0.375rem;
  border-radius: 50%;
  border: 2px solid var(--bg);
  font-style: normal;
  font-size: 0.5625rem;
  font-weight: 800;
  color: #fff;
}
.hero-proof-avatars i:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
}
.hero-proof-avatars i:nth-child(2) {
  background: linear-gradient(135deg, #f59e0b, var(--gold-bright));
}
.hero-proof-avatars i:nth-child(3) {
  background: linear-gradient(135deg, var(--teal-deep), #134e4a);
}
.hero-visual--layered {
  padding: 2.5rem 0;
}
.hero-visual--layered .hero-blob {
  width: 32rem;
  height: 32rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.42), rgba(245, 158, 11, 0.38));
}
.mock-window--layered {
  width: min(100%, 29rem);
  transform: rotate(-1.6deg);
  animation: hero-float-layered 10s ease-in-out infinite;
}
@keyframes hero-float-layered {
  0%, 100% { transform: rotate(-1.6deg) translateY(0); }
  50% { transform: rotate(-1.2deg) translateY(-0.625rem); }
}
.stack-card {
  position: absolute;
  z-index: -1;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  box-shadow: var(--shadow-md);
  padding: 0.75rem;
}
.stack-card--checkin {
  top: 4%;
  left: 0;
  width: 11.5rem;
  transform: rotate(2.4deg);
  display: grid;
  gap: 0.5rem;
}
.stack-card-label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.stack-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.stack-chip {
  flex-shrink: 0;
  width: 1.75rem;
  height: 0.75rem;
  border-radius: var(--radius-pill);
}
.stack-chip--teal { background: var(--teal-tint-strong); }
.stack-chip--plain { background: var(--bg-sunken); }
.stack-card--notify {
  right: 0;
  bottom: 3%;
  width: 10.5rem;
  transform: rotate(-2.8deg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stack-card-dot {
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--gradient-brand-rule);
}
.stack-card-lines {
  display: grid;
  gap: 0.3125rem;
  flex: 1;
}
.hero-visual--layered .w-55 { width: 55%; }
.hero-visual--layered .w-60 { width: 60%; }
.hero-visual--layered .w-70 { width: 70%; }
@media (prefers-reduced-motion: reduce) {
  .mock-window--layered { animation: none; }
}

@media (max-width: 56.25em) {
  .hero-visual--layered {
    padding: 1.5rem 0 2rem;
  }
  .hero-visual--layered .hero-blob {
    width: 20rem;
    height: 20rem;
  }
  .mock-window--layered {
    width: min(100%, 22.5rem);
  }
  .stack-card--checkin {
    width: 9.5rem;
  }
  .stack-card--notify {
    width: 9rem;
  }
  .hero-proof {
    justify-content: center;
  }
}
