:root {
  color-scheme: light;
  --bg: #f7f2e9;
  --surface: #fffdf8;
  --ink: #211a17;
  --muted: #746b63;
  --accent: #6e1f2b;
  --brass: #795720;
  --olive: #536b4e;
  --border: #e3d8ca;
  --wash: #efe4d7;
  --shadow: 0 18px 45px rgba(33, 26, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #4f111c;
}

.site-header {
  align-items: center;
  background: rgba(247, 242, 233, 0.92);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  overflow: hidden;
}

.section {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 64px);
}

.section.tight {
  padding-top: clamp(32px, 5vw, 56px);
}

.wrap {
  margin: 0 auto;
  max-width: 1120px;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  min-height: min(720px, calc(82vh - 78px));
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.hero-copy {
  align-self: center;
  min-width: 0;
}

.tagline {
  color: var(--brass);
  font-size: 0.98rem;
  font-weight: 760;
  margin: 0 0 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 18px;
  max-width: min(660px, 100%);
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.02rem;
  letter-spacing: 0;
  line-height: 1.28;
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  max-width: 680px;
}

.hero-actions,
.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--accent);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 750;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: var(--surface);
}

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

.phone-preview {
  align-self: center;
  background: linear-gradient(160deg, #524c46, #26221e 55%, #131110);
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: 46px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 253, 248, 0.08);
  display: inline-block;
  margin-inline: auto;
  max-width: 327px;
  padding: 9px;
  position: relative;
  width: clamp(260px, 21.6vw, 327px);
}

.phone-preview::before,
.phone-preview::after {
  background: #100e0c;
  content: "";
  position: absolute;
}

/* Action button, then volume up/down (box-shadow repeats the same mark lower down the edge) */
.phone-preview::before {
  border-radius: 2px 0 0 2px;
  box-shadow: 0 40px 0 #100e0c, 0 74px 0 #100e0c;
  height: 15px;
  left: -2px;
  top: 88px;
  width: 2px;
}

/* Power button */
.phone-preview::after {
  border-radius: 0 2px 2px 0;
  height: 62px;
  right: -2px;
  top: 118px;
  width: 2px;
}

.phone-screen {
  aspect-ratio: 1206 / 2622;
  background: #000;
  border-radius: 37px;
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.screen-shot {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.panel,
.price-card,
.reference-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
}

.panel {
  box-shadow: 0 10px 30px rgba(33, 26, 23, 0.04);
}

.price-card.featured {
  border-color: rgba(110, 31, 43, 0.45);
  box-shadow: var(--shadow);
}

.price {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  line-height: 1;
  margin: 8px 0 16px;
}

.muted {
  color: var(--muted);
}

.code {
  background: var(--wash);
  border-radius: 6px;
  color: var(--ink);
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
  padding: 0.12em 0.38em;
  overflow-wrap: anywhere;
}

.feature-list,
.check-list,
.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.feature-list li,
.check-list li,
.plain-list li {
  margin-bottom: 9px;
}

.band {
  background: var(--ink);
  color: var(--surface);
}

.band .muted,
.band .lead {
  color: rgba(255, 253, 248, 0.72);
}

.band .panel {
  background: rgba(255, 253, 248, 0.08);
  border-color: rgba(255, 253, 248, 0.16);
  box-shadow: none;
}

.band .price-card {
  color: var(--ink);
}

.band .price-card .muted,
.band .price-card p {
  color: var(--muted);
}

.band a {
  color: #f5d8df;
}

.page-hero {
  padding-bottom: clamp(26px, 5vw, 44px);
}

.page-hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}

.content {
  max-width: 850px;
}

.content h2 {
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  margin-top: 46px;
}

.content p,
.content li {
  color: var(--muted);
  font-size: 1rem;
}

.reference-table {
  border-collapse: collapse;
  width: 100%;
}

.reference-table th,
.reference-table td {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  text-align: left;
  vertical-align: top;
}

.reference-table th {
  color: var(--ink);
  font-size: 0.88rem;
  width: 32%;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px clamp(18px, 5vw, 64px);
}

.footer-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    position: static;
  }

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

  .hero,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 16px;
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .phone-preview {
    order: -1;
    width: clamp(148px, 44vw, 184px);
  }
}

@media (max-width: 520px) {
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(1.95rem, 9vw, 2.15rem);
    line-height: 1;
    text-wrap: balance;
  }

  .hero .lead {
    font-size: 1rem;
    max-width: 30ch;
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .reference-table,
  .reference-table tbody,
  .reference-table tr,
  .reference-table th,
  .reference-table td {
    display: block;
    width: 100%;
  }

  .reference-table th {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .reference-table td {
    padding-top: 0;
  }
}
