/* Layout: Moderns-mirrored rhythm — full-bleed bands alternating Gulf-night and dry-sand, centered 1120px measure. */
:root {
  --night: #101418;      /* deep band background (Moderns charcoal, cooled toward the Gulf) */
  --gulf: #15303f;       /* card surface on night bands */
  --sand: #f4eee4;       /* light band background */
  --dune: #e6dccb;       /* hairlines / tile fill on sand */
  --ink: #18232b;        /* text on sand */
  --mist: #c9d4d8;       /* body text on night */
  --surf: #2f9c8f;       /* primary accent — surf teal, shared with Moderns */
  --oat: #c8a86a;        /* sea-oat gold — Dunlin's own accent */
  --white: #fbfaf7;
  --display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--oat); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0; }

.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--surf); font-weight: 600; }
.band-night .eyebrow { color: var(--oat); }
.lede { font-size: 1.15rem; max-width: 62ch; }

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(64px, 9vw, 112px); }
.band-night { background: var(--night); color: var(--mist); }
.band-night h1, .band-night h2, .band-night h3 { color: var(--white); }
.band-sand { background: var(--sand); color: var(--ink); }
.band-dune { background: linear-gradient(180deg, var(--sand), var(--dune)); color: var(--ink); }
.stack { display: grid; gap: 20px; }
.stack-lg { display: grid; gap: 40px; }
.center { text-align: center; justify-items: center; }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: linear-gradient(100deg, #d7cfc2 0%, #cfd2cb 40%, #3b9c8c 78%, #1d5f73 100%);
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--display); font-size: 1.35rem; letter-spacing: .08em; white-space: nowrap; }
.nav { display: flex; gap: 4px; background: rgba(16,20,24,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 10px; }
.nav a { color: var(--white); text-decoration: none; font-size: .95rem; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.18); text-decoration: underline; text-underline-offset: 4px; }
.head-cta { flex: none; }
.menu { display: none; }

@media (max-width: 1000px) {
  .site-head .nav, .site-head .head-cta { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; color: var(--white); background: var(--night); padding: 10px 14px; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--night); padding: 12px; display: grid; gap: 2px; min-width: 220px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
  .menu-panel a { color: var(--white); text-decoration: none; padding: 10px 12px; }
  .menu-panel a[aria-current="page"] { color: var(--oat); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--display); font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 26px; text-decoration: none; border: 2px solid var(--night); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.btn-dark { background: var(--night); color: var(--white); }
.btn-surf { background: linear-gradient(100deg, var(--surf), #d9dcd6); color: var(--night); }
.btn-oat { background: var(--oat); color: var(--night); border-color: var(--oat); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.center .btn-row { justify-content: center; }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(100deg, #cbc3b6 0%, #d8d2c8 38%, #eef2ee 47%, #8cc7b3 54%, #4ea592 72%, #2f8a7e 100%); }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,20,24,.18), rgba(16,20,24,.42)); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(72px, 11vw, 140px) clamp(48px, 7vw, 80px); display: grid; gap: 22px; justify-items: center; text-align: center; }
.hero h1 { color: var(--white); text-shadow: 0 2px 24px rgba(16,20,24,.35); }
.hero .lede { color: var(--white); font-size: clamp(1.05rem, 2vw, 1.25rem); text-shadow: 0 1px 12px rgba(16,20,24,.5); }
.hero .eyebrow { color: var(--white); background: rgba(16,20,24,.35); padding: 6px 12px; }
.hero-proof { position: relative; z-index: 1; padding-block: 0 20px; text-align: right; font-size: .95rem; color: var(--white); text-shadow: 0 1px 8px rgba(16,20,24,.6); }

.page-hero { background: var(--night); color: var(--mist); }
.page-hero .wrap { padding-block: clamp(56px, 8vw, 96px); display: grid; gap: 18px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.6rem); }

/* Cards on night */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--gulf); border: 1px dashed rgba(201,212,216,.28); padding: 26px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card h3 { color: var(--white); }
.card .tag { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oat); }
.card-feature { background: linear-gradient(160deg, #1b4256, var(--gulf)); border-style: solid; border-color: var(--surf); }
.card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* Promise strip */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.promise { display: grid; gap: 10px; border-top: 1px solid rgba(201,212,216,.3); padding-top: 18px; min-width: 0; }
.promise h3 { font-size: 1.25rem; }

/* Pain tiles (dark tiles on sand, gold body like Moderns) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tile { background: var(--night); color: var(--oat); padding: 24px; display: grid; gap: 8px; min-width: 0; }
.tile h3 { color: var(--white); text-transform: uppercase; font-size: 1.2rem; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--dune); }
thead th { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--surf); border-bottom: 2px solid var(--ink); }
td.amt { font-family: var(--display); font-size: 1.5rem; white-space: nowrap; color: var(--ink); }
tr.group th { background: var(--dune); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.who { font-weight: 700; font-size: .8rem; letter-spacing: .12em; }
.who-you { color: #9a5b3c; }
.who-us { color: var(--surf); }
.band-night th, .band-night td { border-color: rgba(201,212,216,.2); }
.band-night thead th { color: var(--oat); border-bottom-color: var(--mist); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stat { background: var(--white); border: 1px solid var(--dune); padding: 26px 22px; display: grid; gap: 8px; align-content: start; }
.stat b { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: .95rem; color: #4a5860; }

/* Steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; min-width: 0; }
.step::before { counter-increment: step; content: "Step " counter(step); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--surf); font-weight: 700; }
.step h3 { font-size: 1.25rem; }

/* Split */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split > * { min-width: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--surf); border-bottom: 2px solid var(--surf); transform: rotate(-45deg); }
.band-night .checks li::before { border-color: var(--oat); }

.note { font-size: .85rem; color: #5d6a70; }
.band-night .note { color: #8fa0a6; }
.source { font-size: .8rem; color: #6a767b; }
.band-night .source { color: #8fa0a6; }
.source a { color: inherit; }
.pill { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--oat); color: var(--oat); }

/* FAQ */
details.faq { border-bottom: 1px solid var(--dune); padding-block: 16px; }
details.faq summary { cursor: pointer; font-family: var(--display); font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--surf); font-family: var(--body); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 10px; max-width: 70ch; }

/* Video block */
.video-frame { background: var(--night); aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; color: var(--mist); border: 1px solid var(--gulf); position: relative; overflow: hidden; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; font-size: .95rem; }

/* Form */
form.lead { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--dune); padding: clamp(20px, 4vw, 36px); }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
label { font-size: .85rem; font-weight: 600; letter-spacing: .02em; }
input, select, textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #b9b0a2; background: var(--sand); color: var(--ink); width: 100%; border-radius: 0; }
textarea { min-height: 120px; resize: vertical; }
.form-status { padding: 16px; background: var(--sand); border-left: 3px solid var(--surf); display: grid; gap: 10px; }
.form-status pre { white-space: pre-wrap; font-family: var(--body); font-size: .9rem; margin: 0; background: var(--white); padding: 12px; border: 1px solid var(--dune); }

/* Footer */
.site-foot { background: var(--night); color: var(--mist); padding-block: 56px 40px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.foot-grid h3 { color: var(--white); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; }
.foot-grid a { color: var(--mist); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(201,212,216,.2); font-size: .82rem; color: #8fa0a6; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Mobile sticky CTA */
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--night); }
  .sticky-cta .btn { flex: 1; padding: 12px; font-size: .95rem; }
  body { padding-bottom: 72px; }
  .hero-proof { text-align: center; }
}

/* Plans */
.plans { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.plan { background: var(--white); border: 1px solid var(--dune); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.plan-feature { border: 2px solid var(--night); box-shadow: 0 14px 34px rgba(16,20,24,.12); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 7vw, 4.2rem); line-height: 1; color: var(--ink); }
.price span { color: #4a5860; }
.card .pill { justify-self: start; }

/* Personal plan cards on sand */
.plan-cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pcard { background: var(--white); border: 1px solid var(--dune); border-top: 3px solid var(--surf); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.pcard h3 { color: var(--ink); }

/* ================= Wix mirror (Moderns look) =================
   Values measured from the live Moderns Wix site: Marcellus H1, Aboreto H2/buttons,
   Wix Madefor Text body, #141414 / #0a0e14 bands, #1b3a4b cards with dashed teal edge,
   #f7f3ec cream, #2fa4a0 teal, #1db889 green gradient buttons, glass nav pill, blur-in entrances. */
:root {
  --night: #141414;
  --abyss: #0a0e14;
  --gulf: #1b3a4b;
  --sand: #f7f3ec;
  --ink: #1f2833;
  --surf: #2fa4a0;
  --green: #1db889;
  --white: #f0f4f8;
  --head: "Aboreto", "Marcellus", Georgia, serif;
  --body: "Wix Madefor Text", "Segoe UI", system-ui, sans-serif;
}
h2 { font-family: var(--head); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3.4rem); letter-spacing: .02em; }
h3 { font-family: var(--body); font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.3; }
.tile h3, .foot-grid h3 { font-family: var(--head); font-weight: 700; }
.band-night { background: var(--night); }
.page-hero { background: var(--abyss); }
.eyebrow { color: var(--surf); letter-spacing: .2em; }
.band-night .eyebrow { color: var(--surf); }

/* Header + glass nav pill */
.site-head { background: linear-gradient(100deg, #cfc8bd 0%, #d6d4ce 38%, #2fa4a0 76%, #1d5f86 100%); border-bottom: 1px dashed var(--surf); }
.nav { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 33px; box-shadow: 0 2px 8px rgba(0,0,0,.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 8px 12px; }
.nav a { font-family: var(--body); transition: background .25s ease, color .25s ease; }
.brand-name { font-family: var(--head); font-weight: 700; }

/* Buttons */
.btn { font-family: var(--head); font-weight: 700; letter-spacing: .08em; transition: transform .3s ease, box-shadow .3s ease, filter .3s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-dark { background: var(--night); color: #fff; border: 0; border-radius: 0; box-shadow: 0 0 36px rgba(0,0,0,.25); }
.btn-glass { background: linear-gradient(90deg, rgba(198,198,198,.55) 0%, var(--green) 96%); color: var(--night); border: 2px solid var(--night); border-radius: 12px; }
.btn-surf { background: linear-gradient(90deg, #21bd82 0%, #d3d3d3 100%); color: #1b1c1b; border: 2px solid var(--night); border-radius: 12px; }
.btn-teal, .btn-oat { background: var(--surf); color: var(--night); border: 0; border-radius: 26px; }
.btn-ghost { border-radius: 26px; }

/* Cards: Gulf-blue with dashed teal edge */
.card { background: var(--gulf); border: 1px dashed var(--surf); border-radius: 28px; transition: transform .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.card-feature { background: linear-gradient(160deg, #22506a, var(--gulf)); border-style: dashed; }
.card .tag { color: var(--surf); }
.pcard, .plan, .stat { border-radius: 20px; transition: transform .35s ease, box-shadow .35s ease; }
.pcard:hover, .plan:hover, .stat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31,40,51,.12); }
.tile { border-radius: 14px; }
.video-frame { border-radius: 20px; }

/* Entrance: blur-in, applied only to blocks below the first screen (page stays complete at rest) */
@keyframes dunlin-blur-in { from { opacity: 0; filter: blur(8px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: none; } }
.reveal-wait { opacity: 0; }
.reveal-in { animation: dunlin-blur-in .9s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .reveal-wait { opacity: 1; } .reveal-in { animation: none; } }

/* Portrait intro video (1080x1920) */
.video-frame.portrait { aspect-ratio: 9 / 16; height: min(640px, 80vh); width: auto; max-width: 100%; justify-self: center; }
.video-frame.portrait video { object-fit: contain; background: var(--night); }
