/* Spexo website. Colors and typeface are set in CLAUDE.md. */

@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #15222e;
  --teal: #0e7c74;
  --teal-dark: #0a635d;
  --off-white: #f5f3ee;
  --tint: #e7f2f0;
  --white: #ffffff;
  --ink-soft: #46535e;
  --line: #dcd8cf;
  --on-navy-soft: #b6c4cd;
  --mint: #6fd0c6;
  --error: #a3261f;
  --error-on-navy: #ffb4a8;
  --wrap: 1120px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--navy);
  font-family: Figtree, -apple-system, system-ui, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2 {
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.7rem);
  font-weight: 720;
  max-width: 22ch;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--teal);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.band-navy :focus-visible {
  outline-color: var(--mint);
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  left: 8px;
}

/* Top bar */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.logo img {
  height: 30px;
  width: auto;
}

.top-nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
}

.top-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 550;
  font-size: 1rem;
  white-space: nowrap;
}

.top-nav a:hover {
  color: var(--teal);
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--teal-dark);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-light {
  background: var(--off-white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--white);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.link-arrow {
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.link-arrow::after {
  content: ' \2192';
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Phone frame around a product screen */

/* The bezel is drawn as a ring outside the box, so the screen keeps its exact shape and nothing is cropped. */
.phone {
  --bezel: 9px;
  width: calc(100% - 2 * var(--bezel));
  max-width: 290px;
  margin: var(--bezel);
  aspect-ratio: 1170 / 2532;
  border-radius: 36px;
  overflow: hidden;
  background: var(--off-white);
  box-shadow:
    0 0 0 var(--bezel) #0b141b,
    0 0 0 calc(var(--bezel) + 1.5px) #2a3b47,
    0 30px 70px rgba(21, 34, 46, 0.28);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Sections */

.band {
  padding: clamp(64px, 9vw, 112px) 0;
}

.band-navy {
  background: var(--navy);
  color: var(--off-white);
}

.band-tint {
  background: var(--tint);
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.band-navy .eyebrow {
  color: var(--mint);
}

.intro {
  margin-top: 18px;
  font-size: 1.2rem;
  max-width: 60ch;
  color: var(--ink-soft);
}

.band-navy .intro {
  color: var(--on-navy-soft);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

/* 1. Hero */

.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.lead {
  margin-top: 22px;
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  line-height: 1.45;
  max-width: 36ch;
  color: var(--ink-soft);
}

.lead-2 {
  margin-top: 16px;
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 40ch;
  color: var(--navy);
  font-weight: 550;
}

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.status {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.hero-phone {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-phone::before {
  content: '';
  position: absolute;
  inset: 8% -10%;
  background: radial-gradient(closest-side, rgba(14, 124, 116, 0.2), rgba(14, 124, 116, 0));
  z-index: 0;
}

.hero-phone .phone {
  position: relative;
  z-index: 1;
  max-width: 300px;
}

/* 2. The problem */

.problems {
  margin-top: 48px;
}

.problems > div {
  border-top: 2px solid var(--teal);
  padding-top: 18px;
}

.problems p {
  margin-top: 10px;
  color: var(--on-navy-soft);
}

.closing {
  margin-top: 48px;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 620;
  line-height: 1.35;
  max-width: 34ch;
}

/* 3. How it works */

.caps {
  margin-top: 44px;
}

.caps > div {
  border-top: 2px solid var(--teal);
  padding-top: 16px;
}

.cap-n {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 8px;
}

.caps p:not(.cap-n) {
  margin-top: 10px;
  color: var(--ink-soft);
}

.inan {
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 24px;
  background: var(--tint);
}

.inan-title {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: -0.01em;
}

.inan-grid {
  margin-top: 28px;
  align-items: start;
}

.inan-text {
  margin-top: 4px;
  color: var(--ink-soft);
}

.inan-col .said {
  margin-top: 4px;
}

.inan-col .step-shots {
  margin-top: 22px;
}

.inan .caption {
  margin-top: 28px;
}

.narrow .big {
  max-width: 58ch;
}

.expand {
  margin-top: 36px;
  font-size: 1.15rem;
  max-width: 52ch;
}

.step {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: clamp(56px, 8vw, 96px);
}

.step-when {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--tint);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.step-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

.step-copy p {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 48ch;
}

.said {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.said li {
  width: fit-content;
  padding: 8px 16px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--navy);
  font-weight: 600;
}

.step-shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

.step-shots.pair .phone {
  --bezel: 7px;
  max-width: 220px;
  border-radius: 28px;
}

.inan-col .phone {
  max-width: 240px;
}

.inan-col .pair .phone {
  --bezel: 6px;
  max-width: 46%;
  border-radius: 22px;
}

.step-shots.pair .phone:nth-child(2) {
  margin-top: 36px;
}

.caption {
  margin-top: clamp(40px, 6vw, 64px);
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}

/* 4. The phone */

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.big {
  margin-top: 20px;
  font-size: 1.2rem;
  max-width: 50ch;
}

.split-phone {
  display: flex;
  justify-content: center;
}

.split-phone .phone {
  max-width: 270px;
}

/* 5. Trust, 7. Who it is for */

.cards {
  margin-top: 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.pilot {
  margin-top: 16px;
  font-size: 1.15rem;
  font-weight: 550;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* 6. Where we are */

.status-lists {
  margin-top: 40px;
}

.list-box {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
}

.ticks {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--off-white);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--mint);
  border-bottom: 2.5px solid var(--mint);
  transform: rotate(-45deg);
}

.next .ticks li::before {
  width: 10px;
  height: 10px;
  top: 0.45em;
  left: 4px;
  border: 2px solid var(--on-navy-soft);
  border-radius: 50%;
  transform: none;
}

.next .ticks li {
  color: var(--on-navy-soft);
}

/* 8. The film */

.film {
  margin-top: 36px;
  position: relative;
  border-radius: 24px;
  background: var(--navy);
  color: var(--off-white);
  overflow: hidden;
  display: grid;
  gap: 8px;
  padding: clamp(16px, 2.5vw, 28px);
}

.film-video {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 14px;
  background: #0b141b;
}

.film-after {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 14px 6px 4px;
}

.film-note {
  color: var(--on-navy-soft);
}

.film::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -40%;
  width: 70%;
  height: 180%;
  background: radial-gradient(closest-side, rgba(14, 124, 116, 0.4), rgba(14, 124, 116, 0));
}

.film-soon {
  position: relative;
  padding-bottom: clamp(28px, 5vw, 56px);
}

.film-text {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  font-weight: 600;
  max-width: 26ch;
  margin-bottom: 26px;
}

.film-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(8px, 2vw, 16px);
  padding: 8px 0 28px;
  overflow: hidden;
}

.film-phones .phone {
  --bezel: 6px;
  flex: none;
  width: 26%;
  max-width: 180px;
  border-radius: 22px;
  box-shadow:
    0 0 0 var(--bezel) #0b141b,
    0 0 0 calc(var(--bezel) + 1.5px) #33485a,
    0 20px 50px rgba(0, 0, 0, 0.45);
}

.film-phones .phone:nth-child(2) {
  margin-top: 26px;
}

.film video {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* 9. Team */

.people {
  margin-top: 44px;
}

.person {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: start;
}

.person img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.role {
  color: var(--teal);
  font-weight: 650;
  margin-top: 2px;
}

.person p:not(.role) {
  margin-top: 10px;
  color: var(--ink-soft);
}

.based {
  margin-top: 40px;
  color: var(--ink-soft);
}

/* 10. Talk to the founders */

.talk-grid {
  display: grid;
  gap: 36px;
}

.form {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  font-weight: 620;
  margin-bottom: 6px;
}

.optional {
  font-weight: 400;
  color: var(--on-navy-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font: inherit;
  font-size: 1.05rem;
}

.field select option {
  color: var(--navy);
  background: var(--white);
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 1px;
  border-color: var(--mint);
}

.field [aria-invalid='true'] {
  border-color: var(--error-on-navy);
}

.hint {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--on-navy-soft);
}

.error {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--error-on-navy);
}

.error:empty,
.form-note:empty {
  display: none;
}

.extra {
  display: none;
}

.form .btn {
  justify-self: start;
  min-width: 160px;
}

.form-note {
  color: var(--error-on-navy);
}

.form-note a {
  color: var(--white);
}

.thanks {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
}

.thanks h3 {
  font-size: 1.6rem;
}

.thanks p {
  margin-top: 8px;
  color: var(--on-navy-soft);
}

/* Privacy page */

.prose {
  max-width: 680px;
  margin-inline: auto;
}

.prose h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  max-width: none;
}

.prose p {
  margin-top: 12px;
  color: var(--ink-soft);
}

.placeholder {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--navy) !important;
  font-weight: 600;
}

/* Footer */

.foot {
  background: #0f1a23;
  color: var(--on-navy-soft);
  padding: 36px 0 44px;
  font-size: 0.95rem;
}

.foot-row {
  display: grid;
  gap: 18px;
}

.foot img {
  height: 26px;
  width: auto;
}

.foot p + p {
  margin-top: 4px;
}

.foot a {
  color: var(--off-white);
}

/* Narrow screens: the links fold away, the button stays */

@media (max-width: 859px) {
  .top-nav {
    display: none;
  }

  .top-row {
    justify-content: space-between;
  }
}

@media (max-width: 719px) {
  .step-shots.pair .phone {
    max-width: 42%;
  }
}

@media (max-width: 380px) {
  .logo img {
    height: 26px;
  }

  .btn-small {
    padding: 0 14px;
    font-size: 0.9rem;
  }
}

/* Tablets and up */

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }

  .film-phones {
    height: 300px;
    padding-bottom: 0;
  }

  .foot-row {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 32px;
  }

  .foot-row > div {
    text-align: right;
  }
}

/* Laptops and up */

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 64px;
  }

  .hero-phone .phone {
    max-width: 330px;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .step {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .step.flip .step-copy {
    order: 2;
  }

  .split {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 64px;
  }

  .talk-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 72px;
    align-items: start;
  }

  .person {
    grid-template-columns: 120px 1fr;
    gap: 24px;
  }

  .person img {
    width: 120px;
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
