:root {
  --paper: #f4f0e8;
  --paper-strong: #fbf8f2;
  --ink: #151515;
  --muted: #5d5b57;
  --line: rgba(21, 21, 21, 0.12);
  --amber: #c3812f;
  --amber-deep: #9d5e16;
  --forest: #3c5a46;
  --slate: #34455d;
  --rose: #8e4a45;
  --shadow: 0 24px 60px rgba(16, 14, 10, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(195, 129, 47, 0.16), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(52, 69, 93, 0.14), transparent 24%),
    linear-gradient(180deg, #f9f5ed 0%, #efe8dc 100%);
  font-family: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 24px auto;
}

.site-header,
.site-footer,
.hero,
.section-grid,
.story-panel,
.support-strip,
.legal-page {
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 242, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.site-header,
.site-footer,
.section-grid,
.story-panel,
.support-strip,
.legal-page {
  border-radius: 28px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
}

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

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

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

.hero {
  margin-top: 24px;
  border-radius: 36px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
}

.hero-copy h1,
.section-heading h2,
.story-panel h2,
.support-strip h2,
.legal-page h1,
.legal-page h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  margin: 8px 0 18px;
}

.hero-text,
.story-columns p,
.feature-card p,
.legal-page p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--amber-deep);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-deep) 100%);
  color: #fff7ee;
  box-shadow: 0 14px 30px rgba(157, 94, 22, 0.3);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.hero-highlights {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--ink);
}

.hero-highlights li::before {
  content: "•";
  color: var(--amber-deep);
  margin-right: 10px;
}

.phone-frame {
  align-self: center;
  justify-self: center;
  width: min(100%, 360px);
  border-radius: 42px;
  padding: 14px;
  background: linear-gradient(160deg, #1d1d20 0%, #4a4d52 100%);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.26);
}

.phone-screen {
  min-height: 680px;
  border-radius: 30px;
  padding: 24px 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #151515 0%, #303338 52%, #d8b184 100%);
  color: #f5f2ea;
}

.screen-topline {
  opacity: 0.85;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.phone-screen h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.screen-intro {
  margin: 0 0 22px;
  color: rgba(245, 242, 234, 0.82);
  line-height: 1.55;
}

.screen-card {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 12px;
}

.screen-card p {
  margin: 10px 0 0;
  line-height: 1.45;
}

.screen-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.screen-tag.blue { background: rgba(70, 142, 255, 0.24); }
.screen-tag.amber { background: rgba(255, 174, 65, 0.24); }
.screen-tag.green { background: rgba(79, 189, 122, 0.24); }
.screen-tag.red { background: rgba(217, 91, 91, 0.24); }

.section-grid,
.story-panel,
.support-strip {
  margin-top: 24px;
  padding: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.feature-card {
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

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

.support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer {
  margin-top: 24px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.legal-shell .site-header {
  margin-bottom: 24px;
}

.legal-page {
  padding: 32px 28px;
}

.legal-page h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 1.7rem;
}

@media (max-width: 960px) {
  .hero,
  .story-columns,
  .feature-grid,
  .support-strip,
  .site-header,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 22px;
  }

  .phone-frame {
    width: 100%;
    max-width: 420px;
  }

  .phone-screen {
    min-height: 620px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1160px);
    margin: 10px auto 22px;
  }

  .site-header,
  .site-footer,
  .section-grid,
  .story-panel,
  .support-strip,
  .legal-page {
    border-radius: 22px;
  }

  .hero {
    border-radius: 28px;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  .phone-screen {
    min-height: auto;
  }
}
