:root {
  --bg: #f5f1ea;
  --card: #fbf8f3;
  --ink: #3b2314;
  --muted: #9c8974;
  --dim: #b7a692;
  --line: #e3dac9;
  --separator: #eae2d2;
  --dashed: #c9bca6;
  --accent: #e0912f;
  --primary: #3b2314;
  --on-primary: #f5f1ea;
  --dark-bg: #241a12;
  --dark-card: #2c2017;
  --dark-line: #3a2c20;
  --dark-ink: #f0e9dc;
  --dark-muted: #a79581;

  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: 72px;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

.page {
  max-width: 1440px;
  margin: 0 auto;
}

.eyebrow {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow.accent {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.button {
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font: 700 16px/1 var(--sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 22px -10px rgba(59, 35, 20, 0.6);
}

.button.ghost {
  height: 52px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  box-shadow: none;
}

.button:hover {
  color: var(--accent);
}

.button.ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
}

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

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-cta {
  height: 38px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.nav-cta:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 80px;
  align-items: center;
  padding: 76px var(--pad) 96px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero h1 {
  margin: 0;
  font-size: 68px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.hero-lead {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-sub {
  max-width: 600px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-note {
  font: 400 12px/1.6 var(--mono);
  letter-spacing: 0.06em;
  color: var(--dim);
}

.phone {
  width: 390px;
  height: 600px;
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 56px -22px rgba(59, 35, 20, 0.4);
}

.phone-status {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
}

.phone-signal {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-signal i {
  width: 15px;
  height: 9px;
  border-radius: 2px;
  background: var(--ink);
}

.phone-signal b {
  width: 22px;
  height: 10px;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
}

.phone-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 24px;
  flex-shrink: 0;
}

.phone-saved {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in oklab, var(--accent) 55%, #241a12);
}

.phone-menu {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-text {
  flex: 1;
  padding: 14px 24px 0;
  font-size: 19px;
  line-height: 1.55;
  text-wrap: pretty;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 20px;
  vertical-align: -3px;
  margin-left: 2px;
  background: var(--accent);
}

.phone-compose {
  padding: 12px 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.phone-chips {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow: hidden;
}

.chip {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in oklab, var(--accent) 58%, #241a12);
  white-space: nowrap;
}

.chip span {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}

.chip-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px dashed var(--dashed);
  flex-shrink: 0;
}

.phone-save {
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--on-primary);
  box-shadow: 0 6px 16px -7px rgba(59, 35, 20, 0.6);
}

.keyboard {
  background: #d9d1c1;
  padding: 10px 6px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.key-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 0 4px;
}

.key {
  flex: 1;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--ink);
  background: #fdfbf7;
  box-shadow: 0 1px 0 rgba(59, 35, 20, 0.22);
}

.key.mod {
  background: #c4baa8;
  font-size: 12px;
  flex: none;
  width: 40px;
}

.key.wide {
  font-size: 14px;
}

.key.enter {
  flex: none;
  width: 56px;
}

.key.space {
  font-size: 12px;
}

.key.pad {
  flex: none;
  width: 16px;
  background: transparent;
  box-shadow: none;
}

.section {
  padding: 0 var(--pad) 104px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rule {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rule span:last-child {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.concept {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: 104px var(--pad);
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.concept-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.concept-title {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.concept-lead {
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.concept-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--dark-muted);
  text-wrap: pretty;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-index {
  font: 600 12px/1 var(--mono);
  color: var(--accent);
  padding-top: 4px;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
}

.step-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-muted);
}

.facts {
  margin-top: 72px;
  padding-top: 44px;
  border-top: 1px solid var(--dark-line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fact .eyebrow {
  color: var(--dark-muted);
}

.fact.is .eyebrow {
  color: var(--accent);
}

.fact span:last-child {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-ink);
}

.sides {
  padding: 104px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.sides-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.sides-title {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}

.sides-title strong {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.sides-note {
  max-width: 440px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.side-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.tags {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--separator);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  height: 28px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  font: 400 12px/1 var(--mono);
  color: var(--muted);
}

.log {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 34px 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
}

.log-day {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.log-date {
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.log-head .fill {
  flex: 1;
  height: 1px;
  background: var(--separator);
}

.log-count {
  font: 400 11px/1 var(--mono);
  color: var(--dim);
}

.log-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 9px 0;
}

.log-time {
  font: 400 12px/1.7 var(--mono);
  color: var(--dim);
  text-align: right;
}

.log-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.log-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 45%, transparent);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  color: color-mix(in oklab, var(--tint) 55%, #241a12);
}

.badge i {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: var(--tint);
  flex-shrink: 0;
}

.cta {
  padding: 0 var(--pad) 112px;
}

.cta-inner {
  border-top: 1px solid var(--line);
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.cta-title {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 720px;
  text-wrap: pretty;
}

.cta-text {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.foot {
  min-height: 78px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px var(--pad);
}

.foot-mark {
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--muted);
}

.foot-links {
  display: flex;
  gap: 24px;
}

.foot-links a {
  font-size: 13px;
  color: var(--muted);
}

.foot-links a:hover {
  color: var(--accent);
}

@media (max-width: 1180px) {
  :root {
    --pad: 48px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    justify-items: start;
  }

  .hero h1 {
    font-size: 56px;
  }

  .concept-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .sides-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .cards-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 24px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .phone {
    width: 100%;
    max-width: 390px;
    height: 560px;
  }

  .section,
  .sides,
  .concept {
    padding-bottom: 72px;
  }

  .concept {
    padding-top: 72px;
  }

  .sides {
    padding-top: 72px;
  }

  .facts {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .concept-title,
  .sides-title strong,
  .cta-title {
    font-size: 30px;
  }

  .side,
  .log {
    padding: 24px;
  }

  .log-row {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }

  .log-body {
    flex-direction: column;
    gap: 8px;
  }

  .cta-inner {
    padding-top: 56px;
  }

  .button,
  .button.ghost {
    flex: 1;
    min-width: 200px;
  }
}

.legal {
  padding: 56px var(--pad) 96px;
  max-width: 880px;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1 var(--sans);
  color: var(--muted);
}

.legal-back:hover {
  color: var(--accent);
}

.legal h1 {
  margin: 26px 0 10px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.legal-updated {
  margin: 0 0 40px;
  font: 400 12px/1.6 var(--mono);
  letter-spacing: 0.06em;
  color: var(--dim);
}

.legal h2 {
  margin: 44px 0 14px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.legal h3 {
  margin: 30px 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.72;
  text-wrap: pretty;
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal a {
  color: var(--accent);
  font-weight: 600;
}

.legal a:hover {
  text-decoration: underline;
}

.legal strong {
  font-weight: 700;
}

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  margin: 0 0 18px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid var(--separator);
}

.legal-table th {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 26px;
  margin: 0 0 18px;
}

.notice.warn {
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.notice p:last-child,
.notice ul:last-child {
  margin-bottom: 0;
}

.steps-num {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps-num li {
  counter-increment: step;
  position: relative;
  padding: 22px 26px 22px 68px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.steps-num li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 26px;
  top: 24px;
  font: 600 12px/1 var(--mono);
  color: var(--accent);
}

@media (max-width: 720px) {
  .legal {
    padding: 32px var(--pad) 64px;
  }

  .legal h1 {
    font-size: 30px;
  }

  .legal h2 {
    font-size: 19px;
  }

  .steps-num li {
    padding: 20px 20px 20px 20px;
  }

  .steps-num li::before {
    position: static;
    display: block;
    margin-bottom: 8px;
  }
}
