/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
  font-family: "Open Runde";
  src: url("assets/fonts/open-runde/OpenRunde-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Runde";
  src: url("assets/fonts/open-runde/OpenRunde-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --font: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Open Runde", "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;

  --white: #ffffff;
  --ink: #1a1615;
  --ink-soft: #453f3d;
  --btn-ink: #424242;
  --page: #f6f5f3;

  --sky-hero: linear-gradient(180deg, #0468cc 0%, #f0f5fa 100%);
  --sky-footer: linear-gradient(180deg, #84b4e4 0%, #5598dc 100%);

  --container: 1020px;
  --container-wide: 1072px;
  --gutter: 24px;
  --radius-pill: 999px;
  --frost-shadow: rgba(26, 22, 21, 0.08) 0 0.6px 0.6px -0.83px, rgba(26, 22, 21, 0.08) 0 2.29px 2.29px -1.67px, rgba(26, 22, 21, 0.08) 0 10px 10px -2.5px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Keep temporarily retired controls hidden even when component styles set display. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1,
h2,
p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn--white:hover {
  background: #eef3fb;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

/* ==========================================================================
   Logo
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.logo__mark {
  width: 24px;
  height: 24px;
  flex: none;
}

.logo__word {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 20px;
  font-weight: 400;
}

/* ==========================================================================
   Header (behaviour copied from ghostwriterrr.com)
   Desktop: full-width bar that springs into a floating frosted pill after
   150px of scroll. Mobile: always a frosted pill with a dropdown panel.
   ========================================================================== */
.site-header {
  --header-ease: cubic-bezier(0.3, 1.15, 0.45, 1);
  --header-speed: 0.45s;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 16px;
  pointer-events: none;
}

.site-header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 40px;
  background-color: rgba(132, 178, 224, 0);
  pointer-events: auto;
  transition:
    max-width var(--header-speed) var(--header-ease),
    margin-top var(--header-speed) var(--header-ease),
    padding var(--header-speed) var(--header-ease),
    background-color 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a,
.mobile-menu a:not(.btn),
.nav-copy {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--white);
  transition: background-color 0.2s ease;
}

.site-nav a:hover,
.mobile-menu a:not(.btn):hover,
.nav-copy:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* "Contact Us" copies the email: the label slips out, "Copied email" pops in as green text, then fades away.
   Both labels share one grid cell so the button keeps the width of the longer one. */
.nav-copy {
  display: inline-grid;
  justify-items: center;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-copy > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-copy__label {
  color: var(--white);
  transition: opacity 0.2s ease 0.1s, transform 0.28s var(--header-ease) 0.1s;
}

.nav-copy__done {
  color: #4ade80;
  text-shadow: 0 0 14px rgba(74, 222, 128, 0.55);
  opacity: 0;
  transform: scale(0.82);
  /* Fade out in place, then shrink back without being seen. */
  transition: opacity 0.16s ease, transform 0s linear 0.16s;
}

.nav-copy__done svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0s linear 0.16s;
}

.nav-copy.is-copied .nav-copy__label {
  opacity: 0;
  transform: translateY(-60%);
  transition: opacity 0.1s ease, transform 0.16s var(--header-ease);
}

.nav-copy.is-copied .nav-copy__done {
  opacity: 1;
  transform: none;
  animation: nav-copy-pop 0.26s cubic-bezier(0.2, 1.45, 0.36, 1) both;
}

.nav-copy.is-copied .nav-copy__done svg {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.16s ease 0.05s;
}

@keyframes nav-copy-pop {
  0% {
    transform: scale(0.86);
  }
  48% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Static release label: deliberately separate from the interactive buttons. */
.alpha-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--btn-ink);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  cursor: default;
}

.btn--header {
  transition: padding var(--header-speed) var(--header-ease), background-color 0.2s ease;
}

@media (min-width: 810px) {
  .site-header.is-scrolled .site-header__bar {
    max-width: 834px;
    margin-top: 16px;
    padding: 2px 8px 2px 24px;
    background-color: rgba(132, 178, 224, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .site-header.is-scrolled .btn--header {
    padding: 5.5px 18px;
  }

  .mobile-menu {
    display: none;
  }
}

/* Two-line menu icon that turns into an X. */
.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 16px;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--header-ease), top 0.3s var(--header-ease);
}

.nav-toggle span:first-child {
  top: 19px;
}

.nav-toggle span:last-child {
  top: 27px;
}

.nav-open .nav-toggle span:first-child {
  top: 23px;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  top: 23px;
  transform: rotate(-45deg);
}

.mobile-menu {
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 16px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--frost-shadow);
  text-align: center;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: 50% 0;
  transition: opacity 0.25s ease, transform 0.35s var(--header-ease), visibility 0.25s;
}

.nav-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu__cta {
  display: flex;
  margin-top: 24px;
}

/* ==========================================================================
   Hero (headline + product shot)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 59px; /* room for the fixed header */
  background: var(--sky-hero);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 105px;
  text-align: center;
  color: var(--white);
}

.hero__title {
  font-size: 76px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.hero__ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 40px;
}

.hero__caption {
  margin: 0 0 0 14px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* App Store button, copied as-is from the 75 Days site: glossy black face with a conic "sheen"
   border whose highlight circles the button once every 15s (24deg/s, like the original). */
@property --appstore-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes appstore-sheen {
  to {
    --appstore-angle: 360deg;
  }
}

.btn-appstore {
  --appstore-angle: 0deg;
  animation: appstore-sheen 15s linear infinite;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #fff;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.3);
  background:
    linear-gradient(to bottom, rgb(45, 45, 45) 0%, rgb(15, 15, 15) 50%, rgb(5, 5, 5) 100%) padding-box,
    conic-gradient(from var(--appstore-angle), rgb(60, 60, 60) 0%, rgb(60, 60, 60) 40%, rgba(255, 255, 255, 0.7) 48%, white 50%, rgba(255, 255, 255, 0.7) 52%, rgb(60, 60, 60) 60%, rgb(60, 60, 60) 100%) border-box;
}

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

/* ==========================================================================
   Sub-page hero (short sky band with a title, e.g. the privacy page)
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: 59px;
  background: linear-gradient(180deg, #0468cc 0%, #f0f5fa 88%, var(--page) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: 105px 0 120px;
  text-align: center;
  color: var(--white);
}

/* ==========================================================================
   Page body
   ========================================================================== */
.page-body {
  background: var(--page);
}

/* Long-form legal text (privacy policy) */
.legal {
  max-width: calc(768px + var(--gutter) * 2);
  margin-inline: auto;
  padding: 64px var(--gutter) 96px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legal__back {
  font-size: 14px;
  color: #6b6563;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.legal__back:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
}

.legal section {
  margin-top: 40px;
}

.legal h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal p + p,
.legal ul + p,
.legal p + ul {
  margin-top: 16px;
}

.legal ul {
  margin: 0;
  padding-left: 20px;
}

.legal li + li {
  margin-top: 10px;
}

.legal li::marker {
  color: #8a8582;
}

.legal strong {
  font-weight: 500;
  color: var(--ink);
}

.legal a:not(.legal__back) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
}

/* FAQ accordion */
.faq {
  max-width: calc(768px + var(--gutter) * 2);
  margin-inline: auto;
  padding: 96px var(--gutter);
}

.faq__title {
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--ink);
}

.faq__item:not(:last-child) {
  border-bottom: 1px solid rgba(117, 113, 112, 0.2);
}

.faq__item h3 {
  margin: 0;
  font: inherit;
}

.faq__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  border-radius: 8px;
  background: none;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  color: var(--ink);
  text-underline-offset: 4px;
  cursor: pointer;
}

.faq__trigger:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
}

.faq__trigger:focus-visible {
  outline: 2px solid #0468cc;
  outline-offset: 2px;
}

.faq__trigger svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  fill: none;
  stroke: #8a8582;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.faq__trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Animates to the content's natural height via grid rows. */
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq__panel > div {
  overflow: hidden;
}

.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
}

.faq__panel p {
  max-width: 640px;
  padding-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #6b6563;
}

.faq__panel a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 200px var(--gutter) 64px;
  background: var(--sky-footer);
  color: var(--white);
}

.footer-cta {
  position: relative;
  z-index: 2;
  text-align: center;
}

.footer-cta__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.footer-cta__lead {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.5;
}

.footer-cta .btn {
  margin-top: 32px;
}

.footer-card {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
  margin: 120px auto 0;
  padding: 40px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.2);
}

.footer-card__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.logo--footer .logo__mark {
  width: 22px;
  height: 22px;
}

.logo--footer .logo__word {
  font-size: 17px;
}

.footer-card__tagline {
  max-width: 240px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #f2f2f2;
}

.footer-card__links {
  display: flex;
  margin-right: 10px;
}

.footer-card__links ul {
  min-width: 166px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-card__links ul:last-child {
  min-width: 0;
}

.footer-card__links li + li {
  margin-top: 16px;
}

.footer-card__links a {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
  text-underline-offset: 3px;
  transition: color 0.4s cubic-bezier(0.44, 0, 0.56, 1);
}

.footer-card__links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
}

.footer-card__links a:hover,
.footer-card__links a[aria-current="page"] {
  color: var(--white);
}

.footer-card__bottom {
  margin-top: 80px;
  padding-top: 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.footer-card__bottom p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0;
}

.footer-card__bottom a {
  text-underline-offset: 3px;
}

.footer-card__bottom a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
}

/* ==========================================================================
   Responsive (breakpoints match the reference: 1200px and 810px)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .hero__title {
    font-size: 58px;
  }

  .mockup__buttons {
    display: none;
  }
}

@media (max-width: 809.98px) {
  :root {
    --gutter: 16px;
  }

  /* Header becomes a frosted pill; links move into the dropdown panel. */
  .site-header {
    padding-top: 16px;
  }

  .site-header__bar {
    display: flex;
    justify-content: space-between;
    max-width: none;
    height: 64px;
    padding: 8px 8px 8px 16px;
    background-color: rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--frost-shadow);
    transition: background-color 0.25s ease, border-radius 0.25s ease;
  }

  .nav-open .site-header__bar {
    border-radius: 32px;
    background-color: rgba(255, 255, 255, 0.5);
  }

  .site-nav,
  .btn--header {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header__actions {
    gap: 4px;
  }

  .alpha-badge {
    padding: 8px 12px;
    font-size: 12px;
  }

  .mobile-menu {
    display: flex;
  }

  .hero,
  .page-hero {
    padding-top: 80px;
  }

  .hero:has(> .mockup-stage[hidden]) {
    padding-bottom: 120px;
  }

  .hero__content {
    padding-top: 52px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hide-sm {
    display: none;
  }

  .hero__ctas {
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
  }

  .hero__caption {
    margin: 0;
  }

  /* Product shot keeps its desktop proportions and crops on the right, like the wide version. */
  .mockup-stage {
    margin-top: 56px;
    height: 400px;
  }

  .mockup__rail {
    width: 36px;
    padding-top: 24px;
  }

  .mockup__rail-icons {
    margin-top: 60px;
    gap: 18px;
  }

  .mockup__main {
    padding: 24px 0 0 18px;
  }

  .mockup__title,
  .mockup__subtitle {
    font-size: 16px;
  }

  .mockup__cards {
    grid-template-columns: repeat(3, 230px);
    gap: 16px;
    margin-top: 28px;
  }

  .meal-card__visual {
    height: 150px;
  }

  .faq {
    padding-block: 64px;
  }

  .page-hero__content {
    padding: 52px 0 88px;
  }

  .legal {
    padding-top: 40px;
    padding-bottom: 64px;
    font-size: 15px;
  }

  .legal section {
    margin-top: 32px;
  }

  .legal h2 {
    font-size: 22px;
  }

  .faq__title {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .faq__trigger {
    padding: 16px 0;
    font-size: 16px;
  }

  .faq__trigger svg {
    margin-top: 4px;
  }

  .faq__panel p {
    padding-bottom: 16px;
    font-size: 15px;
  }

  /* Footer stacks: brand first, then the two link columns side by side. */
  .site-footer {
    padding-top: 120px;
    padding-bottom: 32px;
  }

  .footer-cta__title {
    font-size: 28px;
  }

  .footer-cta__lead {
    font-size: 16px;
  }

  .footer-card {
    margin-top: 80px;
    padding: 28px 24px;
    border-radius: 24px;
  }

  .footer-card__top {
    flex-direction: column;
    gap: 36px;
  }

  .footer-card__tagline {
    max-width: 300px;
  }

  .footer-card__links {
    margin-right: 0;
  }

  .footer-card__links ul {
    flex: 1;
    min-width: 0;
  }

  .footer-card__bottom {
    margin-top: 36px;
    padding-top: 24px;
  }
}

@media (max-width: 379.98px) {
  .hero__title {
    font-size: 34px;
  }

  .hero__ctas .btn {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mockup {
    --tilt: 0deg !important;
  }

  .btn-appstore {
    animation: none;
  }


  .btn,
  .site-header__bar,
  .mobile-menu,
  .nav-toggle span,
  .faq__panel,
  .faq__trigger svg,
  .nav-copy,
  .nav-copy span,
  .nav-copy svg {
    transition: none;
    animation: none;
  }
}

/* Remember artwork lives inside the borrowed landing-page hero. */
.hero {
  background: linear-gradient(180deg, #0468cc 0%, #6aa6df 53%, #f0f5fa 100%);
  padding-bottom: 0;
  scroll-margin-top: 0;
}

.hero-art {
  position: relative;
  width: min(100%, 840px);
  height: clamp(320px, 62vw, 520px);
  /* The renderer measures the projected box so exactly its lower third
     extends past the hero, whose overflow clips it at the section edge. */
  margin: 24px auto calc(-1 * var(--box-crop, 180px));
  isolation: isolate;
  scroll-margin-top: 100px;
}

#stage {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.hero-art canvas,
.hero-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#scene {
  opacity: 0;
  transition: opacity .28s ease-out;
}

body.ready #scene { opacity: 1; }

#fallback { display: none; object-fit: contain; }
body.scene-failed #fallback { display: block; }
body.scene-failed #scene { opacity: 0; }

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 2px solid #0468cc; outline-offset: 4px; }
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: white; }
#faq, #signup { scroll-margin-top: 100px; }

@media (max-width: 649.98px) {
  .hero-art { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #scene { transition: none; }
}

/* ==========================================================================
   Aurora field + fluted glass (hero, sub-page hero, footer)
   A blurred blue field with a warm peach/pink bloom, seen through reeded
   glass, with a fine film grain on top. Content sits above both overlays.
   ========================================================================== */
:root {
  --aurora-base: #2e7ccf;
  --aurora-sky: #4a98dc;
  --aurora-navy: #1d3d8c;
  --aurora-violet: #6e3aa6;
  --aurora-pink: #e4507e;
  --aurora-peach: #f3a88c;
  --flute: 22px; /* width of one glass rib */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --aurora:
    radial-gradient(ellipse 18% 30% at 70% 34%, rgba(246, 184, 150, 0.95) 0%, rgba(246, 184, 150, 0) 72%),
    radial-gradient(ellipse 30% 46% at 68% 52%, rgba(243, 160, 132, 0.9) 0%, rgba(243, 160, 132, 0) 72%),
    radial-gradient(ellipse 30% 40% at 66% 78%, rgba(228, 80, 126, 0.9) 0%, rgba(228, 80, 126, 0) 72%),
    radial-gradient(ellipse 20% 50% at 92% 32%, rgba(29, 61, 140, 0.95) 0%, rgba(29, 61, 140, 0) 74%),
    radial-gradient(ellipse 28% 46% at 88% 84%, rgba(110, 58, 166, 0.8) 0%, rgba(110, 58, 166, 0) 72%),
    radial-gradient(ellipse 40% 60% at 12% 70%, rgba(74, 152, 220, 0.6) 0%, rgba(74, 152, 220, 0) 70%),
    linear-gradient(180deg, var(--aurora-base) 0%, var(--aurora-sky) 100%);
}

.hero,
.page-hero,
.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--aurora);
}

/* A long, eased fade carries the hero into the light content section. */
.hero,
.page-hero {
  background:
    linear-gradient(180deg, rgba(246, 245, 243, 0) 54%, rgba(246, 245, 243, 0.35) 74%, rgba(246, 245, 243, 0.8) 91%, var(--page) 100%),
    var(--aurora);
}

/* Footer rises out of the page colour. */
.site-footer {
  background:
    linear-gradient(180deg, var(--page) 0%, rgba(246, 245, 243, 0) 22%),
    var(--aurora);
}

/* The static gradients above are the no-script fallback. The live color field
   uses fresh irregular SVG outlines, with the original radii enlarged 1.5×. */
.has-organic-field {
  --aurora: linear-gradient(180deg, var(--aurora-base), var(--aurora-sky));
}

.aurora-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 54%, rgba(0, 0, 0, 0.65) 74%, rgba(0, 0, 0, 0.2) 91%, transparent 100%);
}

.site-footer > .aurora-field {
  mask-image: linear-gradient(to bottom, transparent, #000 22%);
}

.aurora-blob {
  position: absolute;
  transform: translate(-50%, -50%);
}

.aurora-blob svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: center;
  animation: aurora-drift var(--drift-duration) ease-in-out var(--drift-delay) infinite;
  animation-play-state: paused;
}

.aurora-cloud {
  width: 100%;
  height: 100%;
  transform-origin: center;
  animation: aurora-bloom var(--bloom-duration) ease-in-out var(--bloom-delay) infinite;
  animation-play-state: paused;
}

.aurora-field.is-drifting .aurora-blob svg,
.aurora-field.is-drifting .aurora-cloud { animation-play-state: running; }

@keyframes aurora-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(var(--drift-angle));
  }
  25% {
    transform: translate3d(var(--drift-x), var(--drift-y), 0) rotate(calc(var(--drift-angle) + var(--drift-tilt)));
  }
  50% {
    transform: translate3d(calc(var(--drift-x) * -.35), calc(var(--drift-y) * .45), 0) rotate(calc(var(--drift-angle) - var(--drift-tilt) * .33));
  }
  75% {
    transform: translate3d(calc(var(--drift-x) * -.7), calc(var(--drift-y) * -.6), 0) rotate(calc(var(--drift-angle) - var(--drift-tilt)));
  }
}

@keyframes aurora-bloom {
  0%, 100% { transform: scale(.9, 1.04) rotate(-6deg); }
  33% { transform: scale(1.2, .88) rotate(5deg); }
  66% { transform: scale(.96, 1.18) rotate(-3deg); }
}


.hero::before,
.page-hero::before,
.site-footer::before,
.hero::after,
.page-hero::after,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Milk glass at half intensity: diffuse colour behind each flute, with a
   soft body, bright bevel and broad reflected light across the ribs. */
.hero::before,
.page-hero::before,
.site-footer::before {
  -webkit-backdrop-filter: blur(2.5px) saturate(0.96);
  backdrop-filter: blur(2.5px) saturate(0.96);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16) 0,
      rgba(255, 255, 255, 0.08) 1px,
      rgba(255, 255, 255, 0.02) 3px,
      rgba(255, 255, 255, 0) calc(var(--flute) * 0.52),
      rgba(18, 36, 72, 0.035) calc(var(--flute) * 0.78),
      rgba(18, 36, 72, 0.09) calc(var(--flute) - 1px),
      rgba(255, 255, 255, 0.12) var(--flute)
    ),
    linear-gradient(
      118deg,
      transparent 12%,
      rgba(255, 255, 255, 0.0125) 24%,
      rgba(255, 255, 255, 0.09) 36%,
      rgba(255, 255, 255, 0.0175) 49%,
      transparent 62%
    ),
    radial-gradient(ellipse 75% 55% at 25% 0%, rgba(255, 255, 255, 0.08), transparent 75%),
    repeating-linear-gradient(
      90deg,
      rgba(246, 249, 255, 0.065) 0,
      rgba(246, 249, 255, 0.035) calc(var(--flute) * 0.38),
      rgba(246, 249, 255, 0.0125) calc(var(--flute) * 0.7),
      rgba(246, 249, 255, 0.05) var(--flute)
    );
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

.site-footer::before {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
}

/* Film grain. */
.hero::after,
.page-hero::after,
.site-footer::after {
  background-image: var(--grain);
  background-size: 180px;
  opacity: 0.16;
  mix-blend-mode: overlay;
}

/* Fade the texture with the colour field so no hard edge survives at the bottom. */
.hero::before,
.page-hero::before,
.hero::after,
.page-hero::after {
  -webkit-mask-image: linear-gradient(180deg, #000 54%, rgba(0, 0, 0, 0.65) 74%, rgba(0, 0, 0, 0.2) 91%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 54%, rgba(0, 0, 0, 0.65) 74%, rgba(0, 0, 0, 0.2) 91%, transparent 100%);
}

/* ==========================================================================
   Apple-style glass for the menu
   ========================================================================== */
.site-header {
  --glass-fill: rgba(255, 255, 255, 0.16);
  --glass-edge: rgba(255, 255, 255, 0.32);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 18px rgba(255, 255, 255, 0.06),
    0 8px 28px rgba(14, 28, 72, 0.18);
  --glass-blur: blur(24px) saturate(115%) brightness(1.06);
  /* Floating bar can sit over the light page, so it carries a blue tint to keep white text legible. */
  --glass-tint: linear-gradient(180deg, rgba(74, 146, 222, 0.52), rgba(46, 112, 196, 0.58));
}

/* Desktop: the links sit in their own glass capsule, like the reference. */
.site-nav {
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav a:hover,
.site-nav .nav-copy:hover,
.mobile-menu a:not(.btn):hover,
.mobile-menu .nav-copy:hover {
  background-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

@media (min-width: 810px) {
  /* Scrolled: the whole bar becomes the glass pill, so the inner capsule steps back. */
  .site-header.is-scrolled .site-header__bar {
    background-image: var(--glass-tint);
    box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-edge);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }

  .site-header.is-scrolled .site-nav {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 809.98px) {
  .site-header__bar,
  .mobile-menu {
    background-color: transparent;
    background-image: var(--glass-tint);
    box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-edge);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }

  .nav-toggle span {
    background: var(--white);
  }

  .mobile-menu a:not(.btn),
  .mobile-menu .nav-copy__label {
    color: var(--white);
  }
}

/* Stationary TV-style glass card: diffuse reflection and a fine illuminated rim. */
.footer-card {
  --light-x: 32%;
  --light-y: 0%;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.42),
    inset 0 -1px 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 12px 40px rgba(14, 28, 72, 0.16),
    0 2px 8px rgba(14, 28, 72, 0.06);
  -webkit-backdrop-filter: blur(28px) saturate(120%) brightness(1.06);
  backdrop-filter: blur(28px) saturate(120%) brightness(1.06);
}

.footer-card::before,
.footer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.footer-card::before {
  z-index: 0;
  background: radial-gradient(ellipse 460px 280px at var(--light-x) var(--light-y), rgba(255, 255, 255, 0.09), transparent 75%);
  opacity: 0.35;
}

.footer-card::after {
  z-index: 2;
  padding: 1px;
  background:
    radial-gradient(400px circle at var(--light-x) var(--light-y), rgba(255, 255, 255, 0.425), transparent 75%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.7;
}

.footer-card > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .footer-card:hover::before,
  .footer-card:hover::after {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-card::before,
  .footer-card::after { transition: none; }
}

/* ==========================================================================
   Feature section (layout from ghostwriterrr.com): a sky card holding a
   stacked agent-message mockup on the left, headline, lead and feature
   pills on the right, pills pinned to the bottom of the card.
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 64px;
  align-items: stretch;
  padding-top: 112px;
  padding-bottom: 16px;
  scroll-margin-top: 100px;
}

.feature__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 0.96;
  padding: 32px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 40% 12% at 22% 92%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 34% 10% at 70% 97%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 26% 8% at 52% 86%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #8fb5dc 0%, #a7c7e6 70%, #b5d0ea 100%);
}

/* Two sheets peeking out behind the card, like a stack of messages. */
.feature__stack {
  position: relative;
  width: min(100%, 400px);
}

.feature__stack::before,
.feature__stack::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: -12px;
  height: 40px;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.55);
}

.feature__stack::after {
  left: 2%;
  right: 2%;
  top: -6px;
  background: rgba(255, 255, 255, 0.8);
}

.agent-card {
  position: relative;
  z-index: 1;
  padding: 22px 22px 20px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(26, 22, 21, 0.06), 0 18px 40px -12px rgba(30, 60, 110, 0.35);
  font-family: var(--font-ui);
  color: var(--ink);
}

.agent-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* The "dot for your body": a white disc with a glowing pink core. */
.agent-card__avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #e40083 0 5px, rgba(228, 0, 131, 0.28) 6px, rgba(228, 0, 131, 0) 15px),
    linear-gradient(180deg, #ffffff, #eef3fb);
  box-shadow: inset 0 0 0 1px rgba(26, 22, 21, 0.08);
}

.agent-card__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.agent-card__meta {
  font-size: 12.5px;
  line-height: 1.4;
  color: #8a8582;
}

.agent-card__msg {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.local-ai-flow {
  margin: 20px 0 0;
  padding: 4px 18px;
  border-radius: 10px;
  background: #f6f5f3;
}

.local-ai-flow > div {
  position: relative;
  padding: 14px 0 14px 20px;
}

.local-ai-flow > div + div { border-top: 1px solid rgba(26, 22, 21, 0.06); }

.local-ai-flow > div::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0468cc;
}

.local-ai-flow > div:last-child::before { background: #e40083; }
.local-ai-flow dt { font-size: 14px; font-weight: 500; line-height: 1.4; }
.local-ai-flow dd { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: #6b6563; }

.local-ai-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b6563;
}

.local-ai-note svg {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-card__chart {
  margin-top: 16px;
  padding: 14px 14px 12px;
  border-radius: 10px;
  background: #f6f5f3;
}

.agent-card__chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1.4;
  color: #6b6563;
}

.agent-card__chart svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  overflow: visible;
}

.agent-card__band {
  fill: rgba(4, 104, 204, 0.1);
}

.agent-card__line {
  fill: none;
  stroke: #0468cc;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-card__line--up {
  stroke: #e40083;
}

.agent-card__dot {
  fill: #e40083;
  stroke: var(--white);
  stroke-width: 1.5;
}

.agent-card__legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
  color: #8a8582;
}

.agent-card__key {
  width: 12px;
  height: 8px;
  border-radius: 2px;
  background: rgba(4, 104, 204, 0.16);
}

.agent-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.agent-card__chip {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 1.3;
  box-shadow: inset 0 0 0 1px rgba(26, 22, 21, 0.12);
}

.agent-card__chip--solid {
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}

.feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.feature__title {
  scroll-margin-top: 120px;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--ink);
}

.feature__lead {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.55;
  color: #6b6563;
}

.feature__pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature__pills li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(26, 22, 21, 0.08);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--ink);
}

.feature__pills svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1199.98px) {
  .feature__title {
    font-size: 44px;
  }

  .feature__pills {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 809.98px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 72px;
  }

  .feature__media {
    aspect-ratio: auto;
    padding: 56px 20px 48px;
  }

  .feature__title {
    font-size: 36px;
  }

  .feature__lead {
    font-size: 16px;
  }

  .feature__pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature__pills li {
    padding: 12px 10px;
    font-size: 14px;
  }
}

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

/* ==========================================================================
   Footer reveal + clouds (motion from ghostwriterrr.com)
   The footer content rises 64px and fades in (0.6s); two clouds flanking the
   CTA start 200px out to the sides and settle inward with a soft spring.
   Hidden states only apply once site.js has set .has-reveal.
   ========================================================================== */
.footer-cta__inner {
  position: relative;
  width: min(100%, 640px);
  margin-inline: auto;
}

.footer-cta__inner > :not(.footer-cloud) {
  position: relative;
  z-index: 2;
}

.footer-cloud {
  position: absolute;
  z-index: 1;
  top: -40px;
  bottom: -28px;
  width: auto;
  height: calc(100% + 68px);
  aspect-ratio: auto;
  pointer-events: none;
  user-select: none;
}

.footer-cloud--left {
  /* Keep the outer edge cropped even on wide screens. */
  left: min(-366px, calc(50% - 50vw - clamp(56px, 6vw, 112px)));
}

.footer-cloud--right {
  right: min(-366px, calc(50% - 50vw - clamp(56px, 6vw, 112px)));
}

.has-reveal .footer-cta,
.has-reveal .footer-card {
  opacity: 0;
  transform: translateY(64px);
  transition:
    opacity 0.6s cubic-bezier(0.12, 0.23, 0.5, 1),
    transform 0.6s cubic-bezier(0.12, 0.23, 0.5, 1);
}

/* Overdamped spring (damping 40, stiffness 150) approximated as a long ease-out. */
.has-reveal .footer-cloud {
  transition: transform 1.1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.has-reveal .footer-cloud--left {
  transform: translateX(-200px);
}

.has-reveal .footer-cloud--right {
  transform: translateX(200px);
}

.has-reveal .site-footer.is-inview .footer-cta,
.has-reveal .site-footer.is-inview .footer-card,
.has-reveal .site-footer.is-inview .footer-cloud {
  opacity: 1;
  transform: none;
}

@media (max-width: 1199.98px) {
  .footer-cloud {
    top: auto;
    bottom: -5px;
    height: auto;
    width: 372px;
  }
}

@media (max-width: 809.98px) {
  .footer-cloud {
    bottom: 72px;
    width: 280px;
  }

  .footer-cloud--left {
    left: -240px;
  }

  .footer-cloud--right {
    right: -240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-reveal .footer-cta,
  .has-reveal .footer-card,
  .has-reveal .footer-cloud {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
