:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --surface: #fffdf7;
  --ink: #222322;
  --muted: #68635d;
  --line: #ded7ca;
  --green: #178a68;
  --green-soft: #dff4e8;
  --dark: #171715;
  --dark-2: #2b2b28;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent 0 10%, rgb(255 255 255 / 0.4) 16%, transparent 24%, transparent 68%, rgb(255 255 255 / 0.35) 74%, transparent 84%),
    linear-gradient(180deg, #fbf8ef 0%, var(--paper) 52%, #f1eadf 100%);
  color: var(--ink);
  font-family: Avenir Next, Helvetica Neue, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

button,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.shortcut-nav {
  position: sticky;
  z-index: 10;
  top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  min-height: 56px;
  margin: 16px auto 0;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgb(255 253 247 / 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(39 39 36 / 0.94), rgb(18 18 17 / 0.94));
  color: var(--surface);
  box-shadow: 0 18px 54px rgb(34 35 34 / 0.18), inset 0 1px 0 rgb(255 253 247 / 0.18);
}

.brand,
.shortcut-nav nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-weight: 950;
  text-decoration: none;
}

.brand span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.shortcut-nav nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: rgb(255 253 247 / 0.72);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.shortcut-nav nav a:hover {
  background: rgb(255 253 247 / 0.1);
  color: var(--surface);
}

main {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: 54px;
  align-items: center;
  padding: 112px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.summary {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

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

.actions.compact {
  margin-top: 22px;
}

.primary,
button {
  border: 1px solid var(--dark);
  background: linear-gradient(180deg, var(--dark-2), var(--dark));
  color: var(--surface);
}

.primary[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.48;
}

.secondary {
  border: 1px solid rgb(34 35 34 / 0.14);
  background: rgb(255 253 247 / 0.76);
  color: var(--ink);
}

.status-note {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.phone-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 520px;
  padding: 22px;
  border: 1px solid rgb(34 35 34 / 0.16);
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgb(255 253 247 / 0.86), rgb(232 224 210 / 0.74)),
    repeating-linear-gradient(118deg, rgb(255 255 255 / 0.24) 0 1px, rgb(34 35 34 / 0.03) 1px 3px);
  box-shadow: 0 34px 82px rgb(34 35 34 / 0.13), inset 0 1px 0 rgb(255 253 247 / 0.86);
}

.phone-top,
.phone-step,
.phone-result {
  border: 1px solid rgb(34 35 34 / 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 253 247 / 0.76), rgb(255 249 238 / 0.54));
  box-shadow: 0 14px 36px rgb(34 35 34 / 0.075), inset 0 1px 0 rgb(255 253 247 / 0.84);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  font-family: var(--mono);
  font-size: 12px;
}

.phone-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.phone-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--mono);
  font-weight: 900;
}

.phone-step p {
  margin-bottom: 0;
  font-weight: 850;
}

.phone-step.active {
  background: linear-gradient(180deg, rgb(223 244 232 / 0.86), rgb(255 253 247 / 0.56));
}

.phone-result {
  margin-top: auto;
  padding: 18px;
  background: rgb(23 23 21 / 0.94);
  color: var(--surface);
}

.phone-result span {
  display: block;
  margin-bottom: 14px;
  color: rgb(255 253 247 / 0.58);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.phone-result strong {
  font-size: 24px;
  line-height: 1.28;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 74px;
  border: 1px solid var(--line);
  background: var(--line);
}

.flow article {
  min-height: 230px;
  padding: 22px;
  background: rgb(255 253 247 / 0.74);
}

.flow span,
.template-copy code {
  color: var(--green);
  font-family: var(--mono);
  font-weight: 900;
}

.flow h2 {
  margin: 32px 0 12px;
  font-size: 23px;
}

.flow p,
.template-copy p {
  color: var(--muted);
  line-height: 1.65;
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgb(34 35 34 / 0.08);
  font-family: var(--mono);
  font-size: 0.92em;
}

.template-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 38px;
  align-items: start;
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.template-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
}

pre {
  min-height: 420px;
  max-height: 620px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid rgb(255 253 247 / 0.1);
  border-radius: 18px;
  background: var(--dark);
  color: #e7f8ef;
  padding: 20px;
  box-shadow: 0 28px 70px rgb(34 35 34 / 0.18);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 900px) {
  .shortcut-nav {
    align-items: flex-start;
    border-radius: 20px;
    flex-direction: column;
  }

  .shortcut-nav nav {
    flex-wrap: wrap;
  }

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

  .hero {
    gap: 34px;
    padding-top: 76px;
  }

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

@media (max-width: 480px) {
  main,
  footer {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: clamp(46px, 15vw, 62px);
  }

  .summary {
    font-size: 18px;
  }

  .primary,
  .secondary,
  button {
    width: 100%;
  }

  .phone-card {
    min-height: 0;
    border-radius: 22px;
    padding: 16px;
  }

  pre {
    max-height: 520px;
  }
}
