:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #0b0b0c;
  --muted: #64646a;
  --faint: #9a9aa0;
  --line: #e7e7ea;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.label, .idx {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.page {
  max-width: 1200px;
  height: 100vh;
  min-height: 640px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
}

/* Header */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 600; font-size: 17px; letter-spacing: -0.03em; }


/* Main: pitch on the left, detail on the right */

main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 40px 0;
}

h1 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede { margin-top: 22px; max-width: 460px; font-size: 17px; color: var(--muted); text-wrap: pretty; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.btn span { transition: transform 0.15s ease; }

.btn:hover span { transform: translateX(3px); }

.btn-primary { padding: 11px 18px; border-radius: 6px; background: var(--text); color: #fff; transition: background 0.15s ease; }

.btn-primary:hover { background: #2a2a2d; }

.btn-link { padding: 11px 0; border-bottom: 1px solid transparent; border-radius: 0; }

.btn-link:hover { border-bottom-color: var(--text); }

/* Detail column */

.detail { border-left: 1px solid var(--line); padding-left: 48px; }

.switch { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }

.switch button {
  appearance: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: -1px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: none;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.switch button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }

/* Both pitches share one grid cell so the column keeps its height when switching. */
.pitches { display: grid; }

.pitch { grid-area: 1 / 1; padding-top: 24px; }

.pitch[hidden] { display: block; visibility: hidden; }

.pitch h2 { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; }

.pitch p { margin-top: 8px; font-size: 14.5px; color: var(--muted); text-wrap: pretty; }

.pitch ul { margin-top: 18px; list-style: none; }

.pitch li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  text-wrap: pretty;
}

.pitch li::before { content: "→"; position: absolute; left: 0; color: var(--faint); }

.how { margin-top: 32px; }

.how ol { margin-top: 10px; list-style: none; }

.how li {
  display: grid;
  grid-template-columns: 32px 1fr;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  text-wrap: pretty;
}

.how li:last-child { border-bottom: 1px solid var(--line); }

.how .idx { padding-top: 2px; }

.how strong { color: var(--text); font-weight: 500; }

/* Footer */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

footer a:hover { color: var(--text); }

/* Entrance */

@media (prefers-reduced-motion: no-preference) {
  .intro > *, .detail { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .intro > :nth-child(2) { animation-delay: 0.05s; }
  .intro > :nth-child(3) { animation-delay: 0.1s; }
  .intro > :nth-child(4) { animation-delay: 0.15s; }
  .detail { animation-delay: 0.25s; }
}

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Short laptop screens */

@media (min-width: 961px) and (max-height: 760px) {
  main { padding: 24px 0; }
  h1 { font-size: clamp(36px, 4.4vw, 56px); }
  .pitch { padding-top: 18px; }
  .pitch li, .how li { padding-top: 7px; padding-bottom: 7px; }
  .how { margin-top: 22px; }
}

/* Small screens */

@media (max-width: 960px), (max-height: 600px) {
  .page { height: auto; min-height: 100vh; padding: 0 16px; }
  main { grid-template-columns: 1fr; gap: 48px; padding: 56px 0; }
  .detail { border-left: 0; padding-left: 0; }
  footer { height: auto; padding: 20px 0; flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Contact form */

dialog {
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 60px -20px rgba(10, 10, 10, 0.25);
}

dialog[open] { animation: pop 0.2s ease-out; }

@keyframes pop { from { opacity: 0; transform: translateY(6px); } }

dialog::backdrop { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(4px); }

.form-close { position: absolute; top: 12px; right: 14px; }

.close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--faint); cursor: pointer; }

.close:hover { color: var(--text); }

#lead h3, #form-thanks h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -0.015em; }

.form-sub { margin: 6px 0 20px; font-size: 14px; color: var(--muted); }

#lead label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 500; }

#lead input, #lead textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  resize: vertical;
  transition: border-color 0.15s ease;
}

#lead input:focus, #lead textarea:focus { outline: none; border-color: var(--text); }

.btn-block { width: 100%; justify-content: center; margin-top: 4px; }

.form-status { margin-top: 12px; font-size: 13px; color: var(--muted); }
