/* Tillerman: site styles. Direction C (green), as signed off on the design canvas. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-var.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-var.woff2") format("woff2-variations"),
       url("../fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --pine: #0F3B2C;
  --pine-deep: #0B3326;
  --leaf: #1B7A52;
  --mint: #CFF0DC;
  --mint-soft: #E6F5EC;
  --wash: #F3FAF6;
  --glow: #7AD9A3;
  --text: #2B4A3E;
  --muted: #5E7A6E;
  --on-dark: #D7EADF;
  --on-dark-soft: #BFDCCB;
  --line: #D5E8DD;
  --line-soft: #E1EEE6;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 36px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: #FFFFFF;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }

a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--pine); }

:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  background: var(--pine); color: #FFFFFF; padding: 12px 18px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---- Type ---------------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--pine);
}
.display--xl { font-size: clamp(2.75rem, 6.8vw, 6.25rem); line-height: 0.94; letter-spacing: -0.035em; }
.display--lg { font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1; }
.display--md { font-size: clamp(2rem, 3.8vw, 3.25rem); }
.lead { font-size: 19px; max-width: 50ch; }
.small { font-size: 15px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0;
  font: inherit; font-size: 18px; font-weight: 600; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
}
.btn--mint { background: var(--mint); color: var(--pine); }
.btn--mint:hover { background: #BCE9CE; color: var(--pine); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.7); color: #FFFFFF; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.btn--pine { background: var(--pine); color: #FFFFFF; }
.btn--pine:hover { background: var(--pine-deep); color: #FFFFFF; }
.btn--outline { border: 1.5px solid var(--pine); color: var(--pine); background: transparent; }
.btn--outline:hover { background: var(--mint-soft); color: var(--pine); }
.btn--small { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn--block { display: flex; width: 100%; min-height: 50px; font-size: 17px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }

/* ---- Navigation ---------------------------------------------------------- */
.nav {
  max-width: 1280px; width: 100%; margin: 0 auto; padding: 22px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; min-height: 44px; }
.brand:hover { color: #FFFFFF; }
.brand__name { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.nav__links { display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; }
.nav__link {
  color: #FFFFFF; text-decoration: none; font-weight: 500; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav__link:hover { color: var(--mint); }
.nav__link[aria-current="page"] {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 8px; text-decoration-color: var(--glow);
}

/* ---- Hero ---------------------------------------------------------------- */
.hero-frame { padding: 12px; }
.hero {
  --hero-pos: 62% 40%;
  border-radius: 28px; overflow: hidden; color: #FFFFFF;
  min-height: 840px; display: flex; flex-direction: column;
  background-color: var(--pine-deep);
  background-image:
    linear-gradient(90deg, rgba(7, 36, 27, 0.94) 0%, rgba(7, 36, 27, 0.8) 34%, rgba(7, 36, 27, 0.3) 64%, rgba(7, 36, 27, 0.05) 100%),
    url("../img/hero-sea-2400.jpg");
  background-image:
    linear-gradient(90deg, rgba(7, 36, 27, 0.94) 0%, rgba(7, 36, 27, 0.8) 34%, rgba(7, 36, 27, 0.3) 64%, rgba(7, 36, 27, 0.05) 100%),
    image-set(url("../img/hero-sea-2400.webp") type("image/webp"), url("../img/hero-sea-2400.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: var(--hero-pos);
}
.hero__body {
  flex: 1; max-width: 1280px; width: 100%; margin: 0 auto;
  padding: 40px var(--gutter) 72px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
}
.hero .display { color: #FFFFFF; max-width: 12ch; }
.hero__sub { font-size: 20px; line-height: 1.5; color: var(--on-dark); max-width: 48ch; }
.hero__note { font-size: 15px; color: var(--on-dark-soft); }

/* ---- Sections ------------------------------------------------------------ */
.section { padding-block: 104px; }
.section--wash { background: var(--wash); }
.stack-xs { display: flex; flex-direction: column; gap: 8px; }
.stack-md { display: flex; flex-direction: column; gap: 24px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }

.split { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.split__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.split__side p { max-width: 36ch; }
.split > :last-child { flex: 2 1 560px; min-width: 0; }

/* Finance partner + example card */
.partner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.partner__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 24px; }
.partner__h { max-width: 14ch; }
.sentence {
  font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.3; color: var(--leaf); max-width: 30ch;
}
.partner__visual {
  flex: 1 1 400px; background: var(--mint-soft); border-radius: 32px; padding: 40px;
  display: flex; justify-content: center;
}
.example-card {
  width: 100%; max-width: 400px; background: #FFFFFF; border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 24px 48px -24px rgba(15, 59, 44, 0.35);
}
.example-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.example-card__kicker { font-size: 14px; font-weight: 600; color: var(--leaf); }
.example-card__tag { font-size: 13px; color: var(--muted); }
.example-card__h { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.example-card__rows { font-variant-numeric: tabular-nums; }
.example-card__rows > div {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft);
}
.example-card__rows > div:last-child { border-bottom: 1px solid var(--line-soft); }
.example-card__rows dd { font-weight: 600; color: var(--pine); }
.example-card__rows > div:last-child dd { font-weight: 700; }
.example-card__note { font-size: 15px; color: var(--muted); }
.fake-btn {
  display: flex; align-items: center; justify-content: center; min-height: 54px;
  border-radius: 999px; font-weight: 600; font-size: 17px; user-select: none;
}
.fake-btn--primary { background: var(--pine); color: #FFFFFF; }
.fake-btn--text { min-height: 40px; font-size: 15px; font-weight: 500; color: var(--leaf); }

/* Run it today */
.run__h { max-width: 16ch; }
.standout {
  background: var(--mint); color: var(--pine); border-radius: 24px; padding: 32px 40px;
  font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 600;
  line-height: 1.2; letter-spacing: -0.02em;
}
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tile { background: #FFFFFF; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.tile__h { font-size: 26px; line-height: 1.1; letter-spacing: -0.015em; }
.tile--dark { background: var(--pine); color: var(--on-dark); }
.tile--dark .tile__h { color: #FFFFFF; }

/* Image band */
.band {
  color: #FFFFFF; background-color: var(--pine-deep);
  background-image: linear-gradient(0deg, rgba(7, 36, 27, 0.58), rgba(7, 36, 27, 0.58)), url("../img/hero-sea-2400.jpg");
  background-image: linear-gradient(0deg, rgba(7, 36, 27, 0.58), rgba(7, 36, 27, 0.58)),
    image-set(url("../img/hero-sea-2400.webp") type("image/webp"), url("../img/hero-sea-2400.jpg") type("image/jpeg"));
  background-size: cover; background-position: 20% 75%;
}
.band__in { padding-block: 136px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.band__h { color: #FFFFFF; max-width: 18ch; }

/* The dull bit */
.dates > div {
  display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 18px 0; border-top: 1px solid var(--line);
}
.dates > div:last-child { border-bottom: 1px solid var(--line); }
.dates dt { flex: 1 1 200px; font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
.dates dd { flex: 2 1 320px; }

/* Prices */
.offer {
  background: var(--mint); color: var(--pine); border-radius: 18px; padding: 12px 22px;
  display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; justify-content: space-between;
}
.offer strong { font-weight: 600; }
.offer a { color: var(--pine); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.plan.is-chosen { border-color: var(--leaf); box-shadow: 0 0 0 2px var(--leaf); }
.plan__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.plan__name { font-size: 24px; }
.plan__flag { font-size: 14px; font-weight: 600; color: var(--glow); }
.plan__price { margin-top: 8px; font-size: 15px; }
.plan__price .display { font-size: 56px; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.plan__features { margin: 12px 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.plan__features li { display: flex; gap: 10px; }
.tick { flex-shrink: 0; margin-top: 3px; color: var(--leaf); }
.plan--featured { background: var(--pine); border-color: var(--pine); color: #E3F2E9; }
.plan--featured.is-chosen { box-shadow: 0 0 0 3px var(--glow); }
.plan--featured .display { color: #FFFFFF; }
.plan--featured .plan__blurb, .plan--featured .plan__price { color: var(--on-dark-soft); }
.plan--featured .tick { color: var(--glow); }

/* FAQ */
.faq__item { padding: 20px 0; border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 6px; }
.faq__item p { max-width: 64ch; }

/* Join */
.join-frame { padding: 0 12px 12px; }
.join { background: var(--pine); color: #FFFFFF; border-radius: 28px; }
.join__in { padding-block: 96px; display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.join__intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.join__intro .display { color: #FFFFFF; }
.join__intro p { color: var(--on-dark-soft); max-width: 40ch; }
.join__body { flex: 1 1 440px; }
#join-form { display: flex; flex-direction: column; gap: 16px; }
.fields { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; }
.field input {
  font: inherit; padding: 0 18px; min-height: 52px; border-radius: 999px; border: 2px solid transparent;
  background: #FFFFFF; color: var(--pine); width: 100%;
}
.field input:focus-visible { outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: #F2B8A6; }
.join__plan { font-size: 15px; color: var(--on-dark-soft); }
.join__plan a, .join__fine a { color: var(--mint); }
.join__plan [data-plan-name] { color: #FFFFFF; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--glow); }
.join__error {
  background: #FFFFFF; color: #8A2A12; border-radius: 14px; padding: 12px 16px; font-weight: 500;
}
.join .btn { align-self: flex-start; }
.join__fine { font-size: 14px; color: var(--on-dark-soft); }
.join__done {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; color: var(--on-dark);
}
.join__done:focus { outline: none; }
.join__done-h { font-size: 28px; color: #FFFFFF; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { color: var(--muted); font-size: 14px; }
.foot__in { padding-block: 32px 48px; display: flex; flex-direction: column; gap: 12px; }
.foot__brand { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; }
.foot .brand__name { color: var(--pine); font-size: 20px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot__links a { color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }
.foot p { max-width: 80ch; }

/* Plain pages (privacy, not found) */
.plain-top { background: var(--pine); }
.plain-top .nav { padding-inline: 0; }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-family: var(--display); font-size: 24px; letter-spacing: -0.015em; color: var(--pine); margin-top: 16px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose .lead { font-size: 20px; }
.prose .btn { align-self: flex-start; }

/* ---- Smaller screens ----------------------------------------------------- */
@media (max-width: 900px) {
  .hero { min-height: 720px; }
  .section { padding-block: 80px; }
  .band__in { padding-block: 104px; }
  .partner__visual { padding: 24px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .hero-frame { padding: 8px; }
  .hero {
    min-height: 0; border-radius: 22px;
    background-image:
      linear-gradient(180deg, rgba(7, 36, 27, 0.6) 0%, rgba(7, 36, 27, 0.92) 50%),
      image-set(url("../img/hero-sea-1200.webp") type("image/webp"), url("../img/hero-sea-1200.jpg") type("image/jpeg"));
    background-position: 72% 30%;
  }
  .nav { padding-block: 16px; }
  .nav__links { gap: 0 18px; font-size: 15px; }
  .nav__links .btn { display: none; }
  .hero__body { padding-top: 88px; padding-bottom: 40px; gap: 22px; }
  .hero__sub { font-size: 18px; }
  .btn { font-size: 17px; padding: 0 22px; }
  .section { padding-block: 64px; }
  .partner { gap: 32px; }
  .partner__text { flex-basis: 100%; }
  .partner__visual { flex-basis: 100%; padding: 16px; border-radius: 24px; }
  .standout { padding: 24px; border-radius: 20px; }
  .tile { padding: 24px; }
  .band__in { padding-block: 80px; }
  .split > :last-child { flex-basis: 100%; }
  .plan__price .display { font-size: 48px; }
  .join-frame { padding: 0 8px 8px; }
  .join { border-radius: 22px; }
  .join__in { padding-block: 64px; }
  .join__body { flex-basis: 100%; }
  .join .btn { align-self: stretch; }
}
