@font-face {
  font-family: "Bermia";
  src: url("fonts/Bermia-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --cream: #FAF6E8;
  --navy: #112B39;
  --blue: #0B4567;
  --coral: #F15F56;
  --lavender: #A8BBE0;
  --lavender-soft: #E4EAF5;
  --muted: #4F626B;
  --hairline: #E6E2D3;
  --danger: #A93A33;
  --radius: 16px;
  color-scheme: light;
}

* { 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;
  overflow-x: clip;
  background: var(--cream);
  color: var(--navy);
  font: 400 18px/1.55 "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand img { margin: -6px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 17px; }
.nav-cta {
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--navy);
  transition: background .15s, color .15s;
}
.nav-cta:hover { background: var(--navy); color: var(--cream); }

/* Type */
h1, h2, .big {
  font-family: "Bermia", "DM Sans", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  margin: 0;
}
h1 { font-size: clamp(52px, 8.4vw, 104px); }
h1 span { display: block; }
.blue { color: var(--blue); }
h2 { font-size: clamp(40px, 5.6vw, 68px); }
h3 { font-size: 21px; line-height: 1.25; margin: 22px 0 6px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 30em; margin: 22px 0 0; }

/* Hero */
.hero {
  display: grid; gap: 48px; align-items: center;
  padding: 40px 0 88px;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1fr; padding: 56px 0 120px; }
}

/* Form */
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; max-width: 520px; }
.signup input[type=email] {
  flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 18px;
  font: inherit; font-size: 17px; color: var(--navy);
  background: #fff; border: 1.5px solid #87939A; border-radius: var(--radius);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.signup input[type=email]::placeholder { color: #8A979D; }
.signup input[type=email]:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 69, 103, .14); }
.signup input[aria-invalid=true] { border-color: var(--danger); }
.signup button {
  flex: 0 0 auto; height: 56px; padding: 0 24px;
  font: inherit; font-weight: 700; font-size: 17px;
  color: var(--cream); background: var(--navy);
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: transform .12s, background .15s;
}
.signup button:hover { background: var(--blue); }
.signup button:active { transform: scale(.97); }
.signup button[disabled] { opacity: .6; cursor: default; }
.signup .msg { flex-basis: 100%; margin: 4px 0 0; font-size: 15px; font-weight: 600; min-height: 1.4em; }
.signup .msg.error { color: var(--danger); }
.signup.done input, .signup.done button { display: none; }
.signup.done .msg {
  font-size: 18px; color: var(--navy); background: #fff;
  border: 1.5px solid var(--hairline); border-radius: var(--radius);
  padding: 16px 18px; margin: 0;
}
.signup.center { margin-inline: auto; justify-content: center; }
@media (max-width: 520px) { .signup button { flex-basis: 100%; } }

/* Phones */
.hero-art { position: relative; height: clamp(480px, 62vw, 640px); }
.phone {
  position: absolute; width: clamp(220px, 27vw, 300px); aspect-ratio: 1206 / 2622;
  border-radius: clamp(34px, 4.4vw, 48px); padding: 9px; background: var(--navy);
  box-shadow: 0 30px 60px -20px rgba(17, 43, 57, .45), 0 2px 0 rgba(255,255,255,.08) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(26px, 3.6vw, 40px); }
.phone.front { left: 50%; top: 0; transform: translateX(-62%) rotate(-3deg); z-index: 2; }
.phone.back { left: 50%; top: 9%; transform: translateX(2%) rotate(5deg); opacity: .96; }
@media (max-width: 899px) {
  .hero-art { height: 480px; max-width: 460px; width: 100%; margin-inline: auto; }
  .phone { width: 210px; }
  .phone.front { transform: translateX(-78%) rotate(-3deg); }
  .phone.back { transform: translateX(-12%) rotate(5deg); }
}

/* How it works */
.how { background: var(--navy); color: var(--cream); padding: 96px 0 104px; }
.how h2 { color: var(--cream); }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 48px; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (max-width: 699px) { .steps li { max-width: 420px; } }
.steps li { counter-increment: s; }
.steps h3::before {
  content: counter(s); display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-right: 10px; border-radius: 50%;
  background: var(--coral); color: var(--cream); font-size: 15px; vertical-align: 2px;
}
.steps p { margin: 0; color: rgba(250, 246, 232, .74); font-size: 17px; }
.shot {
  background: var(--blue); border-radius: 24px; overflow: hidden;
  aspect-ratio: 4 / 4.2; display: grid; place-items: start center; padding: 28px 28px 0;
}
.mini {
  position: relative; width: 76%; overflow: hidden;
  border-radius: 30px 30px 0 0; border: 7px solid var(--navy); border-bottom: 0;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.4);
}
.mini img { width: 100%; }
/* Dynamic Island: about a third of the screen wide, just below the top edge. */
.mini::after, .phone::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 31%; aspect-ratio: 126 / 37; border-radius: 999px; background: #000;
}
.mini::after { top: 1.3%; }
.phone::after { top: calc(9px + 1.1%); }

/* Statement */
.statement { background: var(--coral); color: var(--cream); padding: 96px 0; overflow: hidden; }
.statement-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.big { font-size: clamp(44px, 7.4vw, 96px); max-width: 11ch; }
.big span { color: var(--navy); }
.book { width: clamp(120px, 20vw, 240px); flex: none; filter: brightness(0) invert(96%) sepia(8%) saturate(390%) hue-rotate(5deg); }
@media (max-width: 640px) { .book { display: none; } }

/* Closing */
.close { text-align: center; padding: 104px 0 112px; }
.close .stamp { margin: 0 auto 28px; }
.close .lede { margin-inline: auto; }

/* Footer */
.foot { background: var(--navy); color: rgba(250, 246, 232, .8); padding: 40px 0; font-size: 15px; }
.foot-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-inner img { width: 180px; height: auto; margin: -56px -24px; }
.foot-inner p { margin: 0; flex: 1; }
.foot-inner a { color: var(--cream); font-weight: 600; }
