/* MaxHeight – maxheight.uk
   Colours from the app: sign red, near-black, white, dark panels (#3A3A3A). Font: Inter. No italics. */

:root {
  --red: #D4111A;
  --red-dark: #A90D14;
  --ink: #111111;
  --text: #111111;
  --muted: #444444;
  --dark: #3A3A3A;
  --darker: #2C2C2C;
  --paper: #FFFFFF;
  --soft: #F4F4F2;
  --line: #E2E2E0;
  --alert-red: #D7261E;
  --alert-orange: #E85A0C;
  --alert-purple: #8E2AB8;
  --alert-blue: #1565C0;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 72rem;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.075rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; }
em, i { font-style: normal; }   /* no italics anywhere */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.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: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 50; border-radius: 8px; }
.skip:focus { left: .5rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Red-and-white hazard stripe, as in the app */
.stripe {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, #fff 14px 28px);
}

/* ---------- Header ---------- */
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.head-nav { display: flex; align-items: center; gap: .4rem 1.4rem; }
.head-nav a { font-weight: 600; text-decoration: none; }
.head-nav a:not(.btn):hover { color: var(--red); }
@media (max-width: 760px) { .head-nav .nav-text { display: none; } .brand img { height: 34px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--red);
  background: var(--red); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-small { padding: .6rem 1.1rem; font-size: .95rem; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: currentColor; }

/* Store buttons – plain text buttons until the official badges are added */
.stores { display: flex; flex-wrap: wrap; gap: .75rem; }
.store {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .65rem 1.25rem .65rem 1rem; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none; border: 2px solid var(--ink);
  min-width: 11.5rem;
}
.store:hover { background: #000; border-color: #000; }
.store svg { width: 1.7rem; height: 1.7rem; flex: none; }
.store small { display: block; font-size: .72rem; font-weight: 500; opacity: .85; line-height: 1.1; }
.store strong { display: block; font-size: 1.1rem; font-weight: 800; line-height: 1.15; }
.on-dark .store { background: #fff; color: var(--ink); border-color: #fff; }
.on-dark .store:hover { background: #ececec; border-color: #ececec; }
.store-note { margin: .8rem 0 0; font-weight: 600; font-size: .98rem; }

/* ---------- Hero ---------- */
.hero { background: var(--dark); color: #fff; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.eyebrow { margin: 0 0 1rem; color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 2.2rem; height: 4px; background: var(--red); }
.hero h1 { font-size: clamp(2.3rem, 6.6vw, 5rem); font-weight: 800; margin: 0; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 .fit-line { display: block; white-space: nowrap; }
.hero h1 .fit-word { display: inline-block; color: #fff; position: relative; }
.hero h1 .fit-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; background: var(--red); }
.hero-lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); margin: 1.5rem 0 0; max-width: 34rem; color: #EDEDED; }
.hero .stores { margin-top: 2rem; }
.hero .store-note { color: #D8D8D8; }

/* Word cycle in the heading */
.fit-word.is-out { animation: fitOut .22s ease-in forwards; }
.fit-word.is-in { animation: fitIn .32s cubic-bezier(.2,.8,.2,1.1) both; }
@keyframes fitOut { to { opacity: 0; transform: translateY(-.35em); } }
@keyframes fitIn { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fit-word.is-out { animation: fadeOut .2s linear forwards; }
  .fit-word.is-in { animation: fadeIn .25s linear both; }
}
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }

.hero-art { position: relative; display: grid; justify-items: center; }
.hero-art .sign { position: absolute; width: 34%; max-width: 160px; bottom: 8%; left: 0; z-index: 3; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }

/* ---------- Phone frame ---------- */
.phone {
  margin: 0; width: min(100%, 300px); aspect-ratio: 540 / 1169;
  border-radius: 42px; padding: 9px; background: #151515;
  box-shadow: 0 0 0 2px #4a4a4a inset, 0 24px 50px rgba(0,0,0,.35);
  position: relative;
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; display: block; background: #000; }
.phone-sm { width: min(100%, 230px); border-radius: 34px; padding: 7px; }
.phone-sm img { border-radius: 28px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-soft { background: var(--soft); }
.section-dark { background: var(--darker); color: #fff; }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; margin: 0 0 .8rem; }
.section-head h2::after { content: ""; display: block; width: 3.5rem; height: 5px; background: var(--red); margin-top: 1rem; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.15rem; }
.section-dark .section-head p { color: #D6D6D6; }

/* Who it's for */
.uses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.uses li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem 1.5rem 1.6rem; }
.uses img { width: auto; height: 56px; display: block; margin-bottom: 1rem; }
.uses h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 .4rem; }
.uses p { margin: 0; color: var(--muted); }
.uses-more { margin: 1.75rem 0 0; font-weight: 600; }
@media (max-width: 900px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }

/* Alert colours */
.alerts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.alerts figure { margin: 0; display: grid; justify-items: center; gap: 1rem; text-align: center; }
.alerts figcaption strong { display: block; font-size: 1.15rem; font-weight: 800; }
.alerts figcaption span { color: #D6D6D6; font-size: .98rem; }
.dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .35em; vertical-align: -.05em; border: 2px solid #fff; }
.dot.red { background: var(--alert-red); } .dot.purple { background: var(--alert-purple); }
.dot.orange { background: var(--alert-orange); } .dot.blue { background: var(--alert-blue); }
@media (max-width: 900px) { .alerts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }

/* Features */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.features li { border-top: 4px solid var(--red); padding-top: 1rem; }
.feature-icon { display: block; width: 3rem; height: 3rem; padding: .7rem; border-radius: 12px; background: var(--red); color: #fff; margin-bottom: 1rem; }
.features h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 .4rem; }
.features p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); counter-reset: step; }
.steps li { counter-increment: step; display: grid; align-content: start; gap: 1rem; }
.steps .shot { background: #fff; border-radius: 22px; border: 1px solid var(--line); display: grid; place-items: center; padding: 1.25rem 1rem; min-height: 100%; }
.steps h3 { font-size: 1.25rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: .6rem; }
.steps h3::before { content: counter(step); flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Trip planner / split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split .phones { display: flex; justify-content: center; align-items: flex-start; gap: 1.25rem; }
.split .phones .phone:nth-child(2) { margin-top: 3rem; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.ticks li { padding-left: 2rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: .65rem; border-left: 4px solid var(--red); border-bottom: 4px solid var(--red); transform: rotate(-45deg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .phones { order: 2; } }

/* Video */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.sound-btn { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem .55rem .8rem; border-radius: 999px; border: 2px solid #fff; background: transparent; color: #fff; font: 700 1rem var(--font); cursor: pointer; }
.sound-btn svg { width: 1.3rem; height: 1.3rem; }
.sound-btn .sound-on, .sound-btn.is-on .sound-off { display: none; }
.sound-btn.is-on .sound-on { display: inline; }
.sound-btn[hidden] { display: none; }
@media (max-width: 800px) { .demo { grid-template-columns: 1fr; justify-items: center; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.plan { border: 2px solid var(--line); border-radius: 22px; padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; }
.plan.paid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(212,17,26,.08); }
.plan h3 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.plan .price { font-size: 1.1rem; font-weight: 700; color: var(--red); margin: .35rem 0 0; }
.plan .ticks { margin-top: 1.25rem; }
.plan-note { margin: 1.5rem 0 0; color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQs */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 700; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.6rem; font-weight: 600; color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); max-width: var(--measure); }

/* Get the app band */
.get { background: var(--red); color: #fff; }
.get .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.get h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin: 0 0 .4rem; }
.get p { margin: 0; font-size: 1.15rem; }
.get .store { background: #fff; color: var(--ink); border-color: #fff; }
.get .store:hover { background: #f1f1f1; }
@media (max-width: 800px) { .get .wrap { grid-template-columns: 1fr; } }

.small-print { color: var(--muted); font-size: .92rem; margin-top: 2rem; max-width: var(--measure); }
.section-dark .small-print { color: #BDBDBD; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #EDEDED; padding-block: 2.75rem; font-size: .98rem; }
.site-foot .wrap { display: grid; gap: 1.25rem; }
.site-foot .foot-logo img { height: 36px; width: auto; display: block; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.site-foot a { color: #fff; text-underline-offset: 3px; }
.site-foot p { margin: 0; color: #BDBDBD; }

/* ---------- Cookie banner ---------- */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40;
  max-width: 34rem; margin-left: auto;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 1.1rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.3); border-top: 5px solid var(--red);
}
.consent[hidden] { display: none; }
.consent-text { margin: 0 0 .9rem; }
.consent-actions { display: flex; gap: .6rem; }
.consent-btn { font: 700 1rem var(--font); padding: .6rem 1.2rem; border-radius: 999px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.consent-btn.primary { background: var(--red); border-color: var(--red); }

/* ---------- Mobile hero ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: 2; }
  .hero-art .phone { width: min(80%, 270px); }
  .hero-art .sign { display: none; }
}
