/* Coverage Line, shared styles.
   Sections alternate navy, cream, navy, sand so long pages keep a rhythm. */

:root {
  /* Brand, sampled from coverage-line-logo.png */
  --night: #0f2238;
  --night-deep: #0b1a2c;
  --night-raised: #18304c;
  --amber: #c96a12;
  --amber-glow: #f0a25c;   /* amber text on navy */
  --amber-ink: #8f490a;    /* amber text on cream */
  --slate: #90969c;
  --green: #2f7d4f;
  --cream: #fbf6ef;
  --sand: #f1e6d7;
  --bubble: #e9e3db;
  --ink: #0f2238;
  --ink-soft: #46536a;
  --on-night: #fbf6ef;
  --on-night-soft: #c3cbd6;
  --rule-night: rgba(251, 246, 239, 0.14);
  --rule-day: rgba(15, 34, 56, 0.14);

  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale, mobile first */
  --step-0: 1.1875rem;                                /* 19px body */
  --step-1: 1.3125rem;                                /* lead, h3 */
  --step-2: clamp(1.75rem, 1.2rem + 2.6vw, 2.625rem); /* h2 */
  --step-3: clamp(2.25rem, 1.4rem + 4.4vw, 3.875rem); /* h1 */

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --measure: 36rem;
  --radius: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); font-weight: 900; line-height: 1.1; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.3; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
}

.prose { max-width: var(--measure); }
.lead { font-size: var(--step-1); line-height: 1.5; }

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  border-radius: 6px;
}
.skip:focus { transform: none; }

/* Placeholders stay loud so they get filled before launch */
.todo {
  background: #ffe9a8;
  color: #4a3500;
  padding: 0.05em 0.3em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Section backgrounds ---------- */

.bg-navy  { background: var(--night); color: var(--on-night); }
.bg-cream { background: var(--cream); color: var(--ink); }
.bg-sand  { background: var(--sand);  color: var(--ink); }

.bg-navy p { color: var(--on-night-soft); }
.bg-navy .lead { color: var(--on-night); }
.bg-navy a:not(.btn) { color: var(--amber-glow); }
.bg-cream a:not(.btn),
.bg-sand a:not(.btn) { color: var(--amber-ink); }
.bg-cream p:not(.lead),
.bg-sand p:not(.lead) { color: var(--ink-soft); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section__title { max-width: 30rem; margin-bottom: 2.25rem; }

/* Photos: a soft block shows until the image arrives */
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #2a3d58, #172a43);
}
.bg-cream .photo,
.bg-sand .photo { background: linear-gradient(160deg, #e6d6c2, #d9c3a8); }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn--main { background: var(--amber); color: #fff; }
.btn--main:hover { background: #b25c0d; }
.btn--second {
  color: var(--on-night);
  border: 2px solid rgba(251, 246, 239, 0.4);
  background: transparent;
}
.btn--second:hover { border-color: var(--on-night); }

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 34, 56, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--on-night);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding-block: 0.5rem;
}
.brand__mark { width: 2.25rem; height: auto; }
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.menu-toggle {
  font: 600 1.0625rem/1 var(--sans);
  color: var(--on-night);
  background: transparent;
  border: 1.5px solid var(--rule-night);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.site-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  padding: 0.5rem 0 1.25rem;
  border-top: 1px solid var(--rule-night);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  text-decoration: none;
  font-size: 1.1875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule-night);
}
.site-nav a:hover { color: var(--amber-glow); }
.site-nav__book { color: var(--amber-glow); font-weight: 700; }

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(ellipse 60% 55% at 85% 35%, rgba(41, 72, 112, 0.6), transparent 70%),
    var(--night);
}
.hero__grid { display: grid; gap: 3rem; }
.hero h1 { color: var(--on-night); max-width: 15ch; }
.hero__sub { font-size: var(--step-1); line-height: 1.5; max-width: 34rem; }
.hero__note { margin-top: 1.25rem; font-size: 1.0625rem; max-width: 30rem; }

/* Phone mockup with the 5 AM thread */
.phone {
  width: 100%;
  max-width: 22.5rem;
  margin-inline: auto;
  padding: 0.6rem;
  border-radius: 2.75rem;
  background: #050d18;
  box-shadow:
    0 0 0 1.5px #2b3d55,
    0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.phone__screen {
  border-radius: 2.25rem;
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
}
.phone__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid var(--rule-day);
}
.phone__app { font-family: var(--serif); font-weight: 700; font-size: 1rem; }
.phone__live {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber-ink);
  background: #fbe6d1;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.1rem 1rem 1.25rem;
}
.msg { max-width: 84%; }
.msg__meta {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6a7586;
  margin: 0 0.35rem 0.2rem;
  font-variant-numeric: tabular-nums;
}
.msg p {
  margin: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 1.1rem;
  font-size: 1rem;
  line-height: 1.38;
}
.msg--in p { background: var(--bubble); color: var(--ink); border-bottom-left-radius: 0.3rem; }
.msg--out { align-self: flex-end; text-align: right; }
.msg--out p { background: var(--night); color: var(--on-night); border-bottom-right-radius: 0.3rem; text-align: left; }
.msg--broadcast p { background: #24476f; }
.msg--done { align-self: stretch; max-width: none; text-align: center; }
.msg--done p {
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  border-radius: 0.9rem;
  padding: 0.8rem;
}

/* One orchestrated moment: the thread plays once on load */
@media (prefers-reduced-motion: no-preference) {
  .thread .msg {
    opacity: 0;
    transform: translateY(10px);
    animation: arrive 0.4s ease-out forwards;
  }
  .thread .msg:nth-child(1) { animation-delay: 0.3s; }
  .thread .msg:nth-child(2) { animation-delay: 0.9s; }
  .thread .msg:nth-child(3) { animation-delay: 1.5s; }
  .thread .msg:nth-child(4) { animation-delay: 2.3s; }
  .thread .msg:nth-child(5) { animation-delay: 2.9s; }
}
@keyframes arrive { to { opacity: 1; transform: none; } }

/* ---------- Split sections ---------- */

.split { display: grid; gap: 2.5rem; }
.split__media.photo { aspect-ratio: 4 / 3; }

/* ---------- Three kinds of calls ---------- */

.cards { display: grid; gap: 1.25rem; }
.card {
  position: relative;
  padding: 1.75rem 1.5rem 2rem;
  border-radius: var(--radius);
  background: var(--night-raised);
  border: 1px solid var(--rule-night);
}
.card h3 { color: var(--on-night); margin-bottom: 0.5rem; }
.card p { font-size: 1.0625rem; }
.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  fill: none;
  stroke: var(--amber-glow);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card--photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 30rem;
  background: #0b1a2c;
}
.card__bg {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 62%;
  object-fit: cover;
  object-position: 45% 68%;
}
.card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 26, 44, 0) 30%, #0b1a2c 62%);
}
.card__body {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.5rem 2rem;
}
.card--photo p { color: #dde3ea; }

/* ---------- See it work ---------- */

.films { display: grid; gap: 1.5rem; }
.film { margin: 0; }
.film video,
.film__play {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--night);
}
.film__play {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--rule-day);
}
.film__play img { width: 100%; height: 100%; object-fit: cover; }
.film__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.75rem;
  height: 4.75rem;
  margin: -2.375rem 0 0 -2.375rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 10px 30px -8px rgba(15, 34, 56, 0.6);
  transition: transform 0.15s ease;
}
.film__icon::after {
  content: "";
  position: absolute;
  left: 53%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.8rem 0 0.8rem 1.35rem;
  border-color: transparent transparent transparent #fff;
}
.film__play:hover .film__icon { transform: scale(1.06); }
.film figcaption {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.125rem;
}

/* ---------- Morning report ---------- */

.morning { position: relative; }
.morning .photo { aspect-ratio: 4 / 3; }
.report {
  position: relative;
  margin: -3.5rem 1rem 0;
  padding: 1.1rem 1.25rem 1.25rem;
  border-radius: 1rem;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55);
}
.report__head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule-day);
}
.report__head span:last-child { color: var(--ink-soft); font-weight: 600; }
.report__list { list-style: none; margin: 0; padding: 0; }
.report__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  font-size: 1.0625rem;
}
.dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; flex: none; }
.dot--amber { background: var(--amber); }
.dot--green { background: var(--green); }
.dot--slate { background: var(--slate); }

/* ---------- Trial ---------- */

.trial { position: relative; overflow: hidden; }
.trial__photo { height: 16rem; }
.trial__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.trial__grid { padding-block: 0 var(--section); }
.offer {
  position: relative;
  max-width: 34rem;
  margin-top: -3rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(15, 34, 56, 0.35), 0 0 0 1px var(--rule-day);
}
.checks { list-style: none; margin: 0 0 2rem; padding: 0; }
.checks li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2.25rem;
  border-bottom: 1px solid var(--rule-day);
}
.checks li:first-child { border-top: 1px solid var(--rule-day); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 2.9 6-6.2' fill='none' stroke='%23fbf6ef' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat,
    var(--amber);
}
.offer .btn { width: 100%; }

/* ---------- Founder ---------- */

.founder { display: grid; gap: 2rem; align-items: center; }
.founder__photo { margin: 0; display: flex; align-items: center; gap: 1.25rem; }
.initials {
  flex: none;
  display: grid;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--night);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 2.25rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 4px var(--night), 0 0 0 6px var(--amber);
}
.founder__photo figcaption { font-size: 1.0625rem; color: var(--on-night-soft); max-width: 12rem; }

/* ---------- Questions ---------- */

.faq { display: grid; gap: 1rem; }
.qa { margin: 0; }
.qa__item { padding-block: 1.4rem; border-top: 1px solid var(--rule-day); }
.qa__item:last-child { border-bottom: 1px solid var(--rule-day); }
.qa dt {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.qa dd { margin: 0; color: var(--ink-soft); }

/* ---------- Closing ask ---------- */

.close {
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(240, 162, 92, 0.4), transparent 70%),
    var(--cream);
}
.close__inner { max-width: 40rem; margin-inline: auto; text-align: center; }
.close .lead { margin-bottom: 2rem; color: var(--ink); }

/* ---------- Footer ---------- */

.site-foot {
  background: var(--night);
  color: var(--on-night-soft);
  font-size: 1rem;
  padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px));
}
.site-foot__grid { display: grid; gap: 1.5rem; }
.site-foot__brand {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--on-night);
  margin-bottom: 0.5rem;
}
.site-foot a { color: var(--on-night); }
.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: flex-start;
}
.site-foot__links a { padding-block: 0.4rem; }

/* ---------- Wider screens ---------- */

@media (min-width: 40em) {
  .actions { flex-direction: row; flex-wrap: wrap; }
  .films { grid-template-columns: 1fr 1fr; }
  .offer .btn { width: auto; }
}

@media (min-width: 60em) {
  .menu-toggle { display: none; }
  .site-head__row { flex-wrap: nowrap; }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    flex-direction: row;
    flex-basis: auto;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    border: 0;
  }
  .site-nav a { font-size: 1.0625rem; padding: 0.5rem 0; border: 0; }

  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
  }
  .phone { margin-inline: auto 0; }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 4rem;
  }
  .split__text { align-self: center; }
  .split__media.photo { aspect-ratio: auto; min-height: 100%; }
  .split--reverse .split__media { order: -1; }
  .morning { align-self: center; }
  .report {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    width: 22rem;
    margin: 0;
  }

  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card--photo { min-height: 100%; }
  .card--photo .card__body { padding-top: 14rem; }

  .films { gap: 2.5rem; }

  .trial { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .trial__photo {
    position: absolute;
    inset: 0 50% 0 0;
    height: auto;
  }
  .trial__photo img {
    -webkit-mask-image: linear-gradient(to right, #000 35%, transparent 98%);
            mask-image: linear-gradient(to right, #000 35%, transparent 98%);
  }
  .trial__grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-block: var(--section);
  }
  .offer { grid-column: 2; margin: 0 0 0 2rem; padding: 2.5rem; }

  .founder { grid-template-columns: 18rem minmax(0, 1fr); gap: 4rem; }
  .founder__photo { flex-direction: column; align-items: flex-start; }
  .initials { width: 10rem; height: 10rem; font-size: 3.5rem; }

  .faq { grid-template-columns: 20rem minmax(0, 1fr); gap: 4rem; align-items: start; }

  .site-foot__grid { grid-template-columns: 1fr auto; align-items: start; }
}
