:root {
  --bg: #f6f2e8;
  --bg-strong: #efe6d6;
  --surface: rgba(255, 251, 244, 0.72);
  --surface-strong: #fffaf1;
  --text: #16202d;
  --muted: #526173;
  --line: rgba(22, 32, 45, 0.12);
  --accent: #d55d3d;
  --accent-deep: #a63f2a;
  --secondary: #24413d;
  --shadow: 0 30px 80px rgba(28, 34, 43, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(213, 93, 61, 0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(36, 65, 61, 0.17), transparent 24%),
    linear-gradient(180deg, #f8f4ec 0%, #f3eddf 38%, #fbf7ee 100%);
  font: 16px/1.6 "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
li {
  color: var(--muted);
}

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

.site-header,
.site-footer,
.hero,
.section,
.legal-layout {
  position: relative;
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff8ef;
  background: linear-gradient(135deg, var(--accent) 0%, #db8e5a 100%);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 18px 30px rgba(213, 93, 61, 0.24);
}

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

.brand-copy strong {
  color: var(--text);
  font-size: 1rem;
}

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

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 44px;
  align-items: center;
  min-height: 72vh;
  padding: 48px 0 52px;
}

.hero-app {
  min-height: 66vh;
}

.hero-copy h1,
.section-heading h2,
.split-section h2,
.legal-aside h1,
.feature-card h3,
.stack-item strong,
.panel-tile strong,
.phone-card strong {
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 5.3vw, 5.8rem);
  line-height: 0.92;
}

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

.lede {
  margin: 24px 0 0;
  max-width: 58ch;
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button-primary {
  color: #fff7ef;
  background: linear-gradient(135deg, var(--accent) 0%, #cf7c4b 100%);
  box-shadow: 0 18px 34px rgba(213, 93, 61, 0.22);
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.58);
}

.hero-panel,
.phone-frame,
.feature-card,
.stack-item,
.legal-aside,
.legal-article {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.grid-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.panel-tile,
.feature-card,
.stack-item,
.phone-card {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.panel-tile span,
.feature-card .kicker,
.phone-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.65rem;
}

.panel-tile.accent {
  color: #fff8ef;
  background: linear-gradient(135deg, #274843 0%, #162d2c 100%);
}

.panel-tile.accent span,
.panel-tile.accent strong,
.panel-tile.accent p {
  color: #f7ede4;
}

.section {
  padding: 26px 0 56px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.split-section h2 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 0.98;
}

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

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

.feature-card p {
  margin: 0 0 18px;
}

.feature-card a,
.stack-item a,
.legal-article a {
  color: var(--secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.stack-list {
  display: grid;
  gap: 16px;
}

.stack-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 360px);
  padding: 16px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(30, 42, 61, 0.96), rgba(22, 31, 46, 0.98));
}

.phone-screen {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 26px;
  min-height: 520px;
  background:
    radial-gradient(circle at top right, rgba(213, 93, 61, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(247, 239, 226, 0.94), rgba(241, 232, 215, 0.96));
}

.phone-card {
  background: rgba(255, 250, 241, 0.86);
}

.phone-card-primary {
  padding-top: 28px;
  padding-bottom: 28px;
  background: linear-gradient(135deg, rgba(213, 93, 61, 0.92), rgba(205, 131, 76, 0.84));
}

.phone-card-primary span,
.phone-card-primary strong {
  color: #fff7f0;
}

.site-shell-legal {
  width: min(calc(100% - 32px), 1280px);
}

.legal-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 26px;
  padding: 28px 0 52px;
}

.legal-aside,
.legal-article {
  border-radius: var(--radius-xl);
}

.legal-aside {
  align-self: start;
  position: sticky;
  top: 18px;
  padding: 28px;
}

.legal-aside h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 0.96;
}

.legal-meta {
  margin-top: 12px;
}

.legal-links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.legal-article {
  padding: 34px;
  background: rgba(255, 252, 247, 0.88);
}

.legal-article h2,
.legal-article h3 {
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.legal-article h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.legal-article h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.legal-article ul {
  padding-left: 22px;
}

.legal-article hr {
  margin: 36px 0 18px;
  border: 0;
  border-top: 1px solid var(--line);
}

.legal-note {
  font-size: 0.95rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: start;
  padding: 26px 0 44px;
  border-top: 1px solid rgba(22, 32, 45, 0.08);
}

.site-footer p {
  margin: 6px 0 0;
}

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

.footer-meta {
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .legal-layout,
  .site-footer,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 26px;
  }

  .legal-aside {
    position: static;
  }

  .site-footer {
    padding-bottom: 32px;
  }
}

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

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .section-heading h2,
  .split-section h2 {
    max-width: none;
  }

  .legal-article,
  .legal-aside,
  .grid-panel {
    padding: 22px;
  }

  .phone-frame {
    width: 100%;
  }
}
