:root {
  color-scheme: light;
  --ink: #171411;
  --muted: #675f54;
  --paper: #eee8dc;
  --paper-strong: #f8f3e9;
  --line: rgba(23, 20, 17, 0.18);
  --accent: #b54f32;
  --green: #3f6f5d;
  --blue: #274b63;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(39, 75, 99, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 111, 93, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
}

.brand,
.contact-link {
  text-decoration: none;
  font-weight: 900;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  height: 32px;
  padding: 0 9px;
  background: var(--ink);
  color: var(--paper-strong);
  font-size: 14px;
}

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(42px, 7vw, 92px) 0;
}

.kicker {
  margin: 0 0 18px;
  color: #8a6b42;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-size: 88px;
  font-weight: 950;
  line-height: 0.96;
  text-wrap: balance;
}

.headline-line {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: 58px;
  font-weight: 950;
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 950;
}

.lede {
  max-width: 700px;
  color: var(--blue);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.38;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.proof-strip span {
  border: 2px solid var(--ink);
  background: color-mix(in srgb, var(--paper-strong) 72%, transparent);
  padding: 9px 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px;
  margin: 38px 0 30px;
  padding-top: 28px;
  border-top: 5px solid var(--ink);
}

.price {
  font-size: 84px;
  font-weight: 950;
  line-height: 0.9;
}

.price-note {
  max-width: 340px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-strong);
  font-weight: 950;
  text-decoration: none;
}

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

.phone-demo {
  justify-self: end;
  width: min(100%, 430px);
}

.phone-case {
  position: relative;
  width: min(100%, 392px);
  margin-left: auto;
  padding: 10px;
  border: 2px solid #4d463d;
  border-radius: 58px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 18%),
    linear-gradient(145deg, #2a2620, #0d0c0a 52%, #413a31);
  box-shadow:
    0 28px 56px rgba(23, 20, 17, 0.28),
    16px 16px 0 rgba(23, 20, 17, 0.1),
    inset 0 0 0 3px #16130f,
    inset 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.side-button {
  position: absolute;
  width: 4px;
  border-radius: 999px;
  background: #211d18;
}

.side-button-left {
  top: 126px;
  left: -5px;
  height: 74px;
}

.side-button-right {
  top: 168px;
  right: -5px;
  height: 106px;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(248, 243, 233, 0.12);
  border-radius: 48px;
  background: #0f0f0f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.82);
}

.phone-screen video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #15130f;
  object-fit: cover;
}

.dynamic-island {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 4;
  width: 118px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
  box-shadow: inset 14px 0 18px rgba(255, 255, 255, 0.05);
}

.feed-tabs {
  position: absolute;
  top: 58px;
  right: 62px;
  left: 62px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 22px;
  color: rgba(248, 243, 233, 0.74);
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.58);
}

.feed-tabs strong {
  position: relative;
  color: #f8f3e9;
}

.feed-tabs strong::after {
  position: absolute;
  right: 8px;
  bottom: -8px;
  left: 8px;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: #f8f3e9;
}

.play-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(248, 243, 233, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #f8f3e9;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.play-toggle span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid currentColor;
}

.play-toggle.is-playing {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.social-rail {
  position: absolute;
  right: 12px;
  bottom: 116px;
  z-index: 3;
  display: grid;
  gap: 15px;
  color: #f8f3e9;
  font-weight: 950;
  text-align: center;
  pointer-events: none;
}

.social-rail div {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.social-rail span,
.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(248, 243, 233, 0.36);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.42);
  backdrop-filter: blur(8px);
  font-size: 18px;
}

.avatar {
  background: #f8f3e9;
  color: #15130f;
  font-size: 13px;
}

.social-rail small {
  color: #f8f3e9;
  font-size: 11px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.phone-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 7px;
  padding: 74px 72px 26px 18px;
  color: #f8f3e9;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.phone-caption strong {
  font-size: 17px;
  font-weight: 950;
}

.phone-caption span {
  max-width: 260px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.band,
.split,
.terms {
  padding: clamp(54px, 8vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
}

.deliverables,
.term-grid,
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.deliverables article,
.fit-grid article,
.term-grid article,
.code-panel,
.steps-panel,
.prompt-card {
  border-top: 5px solid var(--ink);
  background: color-mix(in srgb, var(--paper-strong) 78%, transparent);
  padding: 28px;
}

.deliverables p,
.fit-grid p,
.term-grid p,
.split p,
.steps-panel p,
.wide-copy {
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.65;
}

.number {
  display: block;
  margin-bottom: 38px;
  color: rgba(23, 20, 17, 0.18);
  font-size: 58px;
  font-weight: 950;
  line-height: 0.8;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

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

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

.steps-panel div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.steps-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.steps-panel span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: var(--paper-strong);
  font-size: 18px;
  font-weight: 950;
}

.steps-panel p {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.code-panel div {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.code-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.code-panel span,
.prompt-card span {
  color: #8a6b42;
  font-weight: 950;
}

.code-panel a {
  color: var(--green);
  font-size: 18px;
  font-weight: 850;
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

code {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 18px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.prompt-card p {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 950;
  line-height: 1.16;
}

.compact {
  padding-bottom: clamp(64px, 9vw, 110px);
}

.wide-copy {
  max-width: 900px;
}

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

.fit-section {
  padding-top: clamp(66px, 9vw, 118px);
}

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

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
}

.mobile-buy-bar {
  display: none;
}

.simple-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  main {
    width: calc(100% - 32px);
    max-width: 1180px;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    gap: 14px;
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand span:last-child {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
  }

  .contact-link {
    display: none;
  }

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

  .hero-copy {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero {
    min-height: auto;
    gap: 32px;
    padding: 38px 0 54px;
  }

  .phone-demo {
    justify-self: center;
    width: 100%;
  }

  .phone-case {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  h1 {
    max-width: 100%;
    font-size: 44px;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
  }

  .headline-line {
    white-space: normal;
  }

  h2 {
    font-size: 38px;
  }

  .lede {
    max-width: 100%;
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .price {
    font-size: 58px;
  }

  .price-row {
    margin: 30px 0 22px;
    padding-top: 22px;
  }

  .hero-actions .button:first-child {
    display: none;
  }

  .button {
    min-height: 44px;
  }

  .prompt-card p {
    font-size: 26px;
  }

  .proof-strip span {
    flex: 1 1 100%;
    font-size: 14px;
    text-align: center;
  }

  .deliverables,
  .fit-grid,
  .term-grid {
    grid-template-columns: 1fr;
  }

  .deliverables article,
  .fit-grid article,
  .term-grid article,
  .code-panel,
  .steps-panel,
  .prompt-card {
    padding: 22px;
  }

  .band,
  .split,
  .terms {
    padding: 48px 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 100px;
  }

  .mobile-buy-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(23, 20, 17, 0.16);
    background: color-mix(in srgb, var(--paper-strong) 94%, transparent);
    box-shadow: 0 -12px 30px rgba(23, 20, 17, 0.16);
    backdrop-filter: blur(16px);
  }

  .mobile-buy-button,
  .mobile-consult-button {
    display: inline-flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    font-weight: 950;
    text-decoration: none;
  }

  .mobile-buy-button {
    background: var(--ink);
    color: var(--paper-strong);
  }

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

@media (max-width: 420px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 34px;
  }

  .lede {
    font-size: 20px;
  }

  .price {
    font-size: 52px;
  }

  .proof-strip span {
    width: 100%;
    text-align: center;
  }

  .phone-case {
    padding: 10px;
    border-radius: 46px;
  }

  .phone-screen {
    border-radius: 38px;
  }

  .social-rail {
    right: 8px;
    bottom: 104px;
  }

  .social-rail span,
  .avatar {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .phone-caption {
    padding: 64px 62px 22px 16px;
  }

  .feed-tabs {
    right: 52px;
    left: 52px;
    gap: 16px;
    font-size: 14px;
  }

  .dynamic-island {
    width: 108px;
    height: 31px;
  }
}

.notice-band {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--paper-strong);
  box-shadow: 8px 8px 0 rgba(23, 20, 17, 0.14);
}

.notice-band h2 {
  max-width: 760px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.05;
}

.notice-band p:last-child {
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

body.is-consult-open {
  overflow: hidden;
}

.consult-modal[hidden] {
  display: none;
}

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.consult-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 20, 17, 0.52);
}

.consult-card {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  padding: 22px;
  border: 2px solid var(--ink);
  background: var(--paper-strong);
  box-shadow: 10px 10px 0 rgba(23, 20, 17, 0.18);
}

.consult-card h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.consult-card p:not(.kicker) {
  color: var(--muted);
  line-height: 1.7;
}

.wechat-id-card {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.wechat-id-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.wechat-id-card strong {
  display: block;
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
}

.consult-actions {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
  margin-top: 16px;
}

.copy-wechat-button,
.close-consult-button,
.mobile-consult-button {
  font: inherit;
  cursor: pointer;
}

.copy-wechat-button,
.close-consult-button {
  min-height: 46px;
  border: 2px solid var(--ink);
  font-weight: 950;
}

.copy-wechat-button {
  background: var(--ink);
  color: var(--paper-strong);
}

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

@media (max-width: 820px) {
  .notice-band {
    margin-top: 18px;
    padding: 18px;
    box-shadow: 6px 6px 0 rgba(23, 20, 17, 0.14);
  }
}
