:root {
  color-scheme: light;
  --bg: #faf7f2;
  --bg-2: #f1ede5;
  --ink: #1b1a17;
  --ink-2: #3a3833;
  --ink-3: #6b665e;
  --line: rgba(27, 26, 23, 0.12);
  --surface: #ffffff;
  --surface-warm: #fbf8f3;
  --sage: #7a9b7e;
  --sage-deep: #5e7e63;
  --sage-bg: #eef5ed;
  --terracotta: #c26b4a;
  --terracotta-bg: #f7e8df;
  --slate: #5c6b78;
  --plum: #8c5a7a;
  --shadow: 0 18px 48px rgba(27, 26, 23, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(250, 247, 242, 0.92);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 12px 12px 8px 8px;
  position: relative;
  background: var(--surface);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -2px;
  height: 13px;
  border-radius: 8px 8px 3px 3px;
  background: var(--sage);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: var(--ink);
}

.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 12px;
}

.nav-label {
  margin: 26px 0 10px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-link {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--surface);
}

.content {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: center;
  padding: 64px clamp(28px, 6vw, 78px) 44px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(238, 245, 237, 0.9), rgba(250, 247, 242, 0.84) 50%, rgba(247, 232, 223, 0.72));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 500;
  line-height: 0.97;
}

h1 em,
h2 em {
  color: var(--sage-deep);
  font-style: italic;
  font-weight: 500;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

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

.device-scene {
  position: relative;
  min-height: 340px;
}

.tablet {
  position: absolute;
  right: 0;
  top: 18px;
  width: 356px;
  height: 224px;
  border: 14px solid var(--ink);
  border-radius: 22px;
  background: var(--surface-warm);
  box-shadow: var(--shadow);
}

.tablet::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 86px;
  height: 24px;
  transform: translateX(-50%);
  background: rgba(27, 26, 23, 0.28);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.tablet-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
  height: 100%;
  padding: 18px;
}

.tablet-panel {
  border-radius: 10px;
  background: var(--sage-bg);
  padding: 14px;
}

.tablet-panel strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.tablet-panel span {
  color: var(--ink-3);
  font-size: 12px;
}

.tablet-stack {
  display: grid;
  gap: 9px;
}

.mini-card {
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
}

.phone {
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 148px;
  height: 270px;
  border: 10px solid var(--ink);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px 12px;
}

.phone-pill {
  width: 56px;
  height: 6px;
  margin: 0 auto 18px;
  border-radius: 99px;
  background: var(--line);
}

.phone-row {
  height: 34px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--bg-2);
}

.phone-row.accent {
  background: var(--terracotta-bg);
}

.section {
  padding: 54px clamp(28px, 6vw, 78px);
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.05;
}

.section-lede {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.55;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.card.tint {
  background: var(--surface-warm);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--ink-3);
  line-height: 1.5;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--sage);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: steps;
}

.flow-card {
  position: relative;
  min-height: 174px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  counter-increment: steps;
}

.flow-card::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
}

.flow-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.flow-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.45;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-label {
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-3);
  line-height: 1.5;
}

.code-block {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #201f1b;
  color: #f8f3e9;
  padding: 18px;
  font-size: 13px;
  line-height: 1.55;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--sage-bg);
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 700;
}

.note {
  border-left: 4px solid var(--terracotta);
  background: var(--terracotta-bg);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--ink-2);
  line-height: 1.5;
}

.footer {
  padding: 34px clamp(28px, 6vw, 78px);
  color: var(--ink-3);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .nav-label {
    margin-top: 18px;
  }

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

  .device-scene {
    min-height: 300px;
  }

  .tablet {
    width: min(356px, 88vw);
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .section,
  .hero,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .phone {
    transform: scale(0.84);
    transform-origin: left bottom;
  }

  .tablet {
    right: -18px;
    transform: scale(0.88);
    transform-origin: right top;
  }
}
