/* ==========================================================================
   LKTS Web Designing
   Palette: white, black, shades of blue.
   Structure: photography carries the page, everything else stays quiet.
   Signature device: the waterline — a hairline rule echoing the mirror
   line in the logo, used for every section label and section break.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --white:      #ffffff;
  --black:      #000000;
  --ink:        #0a0f14;

  --deep:       #04182b;  /* darkest navy — bars, scrims, footer */
  --navy:       #0b3a56;  /* the logo peak */
  --navy-2:     #145578;
  --blue:       #1b6a96;  /* accessible blue for text and links */
  --blue-bright:#2e86b8;  /* brand blue — fills and rules */
  --blue-soft:  #62a8d0;
  --sky:        #a8d2e8;  /* light blue on dark */
  --mist:       #eef4f8;  /* palest section tint */
  --line:       #dde5eb;
  --line-dark:  rgba(255, 255, 255, 0.16);
  --muted:      #536b7c;
  --muted-dark: #9fb6c6;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, Helvetica, Arial, sans-serif;

  --t-xs:  0.75rem;
  --t-sm:  0.875rem;
  --t-base: 1rem;
  --t-md:  1.0625rem;
  --t-lg:  clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-xl:  clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --t-2xl: clamp(1.75rem, 1.45rem + 1.4vw, 2.5rem);
  --t-3xl: clamp(2.25rem, 1.7rem + 2.6vw, 3.75rem);
  --t-4xl: clamp(2.4rem, 1.6rem + 4.2vw, 5.25rem);

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;

  --container: 1240px;
  --gutter: 1.5rem;
  --radius: 4px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;

  --z-nav: 100;
  --z-top: 1000;
}
@media (min-width: 768px) { :root { --gutter: 2.5rem; } }

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); letter-spacing: -0.025em; }
h4 { font-size: var(--t-lg); letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--navy); color: var(--white); }

/* --- Utilities ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.25rem, 9vw, 8rem); }
.section--sm { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--mist { background: var(--mist); }
.section--deep { background: var(--deep); color: var(--white); }
.section--deep h2, .section--deep h3 { color: var(--white); }

.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;
}
.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -130%);
  background: var(--white); color: var(--ink); padding: 0.75rem 1.25rem;
  font-weight: 600; z-index: var(--z-top); text-decoration: none;
}
.skip:focus { transform: translate(-50%, 0); }

.lede { font-size: var(--t-lg); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.section--deep .lede { color: var(--muted-dark); }
.prose { color: var(--muted); max-width: 62ch; }
.prose + .prose { margin-top: var(--s-4); }
.section--deep .prose { color: var(--muted-dark); }

/* --- Signature: the waterline ------------------------------------------- */
/* A hairline with the section label sitting on it, mirroring the logo's
   surface line. Used for every section head and major break. */
.waterline {
  display: flex; align-items: center; gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.waterline__label {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue); white-space: nowrap;
}
.waterline::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.waterline--center { justify-content: center; }
.waterline--center::before {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.section--deep .waterline__label { color: var(--sky); }
.section--deep .waterline::after, .section--deep .waterline--center::before {
  background: var(--line-dark);
}

.head { max-width: 46ch; margin-bottom: var(--s-12); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lede { margin-inline: auto; }
.head h2 + .lede { margin-top: var(--s-4); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.9rem 1.75rem;
  font-size: var(--t-base); font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: scale(0.985); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--fill   { background: var(--navy); color: var(--white); }
.btn--fill:hover { background: var(--navy-2); color: var(--white); }
.btn--line   { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--line:hover { border-color: var(--navy); background: var(--mist); color: var(--navy); }
.btn--white  { background: var(--white); color: var(--deep); }
.btn--white:hover { background: var(--sky); color: var(--deep); }
.btn--ghost  { background: rgba(255,255,255,0.06); color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.16); border-color: var(--white); color: var(--white); }
.btn--block  { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btns--center { justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  font-weight: 600; font-size: var(--t-base); color: var(--blue); text-decoration: none;
}
.textlink svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.textlink:hover { color: var(--navy); }
.textlink:hover svg { transform: translateX(4px); }

/* --- Navigation --------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--deep); color: var(--white);
}
.nav__inner { display: flex; align-items: center; gap: var(--s-6); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand__type { display: grid; line-height: 1; }
.brand__type b {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  letter-spacing: 0.01em; color: var(--white);
}
.brand__type span {
  font-size: 0.625rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--sky); margin-top: 0.3rem;
}

.nav__links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem;
  font-size: 0.9375rem; font-weight: 500; color: rgba(255,255,255,0.82);
  text-decoration: none; border-radius: var(--radius);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav__links a[aria-current="page"] { color: var(--white); }

/* The Contact pill is a button, not a nav link — the rules above are more
   specific than .btn--white and would otherwise paint it white on white. */
.nav__links a.nav__cta { color: var(--deep); background: var(--white); }
.nav__links a.nav__cta:hover { color: var(--deep); background: var(--sky); }
.nav__cta { margin-left: 0.5rem; }
.nav__cta.btn { min-height: 44px; padding: 0.5rem 1.25rem; font-size: 0.9375rem; }

.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: auto;
  background: transparent; border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius); color: var(--white);
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .x { display: none; }
.nav__toggle[aria-expanded="true"] .x { display: block; }
.nav__toggle[aria-expanded="true"] .bars { display: none; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto; margin: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--deep);
    padding: var(--s-2) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 160ms;
  }
  .nav__links.open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { min-height: 52px; font-size: 1.0625rem; padding-inline: 0.5rem; }
  .nav__cta { margin: var(--s-2) 0 0; }
  .nav__cta.btn { min-height: 52px; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); }
.hero__media { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(4,24,43,0.88) 0%, rgba(4,24,43,0.62) 42%, rgba(4,24,43,0.12) 78%),
    linear-gradient(to top, rgba(4,24,43,0.55), transparent 45%);
}
.hero__inner {
  display: flex; align-items: flex-end;
  min-height: min(84vh, 780px); padding-block: clamp(3rem, 12vh, 8rem);
}
.hero__copy { max-width: 40rem; color: var(--white); }
.hero h1 { color: var(--white); margin-bottom: var(--s-6); }
.hero .lede { color: rgba(255,255,255,0.88); max-width: 34rem; }
.hero .btns { margin-top: var(--s-8); }
.hero__eyebrow {
  display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-6);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sky);
}
.hero__eyebrow::after { content: ""; width: 56px; height: 1px; background: rgba(168,210,232,0.5); }
.hero__note {
  margin-top: var(--s-8); padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,0.22);
  font-size: var(--t-sm); color: rgba(255,255,255,0.8); max-width: 34rem;
}
.hero__note b { color: var(--white); font-weight: 600; }

.hero--page .hero__inner { min-height: 0; align-items: center; padding-block: clamp(3.5rem, 9vw, 6rem); }
.hero--page h1 { font-size: var(--t-3xl); }

/* On narrow screens the photo crops in, so the scrim has to carry more */
@media (max-width: 780px) {
  .hero__media img { object-position: 70% 34%; }
  .hero__scrim {
    background: linear-gradient(to top, rgba(4,24,43,0.94) 0%, rgba(4,24,43,0.78) 48%, rgba(4,24,43,0.45) 100%);
  }
  .band__scrim {
    background: linear-gradient(to top, rgba(4,24,43,0.94) 0%, rgba(4,24,43,0.82) 55%, rgba(4,24,43,0.6) 100%);
  }
}

/* --- Facts bar ---------------------------------------------------------- */
.facts { background: var(--navy); color: var(--white); }
.facts ul {
  display: grid; gap: 1px; background: rgba(255,255,255,0.16);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .facts ul { grid-template-columns: repeat(4, 1fr); } }
.facts li {
  background: var(--navy); padding: var(--s-6) var(--s-4);
  font-size: var(--t-sm); font-weight: 500; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.facts svg { width: 15px; height: 15px; color: var(--sky); flex: none; }

/* --- Feature rows (services) -------------------------------------------- */
.rows { display: grid; gap: 0; }
@media (min-width: 720px) { .rows { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-16); } }
@media (min-width: 1080px) { .rows { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-12); } }
.row {
  padding-block: var(--s-8);
  border-top: 1px solid var(--line);
}
.row h3 { margin-bottom: var(--s-3); }
.row p { color: var(--muted); font-size: var(--t-base); }
.row__n {
  display: block; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.16em;
  color: var(--blue-soft); margin-bottom: var(--s-3);
  font-variant-numeric: tabular-nums;
}

/* --- Photo band --------------------------------------------------------- */
.band { position: relative; isolation: isolate; background: var(--deep); overflow: hidden; }
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.band__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(4,24,43,0.9) 0%, rgba(4,24,43,0.72) 46%, rgba(4,24,43,0.3) 100%);
}
.band__inner { padding-block: clamp(3.5rem, 10vw, 9rem); }
.band__grid { display: grid; gap: var(--s-12); align-items: start; }
@media (min-width: 940px) { .band__grid { grid-template-columns: 1fr 1fr; gap: var(--s-16); } }
.band h2 { color: var(--white); }

/* Steps that read as a real sequence */
.steps { counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-4);
  padding-block: var(--s-6); border-top: 1px solid rgba(255,255,255,0.22);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: var(--t-sm); font-weight: 600; color: var(--sky);
  font-variant-numeric: tabular-nums; padding-top: 0.15rem;
}
.steps h3 { font-size: var(--t-lg); color: var(--white); margin-bottom: 0.35rem; }
.steps p { color: var(--muted-dark); font-size: var(--t-base); }
.steps--light li { border-top-color: var(--line); }
.steps--light li::before { color: var(--blue-soft); }
.steps--light h3 { color: var(--ink); }
.steps--light p { color: var(--muted); }

/* --- Pricing ------------------------------------------------------------ */
.plans { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: var(--white); padding: var(--s-8) var(--s-6) var(--s-6);
  display: flex; flex-direction: column;
}
.plan--featured { background: var(--deep); color: var(--white); }
.plan--featured h3, .plan--featured .plan__price { color: var(--white); }
.plan--featured .plan__desc, .plan--featured .plan__terms, .plan--featured li { color: var(--muted-dark); }
.plan--featured .plan__list { border-top-color: rgba(255,255,255,0.22); }
.plan--featured .plan__list svg { color: var(--sky); }
.plan--featured .plan__meta { border-top-color: rgba(255,255,255,0.22); color: var(--muted-dark); }

.plan__tag {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sky); margin-bottom: var(--s-3); min-height: 1rem;
}
.plan:not(.plan--featured) .plan__tag { color: var(--blue-soft); }
.plan h3 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.plan__desc { font-size: var(--t-base); color: var(--muted); margin-bottom: var(--s-6); }
.plan__price {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.25rem); font-weight: 600;
  letter-spacing: -0.045em; color: var(--ink); font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 0.5rem; line-height: 1;
}
.plan__price span { font-family: var(--font); font-size: var(--t-sm); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan--featured .plan__price span { color: var(--muted-dark); }
.plan__terms { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s-3); }
.plan__list {
  border-top: 1px solid var(--line); margin-top: var(--s-6); padding-top: var(--s-6);
  display: grid; gap: var(--s-3); flex: 1;
}
.plan__list li {
  display: grid; grid-template-columns: 18px 1fr; gap: 0.65rem; align-items: start;
  font-size: var(--t-base); line-height: 1.45;
}
.plan__list svg { width: 16px; height: 16px; margin-top: 4px; color: var(--blue-bright); flex: none; }
.plan__meta {
  border-top: 1px solid var(--line); margin-top: var(--s-6); padding-top: var(--s-4);
  font-size: var(--t-sm); color: var(--muted); display: grid; gap: 0.3rem;
}
.plan .btn { margin-top: var(--s-6); }

/* Two-up package groups (Website / Webshop) */
@media (min-width: 900px) { .plans--2 { grid-template-columns: repeat(2, 1fr); } }
.group + .group { margin-top: var(--s-16); }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-6); }
.group__head h2 { font-size: var(--t-2xl); }
.group__head p { font-size: var(--t-base); color: var(--muted); margin: 0; }

/* Add-on rows carry a price */
.row__price {
  font-family: var(--font-display); font-size: var(--t-xl); font-weight: 600;
  letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-2); display: block;
}
.row__price small { font-family: var(--font); font-size: var(--t-sm); font-weight: 400; letter-spacing: 0; color: var(--muted); }

.notice {
  display: flex; gap: var(--s-4); align-items: flex-start;
  margin-top: var(--s-8); padding: var(--s-6);
  background: var(--mist); border-left: 2px solid var(--blue-bright);
  font-size: var(--t-base); color: var(--ink);
}
.notice svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 3px; }
.notice p { color: var(--muted); }
.notice strong { color: var(--ink); }

/* --- Comparison table --------------------------------------------------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: var(--t-base); }
caption { text-align: left; }
thead th {
  background: var(--deep); color: var(--white); text-align: left;
  padding: var(--s-4) var(--s-4); font-weight: 600; font-size: var(--t-sm);
}
thead th span { display: block; font-weight: 400; color: var(--sky); font-size: var(--t-xs); margin-top: 2px; }
tbody th {
  text-align: left; font-weight: 500; color: var(--ink);
  padding: var(--s-4); border-bottom: 1px solid var(--line);
}
tbody td {
  text-align: center; color: var(--muted); padding: var(--s-4);
  border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
tbody tr:nth-child(even) th, tbody tr:nth-child(even) td { background: var(--mist); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td svg { width: 17px; height: 17px; display: inline-block; }
.is-yes { color: var(--blue-bright); }
.is-no { color: #9aa8b2; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-6) 0; min-height: 56px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--t-lg); font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--blue-bright); transition: transform var(--dur) var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq__a { padding-bottom: var(--s-6); }
.faq__a p { color: var(--muted); max-width: 62ch; }

/* --- Contact form ------------------------------------------------------- */
.contact { display: grid; gap: var(--s-12); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 1.4fr 0.6fr; gap: var(--s-16); } }

.field { margin-bottom: var(--s-6); }
.field > label { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink); margin-bottom: var(--s-2); }
.field .hint { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.req { color: var(--blue); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 0.85rem 1rem;
  font: inherit; font-size: var(--t-base); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #9aa8b2; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--blue-soft); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(46,134,184,0.18);
}
.textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none; cursor: pointer; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3a56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.err {
  display: none; align-items: center; gap: 0.4rem;
  margin-top: var(--s-2); font-size: var(--t-sm); color: #b3261e; font-weight: 500;
}
.err svg { width: 15px; height: 15px; flex: none; }
.field.bad .err { display: flex; }
.field.bad .input, .field.bad .select, .field.bad .textarea { border-color: #b3261e; }
.field.bad .input:focus, .field.bad .select:focus, .field.bad .textarea:focus {
  box-shadow: 0 0 0 3px rgba(179,38,30,0.16);
}
.pair { display: grid; gap: var(--s-4); }
@media (min-width: 620px) { .pair { grid-template-columns: 1fr 1fr; } }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status {
  display: none; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-6); margin-bottom: var(--s-6); font-size: var(--t-base);
  border-left: 3px solid; line-height: 1.55;
}
.status.on { display: flex; }
.status p { margin: 0; }
.status strong { display: block; font-size: var(--t-lg); letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.status br { display: none; }
.status svg { width: 30px; height: 30px; flex: none; margin-top: 1px; }
.status--ok {
  background: var(--mist); border-color: var(--blue-bright); color: var(--ink);
  box-shadow: 0 10px 30px rgba(46, 134, 184, 0.14);
}
.status--ok svg { color: var(--blue-bright); }
.status--bad { background: #fdf3f2; border-color: #b3261e; color: #7a1a15; }
.status a { color: inherit; font-weight: 600; }

/* The box rises into place, then the tick draws itself */
.status.on { animation: statusIn 560ms cubic-bezier(0.16, 0.84, 0.44, 1) both; }
@keyframes statusIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.status--ok.on svg circle {
  stroke-dasharray: 58; stroke-dashoffset: 58;
  animation: statusDraw 520ms cubic-bezier(0.33, 1, 0.68, 1) 120ms forwards;
}
.status--ok.on svg path {
  stroke-dasharray: 16; stroke-dashoffset: 16;
  animation: statusDraw 340ms cubic-bezier(0.33, 1, 0.68, 1) 420ms forwards;
}
@keyframes statusDraw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .status.on { animation: none; }
  .status--ok.on svg circle, .status--ok.on svg path { animation: none; stroke-dashoffset: 0; }
}
.foot-note { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s-6); }

.aside { background: var(--mist); padding: var(--s-8) var(--s-6); }
.aside h2 { font-size: var(--t-xl); margin-bottom: var(--s-4); }
.aside ol { display: grid; gap: var(--s-4); counter-reset: a; }
.aside li {
  counter-increment: a; display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--s-3);
  font-size: var(--t-base); color: var(--muted);
}
.aside li::before {
  content: counter(a); font-size: var(--t-sm); font-weight: 600; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.aside__rule { height: 1px; background: var(--line); margin-block: var(--s-6); }
.aside dt {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: var(--s-1);
}
.aside dd { margin: 0 0 var(--s-4); font-size: var(--t-base); color: var(--ink); }
.aside dd a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.aside dd:last-child { margin-bottom: 0; }

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--deep); color: var(--muted-dark); padding-block: var(--s-16) var(--s-8); }
.footer__grid { display: grid; gap: var(--s-12); }
@media (min-width: 820px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s-16); }
  /* Pages that also carry the Packages column run four across */
  .footer__grid--4 { grid-template-columns: 1.5fr 1fr 1fr 0.8fr; gap: var(--s-12); }
}
.footer img { width: 210px; height: auto; margin-bottom: var(--s-6); }
.footer p { font-size: var(--t-base); max-width: 38ch; }
.footer h3 {
  font-family: var(--font); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky);
  margin-bottom: var(--s-4);
}
.footer nav { display: grid; }
.footer nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: rgba(255,255,255,0.86); text-decoration: none; font-size: var(--t-base);
}
.footer nav a:hover { color: var(--white); text-decoration: underline; }
.footer__base {
  margin-top: var(--s-16); padding-top: var(--s-6); border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-8); justify-content: space-between;
  font-size: var(--t-sm); color: #7f97a8;
}

/* --- Long-form legal pages ------------------------------------------------ */
.legal { max-width: 46rem; }
.legal h2 {
  font-size: var(--t-xl); margin-top: var(--s-12); margin-bottom: var(--s-3);
  padding-top: var(--s-4); border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: var(--t-lg); margin-top: var(--s-6); margin-bottom: var(--s-2); }
.legal p { color: var(--muted); margin-bottom: var(--s-4); }
.legal ul { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.legal li {
  display: grid; grid-template-columns: 1rem 1fr; gap: var(--s-3);
  color: var(--muted); line-height: 1.55;
}
.legal li::before { content: ""; width: 6px; height: 6px; margin-top: 0.62rem; background: var(--blue-soft); }
.legal dl { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.legal dt { font-weight: 600; color: var(--ink); font-size: var(--t-sm); }
.legal dd { margin: 0.15rem 0 0; color: var(--muted); }
.legal strong { color: var(--ink); }
.legal__updated { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s-8); }

/* Anything still to be filled in is impossible to miss */
.fill {
  background: #fff3cd; color: #6b4e00; font-weight: 600;
  padding: 0.1em 0.4em; border: 1px dashed #d9a900; border-radius: 3px;
  font-size: 0.95em;
}
[data-lang-block][hidden] { display: none; }

/* --- Language chooser and switcher --------------------------------------- */
.lang-switch {
  display: inline-flex; margin-left: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--radius-pill);
  overflow: hidden;
}
.lang-switch button {
  min-height: 44px; padding: 0 0.85rem;
  background: transparent; border: 0; color: rgba(255, 255, 255, 0.78);
  font-family: var(--font); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-switch button:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--deep); }
@media (max-width: 900px) {
  .lang-switch { margin: var(--s-2) 0 0; align-self: flex-start; }
}

.lang-modal {
  position: fixed; inset: 0; z-index: var(--z-top);
  display: grid; place-items: center; padding: var(--gutter);
}
.lang-modal__scrim {
  position: absolute; inset: 0;
  background: rgba(4, 24, 43, 0.75);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lang-modal__card {
  position: relative; width: 100%; max-width: 24rem;
  background: var(--white); text-align: center;
  padding: var(--s-8) var(--s-6);
  box-shadow: 0 30px 90px rgba(4, 24, 43, 0.45);
}
.lang-modal__mark { width: 52px; height: auto; margin: 0 auto var(--s-4); }
.lang-modal h2 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.lang-modal p { color: var(--muted); font-size: var(--t-base); margin-bottom: var(--s-6); }
.lang-modal__btns { display: grid; gap: var(--s-3); }

/* --- Phones --------------------------------------------------------------
   The desktop rhythm is generous on purpose, but at 360-430px it turns the
   pages into a very long scroll. These tighten spacing and dense blocks
   without changing the design. */
@media (max-width: 680px) {
  /* The facts strip was four tall boxes; make it a compact list */
  .facts li {
    padding: var(--s-3) var(--s-2);
    font-size: var(--t-sm); line-height: 1.35;
    gap: 0.45rem;
  }

  .head { margin-bottom: var(--s-8); }
  .head .lede { font-size: var(--t-md); }
  .group + .group { margin-top: var(--s-12); }
  .group__head { margin-bottom: var(--s-4); }

  .plan { padding: var(--s-6) var(--s-4) var(--s-4); }
  .plan__desc { margin-bottom: var(--s-4); }
  .plan__list { margin-top: var(--s-4); padding-top: var(--s-4); gap: var(--s-2); }
  .plan__meta { margin-top: var(--s-4); padding-top: var(--s-3); }
  .plan .btn { margin-top: var(--s-4); }

  .row { padding-block: var(--s-6); }
  .steps li { padding-block: var(--s-4); }
  .faq summary { padding-block: var(--s-4); }
  .faq__a { padding-bottom: var(--s-4); }

  .notice { padding: var(--s-4); gap: var(--s-3); }
  .aside { padding: var(--s-6) var(--s-4); }

  .legal h2 { margin-top: var(--s-8); padding-top: var(--s-3); }
  .legal h3 { margin-top: var(--s-4); }

  .footer { padding-block: var(--s-12) var(--s-6); }
  .footer__grid { gap: var(--s-8); }
  .footer__base { margin-top: var(--s-8); }
  .footer img { width: 170px; }
}

/* --- Motion ------------------------------------------------------------- */
/* Anchor jumps ease by default. Lenis takes over when it loads and switches
   this off itself, so both paths behave. */
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Sticky nav clearance for anchor targets */
[id] { scroll-margin-top: 96px; }

/* Elements that animate in are hidden only when a script has committed to
   showing them again — see the inline guard in the page head, which also
   removes the class after 3s if nothing takes over. */
.js-motion [data-r] { opacity: 0; }
.js-motion .waterline::after,
.js-motion .waterline--center::before { transform: scaleX(0); transform-origin: left; }
.waterline::after, .waterline--center::before {
  transition: transform 900ms var(--ease);
}
.waterline--center::before { transform-origin: right; }
.waterline.drawn::after, .waterline.drawn::before { transform: scaleX(1); }

/* Parallax needs the photo to overhang the band it sits in */
.hero__media, .band__media { inset: -10% 0; }
.hero__media img, .band__media img { will-change: transform; }

/* Nav condenses once you leave the top of the page */
.nav { transition: box-shadow 260ms var(--ease); }
.nav__inner { transition: min-height 260ms var(--ease); }
.nav.tight { box-shadow: 0 1px 0 rgba(255,255,255,0.14), 0 6px 24px rgba(4,24,43,0.28); }
.nav.tight .nav__inner { min-height: 60px; }

.plan { transition: transform 260ms var(--ease); }
@media (hover: hover) { .plan:hover { transform: translateY(-4px); } }

@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; scroll-behavior: auto !important;
  }
  [data-r] { opacity: 1 !important; transform: none !important; }
  .waterline::after, .waterline--center::before { transform: none !important; }
}

@media print {
  .nav, .footer, .band { display: none !important; }
  body { color: #000; background: #fff; }
}
