/* Haul Lists — palette and shapes taken from Haul/Theme.swift and Components.swift */
:root {
  --green: #29c26b;        /* HaulTheme.green  (0.16, 0.76, 0.42) */
  --green-soft: rgba(41, 194, 107, 0.14);
  --amber: #f5a829;        /* HaulTheme.amber  (0.96, 0.66, 0.16) */
  --red: #eb4238;          /* HaulTheme.red    (0.92, 0.26, 0.22) */
  --blue: #599eff;         /* HaulTheme.blue   (0.35, 0.62, 1.0)  */
  --bg: #000;              /* HaulTheme.bg */
  --icon-bg: #131316;      /* app icon ground */
  --card: #1c1c1c;         /* HaulTheme.card   white 0.11 */
  --card-lift: #292929;    /* HaulTheme.cardLift white 0.16 */
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --secondary: #9e9e9e;    /* HaulTheme.secondary white 0.62 */
  --radius: 16px;          /* HaulTheme.radius */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #000; padding: 8px 14px; border-radius: 10px; font-weight: 600; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { color: var(--secondary); }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav a.pill { color: #000; background: var(--green); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.top nav a.pill:hover { filter: brightness(1.08); }

/* Buttons */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #000;
  font-weight: 600; font-size: 17px;
  padding: 15px 24px; border-radius: 12px;
  transition: transform .15s ease, filter .15s ease;
}
.store:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.store svg { width: 20px; height: 20px; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: .75; line-height: 1.1; }
.store span { line-height: 1.15; text-align: left; }
.meta { color: var(--secondary); font-size: 14px; margin-top: 14px; }

/* Section label, like SectionLabel in the app */
.label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.085em; text-transform: uppercase;
  color: var(--secondary); margin: 0 0 14px;
}
.label.green { color: var(--green); }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 760px;
  background:
    radial-gradient(520px 380px at 72% 38%, rgba(41, 194, 107, 0.20), transparent 70%),
    radial-gradient(420px 300px at 18% 10%, rgba(41, 194, 107, 0.08), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.app-id img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 0 0 1px var(--hairline), 0 12px 40px rgba(41, 194, 107, 0.18); }
.app-id b { display: block; font-size: 22px; letter-spacing: -0.01em; }
.app-id span { color: var(--secondary); font-size: 15px; }
h1 {
  font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 0 0 22px;
}
h1 em { font-style: normal; color: var(--green); }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: #c9c9c9; max-width: 34em; margin: 0 0 32px; }

/* Device frames */
.phones { position: relative; height: 640px; }
.device {
  position: relative;
  width: 290px; aspect-ratio: 1290 / 2796;
  padding: 10px; border-radius: 52px;
  background: linear-gradient(145deg, #3a3a3c, #1a1a1c 40%, #2c2c2e);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset, 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px #000;
}
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 43px; background: #000; }
.device::after { /* dynamic island */
  content: ""; position: absolute; top: 19px; left: 50%; transform: translateX(-50%);
  width: 29%; height: 3.2%; border-radius: 999px; background: #000;
}
.phones .device { position: absolute; }
.phones .d1 { right: 170px; top: 0; z-index: 2; }
.phones .d2 { right: 0; top: 70px; transform: rotate(4deg); opacity: .96; }

/* Dump demo card */
.dump { margin-top: 36px; max-width: 460px; }
.field {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--radius); padding: 16px 18px; color: var(--secondary);
  border: 1px solid var(--hairline);
}
.field svg { color: var(--green); flex: none; }

/* Sections */
section { padding: 96px 0; }
.intro { text-align: center; max-width: 760px; margin: 0 auto 56px; }
h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 18px; }
h3 { font-size: 21px; letter-spacing: -0.01em; margin: 0 0 8px; }
.intro p, .copy p { color: #bdbdbd; font-size: 19px; margin: 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; border-top: 1px solid var(--hairline); }
.feature:first-of-type { border-top: 0; }
.feature.flip .shot { order: 2; }
.feature .shot { display: flex; justify-content: center; position: relative; }
.feature .shot::before {
  content: ""; position: absolute; width: 380px; height: 380px; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(41,194,107,0.16), transparent); pointer-events: none;
}
.copy p + p { margin-top: 14px; }
.copy ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.copy li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border-radius: 12px; padding: 12px 14px; font-size: 16px; color: #e6e6e6;
}
.copy li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Chips like the app's Chip view */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--card-lift); color: #d6d6d6; }
.chip.g { background: var(--green-soft); color: var(--green); }

/* Small grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--hairline); }
.card p { color: var(--secondary); margin: 0; font-size: 16px; }
.ico { width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 22px; height: 22px; }

/* Privacy band */
.band { background: var(--card); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; border: 1px solid var(--hairline); }
.band .facts { display: grid; gap: 12px; }
.band .fact { display: flex; justify-content: space-between; gap: 16px; background: var(--card-lift); padding: 14px 18px; border-radius: 12px; font-size: 16px; }
.band .fact b { color: var(--green); font-weight: 600; text-align: right; }

/* Closing */
.closing { text-align: center; padding: 120px 0 110px; position: relative; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: 760px; height: 480px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(41,194,107,0.18), transparent); pointer-events: none;
}
.closing .wrap { position: relative; }
.closing img.big { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 28px; box-shadow: 0 0 0 1px var(--hairline), 0 18px 60px rgba(41,194,107,0.25); }
.closing p { color: #bdbdbd; font-size: 19px; margin: 0 auto 32px; max-width: 32em; }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 32px 0 48px; color: var(--secondary); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--secondary); }
footer a:hover { color: var(--text); }
.berth { display: inline-flex; align-items: center; gap: 6px; }
.berth b { color: var(--text); font-weight: 600; }

/* Document pages (privacy, support) */
.doc { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.doc .updated { color: var(--secondary); margin: 0 0 36px; }
.doc h2 { font-size: 24px; letter-spacing: -0.015em; margin: 44px 0 12px; }
.doc p, .doc li { color: #d0d0d0; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .qa { background: var(--card); border-radius: var(--radius); padding: 18px 20px; margin: 12px 0; border: 1px solid var(--hairline); }
.doc .qa h3 { font-size: 17px; margin: 0 0 6px; }
.doc .qa p { margin: 0; }
.doc ol { padding-left: 1.3em; }
.doc ol li { margin: 10px 0; }
.contact { background: var(--card); border-radius: 20px; padding: 24px; border: 1px solid var(--hairline); margin-top: 16px; }
.contact a.mail { font-size: 20px; font-weight: 600; }

/* 404 */
.nf { min-height: calc(100vh - 200px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf .code { font-family: var(--font-round); font-size: 120px; font-weight: 800; letter-spacing: -0.04em; color: var(--green); line-height: 1; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.nf p { color: var(--secondary); font-size: 19px; margin: 0 0 30px; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .phones { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .phones .d1 { right: auto; left: 8%; }
  .phones .d2 { right: 6%; }
  .feature { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .feature.flip .shot { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top nav a:not(.pill) { display: none; }
  .hero { padding: 40px 0 16px; }
  .app-id img { width: 60px; height: 60px; border-radius: 14px; }
  .app-id b { font-size: 19px; }
  .phones { height: 470px; }
  .device { width: 220px; padding: 8px; border-radius: 40px; }
  .device img { border-radius: 33px; }
  .device::after { top: 15px; }
  .phones .d1 { left: 0; }
  .phones .d2 { right: 0; top: 56px; }
  section { padding: 64px 0; }
  .intro { margin-bottom: 32px; }
  .intro p, .copy p, .closing p { font-size: 17px; }
  .feature .shot .device { width: 250px; }
  .feature .shot::before { width: 300px; height: 300px; }
  .grid { grid-template-columns: 1fr; }
  .band { padding: 24px 18px; border-radius: 22px; }
  .band .fact { flex-direction: column; gap: 2px; }
  .band .fact b { text-align: left; }
  .store { width: 100%; justify-content: center; }
  .closing { padding: 80px 0; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store { transition: none; }
}
