/* Hopwise website. Palette from the app's design system (hopwise/docs/BRAND.md). */

/* Bricolage Grotesque (variable, SIL OFL), self-hosted. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-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;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-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;
}

:root {
  --orange: #f97316;
  --orange-2: #ea580c;
  --deep-orange: #c2410c;
  --ink: #1c1917;
  --stone: #292524;
  --cream: #fff7ed;
  --teal: #0f4c5c;
  --teal-light: #3b8fa3;
  --card: #ffffff;
  --muted: #78716c;
  --line: rgba(28, 25, 23, 0.1);
  --save: #15803d;
  --save-bg: #dcfce7;

  /* Provider brand colors (ProviderId.brandColor in the app) */
  --uber: #0d0d0f;
  --lyft: #ff00bf;
  --waymo: #00a69e;
  --robotaxi: #e82126;

  --font: "Bricolage Grotesque", ui-rounded, system-ui, -apple-system, sans-serif;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 12px 32px -12px rgba(28, 25, 23, 0.18);
  --max: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--deep-orange);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  background: rgba(255, 247, 237, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -4px rgba(234, 88, 12, 0.6);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-mark svg {
  width: 30px;
  height: 30px;
  color: var(--cream);
}
.logo:hover .logo-mark {
  transform: translateY(-3px) rotate(-6deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav a:hover {
  background: rgba(249, 115, 22, 0.12);
}
.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--cream);
}

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

/* ---------- Beta pill (stands in for a CTA) ---------- */

.beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 17px;
  box-shadow: 0 10px 30px -10px rgba(28, 25, 23, 0.6);
}
.beta-pill .dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}
/* The ping animates transform and opacity so it runs on the compositor. */
.beta-pill .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--orange);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

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

.hero {
  position: relative;
  margin-top: -72px;
  padding-top: 132px;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 50% 0%, #fff 0%, rgba(255, 255, 255, 0) 70%),
    var(--cream);
}
.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 20px;
}
.hero h1 {
  font-size: clamp(42px, 7.4vw, 88px);
  font-weight: 800;
  letter-spacing: -0.045em;
}
.hero h1 .hop {
  color: var(--orange);
  display: inline-block;
  animation: hop 3.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}
@keyframes hop {
  0%,
  70%,
  100% {
    transform: translateY(0);
  }
  78% {
    transform: translateY(-0.14em) rotate(-3deg);
  }
  86% {
    transform: translateY(0);
  }
  91% {
    transform: translateY(-0.05em);
  }
}
.hero .lede {
  font-size: clamp(18px, 2.1vw, 21px);
  color: #57534e;
  max-width: 620px;
  margin: 22px auto 30px;
}

/* The animated map lives in .scene. Geometry is built by js/hero.js. */
.scene {
  position: relative;
  height: clamp(400px, 62vw, 700px);
  margin-top: clamp(-40px, -3vw, 0px);
  perspective: 1500px;
  perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 82%, transparent 100%);
}
.scene-fit {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.plane {
  position: absolute;
  width: 1440px;
  height: 900px;
  left: -720px;
  top: -40px;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transform: rotateX(54deg) rotateZ(-26deg);
}
.plane > svg.ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* Firefox paints an untransformed SVG flat on the screen instead of on the plane. */
  transform: translateZ(-1px);
}
/* Only containers preserve 3D. Leaves (layers, billboards, the ground SVG) stay flat:
   Firefox drops SVG and text content that is itself marked preserve-3d. */
.p3d {
  transform-style: preserve-3d;
}
.obj {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}
.lyr {
  position: absolute;
  backface-visibility: visible;
}

/* Billboards stand upright, facing the camera (the inverse of .plane's rotation). */
.bb {
  position: absolute;
  left: 0;
  bottom: 0;
  width: max-content;
  transform-origin: 50% 100%;
}

.tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px -8px rgba(28, 25, 23, 0.35);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  width: max-content;
  border: 2px solid var(--c);
  translate: -50% 0;
}
.tag img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.tag .price {
  font-variant-numeric: tabular-nums;
}
.tag .save {
  font-size: 12px;
  font-weight: 700;
  color: var(--save);
  background: var(--save-bg);
  padding: 2px 7px;
  border-radius: 999px;
}
.tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 2px solid var(--c);
  border-bottom: 2px solid var(--c);
  transform: translateX(-50%) rotate(45deg);
}

.pin {
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pin-head {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.5);
}
.pin-stem {
  width: 4px;
  height: 34px;
  border-radius: 2px;
}
.pin-label {
  position: absolute;
  bottom: calc(100% + 6px);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.35);
}
.pin-pickup .pin-head {
  background: var(--teal);
}
.pin-pickup .pin-head::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}
.pin-pickup .pin-stem {
  background: var(--teal);
}
.pin-dest .pin-head {
  background: var(--ink);
}
.pin-dest .pin-stem {
  background: var(--ink);
  height: 96px;
}
.pin-head svg {
  width: 22px;
  height: 22px;
}

/* The dash flow repaints the ground SVG (stroke-dashoffset can't run on the compositor),
   so it steps about 13 times a second instead of every frame. */
.route-flow {
  animation: flow 1.1s steps(14) infinite;
}
.pickup-pulse {
  position: absolute;
  left: -46px;
  top: -46px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(59, 143, 163, 0.25);
  transform: translateZ(0.2px) scale(0.3);
  animation: pickup-pulse 2.4s ease-out infinite;
}
@keyframes pickup-pulse {
  from {
    transform: translateZ(0.2px) scale(0.3);
    opacity: 1;
  }
  to {
    transform: translateZ(0.2px) scale(1);
    opacity: 0;
  }
}
.scene.is-paused * {
  animation-play-state: paused !important;
}
@keyframes flow {
  to {
    stroke-dashoffset: -28;
  }
}
.lidar {
  animation: spin 1.6s linear infinite;
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}

/* "Choose a ride" card, echoing the app's quotes sheet */
.ride-card {
  position: absolute;
  z-index: 4;
  right: max(24px, calc(50% - 600px));
  bottom: 70px;
  width: 330px;
  padding: 18px 18px 10px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 30px 60px -20px rgba(28, 25, 23, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
.ride-card h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.ride-card .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.ride-card .klass {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin: 10px 0 2px;
}
.quote {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.quote:last-child {
  border-bottom: 0;
}
.quote img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.quote .name {
  font-weight: 600;
  line-height: 1.2;
}
.quote .meta {
  font-size: 12.5px;
  color: var(--muted);
}
.quote .amt {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.quote .save {
  display: inline-block;
  font-size: 12px;
  color: var(--save);
  background: var(--save-bg);
  border-radius: 999px;
  padding: 1px 8px;
  margin-top: 2px;
}
/* Rows stream in like the app's quotes */
.quote .shimmer {
  display: none;
}
.ride-card.is-loading .quote .name,
.ride-card.is-loading .quote .meta,
.ride-card.is-loading .quote .amt > * {
  visibility: hidden;
}
.quote.is-pending .name,
.quote.is-pending .meta,
.quote.is-pending .amt > * {
  visibility: hidden;
}
.quote.is-pending {
  position: relative;
}
.quote.is-pending::after {
  content: "";
  position: absolute;
  left: 48px;
  right: 0;
  top: 50%;
  height: 14px;
  margin-top: -7px;
  border-radius: 7px;
  background: linear-gradient(90deg, #eee 0%, #f7f7f7 40%, #eee 80%);
  background-size: 200% 100%;
  animation: shimmer 1s linear infinite;
}
.quote.is-pending img {
  filter: grayscale(1) opacity(0.35);
}
.quote.is-in {
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes pop {
  from {
    transform: scale(0.96);
    opacity: 0.4;
  }
}

@media (max-width: 1080px) {
  .ride-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -60px auto 40px;
    animation: none;
    width: min(380px, calc(100% - 40px));
  }
}

/* ---------- Sections ---------- */

section {
  padding: clamp(64px, 10vw, 120px) 0;
}
.section-head {
  max-width: 700px;
  margin-bottom: clamp(36px, 6vw, 64px);
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.kicker {
  font-weight: 700;
  font-size: 15px;
  color: var(--deep-orange);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
}
.section-head p {
  margin-top: 16px;
  font-size: 19px;
  color: #57534e;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.step {
  background: var(--card);
  border-radius: 32px;
  padding: 28px 28px 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 26px;
}
.step p {
  margin-top: 8px;
  color: #57534e;
}
.phone {
  margin: 28px auto 0;
  width: min(250px, 80%);
  border-radius: 40px 40px 0 0;
  padding: 9px 9px 0;
  background: var(--ink);
  box-shadow: 0 30px 50px -24px rgba(28, 25, 23, 0.6);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.phone img {
  border-radius: 32px 32px 0 0;
  aspect-ratio: 1206 / 1900;
  object-fit: cover;
  object-position: top;
  width: 100%;
}
.step .phone {
  margin-top: auto;
}
.step p {
  margin-bottom: 28px;
}
.step:hover .phone {
  transform: translateY(-10px);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

/* Providers */
.providers {
  background: #fff;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.provider {
  border-radius: var(--radius);
  padding: 22px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.provider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--c);
}
.provider img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line);
}
.provider h3 {
  font-size: 22px;
  margin-top: 16px;
}
.provider p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}
.providers .more {
  margin-top: 22px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 900px) {
  .provider-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 420px) {
  .provider {
    padding: 16px;
  }
  .provider h3 {
    font-size: 19px;
  }
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(15, 76, 92, 0.1);
  color: var(--teal);
  margin-bottom: 18px;
}
.feature .icon svg {
  width: 24px;
  height: 24px;
}
.feature h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.feature p {
  margin-top: 8px;
  color: #57534e;
  font-size: 16px;
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Savings band */
.band {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.band .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.band .kicker {
  color: var(--orange);
}
.band h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
}
.band p {
  color: #d6d3d1;
  font-size: 19px;
  margin-top: 18px;
  max-width: 520px;
}
.band .phone {
  width: min(320px, 80%);
  border-radius: 46px;
  padding: 10px;
  background: #0c0a09;
  box-shadow: 0 0 0 1px #44403c, 0 40px 80px -30px rgba(249, 115, 22, 0.45);
  transform: rotate(4deg);
}
.band .phone img {
  border-radius: 37px;
  aspect-ratio: 1206 / 2622;
}
@media (max-width: 860px) {
  .band .wrap {
    grid-template-columns: 1fr;
  }
  .band .phone {
    transform: none;
  }
}

/* Beta callout */
.beta {
  text-align: center;
}
.beta-card {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  border-radius: 40px;
  padding: clamp(40px, 7vw, 80px) 24px;
  position: relative;
  overflow: hidden;
}
.beta-card h2 {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  color: #fff;
}
.beta-card p {
  font-size: 19px;
  max-width: 560px;
  margin: 16px auto 0;
  color: #fff7ed;
}
.beta-card a {
  color: #fff;
  font-weight: 700;
}
.beta-card .rabbit {
  position: absolute;
  width: 220px;
  color: rgba(255, 247, 237, 0.16);
  right: -30px;
  bottom: -40px;
  transform: rotate(-10deg);
}
.beta-card .rabbit.l {
  left: -50px;
  top: -40px;
  right: auto;
  bottom: auto;
  width: 160px;
  transform: scaleX(-1) rotate(-14deg);
}

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

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.site-footer nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-footer nav a:hover {
  color: var(--deep-orange);
}
.site-footer .footer-meta {
  flex-basis: 100%;
}
.site-footer .made {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 6px;
}
.site-footer .ggb {
  width: 40px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--deep-orange);
  stroke-linecap: round;
}
.site-footer .fine {
  font-size: 13px;
}

/* ---------- Inner pages ---------- */

.page {
  padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 110px);
}
.page-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.page-head h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
}
.page-head p {
  font-size: 19px;
  color: #57534e;
  margin-top: 14px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--card);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 18px;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 560px) {
  .form .row {
    grid-template-columns: 1fr;
  }
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 600;
  font-size: 15px;
}
.field .opt {
  color: var(--muted);
  font-weight: 400;
}
.field .hint {
  font-size: 13px;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c1917' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #dc2626;
}
.hp {
  position: absolute;
  left: -9999px;
}

.btn {
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--deep-orange);
  padding: 14px 26px;
  border-radius: 999px;
  justify-self: start;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover {
  background: #9a3412;
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.form-status {
  font-size: 15px;
  min-height: 1.4em;
}
.form-status.ok {
  color: var(--save);
}
.form-status.err {
  color: #b91c1c;
}
.form-done {
  text-align: center;
  padding: 30px 0;
}
.form-done .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: var(--save-bg);
  color: var(--save);
}
.form-done h2 {
  font-size: 28px;
}
.form-done p {
  color: #57534e;
  margin-top: 8px;
}

.faq h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq details:last-child {
  border-bottom: 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--deep-orange);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin-top: 8px;
  color: #57534e;
  font-size: 16px;
}

.legal {
  max-width: 760px;
}
.legal .notice {
  background: rgba(249, 115, 22, 0.12);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 36px;
  font-size: 16px;
}
.legal h2 {
  font-size: 26px;
  margin: 36px 0 10px;
  letter-spacing: -0.02em;
}
.legal p {
  color: #44403c;
  margin-bottom: 12px;
}
.legal h3 {
  font-size: 20px;
  margin: 24px 0 8px;
  letter-spacing: -0.02em;
}
.legal h2[id],
.legal h3[id] {
  scroll-margin-top: 96px;
}
.legal ul {
  color: #44403c;
  margin: 0 0 12px;
  padding-left: 22px;
}
.legal li {
  margin-bottom: 8px;
}
.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
.bb .tag {
  transform-origin: 50% 100%;
}
