:root {
  color-scheme: light dark;
  --paper: #fbf6ec;
  --paper-deep: #f1eadc;
  --surface: #fffdf9;
  --ink: #191712;
  --muted: #6f685b;
  --line: #ded4c3;
  --gold: #b07d14;
  --gold-strong: #8c6210;
  --on-gold: #191712;
  --sage: #446a58;
  --coral: #b85f42;
  --blue: #4d6e8a;
  --shadow: 0 18px 48px rgba(25, 23, 18, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c0a09;
    --paper-deep: #15110d;
    --surface: #1a1611;
    --ink: #f6f3eb;
    --muted: #aaa190;
    --line: #342d23;
    --gold: #e5b544;
    --gold-strong: #d49c28;
    --on-gold: #191712;
    --sage: #78a58d;
    --coral: #e19a76;
    --blue: #86a9c4;
    --shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.marketing-page {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(176, 125, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 125, 20, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  font-family: Avenir, "Avenir Next", Futura, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.marketing-page img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--on-gold);
  background: var(--gold);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(25, 23, 18, 0.12);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.header-actions,
.hero-actions,
.final-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.button-primary {
  color: var(--on-gold);
  background: var(--gold);
}

.button-primary:hover {
  background: var(--gold-strong);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: var(--gold);
}

.button-compact {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 13px;
}

.marketing-page a:focus-visible,
.marketing-page summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.home-main {
  width: 100%;
}

.hero {
  position: relative;
  height: max(500px, calc(100svh - 104px));
  overflow: hidden;
  padding: 72px 24px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1,
.section-heading,
.final-cta h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: 72px;
  line-height: 0.98;
}

.hero h1 span {
  color: var(--gold);
}

.hero-lede {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.hero-proof {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-scene {
  position: relative;
  width: min(960px, 100%);
  min-height: 390px;
  margin: 38px auto 0;
}

.identity-route {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.45fr) auto minmax(0, 0.8fr);
  align-items: center;
  gap: 12px;
  width: min(850px, calc(100% - 28px));
  margin: 0 auto;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(25, 23, 18, 0.08);
}

.route-node {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-node code {
  color: var(--coral);
  font: inherit;
}

.route-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.route-app img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.route-arrow {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.hero-device {
  position: absolute;
  top: 78px;
  left: 50%;
  width: 286px;
  height: 620px;
  overflow: hidden;
  border: 7px solid #181510;
  border-radius: 34px;
  background: #181510;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.hero-device img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.profile-ticket,
.qr-ticket {
  position: absolute;
  z-index: 2;
  width: 220px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(25, 23, 18, 0.1);
  text-align: left;
}

.profile-ticket {
  top: 145px;
  left: 36px;
}

.qr-ticket {
  top: 230px;
  right: 34px;
}

.ticket-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-value {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.ticket-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.hero-qr {
  width: 84px;
  height: 84px;
  display: block;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}

.section {
  padding: 96px 24px;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading {
  max-width: 820px;
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
}

.section-intro {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.value-card {
  position: relative;
  min-height: 210px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.value-card::before {
  content: "";
  width: 36px;
  height: 4px;
  display: block;
  margin-bottom: 28px;
  background: var(--gold);
}

.value-card:nth-child(2)::before {
  background: var(--sage);
}

.value-card:nth-child(3)::before {
  background: var(--blue);
}

.value-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.value-card p {
  margin: 0;
  color: var(--muted);
}

.profiles-section {
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
}

.profiles-layout,
.photo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: 74px;
}

.profile-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.profile-types span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

.profile-types i {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 50%;
  background: var(--gold);
}

.profile-types span:nth-child(2) i {
  background: var(--blue);
}

.profile-types span:nth-child(3) i {
  background: var(--sage);
}

.device-shot {
  width: min(360px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 7px solid #181510;
  border-radius: 34px;
  background: #181510;
  box-shadow: var(--shadow);
}

.device-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-first-section {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.photo-layout {
  grid-template-columns: minmax(420px, 1.2fr) minmax(0, 0.8fr);
}

.photo-devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
}

.photo-devices .device-shot {
  width: 100%;
  border-width: 5px;
  border-radius: 26px;
}

.photo-devices .device-shot:last-child {
  transform: translateY(34px);
}

.photo-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.photo-point {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 11px;
  align-items: start;
  color: var(--muted);
}

.photo-point::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin-top: 36px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.faq-list summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 4px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--gold);
  font-size: 24px;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 720px;
  margin: 0;
  padding: 0 4px 22px;
  color: var(--muted);
}

.final-cta {
  margin: 0 24px 72px;
  padding: 72px 24px;
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
  text-align: center;
}

.final-cta h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: 48px;
  line-height: 1.08;
}

.final-cta p {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.final-actions {
  justify-content: center;
  margin-top: 28px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-tagline {
  justify-self: end;
  margin: 0;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 15px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .hero h1 {
    font-size: 56px;
  }

  .profile-ticket {
    left: 0;
  }

  .qr-ticket {
    right: 0;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: 0;
  }

  .profiles-layout,
  .photo-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .profiles-copy {
    max-width: 700px;
  }

  .photo-layout {
    grid-template-columns: 1fr;
  }

  .photo-devices {
    order: 2;
    width: min(620px, 100%);
    margin: 0 auto;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .footer-tagline {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    gap: 12px;
    padding: 10px 16px;
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .header-actions .button-secondary {
    display: none;
  }

  .button-compact {
    min-height: 40px;
    padding: 8px 12px;
  }

  .hero {
    height: max(500px, calc(100svh - 104px));
    padding: 54px 16px 0;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions,
  .final-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .final-actions .button {
    width: 100%;
  }

  .identity-route {
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
  }

  .identity-route > :nth-child(1),
  .identity-route > :nth-child(2) {
    display: none;
  }

  .hero-scene {
    min-height: 330px;
    margin-top: 30px;
  }

  .hero-device {
    top: 70px;
    width: 224px;
    height: 486px;
    border-width: 5px;
    border-radius: 28px;
  }

  .profile-ticket,
  .qr-ticket {
    display: none;
  }

  .section {
    padding: 72px 18px;
  }

  .section-heading,
  .final-cta h2 {
    font-size: 38px;
  }

  .section-intro,
  .final-cta p {
    font-size: 17px;
  }

  .device-shot {
    width: min(310px, 88vw);
  }

  .photo-devices {
    gap: 10px;
  }

  .photo-devices .device-shot:last-child {
    transform: translateY(22px);
  }

  .final-cta {
    margin: 0 0 56px;
    padding: 64px 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    width: calc(100% - 36px);
    text-align: center;
  }

  .footer-brand,
  .footer-links {
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
