/* ==========================================================================
   Larva — corporate site stylesheet
   Palette inherits the "Coastal Clarity" foundation used by Leaveo
   (ibiza-web/src/styles/tokens.css) so parent and product read as one family.
   Single file, no build step, no external requests.
   ========================================================================== */

:root {
  --navy:        #0A3C49;
  --navy-deep:   #073D48;
  --ocean:       #0C5961;
  --seafoam:     #9FE1C8;
  --mint:        #DFF3EC;
  --mist:        #F2F7F4;
  --paper:       #FFFEFB;

  --ink:         #133B45;
  --ink-muted:   #526B70;
  --ink-inverse: #FFFFFF;
  --ink-on-navy: #D8EEE7;

  --line:        #D7E5DF;
  --line-strong: #9AB4AA;

  /* Accent used for TEXT and icons; --ocean stays a background colour.
     Both are redefined for dark mode below so nothing lands navy-on-navy. */
  --accent:  #0C5961;
  --on-mint: #073D48;

  --accent-ocean: #3A91AA;
  --accent-mint:  #4A9674;
  --accent-sun:   #B47B34;
  --accent-rose:  #C75D6F;

  --surface:      var(--paper);
  --canvas:       var(--mist);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(10, 60, 73, .06), 0 1px 3px rgba(10, 60, 73, .05);
  --shadow:    0 2px 4px rgba(10, 60, 73, .05), 0 12px 28px -12px rgba(10, 60, 73, .18);

  --measure: 68ch;
  --page-max: 1140px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas:      #06222A;
    --surface:     #0B2F39;
    --ink:         #E4F2EE;
    --ink-muted:   #A9C4C1;
    --line:        #17414C;
    --line-strong: #2A5C68;
    --mint:        #103F45;
    --mist:        #0B2F39;
    --paper:       #0B2F39;
    --accent:      #8FD8C0;
    --on-mint:     #D6F2E7;
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
    --shadow:      0 12px 28px -12px rgba(0, 0, 0, .6);
  }
}

/* ---------- reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* .site-header is sticky at min-height 68px. Without this, an in-page jump
     (#plans from the footers, #main from the skip link) lands the target
     underneath the header instead of below it. */
  scroll-padding-top: 84px;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -.018em;
  font-weight: 650;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.16rem; }

p  { margin: 0 0 1.1em; }
p, li { text-wrap: pretty; }

a { color: inherit; }

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

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ---------- utilities ---------- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.lede {
  font-size: 1.19rem;
  color: var(--ink-muted);
  max-width: var(--measure);
}

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .75rem;
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--mist); }
.section--paper { background: var(--surface); }

.section-head { max-width: var(--measure); margin-bottom: 2.5rem; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: .97rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--navy-deep); color: #fff; }
.btn-primary:hover { background: var(--ocean); }

.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--accent); background: var(--mint); color: var(--on-mint); }

.btn-invert { background: var(--seafoam); color: #06282F; }
.btn-invert:hover { background: #B6EBD7; }

.btn-ghost-invert { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-invert:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: inherit; font-weight: 700;
  letter-spacing: -.02em; font-size: 1.12rem;
  margin-inline-end: auto;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small {
  display: block; font-size: .68rem; font-weight: 500;
  letter-spacing: .04em; color: var(--ink-muted); text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
/* :not(.btn) matters. The header CTA is an <a class="btn"> inside .site-nav, so
   it matches this selector too — and at (0,1,1) this rule outranks .btn (0,1,0),
   which silently stripped the button's horizontal padding and overrode its text
   colour with the muted nav-link colour. Keep the guard on every rule here. */
.site-nav a:not(.btn) {
  text-decoration: none; font-size: .95rem; font-weight: 550;
  color: var(--ink-muted); padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--ink); border-bottom-color: var(--seafoam); }

/* A header CTA sits beside 15px nav links in a 68px bar, so it is a size down
   from the page-level buttons rather than the same chunky pill. */
.site-nav .btn { padding: .55rem 1.15rem; font-size: .92rem; }

.nav-toggle {
  display: none;
  background: transparent; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 7px; cursor: pointer; color: inherit;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.25rem;
    box-shadow: var(--shadow);
  }
  .site-nav[hidden] { display: none; }
  .site-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--ocean); }
  .site-nav .btn { margin-top: 1rem; justify-content: center; }
}

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(159, 225, 200, .30), transparent 62%),
    linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 58%, #052C36 100%);
  color: #fff;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero .eyebrow { color: var(--seafoam); }
.hero .lede { color: var(--ink-on-navy); font-size: 1.24rem; }

.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(159, 225, 200, .3);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  backdrop-filter: blur(4px);
}
.hero-card h2 { font-size: 1.05rem; color: var(--seafoam); margin-bottom: 1rem; }
.hero-card dl { margin: 0; display: grid; gap: .9rem; }
.hero-card div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.hero-card dt { color: var(--ink-on-navy); font-size: .93rem; }
.hero-card dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }

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

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-muted); font-size: .97rem; }

.card__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--mint); color: var(--accent);
  margin-bottom: 1rem;
}
.card__icon svg { width: 22px; height: 22px; }

.card ul { margin: .8rem 0 0; padding-inline-start: 1.1rem; color: var(--ink-muted); font-size: .94rem; }
.card li { margin-bottom: .3rem; }

/* ---------- capability list ---------- */

.cap {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 780px) { .cap { grid-template-columns: 1fr; gap: 1rem; } }
.cap h3 { font-size: 1.28rem; margin: 0; }
.cap__note { color: var(--ink-muted); font-size: .92rem; margin: .4rem 0 0; }
.cap p:last-child { margin-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; padding: 0; list-style: none; }
.tags li {
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  background: var(--mint); color: var(--on-mint);
  border: 1px solid var(--line);
  padding: .25rem .7rem; border-radius: 999px;
}

/* ---------- steps ---------- */

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 3.25rem;
  padding-bottom: 1.9rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-deep); color: #fff;
  font-size: .92rem; font-weight: 700;
}
.steps > li::after {
  content: ""; position: absolute; inset-inline-start: 16.5px; top: 40px; bottom: 4px;
  width: 1px; background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: .25rem; }
.steps p { color: var(--ink-muted); margin: 0; }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stats > div { background: var(--surface); padding: 1.4rem 1.25rem; }
.stats strong { display: block; font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .stats strong { color: var(--seafoam); } }
.stats span { font-size: .88rem; color: var(--ink-muted); }

/* ---------- product panel ---------- */

.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center;
}
@media (max-width: 880px) { .product { grid-template-columns: 1fr; } }

.product__figure {
  background: linear-gradient(160deg, var(--mint), var(--mist));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.proof { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.proof__result { font-weight: 700; font-size: 1.05rem; margin: 0 0 .2rem; }
.proof__range { color: var(--ink-muted); font-size: .88rem; margin: 0 0 1rem; }
.proof__days { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.proof__days li {
  display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .6rem;
  align-items: center; font-size: .89rem;
  padding: .42rem .6rem; border-radius: var(--radius-sm);
}
.proof__days li b { font-weight: 650; }
.day-charged  { background: var(--mint); }
.day-excluded { background: var(--mist); color: var(--ink-muted); }
.pill { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .1rem .55rem; border-radius: 999px; }
.pill-charged  { background: var(--navy-deep); color: #fff; }
.pill-excluded { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-muted); }
.proof__policy { font-size: .85rem; color: var(--ink-muted); margin: 0; padding-top: .75rem; border-top: 1px solid var(--line); }

.brandline { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.brandline svg { width: 32px; height: 32px; }

/* ---------- lists ---------- */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; }
.checks svg { width: 20px; height: 20px; color: var(--accent-mint); margin-top: 2px; }

.plainlist { list-style: none; margin: 0; padding: 0; }
.plainlist li { padding: .85rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.plainlist li:last-child { border-bottom: 0; }
.plainlist span { color: var(--ink-muted); font-size: .93rem; }

/* ---------- status note ---------- */

.note {
  border-inline-start: 3px solid var(--seafoam);
  background: var(--mist);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .95rem; color: var(--ink-muted);
}
.note strong { color: var(--ink); }
.note p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 5vw, 3.5rem); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.addr { font-style: normal; line-height: 1.9; }
.addr strong { display: block; font-size: 1.05rem; }
.addr a { color: var(--accent); }

.contact-row { display: grid; grid-template-columns: 24px 1fr; gap: .85rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.contact-row h3 { font-size: .95rem; margin: 0 0 .15rem; }
.contact-row p { margin: 0; font-size: .95rem; color: var(--ink-muted); }
.contact-row a { color: var(--accent); }

/* ---------- CTA band ---------- */

.cta {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: var(--ink-on-navy); max-width: 56ch; margin-inline: auto; }
.cta .actions { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--ink-on-navy);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}
.site-footer a { color: var(--ink-on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .94rem; }
.footer-brand svg { width: 32px; height: 32px; }
.footer-brand .brandline { color: #fff; }
.footer-brand p { font-size: .94rem; max-width: 34ch; }
.footer-addr { font-style: normal; font-size: .92rem; line-height: 1.75; }
.footer-bottom {
  margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .87rem;
}

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

.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.center-page .lede { margin-inline: auto; }
.center-page .actions { justify-content: center; }


/* ---------- dark-mode corrections ----------
   A few elements are "dark chip on light ground" by design. Inverted, the chip
   and the ground converge, so they flip to the seafoam accent instead. */

@media (prefers-color-scheme: dark) {
  .btn-primary        { background: var(--seafoam); color: #06282F; }
  .btn-primary:hover  { background: #B6EBD7; }
  .steps > li::before { background: var(--seafoam); color: #06282F; }
  .pill-charged       { background: var(--seafoam); color: #06282F; }
  .pill-excluded      { border-color: var(--line-strong); color: var(--ink-muted); }
  .site-header        { background: color-mix(in srgb, var(--canvas) 92%, transparent); }
}

/* ---------- spacing utilities ----------
   Kept as classes rather than style="" attributes so the site can be served
   under a Content-Security-Policy without 'unsafe-inline'. */

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.75rem; }
.mt-3 { margin-top: 2.5rem; }
