:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --paper-warm: #eee4d5;
  --ink: #2f2922;
  --muted: #66594c;
  --soft-muted: #8a7b68;
  --sage: #516f57;
  --sage-dark: #3f5845;
  --clay: #b87957;
  --cream: rgba(255, 252, 245, 0.9);
  --cream-solid: #fffaf2;
  --line: rgba(79, 64, 48, 0.16);
  --shadow: 0 24px 70px rgba(57, 40, 24, 0.14);
  --soft-shadow: 0 18px 44px rgba(57, 40, 24, 0.11);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max-width: 1160px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section,
.legal-shell {
  scroll-margin-top: 112px;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  background:
    linear-gradient(rgba(246, 241, 232, 0.84), rgba(246, 241, 232, 0.9)),
    url("assets/paper-texture.jpg") center / 760px auto repeat,
    var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sage-dark);
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.3rem, 4.8vw, 4.3rem);
  font-weight: 500;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  font-weight: 500;
}

h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.6vw, 2.5rem);
}

h4 {
  margin: 0;
  font-size: 1.55rem;
}

p {
  margin: 0;
}

.site-header,
.hero-section,
.intro-panel,
.story-section,
.assistant-section,
.trust-section,
.contact-band,
.site-footer,
.legal-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px;
  border: 1px solid transparent;
  border-radius: 0 0 24px 24px;
  background: rgba(246, 241, 232, 0.78);
  backdrop-filter: blur(14px);
  transition:
    width 180ms ease,
    padding 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.is-scrolled .site-header {
  width: min(calc(100% - 20px), var(--max-width));
  padding-block: 8px;
  border-color: var(--line);
  background: rgba(255, 250, 242, 0.94);
  box-shadow: 0 12px 34px rgba(57, 40, 24, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.app-name {
  font-style: italic;
}

.brand img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(57, 40, 24, 0.12);
  transition:
    width 180ms ease,
    height 180ms ease,
    border-radius 180ms ease,
    box-shadow 180ms ease;
}

.is-scrolled .brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(57, 40, 24, 0.1);
}

.top-nav,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.top-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.98rem;
  text-decoration: none;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--sage-dark);
  text-decoration: underline;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 560px;
  padding: clamp(28px, 4.4vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.96), rgba(255, 250, 242, 0.76)),
    url("assets/home-background.jpg") right center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-section h1 {
  max-width: 7.4ch;
  font-size: clamp(2.8rem, 6vw, 4.9rem);
}

.hero-section::after {
  position: absolute;
  inset: auto 38px 30px auto;
  width: 110px;
  height: 110px;
  content: "";
  border-right: 1px solid rgba(184, 121, 87, 0.4);
  border-bottom: 1px solid rgba(184, 121, 87, 0.4);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

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

.lead {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fffaf2;
  background: var(--sage);
  box-shadow: 0 12px 28px rgba(63, 88, 69, 0.22);
}

.button.primary:hover {
  background: var(--sage-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 250, 242, 0.76);
  border-color: var(--line);
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 360px;
}

.phone-frame {
  width: min(290px, 80vw);
  overflow: hidden;
  border: 10px solid #28231f;
  border-radius: 42px;
  background: #f7f4ec;
  box-shadow: 0 28px 70px rgba(26, 22, 18, 0.34);
}

.phone-frame img {
  width: 100%;
  height: auto;
}

.hero-phone {
  transform: rotate(-3deg);
  width: min(250px, 72vw);
}

.guide-badge {
  position: absolute;
  right: -12px;
  bottom: 8px;
  width: min(180px, 34vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-solid);
  box-shadow: 0 24px 54px rgba(26, 22, 18, 0.3);
}

.guide-character {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.intro-panel {
  margin-top: 20px;
  padding: clamp(22px, 3.6vw, 32px);
  border-left: 4px solid var(--clay);
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.95vw, 1.8rem);
  line-height: 1.35;
}

.story-section,
.assistant-section,
.trust-section,
.contact-band {
  margin-top: clamp(54px, 8vw, 96px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(28px, 6vw, 62px);
}

.section-intro {
  margin-top: 16px;
  max-width: 720px;
  color: var(--muted);
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(24px, 5vw, 50px) 0;
  border-top: 1px solid var(--line);
}

.story-row.reverse {
  grid-template-columns: minmax(300px, 1.05fr) minmax(0, 0.95fr);
}

.story-row.reverse .story-copy {
  order: 2;
}

.story-row.reverse .phone-card {
  order: 1;
}

.story-copy p,
.assistant-section p,
.soft-card p,
.contact-band p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.step-number {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--clay);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
}

.story-copy h3 + p {
  margin-top: 18px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 14px;
  height: 2px;
  content: "";
  background: var(--sage);
}

.image-card,
.phone-card,
.soft-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--soft-shadow);
}

.image-card {
  overflow: hidden;
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figcaption {
  padding: 14px 18px 18px;
  color: var(--soft-muted);
  font-size: 0.92rem;
}

.phone-card {
  display: grid;
  justify-items: center;
  padding: 28px;
}

.phone-card figcaption {
  max-width: 340px;
  text-align: center;
}

.feature-card {
  padding: clamp(28px, 5vw, 46px);
}

.small-title {
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature-card h4 + p {
  margin-top: 14px;
}

.phone-pair,
.assistant-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 24px);
  align-items: start;
}

.phone-card.compact {
  padding: 18px;
}

.phone-card.compact .phone-frame {
  width: min(230px, 100%);
  border-width: 8px;
  border-radius: 34px;
}

.phone-card.lift {
  margin-top: clamp(28px, 5vw, 58px);
}

.assistant-section {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(30px, 6vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(238, 228, 213, 0.86)),
    var(--cream-solid);
  box-shadow: var(--shadow);
}

.assistant-screens {
  position: relative;
}

.assistant-section > div:first-child {
  display: grid;
  gap: 22px;
}

.assistant-screens::before {
  position: absolute;
  inset: 10% 6% auto auto;
  z-index: 0;
  width: 150px;
  height: 150px;
  content: "";
  border-radius: 999px;
  background: rgba(184, 121, 87, 0.13);
}

.assistant-screens .phone-card {
  position: relative;
  z-index: 1;
}

.assistant-section h2 + p {
  margin-top: 16px;
}

.extension-grid {
  display: grid;
  gap: 16px;
}

.extension-card {
  padding: 22px 24px;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sage-dark);
  background: rgba(255, 250, 242, 0.74);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-row + p {
  margin-top: 14px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill-row span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sage-dark);
  background: rgba(255, 250, 242, 0.74);
  font-weight: 800;
}

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

.soft-card {
  padding: clamp(24px, 4vw, 34px);
}

.soft-card h3 + p {
  margin-top: 14px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--cream);
  box-shadow: var(--soft-shadow);
}

.contact-band h2 + p {
  margin-top: 16px;
  max-width: 720px;
}

.site-footer {
  justify-content: center;
  margin-top: 54px;
  padding: 28px 0 34px;
  color: var(--soft-muted);
}

.legal-shell {
  max-width: 920px;
  padding-top: 20px;
}

.legal-header {
  margin-bottom: 22px;
}

.legal-header h1 {
  max-width: 16ch;
  font-size: clamp(2.3rem, 4.5vw, 4rem);
}

.licenses-shell .legal-header h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.legal-meta {
  margin-top: 12px;
  color: var(--muted);
}

.legal-card {
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.legal-card section + section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.legal-card h2 + p,
.legal-card h2 + ul,
.legal-card p + ul {
  margin-top: 14px;
}

.license-list {
  display: grid;
  gap: 18px;
}

.license-list li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.license-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-inline: 16px;
  }

  .is-scrolled .site-header {
    gap: 8px;
  }

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

  .is-scrolled .brand img {
    width: 36px;
    height: 36px;
  }

  .hero-section,
  .story-row,
  .story-row.reverse,
  .assistant-section,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .story-row.reverse .story-copy,
  .story-row.reverse .phone-card {
    order: initial;
  }

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

  .contact-band .button {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero-section,
  .intro-panel,
  .story-section,
  .assistant-section,
  .trust-section,
  .contact-band,
  .site-footer,
  .legal-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .hero-section,
  .assistant-section,
  .contact-band,
  .legal-card {
    border-radius: 22px;
  }

  .hero-section {
    padding: 24px;
  }

  .top-nav {
    gap: 8px 14px;
  }

  .site-header,
  .is-scrolled .site-header {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .button {
    width: 100%;
    min-height: 54px;
    text-align: center;
  }

  .hero-actions,
  .contact-band {
    align-items: stretch;
  }

  .phone-frame {
    width: min(260px, 86vw);
  }

  .phone-pair,
  .assistant-screens {
    grid-template-columns: 1fr;
  }

  .phone-card.compact .phone-frame {
    width: min(260px, 84vw);
  }

  .phone-card.lift {
    margin-top: 0;
  }

  .guide-badge {
    width: min(190px, 48vw);
  }
}

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

  .site-header,
  .brand img {
    transition: none;
  }
}
