/* ==========================================================================
   Barrie's Banana Factory — site stylesheet
   Purveyors of fine bananas to the Seven Seas since 1687
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --abyss:        #061821;
  --hull:         #0C2C3A;
  --hull-soft:    #123c4e;
  --sea:          #14586B;
  --tide:         #2E93A8;
  --tide-soft:    #6FBDCC;

  --banana:       #F2C230;
  --banana-lite:  #FFD95C;
  --banana-deep:  #C99A12;
  --rope:         #C08A4E;

  --parchment:    #FBF6EA;
  --sand:         #F2E8D6;
  --shell:        #FFFFFF;

  --ink:          #12222B;
  --body:         #3A5260;
  --muted:        #6C8492;
  --line:         #E3D9C6;
  --line-dark:    rgba(255, 255, 255, .14);

  --ok:           #2E7D5B;
  --danger:       #B3402F;

  --shadow-sm:  0 1px 2px rgba(6, 24, 33, .06), 0 1px 3px rgba(6, 24, 33, .05);
  --shadow-md:  0 4px 10px rgba(6, 24, 33, .07), 0 12px 28px rgba(6, 24, 33, .07);
  --shadow-lg:  0 10px 24px rgba(6, 24, 33, .09), 0 28px 60px rgba(6, 24, 33, .11);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --wrap: 1180px;
  --gut:  24px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--shell);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p  { text-wrap: pretty; }
a  { color: var(--sea); text-decoration-color: rgba(20, 88, 107, .3); text-underline-offset: 3px; }
a:hover { color: var(--tide); }

:focus-visible {
  outline: 3px solid var(--tide);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Layout primitives -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: 780px; }
.wrap--mid    { max-width: 940px; }

.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 68px); }
.section--parchment { background: var(--parchment); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--hull); color: rgba(255,255,255,.76); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); }

/* --- Type helpers ------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--banana-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--banana);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--banana); }
.section--dark .eyebrow::before { background: var(--banana); }

.lede {
  font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem);
  line-height: 1.6;
  color: var(--body);
}
.section--dark .lede { color: rgba(255,255,255,.8); }

.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }

.small { font-size: .875rem; }
.muted { color: var(--muted); }
.section--dark .muted { color: rgba(255,255,255,.6); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--banana);
  color: var(--abyss);
  box-shadow: 0 1px 2px rgba(6,24,33,.14), 0 6px 16px rgba(242,194,48,.32);
}
.btn-primary:hover { background: var(--banana-lite); color: var(--abyss); box-shadow: 0 2px 4px rgba(6,24,33,.16), 0 10px 24px rgba(242,194,48,.4); }

.btn-success {
  background: var(--sea);
  color: #fff;
  box-shadow: 0 1px 2px rgba(6,24,33,.14), 0 6px 16px rgba(20,88,107,.26);
}
.btn-success:hover { background: var(--tide); color: #fff; }

.btn-outline {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--sea); color: var(--sea); background: rgba(20,88,107,.04); }
/* Outline buttons sitting on any dark surface */
.section--dark .btn-outline,
.hero .btn-outline,
.page-hero .btn-outline,
.cta-band .btn-outline,
.panel .btn-outline { border-color: rgba(255,255,255,.3); color: #fff; }
.section--dark .btn-outline:hover,
.hero .btn-outline:hover,
.page-hero .btn-outline:hover,
.cta-band .btn-outline:hover,
.panel .btn-outline:hover { border-color: var(--banana); color: var(--banana); background: rgba(242,194,48,.08); }

.btn-warning { background: var(--rope); color: #fff; }
.btn-warning:hover { background: #d29a5c; color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); padding-inline: 8px; }
.btn-ghost:hover { color: var(--sea); }

.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 24, 33, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand:hover { color: #fff; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.brand-name span { display: block; font-family: var(--sans); font-size: .63rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--banana); margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-link {
  display: block;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link[aria-current="page"] { color: var(--banana); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--r-sm);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-actions { display: none; }
  .nav-links.is-open, .nav-actions.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    margin: 0 0 16px;
    order: 3;
  }
  .nav-actions.is-open { gap: 10px; margin-top: 6px; }
  .nav-actions.is-open .btn { width: 100%; }
  .nav { flex-wrap: wrap; }
  .nav-link { padding: 11px 12px; font-size: 1rem; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--abyss) 0%, var(--hull) 58%, #10455a 100%);
  color: rgba(255,255,255,.8);
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 118px) clamp(90px, 10vw, 150px);
}
.hero h1 { color: #fff; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 62c120-26 240-34 360-22s240 44 360 44 240-30 360-42 240-8 360 8v40H0z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
  pointer-events: none;
}
.hero--parchment::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 62c120-26 240-34 360-22s240 44 360 44 240-30 360-42 240-8 360 8v40H0z' fill='%23FBF6EA'/%3E%3C/svg%3E");
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-sub {
  font-size: clamp(1.06rem, 1rem + .4vw, 1.26rem);
  color: rgba(255,255,255,.78);
  margin-top: 20px;
  max-width: 56ch;
}
.hero .btn-row { margin-top: 32px; }

.hero-note {
  margin-top: 26px;
  font-size: .84rem;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(165deg, var(--abyss) 0%, var(--hull) 100%);
  color: rgba(255,255,255,.78);
  padding-block: clamp(52px, 6vw, 84px) clamp(56px, 7vw, 96px);
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero .lede { color: rgba(255,255,255,.78); margin-inline: auto; max-width: 62ch; margin-top: 18px; }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--banana); }
.card h3 { margin-bottom: 10px; }
.card p, .card a { overflow-wrap: anywhere; }
.card p { font-size: .95rem; }

.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--banana-lite), var(--banana));
  color: var(--abyss);
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(242,194,48,.32);
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon--sea { background: linear-gradient(150deg, var(--tide), var(--sea)); color: #fff; box-shadow: 0 4px 12px rgba(20,88,107,.28); }

.section--dark .card {
  background: rgba(255,255,255,.05);
  border-color: var(--line-dark);
  box-shadow: none;
  color: rgba(255,255,255,.74);
}

/* --- Product cards ------------------------------------------------------ */
.product {
  display: flex;
  flex-direction: column;
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-figure {
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--hull), var(--sea));
  display: grid;
  place-items: center;
  position: relative;
}
.product-figure svg { width: 74px; height: 74px; opacity: .95; }
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.product-body h3 { margin: 0; }
.product-body p { font-size: .93rem; flex: 1; }
.product-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.product-price { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.product-price small { font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--muted); }

/* --- Badges / pills ----------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(242,194,48,.16);
  color: var(--banana-deep);
  border: 1px solid rgba(242,194,48,.4);
}
.badge--sea { background: rgba(46,147,168,.13); color: var(--sea); border-color: rgba(46,147,168,.32); }
.badge--dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }

/* --- Stats -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
  font-weight: 600;
  color: var(--banana);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-label { margin-top: 8px; font-size: .9rem; color: rgba(255,255,255,.66); }
.section--light .stat-num { color: var(--sea); }
.section--light .stat-label { color: var(--muted); }

/* --- Pricing ------------------------------------------------------------ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 22px;
  align-items: start;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border-color: var(--banana);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
}
.plan-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--banana);
  color: var(--abyss);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.plan-desc { font-size: .88rem; color: var(--muted); margin-top: 6px; min-height: 42px; }
.plan-price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan-amount { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.plan-per { font-size: .86rem; color: var(--muted); }
.plan-doubloons { font-size: .78rem; color: var(--rope); font-style: italic; }
.plan .btn { margin-top: 22px; }
.plan-features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 11px; border-top: 1px solid var(--line); padding-top: 22px; }
.plan-features li { display: flex; gap: 10px; font-size: .9rem; line-height: 1.5; }
.plan-features svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; color: var(--ok); }

/* --- Comparison table --------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--shell); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .92rem; }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp thead th { background: var(--parchment); font-family: var(--serif); font-size: .95rem; color: var(--ink); font-weight: 600; }
table.cmp tbody th { font-weight: 500; color: var(--ink); }
table.cmp td { text-align: center; color: var(--body); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp .yes { color: var(--ok); font-weight: 700; }
table.cmp .no { color: var(--line); }

/* --- Testimonials ------------------------------------------------------- */
.quote {
  background: var(--shell);
  border: 1px solid var(--line);
  border-left: 3px solid var(--banana);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.quote blockquote { font-size: .98rem; line-height: 1.62; color: var(--ink); }
.quote figcaption { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--sea), var(--hull));
  color: var(--banana);
  font-family: var(--serif); font-weight: 600; font-size: .92rem;
  flex-shrink: 0;
}
.quote-who { font-size: .87rem; line-height: 1.4; }
.quote-who strong { display: block; color: var(--ink); font-weight: 600; }
.quote-who span { color: var(--muted); }

/* --- Logo strip --------------------------------------------------------- */
.logo-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 40px;
}
.logo-strip span {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--muted);
  opacity: .8;
  white-space: nowrap;
}
.section--dark .logo-strip span { color: rgba(255,255,255,.6); }

/* --- Steps -------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--banana);
  color: var(--abyss);
  font-family: var(--serif); font-weight: 700; font-size: 1.06rem;
  box-shadow: 0 4px 12px rgba(242,194,48,.3);
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .93rem; }

/* --- Forms -------------------------------------------------------------- */
.form-card {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow-md);
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .87rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--shell);
  font-size: .96rem;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236C8492' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--tide);
  box-shadow: 0 0 0 3px rgba(46,147,168,.18);
}
.field-hint { font-size: .8rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.check input { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; accent-color: var(--sea); }
.check label { font-size: .85rem; font-weight: 400; color: var(--body); line-height: 1.5; }

.form-note { margin-top: 16px; font-size: .8rem; color: var(--muted); text-align: center; }

.form-success {
  display: none;
  padding: 22px;
  border-radius: var(--r-md);
  background: rgba(46,125,91,.08);
  border: 1px solid rgba(46,125,91,.3);
  color: #1F5C41;
  text-align: center;
}
.form-success.is-visible { display: block; }
.form-success strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: #174A34; margin-bottom: 6px; }
form.is-submitted { display: none; }

/* Newsletter (inline) */
.newsletter {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 460px;
}
.newsletter input {
  flex: 1 1 220px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .95rem;
}
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus { outline: none; border-color: var(--banana); box-shadow: 0 0 0 3px rgba(242,194,48,.2); }
.newsletter.center { margin-inline: auto; justify-content: center; }

/* --- Resource / download list ------------------------------------------- */
.dl-list { display: grid; gap: 12px; }
.dl-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.dl-item:hover { border-color: var(--banana); transform: translateX(3px); box-shadow: var(--shadow-sm); color: inherit; }
.dl-ext {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--parchment);
  border: 1px solid var(--line);
  font-size: .64rem; font-weight: 750; letter-spacing: .04em;
  color: var(--sea);
  text-transform: uppercase;
}
.dl-text { flex: 1; min-width: 0; }
.dl-text strong { display: block; color: var(--ink); font-size: .96rem; font-weight: 600; }
.dl-text span { font-size: .83rem; color: var(--muted); }
.dl-item > svg { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq summary {
  padding: 17px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: .98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px; height: 11px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details[open] summary { color: var(--sea); }
.faq-body { padding: 0 22px 20px; font-size: .94rem; }

/* --- Timeline ----------------------------------------------------------- */
.timeline { display: grid; gap: 0; position: relative; }
.tl-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding-bottom: 34px;
  position: relative;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 103px; top: 12px; bottom: -12px;
  width: 2px;
  background: var(--line);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }
.tl-year {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--banana-deep);
  text-align: right;
  position: relative;
}
.tl-year::after {
  content: "";
  position: absolute;
  right: -17.5px; top: 9px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--banana);
  border: 2px solid var(--shell);
  box-shadow: 0 0 0 2px var(--banana);
}
.tl-body h3 { font-size: 1.06rem; margin-bottom: 6px; }
.tl-body p { font-size: .94rem; }
@media (max-width: 620px) {
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-item::before { display: none; }
  .tl-year { text-align: left; }
  .tl-year::after { display: none; }
}

/* --- Team --------------------------------------------------------------- */
.crew { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.crew-card { text-align: center; }
.crew-photo {
  width: 108px; height: 108px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--hull), var(--sea));
  color: var(--banana);
  font-family: var(--serif); font-size: 1.9rem; font-weight: 600;
  border: 3px solid var(--banana);
}
.crew-card h3 { font-size: 1.05rem; margin-bottom: 3px; }
.crew-role { font-size: .84rem; color: var(--banana-deep); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.crew-card p { font-size: .89rem; margin-top: 10px; }

/* --- Split feature ------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }
@media (max-width: 700px) { .split--reverse > *:first-child { order: 0; } }

.panel {
  background: linear-gradient(155deg, var(--hull), var(--sea));
  border-radius: var(--r-xl);
  padding: 36px;
  color: rgba(255,255,255,.82);
  box-shadow: var(--shadow-lg);
}
.panel h3 { color: #fff; }
.panel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.panel-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.panel-list svg { width: 20px; height: 20px; color: var(--banana); flex-shrink: 0; margin-top: 2px; }

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.tick-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; }
.tick-list svg { width: 19px; height: 19px; color: var(--ok); flex-shrink: 0; margin-top: 4px; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(150deg, var(--abyss), var(--sea));
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 62px);
  text-align: center;
  color: rgba(255,255,255,.8);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.78); max-width: 56ch; margin: 16px auto 0; }
.cta-band .btn-row { margin-top: 30px; justify-content: center; }

/* --- Breadcrumb --------------------------------------------------------- */
.crumb { font-size: .84rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.crumb a { color: rgba(255,255,255,.78); text-decoration: none; }
.crumb a:hover { color: var(--banana); }
.crumb span { margin-inline: 7px; opacity: .5; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--abyss);
  color: rgba(255,255,255,.62);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  font-size: .91rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-about p { margin-top: 16px; max-width: 34ch; font-size: .9rem; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--banana);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.66); text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: var(--banana); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  justify-content: space-between; align-items: center;
  padding-top: 26px;
  font-size: .84rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--banana); }

.footer-flag { display: flex; align-items: center; gap: 8px; }

/* --- Demo notice (Snitcher) --------------------------------------------- */
.demo-ribbon {
  background: var(--banana);
  color: var(--abyss);
  text-align: center;
  padding: 9px 20px;
  font-size: .84rem;
  font-weight: 550;
  line-height: 1.45;
}
.demo-ribbon a { color: var(--abyss); font-weight: 700; text-underline-offset: 2px; }
.demo-ribbon a:hover { color: #000; }

/* --- Utilities ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--banana);
  color: var(--abyss);
  font-weight: 600;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

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

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