/* chasiva.com: the marketing site. Hand-written, no build step.
   Brand: night background family, paper text, one amber accent.
   Accent, hover, on-accent, text, and radii match app/tokens.css where they overlap. */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/onest-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 {
  color-scheme: dark;

  --night: #17141a;
  --night-raised: #1f1b23;
  --night-high: #28232d;
  --line: #2e2933;
  --line-strong: #3a3540;

  --paper: #f6f1ea;
  --paper-muted: #b9b4a8;
  --paper-faint: #9a958a;

  --amber: #d98a3d;
  --amber-hover: #e8a45c;
  --on-amber: #241505;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-control: 10px;
  --radius-card: 16px;

  --header-h: 64px;
  --wrap: 1120px;
  --gutter: 24px;
  --section: 104px;
}

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

/* Smooth scrolling: native, document wide. Anchors glide, and every anchored
   target clears the sticky header through scroll-margin-top. */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

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

  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

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

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.dot {
  color: var(--amber);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-amber {
  background: var(--amber);
  color: var(--on-amber);
}

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

.btn-quiet {
  border-color: var(--line-strong);
  color: var(--paper);
}

.btn-quiet:hover {
  background: var(--night-high);
}

.btn:focus-visible {
  border-radius: var(--radius-control);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgb(23 20 26 / 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  color: var(--paper-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--paper);
}

.header-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* Sections */

section {
  padding: var(--section) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-head p {
  margin-top: 14px;
  color: var(--paper-muted);
  font-size: 18px;
}

/* Hero */

.hero {
  padding: 96px 0 72px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgb(217 138 61 / 0.13), transparent 70%);
  text-align: center;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero .sub {
  max-width: 600px;
  margin: 24px auto 36px;
  color: var(--paper-muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.see-product {
  display: inline-block;
  margin-top: 36px;
  color: var(--paper-muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.see-product:hover {
  color: var(--paper);
}

/* Waitlist form */

.waitlist {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--night-raised);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}

.waitlist input[type="email"]::placeholder {
  color: var(--paper-faint);
}

.waitlist input[type="email"]:focus-visible {
  border-color: var(--amber);
  border-radius: var(--radius-control);
}

.waitlist .btn {
  height: 52px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 700;
}

.waitlist .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.waitlist-done,
.waitlist-error {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: var(--radius-control);
  font-size: 16px;
}

.waitlist-done {
  border: 1px solid rgb(217 138 61 / 0.5);
  background: rgb(217 138 61 / 0.1);
}

.waitlist-error {
  padding: 10px 0 0;
  color: var(--paper-muted);
  font-size: 14px;
}

.testing-line {
  margin-top: 18px;
  color: var(--paper-muted);
  font-size: 15px;
}

.privacy-line {
  margin-top: 6px;
  color: var(--paper-faint);
  font-size: 13px;
}

/* The product */

.product {
  padding-top: 32px;
}

.shot .frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--night-raised);
  box-shadow: 0 32px 80px rgb(0 0 0 / 0.45);
}

.shot img {
  width: 100%;
}

.shot figcaption {
  max-width: 640px;
  margin-top: 18px;
  color: var(--paper-muted);
  font-size: 15px;
}

.shot figcaption strong {
  color: var(--paper);
  font-weight: 600;
}

.shot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
  margin-top: 64px;
}

/* From inquiry to print order */

.path {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}

.path li {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  counter-increment: step;
}

.path li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}

.path .num {
  display: block;
  margin-bottom: 6px;
  color: var(--paper-faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.path .num::before {
  content: "0" counter(step);
}

.path h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.path p {
  margin-top: 6px;
  color: var(--paper-muted);
  font-size: 15px;
  line-height: 1.5;
}


/* Feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
}

.features li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.features h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.features p {
  margin-top: 4px;
  color: var(--paper-muted);
  font-size: 16px;
}

/* On your phone */

.phone-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--night-raised);
}

.phone-band p {
  margin-top: 14px;
  color: var(--paper-muted);
  font-size: 18px;
}

.push-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  font-size: 18px;
  font-weight: 500;
}

.push-list li:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.push-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-2px);
}

/* Founder note */

.founder figure {
  max-width: 720px;
}

.founder blockquote {
  padding-left: 24px;
  border-left: 2px solid var(--amber);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.founder blockquote p + p {
  margin-top: 0.8em;
}

.founder figcaption {
  margin-top: 20px;
  padding-left: 26px;
  color: var(--paper-faint);
  font-size: 15px;
}

/* FAQ */

.faq > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.faq dt {
  font-size: 18px;
  font-weight: 600;
}

.faq dd {
  color: var(--paper-muted);
}

/* Final waitlist block */

.final {
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgb(217 138 61 / 0.1), transparent 70%);
  border-top: 1px solid var(--line);
  text-align: center;
}

.final h2 {
  margin-bottom: 12px;
}

.final .privacy-line {
  margin-top: 16px;
}

.final .lead {
  margin-bottom: 32px;
  color: var(--paper-muted);
  font-size: 18px;
}

/* Footer */

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--paper-faint);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer a {
  color: var(--paper-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--paper);
}

/* Responsive */

@media (max-width: 1000px) {
  .path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }
}

@media (max-width: 860px) {
  :root {
    --section: 72px;
  }

  .site-nav {
    display: none;
  }

  .shot-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .shot-phone .frame {
    max-width: 280px;
  }

  .phone-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 36px 28px;
  }

  .faq > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .brand img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .header-actions {
    gap: 8px;
  }

  .site-header .btn {
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .path {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-left: 4px;
    border-left: 1px solid var(--line-strong);
  }

  .path li {
    padding: 0 0 28px 24px;
    border-top: 0;
  }

  .path li:last-child {
    padding-bottom: 0;
  }

  .path li::before {
    top: 7px;
    left: -5px;
  }

  .phone-band {
    padding: 28px 20px;
  }

  .founder blockquote {
    padding-left: 18px;
  }

  .founder figcaption {
    padding-left: 20px;
  }
}

@media (max-width: 520px) {
  .waitlist {
    flex-direction: column;
  }

  .waitlist input[type="email"] {
    flex: none;
  }
}
