/* ==========================================================================
   emonie — static rebuild
   --------------------------------------------------------------------------
   EDIT YOUR BRAND HERE. Everything below inherits from these values,
   so changing a colour or font in this one block restyles the whole site.
   ========================================================================== */

:root {
  /* ---- Colour — emonie brand: deep teal + gold on white ---- */
  --navy:          #0C4A4E;   /* primary deep teal — dark panels, headings */
  --navy-deep:     #073739;   /* footer base, deeper teal */
  --mint:          #57CBB8;   /* light teal accent — icon tiles, on-dark links, glow */
  --mint-deep:     #0B6E67;   /* strong teal — links, checks, eyebrow on light */
  --amber:         #ECB914;   /* gold — buttons, highlights */
  --amber-bright:  #FFD24D;   /* gold hover */
  --bg:            #FFFFFF;   /* page background */
  --surface:       #F1F7F5;   /* light cards (faint teal tint) */
  --surface-2:     #E2F0EC;   /* light cards, alt */

  --ink:           #0C3033;   /* headings / dark text */
  --ink-soft:      rgba(12, 43, 45, 0.66);
  --ink-faint:     rgba(12, 43, 45, 0.45);
  --line:          rgba(12, 43, 45, 0.12);

  --on-dark:       #FFFFFF;
  --on-dark-soft:  rgba(228, 245, 242, 0.74);
  --on-dark-faint: rgba(228, 245, 242, 0.45);
  --on-dark-line:  rgba(228, 245, 242, 0.20);

  /* ---- Type ---- */
  --font-display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  --h1: clamp(2.25rem, 5.4vw, 3.875rem);
  --h2: clamp(1.95rem, 4.4vw, 3.375rem);
  --h3: clamp(1.5rem, 2.8vw, 1.875rem);
  --h4: 1.5rem;
  --h5: 1.25rem;
  --h6: 1.125rem;

  /* ---- Layout ---- */
  --max:      100%;                          /* full-bleed: backgrounds fill the viewport */
  --gutter:     clamp(1.15rem, 4vw, 3.125rem); /* ~50px outer margin: screen edge -> panel/background (sides) */
  --gutter-top: clamp(1.15rem, 4vw, 2.5rem); /* white space ABOVE the first panel — tweak independently */
  --inner:      max(0rem, calc((100vw - 1000px) / 2)); /* holds the content column at a constant width so the layout looks the same at every screen size */
  --r-xl:     36px;
  --r-lg:     24px;
  --r-md:     16px;
  --r-sm:     10px;
  --section:  clamp(3.5rem, 8vw, 7rem);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); line-height: 1.3; }
h5 { font-size: var(--h5); line-height: 1.35; }
h6 { font-size: var(--h6); line-height: 1.4; }

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

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

ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--on-dark);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.shell { width: 100%; padding-inline: var(--gutter); }

/* White space above the first panel — independent of the side gutters, every page */
body { padding-top: var(--gutter-top); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--inner);   /* content sits in a centred column */
}
/* Top-level panels/backgrounds ignore the inner gutter and stay full width
   (their own inner padding re-centres the content inside them). */
.wrap > .panel { margin-inline: calc(-1 * var(--inner)); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-first > :first-child { order: -1; }
}

.stack > * + * { margin-top: 1.25rem; }

.center { text-align: center; }
.measure { max-width: 34rem; }
.measure--wide { max-width: 46rem; }
.center .measure, .center .measure--wide { margin-inline: auto; }

/* Section intro block */
.intro { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.intro h2 { margin-bottom: 0.85rem; }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin: 0 0 0.9rem;
}
.on-dark .eyebrow { color: var(--mint); }

/* Sparkle divider — the kit's section separator */
.sparkle {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--line);
}
.sparkle::before, .sparkle::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}
.sparkle span {
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease,
              color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 1em; height: 1em; flex: none; }

.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: var(--amber-bright); }

.btn--mint { background: var(--mint); color: var(--navy); }
.btn--mint:hover { background: #74D6C6; }

.btn--dark { background: var(--navy); color: var(--on-dark); }
.btn--dark:hover { background: #0F5A5F; }

.btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--on-dark-line);
}
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--navy); }

.btn--block { width: 100%; }


/* ==========================================================================
   Header / navigation
   ========================================================================== */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  padding-inline: max(clamp(1.25rem, 3vw, 2.5rem), var(--inner));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  text-decoration: none;
  flex: none;
}
.logo:hover { text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.logo--ink { color: var(--navy); }

.nav { display: none; }
.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.1rem);
}
.nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-dark-soft);
  text-decoration: none;
  padding-block: 0.4rem;
}
.nav a:hover { color: var(--on-dark); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--on-dark); font-weight: 600; }

@media (min-width: 940px) {
  .nav { display: block; }
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-sm);
  color: var(--on-dark);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Declared after the base rule above so it actually wins. */
@media (min-width: 940px) {
  .nav-toggle { display: none; }
}

.nav-drawer {
  display: none;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem) 1.75rem;
  border-top: 1px solid var(--on-dark-line);
  margin-top: -0.25rem;
}
.nav-drawer[data-open="true"] { display: block; }
.nav-drawer ul { display: grid; gap: 0.25rem; padding-top: 1rem; }
.nav-drawer a {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--on-dark-soft);
  padding: 0.7rem 0;
  text-decoration: none;
}
.nav-drawer a:hover { color: var(--on-dark); }
.nav-drawer .btn { margin-top: 1rem; }
@media (min-width: 940px) { .nav-drawer { display: none !important; } }

.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* ==========================================================================
   Dark panel — the floating navy card used for heroes and CTAs
   ========================================================================== */

.panel {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border-radius: var(--r-xl);
  color: var(--on-dark-soft);
  isolation: isolate;
}
.panel > * { position: relative; z-index: 1; }

/* Green radial glow rising from the bottom edge */
.panel::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -55%;
  width: min(120%, 1000px);
  aspect-ratio: 1.6 / 1;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(41, 174, 158, 0.85) 0%,
              rgba(16, 92, 95, 0.50) 42%,
              rgba(12, 74, 78, 0) 72%);
  pointer-events: none;
}

.panel h1, .panel h2, .panel h3, .panel h4, .panel h5, .panel h6 { color: var(--on-dark); }
/* :where() contributes no specificity, so component rules below can still win. */
.panel a:where(:not(.btn, .logo, .disc, .store)) { color: var(--mint); }

/* Navigation, footer links and contact details keep their own colours. */
.panel .nav a,
.panel .nav-drawer a { color: var(--on-dark-soft); }
.panel .nav a:hover,
.panel .nav a[aria-current="page"],
.panel .nav-drawer a:hover { color: var(--on-dark); }
.panel .footer__links a { color: var(--on-dark-soft); }
.panel .footer__links a:hover { color: var(--on-dark); }
.panel .detail a { color: inherit; }
.panel .socials a { color: var(--on-dark); }
.panel .socials a:hover { color: var(--mint); }

.panel__body {
  padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
  padding-inline: max(clamp(1.5rem, 4vw, 4rem), var(--inner));
}

/* Home hero: three columns collapsing to one */
.hero-home {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  /* left text · phone · right text — narrow the left to slide the phone
     leftward; the right column widens to fill (edge stays anchored). */
  .hero-home { grid-template-columns: 0.6fr 1fr 1.4fr; }
  /* Nudge the headline down a little so it starts just above the phone's top
     (transform, so it doesn't change the row height / the phone's position). */
  .hero-home__lead { transform: translateY(1.75rem); }
}
.hero-home__kicker h2 {
  font-size: var(--h4);
  margin-bottom: 0.5rem;
}
.hero-home__lead h1 { margin-bottom: 1.5rem; }
/* Keep the App Store / Google Play buttons side by side, never stacked */
.hero-home__lead .stores { flex-wrap: nowrap; }

/* Faint decorative figure bleeding from the panel's edge, behind the hero
   content. Clipped to the panel shape; sits below content, above the glow. */
.hero-figure {
  display: none;                 /* wide screens only */
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--r-xl);    /* clip to the panel's rounded corners */
  pointer-events: none;
}
.panel--hero > .hero-figure { z-index: 0; }  /* behind content (z-index 1) */
.hero-figure img {
  position: absolute;
  right: var(--hero-figure-x, 0%);
  bottom: 0;
  height: var(--hero-figure-h, 98%);
  width: auto;
  opacity: var(--hero-figure-opacity, 0.16);
  filter: saturate(0.85);
  transform: scaleX(-1);   /* mirror the figure horizontally */
}
@media (min-width: 1000px) {
  .hero-figure { display: block; }
}

.hero-phone { justify-self: center; max-width: 400px; }

/* Inner-page hero */
.hero-page { text-align: center; max-width: 46rem; margin-inline: auto; }
.hero-page h1 { margin-bottom: 1rem; }
.hero-page p { color: var(--on-dark-soft); }

/* Inline tick list used under page headings */
.ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}
.ticks li { display: flex; align-items: center; gap: 0.5rem; }
.ticks svg { width: 1rem; height: 1rem; color: var(--mint); flex: none; }

/* ==========================================================================
   Inline email capture (replaces the kit's Mailchimp widget)
   ========================================================================== */

.subscribe {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--on-dark-line);
  padding-bottom: 0.6rem;
  max-width: 24rem;
}
.subscribe input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.5rem 0;
}
.subscribe input::placeholder { color: var(--on-dark-faint); }
.subscribe input:focus { outline: none; }
.subscribe button {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: var(--navy);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}
.subscribe button svg { width: 15px; height: 15px; }
.subscribe:focus-within { border-color: var(--mint); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
.card--plain { background: #fff; }
.card--outline { background: transparent; border: 1px solid var(--line); }

/* Pill-shaped feature tag (hero right column on home) */
.tag-stack { display: grid; gap: 0.9rem; justify-items: start; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface-2);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--r-md);
  padding: 0.7rem 1.4rem 0.7rem 0.7rem;
}
.tag__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--mint);
  border-radius: 11px;
  color: var(--navy);
  flex: none;
}
.tag__icon svg { width: 20px; height: 20px; }

/* Feature block: icon tile above a heading and description */
.feature { display: grid; gap: 0.85rem; }
.feature__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--mint);
  border-radius: 14px;
  color: var(--navy);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3, .feature h4 { font-size: var(--h4); margin: 0; }
.feature p { font-size: 0.95rem; margin: 0; }
.feature--end { justify-items: end; text-align: right; }
.feature--center { justify-items: center; text-align: center; }

/* Numbered / bulleted process list */
.steps { display: grid; gap: 1.75rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.1rem; }
.step__dot {
  width: 12px;
  height: 12px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--mint);
}
.step h4 { margin: 0 0 0.4rem; }
.step p { margin: 0; font-size: 0.95rem; }

/* Green check list */
.checks { display: grid; gap: 0.65rem; }
.checks li { display: flex; align-items: flex-start; gap: 0.65rem; }
.checks svg { width: 1.05rem; height: 1.05rem; margin-top: 0.3rem; color: var(--mint-deep); flex: none; }
.panel .checks svg { color: var(--mint); }

/* Stats row */
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 2.75rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.stat__label { font-size: 0.95rem; margin-top: 0.5rem; }

/* Client logo strip */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.logo-strip li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity 0.2s ease;
}
.logo-strip li:hover { opacity: 1; }

/* Trusted-by lockup */
.trusted {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--h6);
  color: var(--ink);
  line-height: 1.4;
}
.trusted b { color: var(--mint-deep); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.rating { text-align: right; }
.rating__stars { color: var(--amber); font-size: 1.15rem; letter-spacing: 0.1em; }
.rating__meta { font-size: 0.875rem; color: var(--on-dark-soft); margin: 0.35rem 0 0; }
.rating__meta b { color: var(--amber); font-weight: 600; }

.quote {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  display: grid;
  gap: 1.1rem;
  align-content: start;
  color: var(--ink-soft);
}
.quote p { font-size: 1rem; margin: 0; }
.quote__stars { color: var(--amber); letter-spacing: 0.08em; }
.quote__who { display: flex; align-items: center; gap: 0.8rem; }
.quote__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--mint-deep);
  flex: none;
}
.quote__name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}
.quote__role { font-size: 0.85rem; }

/* Horizontal scroll rail on small screens */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(268px, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
@media (min-width: 900px) {
  .rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  background: rgba(238, 255, 250, 0.1);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-sm);
}
.switch button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--on-dark-soft);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.switch button[aria-selected="true"] { background: var(--mint); color: var(--navy); }

.plan {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.plan--featured { background: var(--surface-2); }
.plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.plan__name { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.plan__name h3 { font-size: var(--h4); margin: 0; }
.plan__desc { font-size: 0.9rem; margin: 0.35rem 0 0; }
.badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mint-deep);
  background: rgba(87, 203, 184, 0.30);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
  line-height: 1.4;
}
.plan__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 2.85rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.plan__price span {
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--ink-soft);
  letter-spacing: 0;
}
.plan__features h4 { font-size: var(--h6); margin: 0 0 0.3rem; }
.plan__features > p { font-size: 0.9rem; margin: 0 0 1.2rem; }
.plan__features > p b { color: var(--mint-deep); font-weight: 600; }
.plan__cols {
  display: grid;
  gap: 0.65rem 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) { .plan__cols { grid-template-columns: 1fr 1fr; } }
.plan__cols li { font-size: 0.925rem; }

.tabpanel[hidden] { display: none; }

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */

.accordion { display: grid; gap: 0.85rem; }
.accordion details {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 0 clamp(1.1rem, 2vw, 1.6rem);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 1.15rem 0;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--mint-deep);
  border-bottom: 2px solid var(--mint-deep);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.accordion details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.accordion details > div {
  padding: 0 0 1.3rem;
  font-size: 0.95rem;
  max-width: 46rem;
}

/* ==========================================================================
   Team
   ========================================================================== */

.person { display: grid; gap: 1rem; }
.person__photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 3 / 3.4;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__social {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem;
  background: linear-gradient(to top, rgba(7, 55, 57, 0.85), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.person__photo:hover .person__social,
.person__photo:focus-within .person__social { opacity: 1; transform: none; }
.person__social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(238, 255, 250, 0.16);
  color: #fff;
}
.person__social svg { width: 15px; height: 15px; }
.person h3 { font-size: var(--h4); margin: 0 0 0.15rem; }
.person__role { font-size: 0.925rem; margin: 0; }

/* Social icon row (footer) */
.socials { display: flex; gap: 0.6rem; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-sm);
  color: var(--on-dark);
}
.socials a:hover { border-color: var(--mint); color: var(--mint); }
.socials svg { width: 16px; height: 16px; }

/* ==========================================================================
   Blog
   ========================================================================== */

.post {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  align-content: start;
}
.post__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__cat {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
}
.post__body { padding: 1.4rem clamp(1.1rem, 2vw, 1.5rem) 1.6rem; display: grid; gap: 0.7rem; }
.post__body h3 { font-size: var(--h5); margin: 0; }
.post__body h3 a { color: var(--ink); }
.post__body h3 a:hover { color: var(--mint-deep); text-decoration: none; }
.post__excerpt { font-size: 0.925rem; margin: 0; }
.post__meta { font-size: 0.85rem; color: var(--ink-faint); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  border-radius: 100px;
  padding: 0.45rem 1rem;
}
.chips a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.chips a[aria-current="true"] { background: var(--navy); color: var(--on-dark); }

/* Search field */
.search {
  display: flex;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.35rem 0.35rem 0.35rem 1rem;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--mint-deep); }

/* Article body */
.prose { max-width: 44rem; margin-inline: auto; }
.prose h2 { font-size: var(--h3); margin-top: 2.4rem; }
.prose h3 { font-size: var(--h4); margin-top: 2rem; }
.prose img { border-radius: var(--r-lg); margin-block: 2rem; }
.prose blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--mint);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.1rem;
  color: var(--ink);
}
.prose blockquote p:last-child { margin: 0; }
.prose ul:not(.checks) { list-style: disc; padding-left: 1.35rem; margin-bottom: 1.1rem; }
.prose ul:not(.checks) li { margin-bottom: 0.45rem; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  width: 100%;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 3px rgba(87, 203, 184, 0.30);
}
.field--row { grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.form__note { font-size: 0.85rem; color: var(--ink-faint); }

/* ==========================================================================
   Contact detail block
   ========================================================================== */

.detail { display: flex; gap: 0.9rem; align-items: flex-start; }
.detail__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--mint);
  flex: none;
}
.detail__icon svg { width: 19px; height: 19px; }
.detail h3 {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
  color: var(--mint);
}
.detail p { margin: 0; font-size: 0.95rem; }
.detail a { color: inherit; }

.map {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--surface-2);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   App store buttons — placeholders. Swap for the official badges
   from Apple and Google before you ship.
   ========================================================================== */

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #05060A;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm);
  padding: 0.6rem 1.1rem;
  color: #FFFFFF;
  text-decoration: none;
  line-height: 1.15;
}
.store:hover { text-decoration: none; border-color: rgba(255, 255, 255, 0.4); }
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 0.65rem; color: rgba(255, 255, 255, 0.7); }
.store b { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.on-light .store { background: #05060A; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.footer__inner {
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
  padding-inline: max(clamp(1.5rem, 4vw, 3.5rem), var(--inner));
}
.footer__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .footer__top { grid-template-columns: 1.6fr 1fr 1.2fr; }
}
.footer h3 {
  font-size: var(--h6);
  color: var(--on-dark);
  margin-bottom: 1.1rem;
}
.footer__links { display: grid; gap: 0.7rem; }
.footer__links a { color: var(--on-dark-soft); font-size: 0.95rem; }
.footer__links a:hover { color: var(--on-dark); text-decoration: none; }
.footer__blurb { font-size: 0.95rem; max-width: 22rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.footer__cta { max-width: 26rem; }
.footer__cta h3 { font-size: var(--h5); margin-bottom: 1.25rem; }
.copyright {
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-faint);
  padding-top: 1.5rem;
}

/* ==========================================================================
   Image placeholder — visible reminder to drop in real artwork
   ========================================================================== */

.ph {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  color: var(--mint-deep);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  min-height: 180px;
}
.panel .ph { background: rgba(238, 255, 250, 0.08); color: var(--mint); }

/* ==========================================================================
   Page-specific layout
   ========================================================================== */

/* Home hero: reserve room for the rotating badge */
.panel--hero {
  padding-bottom: 1rem;
  --hero-phone-overhang: 5.5rem;   /* how far the phone dips below the panel's bottom edge */
  /* evident brand glow rising from the BOTTOM-LEFT corner (home page) */
  background:
    radial-gradient(1100px 720px at 8% 102%,
      rgba(52, 190, 172, 0.98) 0%,
      rgba(20, 104, 106, 0.60) 44%,
      rgba(12, 74, 78, 0) 74%),
    var(--navy);
}
.panel--hero::after { display: none; }   /* replaced by the bottom-left glow above */
.panel--hero .panel__body { padding-top: 1rem; }

/* Let the phone break past the panel's bottom edge (home page, wide screens).
   The panel must stop clipping for the overhang to show, so its glow moves
   from a child element to a background layer (backgrounds never overflow). */
@media (min-width: 1000px) {
  .panel--hero {
    overflow: visible;
    padding-bottom: 0;   /* so the overhang variable maps 1:1 to the actual dip */
  }
  .panel--hero .panel__body { padding-bottom: 0; }
  .panel--hero .hero-phone {
    position: relative;
    z-index: 2;
    align-self: end;   /* anchor the phone to the panel's bottom edge, then dip below it */
    transform: translateY(var(--hero-phone-overhang));
  }
}

@media (max-width: 700px) {
  .panel--hero .panel__body { padding-bottom: 7.5rem; }
}

.hero-disc {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 3vw, 2.25rem);
  --size: clamp(84px, 11vw, 116px);
}

/* Home services: features / phone / features */
.services-fan {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
}
.services-fan__col { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.services-fan__phone { max-width: 300px; margin-inline: auto; }

@media (min-width: 700px) and (max-width: 1039px) {
  .services-fan { grid-template-columns: 1fr 1fr; }
  .services-fan__phone { grid-column: 1 / -1; order: -1; }
  .services-fan .feature--end { justify-items: start; text-align: left; }
}
@media (min-width: 1040px) {
  .services-fan { grid-template-columns: 1fr auto 1fr; }
}
@media (max-width: 699px) {
  .services-fan .feature--end { justify-items: start; text-align: left; }
}

/* Demo strip inside the gateway section */
.demo-strip {
  display: flex;
  align-items: center;
  gap: 0rem;
  padding: 0rem;
}
.demo-strip__play {
  width: 0px;
  height: 0px;
  padding: 0;
  border-radius: 0px;
  flex: none;
}
.demo-strip__play svg { width: 1.35rem; height: 1.35rem; }
.demo-strip h3 { font-size: var(--h5); margin: 0 0 0.2rem; }
.demo-strip p { font-size: 0.9rem; margin: 0; }

/* Trusted-by row */
.trust-row {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .trust-row { grid-template-columns: auto 1fr; gap: 3rem; }
  .trust-row .logo-strip { justify-content: flex-end; }
}

/* Testimonial header: heading left, rating right */
.review-head {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  grid-template-columns: 1fr;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
.review-head h2 { margin: 0; }
@media (min-width: 780px) {
  .review-head { grid-template-columns: 1fr auto; }
}
@media (max-width: 779px) { .rating { text-align: left; } }

/* Pricing hero controls */
.price-controls { display: grid; justify-items: center; gap: 1.75rem; }
.rating__title { font-size: var(--h5); margin: 0 0 0.35rem; }

/* Cut-out photo in the gateway section */
.cutout { max-width: 420px; margin-inline: auto; border-radius: var(--r-lg); }

/* Gateway media: cut-out figure on the right, tag pills beside it on the left,
   and the demo strip across the bottom. Pills never overlap the figure — they
   sit in their own grid column. Stacks on small screens. */
.gateway-media { display: grid; gap: 1.25rem; }
.gateway-media__img { width: 100%; height: auto; display: block; }
.gateway-media__tags { gap: 0.9rem; }
.gateway-media__tags .tag { box-shadow: 0 14px 30px -18px rgba(12, 43, 45, 0.4); }

@media (min-width: 900px) {
  .gateway-media {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-areas:
      "tags figure"
      "demo demo";
    align-items: center;
    column-gap: clamp(0.5rem, 1.5vw, 1.25rem);
    row-gap: clamp(1rem, 2vw, 1.75rem);
  }
  .gateway-media__tags {
    grid-area: tags;
    display: grid;
    gap: clamp(0.85rem, 1.6vw, 1.15rem);
  }
  /* equal-width pills, straight stack, each on one line */
  .gateway-media__tags .tag { width: 100%; white-space: nowrap; }
  .gateway-media__img {
    grid-area: figure;
    align-self: end;
    justify-self: center;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
  }
  .gateway-media__demo { grid-area: demo; margin: 0; }
}

/* ==========================================================================
   Refined motion — scroll reveals, nav underline, micro-interactions
   All gated behind prefers-reduced-motion so it degrades to nothing.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s cubic-bezier(0.22, 0.7, 0.2, 1),
                transform 0.75s cubic-bezier(0.22, 0.7, 0.2, 1);
    will-change: opacity, transform;
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }

  [data-reveal-delay="1"] { transition-delay: 0.08s; }
  [data-reveal-delay="2"] { transition-delay: 0.16s; }
  [data-reveal-delay="3"] { transition-delay: 0.24s; }
  [data-reveal-delay="4"] { transition-delay: 0.32s; }
  [data-reveal-delay="5"] { transition-delay: 0.40s; }
}

/* Animated underline on desktop nav links */
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Cards and features lift gently on hover */
.card, .plan, .post, .quote, .tag { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.post:hover, .card--outline:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(12, 43, 45, 0.35);
}
.tag:hover { transform: translateX(4px); }

/* Blog / media images zoom subtly within their frame */
.post__media, .person__photo { overflow: hidden; }
.post__media img, .person__photo img { transition: transform 0.5s cubic-bezier(0.22, 0.7, 0.2, 1); }
.post:hover .post__media img,
.person__photo:hover img { transform: scale(1.05); }

/* Feature icon tiles nudge on hover */
.feature__icon, .tag__icon, .detail__icon { transition: transform 0.25s ease; }
.feature:hover .feature__icon { transform: translateY(-3px) rotate(-4deg); }

/* Stat numbers get a gold underline accent on the row */
.stat__num { position: relative; }

/* Buttons: add a soft shadow on hover for depth (refined, not flashy) */
.btn--primary:hover, .btn--mint:hover { box-shadow: 0 12px 26px -14px rgba(12, 43, 45, 0.5); }

/* ==========================================================================
   Hero device mockup — floats the app screen with a subtle 3D tilt.
   The phone artwork keeps its own frame; we add perspective, a soft cast
   shadow and a slow bob so it reads like a real device presentation.
   ========================================================================== */

.device-stage {
  perspective: 1600px;
  perspective-origin: 55% 42%;
  display: grid;
  place-items: center;
  padding-block: clamp(0.5rem, 2vw, 1.75rem);
}

.device-float {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-15deg) rotateX(6deg);
  filter: drop-shadow(-24px 32px 30px rgba(0, 0, 0, 0.42));
  will-change: transform;
  animation: device-bob 6.5s ease-in-out infinite;
}
.device-float img { display: block; width: 100%; height: auto; }

@keyframes device-bob {
  0%, 100% { transform: rotateY(-15deg) rotateX(6deg) translate3d(0, 0, 0); }
  50%      { transform: rotateY(-15deg) rotateX(6deg) translate3d(0, -16px, 0); }
}

/* Straighten the tilt a touch on small screens so nothing feels lopsided */
@media (max-width: 640px) {
  .device-float { transform: rotateY(-9deg) rotateX(4deg); }
  @keyframes device-bob {
    0%, 100% { transform: rotateY(-9deg) rotateX(4deg) translate3d(0, 0, 0); }
    50%      { transform: rotateY(-9deg) rotateX(4deg) translate3d(0, -12px, 0); }
  }
}

/* Respect reduced motion: keep the pose, drop the bob (handled globally too) */
@media (prefers-reduced-motion: reduce) {
  .device-float { animation: none; }
}
