:root {
  --ink: #251d1d;
  --ink-soft: #635151;
  --paper: #fffaf7;
  --paper-deep: #f4e8e4;
  --card: #ffffff;
  --line: #e8d8d3;
  --brand: #5b3737;
  --brand-deep: #352323;
  --ember: #ce171d;
  --flame: #ff7a18;
  --spark: #e04976;
  --success: #22a16f;
  --shadow: 0 24px 70px rgba(45, 25, 25, 0.13);
  --radius: 28px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-deep);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(91, 55, 55, .12);
  background: rgba(255, 250, 247, .92);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 2rem));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 8px 20px rgba(53, 35, 35, .16); }
.nav-links { display: flex; align-items: center; gap: 1.35rem; }
.nav-links a { color: var(--ink-soft); font-size: .92rem; font-weight: 650; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ember); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--ember);
  color: #fff !important;
  font-weight: 800 !important;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(206, 23, 29, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(206, 23, 29, .28); }
.button--ghost { color: var(--brand) !important; background: transparent; border: 1px solid var(--line); box-shadow: none; }
.button--small { min-height: 42px; padding: .6rem 1rem; font-size: .88rem !important; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 122, 24, .25), transparent 25rem),
    radial-gradient(circle at 18% 82%, rgba(224, 73, 118, .16), transparent 28rem),
    linear-gradient(145deg, #2d2222 0%, #4b3030 55%, #2b2020 100%);
  color: #fff;
}

.hero-grid {
  width: min(1180px, calc(100% - 2rem));
  min-height: 690px;
  margin: 0 auto;
  padding: 4.8rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr);
  align-items: center;
  gap: 4.5rem;
}

.eyebrow { margin: 0 0 .9rem; color: #ffc9a7; font-size: .82rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.5rem, 7vw, 6.7rem); line-height: .94; letter-spacing: -.065em; }
.hero h1 span { display: block; color: #ffcfb0; }
.hero-copy { max-width: 650px; margin: 1.5rem 0 0; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .button--ghost { color: #fff !important; border-color: rgba(255,255,255,.25); }
.microcopy { margin: .9rem 0 0; color: rgba(255,255,255,.58); font-size: .82rem; }

.hero-visual { position: relative; min-height: 560px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, rgba(255,122,24,.4), rgba(224,73,118,.24)); filter: blur(4px); }
.hero-shot { position: relative; width: min(340px, 78vw); border-radius: 40px; box-shadow: 0 45px 95px rgba(0,0,0,.48); transform: rotate(2.5deg); }
.app-seal { position: absolute; z-index: 2; left: 0; bottom: 3.8rem; display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(34,25,25,.8); box-shadow: 0 18px 36px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.app-seal img { width: 58px; height: 58px; border-radius: 15px; }
.app-seal strong, .app-seal span { display: block; }
.app-seal span { color: rgba(255,255,255,.62); font-size: .78rem; }

.section { padding: 6rem 0; }
.section--dark { color: #fff; background: var(--brand-deep); }
.section--tint { background: #f6eae5; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
.section-heading p { margin: 1rem 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.section--dark .section-heading p { color: rgba(255,255,255,.68); }

.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem; border-radius: 999px; color: var(--ember); background: rgba(206,23,29,.08); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-card { min-height: 220px; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 14px 40px rgba(61,37,37,.07); }
.feature-icon { display: grid; width: 46px; height: 46px; margin-bottom: 1.3rem; place-items: center; border-radius: 14px; color: #fff; background: var(--brand); font-size: 1.2rem; }
.feature-card:nth-child(2) .feature-icon, .feature-card:nth-child(5) .feature-icon { background: var(--spark); }
.feature-card:nth-child(3) .feature-icon, .feature-card:nth-child(6) .feature-icon { background: var(--ember); }
.feature-card h3 { margin: 0 0 .55rem; font-size: 1.2rem; }
.feature-card p { margin: 0; color: var(--ink-soft); }

.screenshots { display: flex; gap: 1.25rem; overflow-x: auto; padding: 1rem max(1rem, calc((100vw - 1180px)/2)) 2.2rem; scroll-snap-type: x mandatory; scrollbar-color: rgba(255,255,255,.35) transparent; }
.shot { flex: 0 0 min(330px, 77vw); scroll-snap-align: start; }
.shot img { width: 100%; border-radius: 26px; box-shadow: 0 28px 55px rgba(0,0,0,.28); }
.shot figcaption { margin-top: .9rem; color: rgba(255,255,255,.67); font-size: .9rem; }

.safety-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.safety-list { display: grid; gap: .8rem; }
.safety-item { display: grid; grid-template-columns: auto 1fr; gap: .85rem; padding: 1.1rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.check { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--success); font-weight: 900; }
.safety-item h3, .safety-item p { margin: 0; }
.safety-item p { color: var(--ink-soft); }

.cta { padding: 2.2rem; border-radius: 34px; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-deep), #684040); box-shadow: var(--shadow); }
.cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.cta p { margin: .7rem 0 0; color: rgba(255,255,255,.7); }

.site-footer { padding: 3rem 0; color: rgba(255,255,255,.66); background: #1f1818; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .85rem 1.2rem; }
.footer-links a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-links a:hover { color: #fff; }

.page-hero { padding: 5.5rem 0 4.2rem; color: #fff; background: radial-gradient(circle at 82% 10%, rgba(255,122,24,.22), transparent 24rem), linear-gradient(145deg, #2d2222, #563535); }
.page-hero h1 { max-width: 840px; margin: 0; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .96; letter-spacing: -.06em; }
.page-hero p { max-width: 720px; margin: 1.2rem 0 0; color: rgba(255,255,255,.75); font-size: 1.08rem; }
.breadcrumbs { margin-bottom: 1.2rem; color: rgba(255,255,255,.62); font-size: .85rem; }
.breadcrumbs a { text-decoration: none; }

.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; align-items: start; }
.doc-nav { position: sticky; top: 98px; padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.doc-nav a { display: block; padding: .52rem .65rem; border-radius: 10px; color: var(--ink-soft); font-size: .9rem; text-decoration: none; }
.doc-nav a:hover { color: var(--ember); background: rgba(206,23,29,.06); }
.doc-content section + section { margin-top: 4.5rem; }
.doc-content h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; letter-spacing: -.04em; }
.doc-content h3 { margin: 0 0 .45rem; }
.doc-content p, .doc-content li { color: var(--ink-soft); }
.doc-content ul { padding-left: 1.25rem; }
.doc-content li + li { margin-top: .5rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.info-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.steps { counter-reset: steps; display: grid; gap: .9rem; }
.step { counter-increment: steps; display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.step::before { content: counter(steps); display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: var(--ember); font-weight: 900; }
.doc-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.doc-shots figure { margin: 0; }
.doc-shots img { border-radius: 24px; box-shadow: var(--shadow); }
.doc-shots figcaption { margin-top: .65rem; color: var(--ink-soft); font-size: .9rem; }

.legal { width: min(860px, calc(100% - 2rem)); margin: 0 auto; padding: 4.5rem 0 6rem; }
.legal .updated { display: inline-flex; margin-bottom: 2rem; padding: .35rem .7rem; border-radius: 999px; color: var(--brand); background: var(--paper-deep); font-size: .8rem; font-weight: 750; }
.legal h2 { margin-top: 2.8rem; font-size: 1.65rem; letter-spacing: -.025em; }
.legal h3 { margin-top: 1.6rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal li + li { margin-top: .45rem; }
.notice { padding: 1.2rem 1.3rem; border-left: 4px solid var(--ember); border-radius: 0 18px 18px 0; background: #f6eae5; }

.handoff { min-height: 70vh; display: grid; place-items: center; padding: 3rem 1rem; }
.handoff-card { width: min(560px, 100%); padding: 2rem; border: 1px solid var(--line); border-radius: 32px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.handoff-card img { width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 24px; }
.handoff-card h1 { margin: 0; font-size: 2.4rem; letter-spacing: -.04em; }

@media (max-width: 900px) {
  .nav-links a:not(.button) { display: none; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 2rem; padding-top: 3.8rem; }
  .hero-visual { min-height: 520px; }
  .hero-shot { width: min(320px, 72vw); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety-grid, .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; display: flex; gap: .3rem; overflow-x: auto; }
  .doc-nav a { white-space: nowrap; }
}

@media (max-width: 620px) {
  .nav { min-height: 66px; }
  .brand span { display: none; }
  .hero-grid { padding-top: 3rem; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 4.7rem); }
  .hero-visual { min-height: 460px; }
  .app-seal { left: .25rem; bottom: 2rem; }
  .feature-grid, .cards-2, .doc-shots, .footer-grid, .cta { grid-template-columns: 1fr; }
  .section { padding: 4.2rem 0; }
  .footer-links { justify-content: flex-start; }
  .page-hero { padding: 4rem 0 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
