/* Swervy website. Matches the Figma landing design "A" (assets/brand/website-concepts/landing-A.png):
   colors sampled from it, Figtree (closest free match to its Gilroy-style type), and its
   phone images cut out of the design. */

/* Figtree (SIL Open Font License 1.1), served from this site so visitors never connect to Google. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #0c57f0;
  --blue-text: #2b6bef;
  --blue-band: #0851ed;
  --navy: #081331;
  --body: #2a3142;
  --muted: #5d6576;
  --faint: #8d95a5;
  --line: #e4e9f2;
  --hero-1: #f4f9ff;
  --hero-2: #eaf3fe;
  --blob: #d9e8fd;
  --section: #f2f8fe;
  --pill: #edf4ff;
  --pill-tag: #dbe8ff;
  --orange-1: #febb59;
  --orange-2: #fda824;
  --ok: #16a34a;
  --error: #dc2626;
  --wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-text);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus {
  left: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 14px;
  padding: 14px 26px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(12, 87, 240, 0.25);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:hover {
  box-shadow: 0 8px 20px rgba(12, 87, 240, 0.32);
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}
.btn-pill {
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 15.5px;
}
.btn-orange {
  background: linear-gradient(90deg, var(--orange-1), var(--orange-2));
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(253, 168, 36, 0.35);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.6px;
}
.brand img {
  height: 50px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav a:not(.btn) {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 16.5px;
}
.nav a:not(.btn):hover {
  color: var(--blue);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--hero-1) 0%, var(--hero-2) 100%);
  /* clip, not hidden: a hidden box can still be scrolled by a link jump or a focused input,
     which shifted the hero and left its top cut off. "hidden" stays as the fallback. */
  overflow: hidden;
  overflow: clip;
}
.hero::before {
  /* the soft blue shape behind the phones */
  content: '';
  position: absolute;
  right: -260px;
  top: 60px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: var(--blob);
  opacity: 0.7;
}
.hero .wrap {
  position: relative;
  min-height: 667px;
  padding-top: 64px;
  padding-bottom: 56px;
}
.hero .wrap > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--blue-text);
  font-weight: 700;
  font-size: 16px;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(44px, 4.7vw, 60px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -1px;
}
.hero h1 .line {
  display: block;
}
.hero h1 .line-blue {
  color: var(--blue-text);
}

.lede {
  margin: 22px 0 30px;
  max-width: 450px;
  font-size: 20.5px;
  line-height: 1.6;
  color: #1e2638;
}

/* Waitlist form */
.waitlist {
  background: #fff;
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 14px 34px rgba(20, 60, 140, 0.1);
  max-width: 600px;
}
.waitlist .fields {
  display: flex;
  gap: 10px;
}
.field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}
.field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--navy);
  pointer-events: none;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 12px 13px 42px;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  padding-right: 34px;
  cursor: pointer;
}
.field.select::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.waitlist .btn {
  flex: none;
  padding-left: 22px;
  padding-right: 22px;
}

.form-msg {
  margin: 10px 4px 0;
  font-size: 15px;
  font-weight: 700;
}
.form-msg.error {
  color: var(--error);
}
.form-done {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
}
.form-done .check {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ok);
  display: grid;
  place-items: center;
}
.form-done .check svg {
  width: 22px;
  height: 22px;
  color: #fff;
}
.form-done strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
}
.form-done span {
  font-size: 14.5px;
  color: var(--muted);
}

/* Honeypot: hidden from people, bots fill it in. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  top: 38px;
  right: 18px;
  width: 535px;
}
.hero-art img {
  width: 100%;
  filter: drop-shadow(0 28px 34px rgba(16, 44, 110, 0.22)) drop-shadow(0 6px 10px rgba(16, 44, 110, 0.12));
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.sparkle {
  position: absolute;
  width: 54px;
  height: auto;
}
.hero-art .sparkle {
  left: -86px;
  top: 128px;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
}

/* ---------- Everything you need to pass ---------- */

.features {
  background: var(--section);
  border-top: 1px solid var(--line);
  padding: 44px 0 64px;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 58px;
}
.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 3.5vw, 45px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1px;
}
.section-head p {
  margin: 14px auto 0;
  max-width: 470px;
  font-size: 19px;
  color: var(--body);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  margin-right: -40px;
}
.feature img {
  width: 76px;
  height: auto;
  margin: 0 0 16px -4px;
}
.feature h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.feature p {
  margin: 0;
  max-width: 262px;
  font-size: 17px;
  line-height: 1.68;
  color: #1e2638;
}

/* ---------- See it in action ---------- */

.action {
  padding: 50px 0 52px;
}
.action .wrap {
  max-width: 1240px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.action .shots {
  margin-top: 38px;
}
.action h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.9px;
}
.action .sub {
  margin: 6px 0 0;
  font-size: 19.5px;
  color: var(--navy);
  font-weight: 500;
}
.action .body {
  margin: 20px 0 0;
  max-width: 300px;
  font-size: 15.5px;
  color: var(--body);
}
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 196px));
  gap: 22px;
  justify-content: end;
}
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.shot img {
  width: 100%;
  max-width: 178px;
  filter: drop-shadow(0 18px 22px rgba(16, 44, 110, 0.16)) drop-shadow(0 3px 6px rgba(16, 44, 110, 0.1));
}
.shot figcaption {
  margin-top: auto;
  width: 100%;
  text-align: center;
  background: var(--pill);
  border-radius: 16px;
  padding: 12px 8px 14px;
}
.shot figcaption strong {
  display: inline-block;
  color: var(--blue-text);
  background: var(--pill-tag);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13.5px;
  font-weight: 800;
}
.shot figcaption span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Closing band ---------- */

.band {
  padding: 0 0 0;
}
.band .wrap {
  max-width: none;
  padding: 0 27px;
}
.band-inner {
  position: relative;
  overflow: hidden;
  overflow: clip; /* see .hero */
  background: var(--blue-band);
  border-radius: 26px;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px 356px;
  gap: 16px;
  align-items: center;
  min-height: 266px;
  padding: 22px 41px 22px 44px;
}
.band-inner::before {
  /* soft lighter shapes in the band, like the design */
  content: '';
  position: absolute;
  right: -60px;
  top: -120px;
  width: 360px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.band-inner::after {
  content: '';
  position: absolute;
  left: 38%;
  bottom: -160px;
  width: 520px;
  height: 260px;
  border-radius: 50%;
  background: rgba(0, 20, 120, 0.12);
}
.band-inner > * {
  position: relative;
  z-index: 1;
}
.band h2 {
  margin: 0;
  font-size: clamp(28px, 2.9vw, 37px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.8px;
}
.band p {
  margin: 16px 0 0;
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 26em;
}
.band-phone {
  position: relative;
  align-self: stretch;
  margin: -22px 0;
  overflow: hidden;
}
.band-phone::before {
  /* the darker rounded square behind the phone, as in the design */
  content: '';
  position: absolute;
  left: 50%;
  top: 30px;
  bottom: -30px;
  width: 190px;
  transform: translateX(-50%);
  border-radius: 28px;
  background: rgba(0, 24, 120, 0.22);
}
.band-phone img {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 150px;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 22px rgba(0, 10, 60, 0.35));
}
.band-phone .sparkle {
  width: 36px;
  top: 96px;
}
.band-phone .sparkle.left {
  left: 8px;
}
.band-phone .sparkle.right {
  right: 8px;
}
.band .waitlist {
  max-width: none;
  padding: 16px 18px 18px;
  border-radius: 18px;
}
.band .waitlist .fields {
  flex-direction: column;
}
.band .waitlist .btn {
  width: 100%;
  padding: 15px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 44px;
}
.site-footer .wrap {
  max-width: 1224px;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer .brand {
  font-size: 26px;
}
.site-footer .brand img {
  height: 38px;
}
.foot-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}
.foot-links a:hover {
  color: var(--blue);
}

/* ---------- Content pages (contact, terms, privacy) ---------- */

.page-hero {
  background: linear-gradient(180deg, var(--hero-1) 0%, var(--hero-2) 100%);
  padding: 64px 0 52px;
}
.page-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -1.2px;
}
.page-hero p {
  margin: 12px 0 0;
  font-size: 18.5px;
  color: var(--body);
  max-width: 36em;
}
.page-hero .wrap.narrow {
  max-width: 760px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 44px;
  padding-top: 56px;
  padding-bottom: 96px;
  align-items: start;
}
.contact-form {
  display: grid;
  gap: 16px;
}
.contact-form label {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  padding-left: 14px;
}
.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}
.contact-form .btn {
  justify-self: start;
}
.form-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--faint);
}
.form-note a {
  color: var(--muted);
}
.contact-card {
  background: var(--pill);
  border-radius: 24px;
  padding: 30px;
}
.contact-card h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}
.contact-card p {
  margin: 0 0 14px;
  color: var(--body);
  font-size: 16px;
}
.contact-card .mail {
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
}
.contact-card hr {
  border: 0;
  border-top: 1px solid var(--pill-tag);
  margin: 22px 0;
}

.prose {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 96px;
}
.prose .updated {
  color: var(--faint);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 28px;
}
.prose h2 {
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  margin: 40px 0 10px;
  letter-spacing: -0.3px;
}
.prose h3 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  margin: 24px 0 6px;
}
.prose p,
.prose li {
  color: var(--body);
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose .summary {
  background: var(--pill);
  border-radius: 20px;
  padding: 20px 24px;
}
.prose .summary p {
  margin: 0;
  color: var(--navy);
}
.prose .summary ul {
  margin: 10px 0 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero-art {
    width: 56%;
    right: -40px;
  }
}

@media (max-width: 1060px) {
  .action .wrap {
    grid-template-columns: 1fr;
  }
  .action .shots {
    margin-top: 10px;
    justify-content: start;
  }
  .band-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .band-phone {
    display: none;
  }
}

@media (max-width: 920px) {
  .hero .wrap {
    min-height: 0;
    padding-top: 40px;
  }
  .hero-art {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin-top: 28px;
  }
  .hero::before {
    top: auto;
    bottom: -260px;
  }
  .hero-art {
    margin: 0 auto;
    max-width: 560px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: 0;
  }
  .shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar {
    display: none;
  }
  .shot {
    flex: 0 0 190px;
    scroll-snap-align: start;
  }
  .band-inner {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 18px;
  }
  .site-header .wrap {
    height: 66px;
  }
  .brand {
    font-size: 24px;
  }
  .brand img {
    height: 34px;
  }
  .nav {
    gap: 16px;
  }
  .nav .hide-sm {
    display: none;
  }
  .btn-pill {
    padding: 10px 16px;
    font-size: 14.5px;
  }
  .lede {
    font-size: 17px;
  }
  .waitlist .fields {
    flex-direction: column;
  }
  .waitlist .btn {
    width: 100%;
  }
  .hero-art {
    margin-right: -18px;
  }
  .features,
  .action {
    padding: 64px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .band {
    padding-bottom: 48px;
  }
  .band-inner {
    border-radius: 26px;
    padding: 32px 20px;
  }
  .foot-links {
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
