:root {
  --bg: #f6f2ea;
  --panel: rgba(255, 252, 246, 0.84);
  --panel-strong: #fffaf2;
  --text: #1f1a16;
  --muted: #65594f;
  --line: rgba(67, 52, 39, 0.14);
  --brand: #8a4b24;
  --brand-deep: #663117;
  --brand-soft: #ead6c2;
  --accent: #3f6f67;
  --shadow: 0 18px 48px rgba(51, 35, 23, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(138, 75, 36, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(63, 111, 103, 0.16), transparent 30%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  padding: 22px 0;
}

.topbar .shell,
.hero-grid,
.footer-grid,
.grid-2,
.stack {
  display: grid;
  gap: 20px;
}

.topbar .shell {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff8ef;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(102, 49, 23, 0.22);
}

.brand-copy strong,
.nav a,
.eyebrow,
.card h3,
.section h2,
.cta h2,
.hero-copy h1,
.page-hero h1,
.faq dt {
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

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

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-copy,
.page-hero,
.card,
.panel,
.cta,
.content {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 40px;
  border-radius: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 4.2vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy p,
.lede,
.content p,
.content li,
.faq dd,
.footer-copy p,
.legal p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button,
.button-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff8ef;
  box-shadow: 0 14px 28px rgba(102, 49, 23, 0.18);
}

.button-muted {
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.button:hover,
.button:focus-visible,
.button-muted:hover,
.button-muted:focus-visible {
  transform: translateY(-1px);
}

.device {
  position: relative;
  padding: 18px;
  border-radius: 36px;
  background: linear-gradient(180deg, #36261d 0%, #160f0c 100%);
  box-shadow: 0 26px 60px rgba(24, 15, 10, 0.28);
  max-width: 390px;
  margin-left: auto;
}

.device::before {
  content: "";
  position: absolute;
  inset: 9px 118px auto;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.screen {
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f3ec 0%, #efe4d6 100%);
  min-height: 700px;
  padding: 26px 22px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.screen-header,
.screen-row,
.pill-row,
.footer-grid,
.grid-3 {
  display: grid;
  gap: 12px;
}

.screen-header {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.screen-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff8ef;
  display: grid;
  place-items: center;
  font-size: 26px;
}

.screen-card,
.doc-list article,
.meta-card {
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid rgba(67, 52, 39, 0.08);
  border-radius: 18px;
}

.screen-card {
  padding: 16px;
}

.screen-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pill-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pill {
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(138, 75, 36, 0.1);
  color: var(--brand-deep);
  text-align: center;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.doc-list {
  display: grid;
  gap: 12px;
}

.doc-list article {
  padding: 14px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
}

.doc-thumb {
  width: 48px;
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f1e4d5 100%);
  border: 1px solid rgba(67, 52, 39, 0.1);
}

.meta-card {
  padding: 18px;
}

.section,
.page {
  padding: 28px 0 16px;
}

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

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

.card,
.panel,
.content,
.cta {
  border-radius: var(--radius-lg);
}

.card,
.panel,
.content {
  padding: 26px;
}

.card h3,
.panel h2,
.content h2,
.content h3,
.cta h2 {
  margin: 0 0 10px;
}

.card p,
.panel p,
.content ul,
.content ol,
.content li,
.content address,
.content a,
.panel a {
  color: var(--muted);
}

.key-points,
.contact-list,
.checklist,
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.key-points li,
.contact-list li,
.checklist li,
.legal-list li {
  padding-left: 18px;
  position: relative;
}

.key-points li::before,
.contact-list li::before,
.checklist li::before,
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.faq {
  display: grid;
  gap: 16px;
}

.faq div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.faq div:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq dt {
  font-weight: 700;
  margin-bottom: 8px;
}

.faq dd {
  margin: 0;
}

.page-hero {
  padding: 34px;
  border-radius: 28px;
}

.crumbs {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
}

.content h2 {
  margin-top: 28px;
}

.content h2:first-child {
  margin-top: 0;
}

.content code {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(138, 75, 36, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.cta {
  margin-top: 20px;
  padding: 30px;
  display: grid;
  gap: 14px;
  background: linear-gradient(135deg, rgba(138, 75, 36, 0.16), rgba(63, 111, 103, 0.14));
}

.footer {
  padding: 36px 0 54px;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.footer-copy,
.legal {
  background: rgba(255, 252, 246, 0.65);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.footer-copy p,
.legal p {
  margin: 0;
}

.small {
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid,
  .topbar .shell {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }

  .device {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(var(--max), calc(100% - 20px));
  }

  .hero-copy,
  .page-hero,
  .card,
  .panel,
  .content,
  .cta,
  .footer-copy,
  .legal {
    padding: 22px;
  }

  .pill-row,
  .screen-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.7rem;
  }
}
