@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap");

:root {
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #ececec;
  --paper: #ffffff;
  --soft: #f6f7fb;
  --blue: #dbe7ff;
  --btn: #111111;
  --danger: #b42318;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a:hover { opacity: 0.6; }
.nav-links a.btn,
.nav-links a.btn-solid,
.nav-links a.btn-flash {
  color: #fff;
  opacity: 1;
}
.nav-links a.btn:hover,
.nav-links a.btn-solid:hover {
  opacity: 1;
  background: #2a2a2a;
  color: #fff;
}

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; font-family: inherit;
}
.btn-solid, .btn-flash { background: var(--btn); color: #fff; }
.btn-solid:hover, .btn-flash:hover { background: #2a2a2a; }
.btn-line { background: #fff; color: var(--ink); border: 1px solid #ddd; }
.btn-apple::before { content: ""; width: 14px; height: 14px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M11.2 8.3c0-1.6 1.3-2.4 1.4-2.5-0.8-1.1-1.9-1.3-2.3-1.3-1-0.1-1.9 0.6-2.4 0.6s-1.3-0.6-2.1-0.6c-1.1 0-2.1 0.6-2.7 1.6-1.1 2-0.3 4.9 0.8 6.5 0.5 0.8 1.2 1.7 2 1.6 0.8 0 1.1-0.5 2.1-0.5s1.2 0.5 2.1 0.5 1.4-0.8 2-1.6c0.6-0.9 0.9-1.8 0.9-1.8s-1.8-0.7-1.8-2.5zM9.6 3.6c0.4-0.5 0.7-1.3 0.6-2-0.6 0-1.3 0.4-1.8 0.9-0.4 0.5-0.8 1.3-0.6 2 0.7 0.1 1.4-0.3 1.8-0.9z'/%3E%3C/svg%3E") center/contain no-repeat; }

.sky {
  position: relative;
  overflow: hidden;
  background: #eef6ff url("../assets/hero-sky.png") center bottom / cover no-repeat;
  padding-bottom: 0;
  min-height: 92vh;
}
.sky::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 140px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}
.hero {
  text-align: center;
  padding: 48px 0 28px;
  position: relative;
  z-index: 3;
}
.hero .note a { font-weight: 600; }
.hero h1, h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 auto 16px;
  max-width: 16ch;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}
.actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.note { color: var(--muted); font-size: 14px; }
.float-stage {
  position: relative;
  z-index: 2;
  width: min(480px, calc(100% - 32px));
  margin: 36px auto 88px;
}
.float-stage .ov,
.ov-hero {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  box-shadow: 0 28px 70px rgba(20, 40, 80, 0.22);
}
.float-stage .ov.away,
.ov-hero.away {
  transform: translateY(12px) scale(0.98);
}
.try-hint {
  text-align: center;
  color: #3d4a5c;
  font-size: 13px;
  margin: 14px 0 0;
}
.listen { margin: 0 4px 10px; }
.listen[hidden] { display: none; }

.stage {
  width: min(1040px, calc(100% - 24px));
  margin: 12px auto 0;
  position: relative;
  z-index: 1;
}

.theater {
  position: relative;
  border-radius: 36px;
  padding: 36px 28px 48px;
  background:
    radial-gradient(80% 70% at 70% 20%, #ffd7a8 0%, transparent 55%),
    radial-gradient(70% 80% at 20% 80%, #9ecbff 0%, transparent 50%),
    linear-gradient(180deg, #f4c9b8 0%, #7eb6ff 70%, #c9ddff 100%);
  box-shadow: 0 40px 90px rgba(40, 60, 100, 0.2);
}
.mac {
  width: min(880px, 100%);
  margin: 0 auto;
  background: #1c1c1e;
  border-radius: 16px 16px 20px 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}
.mac-bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: #2a2a2c;
}
.mac-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.mac-bar i:nth-child(1) { background: #ff5f57; }
.mac-bar i:nth-child(2) { background: #febc2e; }
.mac-bar i:nth-child(3) { background: #28c840; }
.mac-screen {
  position: relative;
  min-height: 420px;
  background: #0f1115;
  color: #d7deea;
}
.ide {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  padding: 28px 32px 80px;
  color: #9aa3b5;
}
.ide strong { color: #e8eef8; font-weight: 600; }
.ide em { color: #7dd3fc; font-style: normal; }

.ov {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 40px));
  background: rgba(28, 28, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  color: #f4f4f5;
  padding: 12px 12px 10px;
  backdrop-filter: blur(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ov.away { opacity: 0; transform: translate(-50%, 12px) scale(0.98); pointer-events: none; }
.ov-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.ov-top button, .chip {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.ov-top .ask { background: #fff; color: #111; font-weight: 600; }
.chips { display: flex; gap: 6px; margin-bottom: 10px; }
.chip.on { background: #fff; color: #111; }
.ov-out {
  min-height: 78px;
  font-size: 14px;
  line-height: 1.55;
  color: #f4f4f5;
  white-space: pre-wrap;
  margin: 0 4px 10px;
}
.ov-code {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0c0d10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #d7e3f4;
  overflow: visible;
  white-space: pre;
}
.theater.snap .ov {
  width: min(520px, calc(100% - 24px));
  bottom: 14px;
}
.theater.snap .ov-out {
  min-height: 0;
  max-height: none;
  overflow: visible;
}
.ov-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  color: #a1a1aa;
}
.ov-in span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.mini-ov {
  margin-top: 22px;
  background: #1c1c20;
  border-radius: 18px;
  padding: 14px;
  color: #f4f4f5;
  min-height: 160px;
}
.wave {
  height: 64px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 10px);
  opacity: 0.35;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  animation: wave 1.2s ease-in-out infinite alternate;
}
@keyframes wave { from { opacity: 0.2; } to { opacity: 0.5; } }
.rec { color: #ff6b7a; font-size: 12px; margin-top: 10px; }

.dock {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 14px;
  background: rgba(255, 255, 255, 0.08);
}
.dock b {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  background: #fff;
  opacity: 0.85;
}
.dock b:nth-child(2) { background: #34c759; }
.dock b:nth-child(3) { background: #0a84ff; }
.dock b:nth-child(4) { background: #ff9f0a; }
.dock b:nth-child(5) { background: #bf5af2; }

.theater.snap { padding-top: 24px; }
.keys {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  color: #1a1814;
  font-size: 15px;
}
.keys kbd {
  background: #fff;
  border: 1px solid #d7d2c8;
  box-shadow: 0 2px 0 #d7d2c8;
  min-width: 44px;
  text-align: center;
  font-size: 14px;
  padding: 8px 10px;
}
.keys.hot kbd {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: none;
  transform: translateY(2px);
}
.problem-screen {
  background: #f7f4ee;
  min-height: 640px;
}
.problem {
  padding: 28px 32px 280px;
  color: #1a1814;
  max-width: 640px;
}
.problem-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}
.problem h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 32px;
  margin: 0 0 12px;
}
.problem p { margin: 0 0 12px; color: #3d3d3d; }
.problem code {
  background: #ece7dc;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 13px;
}
.example {
  margin-top: 18px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #374151;
}
.flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.flash.on { animation: snapflash 0.55s ease; }
@keyframes snapflash {
  0% { opacity: 0.92; }
  100% { opacity: 0; }
}

.section { padding: 88px 0 12px; }
.section.soft { background: var(--soft); }
.section h2, h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 auto 12px;
  max-width: 18ch;
}
.center { text-align: center; }
.sub { text-align: center; color: var(--muted); max-width: 520px; margin: 0 auto 40px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(17, 17, 17, 0.04);
}
.card.blue { background: var(--blue); }
.card.lilac { background: #e8e4ff; }
.step {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.price-note { color: var(--muted); margin: 0 0 12px !important; font-size: 14px; }
.price .amount span { font-size: 18px; color: var(--muted); font-family: Inter, sans-serif; font-weight: 500; }
.price.featured {
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.1);
  outline: 2px solid #111;
}
.cta-band {
  background: var(--soft);
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { margin-bottom: 8px; }
.card h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  margin: 0 0 10px;
  font-weight: 600;
}
.card p { margin: 0; color: #3d3d3d; }
.card img { border-radius: 18px; margin-top: 22px; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio .card { padding: 26px 22px 22px; }
.trio p { font-size: 15px; }

.shot {
  width: min(860px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #eef1f7;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
}
.shot img { width: 100%; }

.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 0 auto; }
.price .amount {
  font-family: Fraunces, Georgia, serif;
  font-size: 48px;
  margin: 8px 0 12px;
}
.price ul { margin: 0; padding-left: 18px; color: var(--muted); }
.price .actions { justify-content: flex-start; margin-top: 18px; }

.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "⌄"; color: #aaa; }
.faq details[open] summary::after { content: "⌃"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.form { max-width: 420px; }
label { display: block; font-size: 13px; margin: 14px 0 6px; color: var(--muted); }
input {
  width: 100%; padding: 13px 14px; border: 1px solid #ddd; border-radius: 14px;
  background: #fff; color: var(--ink); font-size: 16px; font-family: inherit;
}
.phone-field { display: flex; align-items: stretch; }
.phone-cc {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.phone-field input { border-radius: 0 14px 14px 0; }
.err, .ok {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.45;
}
.err.is-on {
  display: block;
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}
.ok.is-on {
  display: block;
  background: #ecfdf3;
  color: #067647;
  border: 1px solid #abefc6;
}
input.is-bad { border-color: #f04438; background: #fff5f5; }
.otp-next[hidden] { display: none !important; }
button:disabled { opacity: 0.55; cursor: wait; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.stat { padding: 18px; border-radius: 18px; background: var(--soft); }
.stat b { display: block; font-family: Fraunces, Georgia, serif; font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
td.prompt { max-width: 420px; }
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--soft); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 6px; font-size: 12px;
}

.page-hero { padding: 36px 0 8px; text-align: left; }
.page-hero h1 { margin: 0 0 12px; max-width: none; text-align: left; }
.page-hero .lede { margin: 0 0 20px; text-align: left; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 72px;
}

@media (max-width: 860px) {
  .pair, .trio, .price-row, .split, .stats, .skills { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .sky { min-height: auto; }
}
