/* AskPanda International site (askpanda.io)
 *
 * 设计意图：不是通用 SaaS 卡片墙，而是一份「商谈前的排练脚本」。
 * 纸色 + 墨色 + 枣红印章色；衬线标题 + 无衬线正文；用细线与留白做结构，
 * 唯一的动效是脚本左侧那条红色竖线，像把台词划到重点。
 */

:root {
  --paper: #fffdf6;
  --paper-soft: #fbf8ee;
  --ink: #14202e;
  --ink-soft: #4a5260;
  --muted: #8a8578;
  --red: #8b0000;
  --moss: #2a623d;
  --ochre: #e8d9b0;
  --rule: rgba(20, 32, 46, 0.18);
  --rule-soft: rgba(20, 32, 46, 0.09);
  --rule-strong: rgba(20, 32, 46, 0.55);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif JP", "Yu Mincho",
    "Hiragino Mincho ProN", "Songti SC", Georgia, serif;
  --sans: "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    system-ui, sans-serif;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
blockquote,
figure {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.shell {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 10;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
}

.site-head .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.seal {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff9ec;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
  border-radius: 2px;
}

.brand-text {
  display: grid;
  line-height: 1.25;
}

.brand-text b {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-text small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.site-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover {
  border-bottom-color: var(--red);
  color: var(--red);
}

.site-nav .lang {
  padding-left: 18px;
  border-left: 1px solid var(--rule);
}

/* ---------- hero ---------- */

.hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 88px);
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--red);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-top: 18px;
  text-wrap: balance;
}

html[lang="ja"] h1 {
  line-height: 1.14;
  letter-spacing: -0.01em;
}

h1 .line {
  display: block;
}

.lede {
  max-width: 33em;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.85;
  text-wrap: pretty;
}
/* ---------- waitlist form ---------- */

.waitlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: end;
  max-width: 560px;
  margin-top: 32px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.optional {
  color: #948e7f;
}

.waitlist input[type="email"],
.waitlist select {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 10px 2px;
  appearance: none;
}

.waitlist select {
  border-bottom-color: var(--rule-strong);
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}

.waitlist input[type="email"]::placeholder {
  color: #a39c8b;
}

.waitlist input[type="email"]:focus,
.waitlist select:focus {
  outline: none;
  border-bottom-color: var(--red);
  box-shadow: 0 1.5px 0 var(--red);
}

.field-role {
  grid-column: 1 / -1;
  max-width: 300px;
  margin-top: 4px;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 2px;
  background: var(--red);
  color: #fff9ec;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 14px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: #6f0000;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn:focus-visible,
.site-nav a:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.form-note {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.form-status {
  grid-column: 1 / -1;
  font-size: 14px;
  min-height: 1.6em;
  color: var(--moss);
}

.form-status.is-error {
  color: var(--red);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.waitlist.is-done .field,
.waitlist.is-done .btn,
.waitlist.is-done .form-note {
  display: none;
}

/* ---------- script panel ---------- */

.script {
  position: relative;
  padding-left: 26px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.script::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  transform-origin: top center;
  animation: draw-line 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.script-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.script ol {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.script li {
  position: relative;
  padding-left: 22px;
}

.script li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.script li.you::before {
  background: var(--ochre);
  border: 1px solid var(--ink-soft);
}

.script li.gap::before {
  background: var(--red);
}

.speaker {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.script .line {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  display: block;
  text-wrap: pretty;
}

.script li.you .line {
  color: var(--ink-soft);
}

.script li.gap .line {
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 3px;
}

.script .note {
  margin-top: 22px;
  color: var(--red);
  font-size: 14px;
}

@keyframes draw-line {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* ---------- sections ---------- */

.section {
  border-top: 1px solid var(--rule);
  padding: clamp(48px, 7vw, 84px) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.section-note {
  max-width: 30em;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.steps li {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.step-no {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
}

.step-title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-body {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* review */

.review {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.review > div {
  padding: 22px 26px 28px;
  border-left: 1px solid var(--rule);
}

.review > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.review-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.review blockquote {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
}

.review .fix {
  color: var(--moss);
}

/* pricing */

.plans {
  border-top: 1px solid var(--ink);
}

.plan {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.plan.featured {
  box-shadow: inset 3px 0 0 var(--red);
  padding-left: 18px;
}

.plan-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.plan-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

.plan-price {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.plan-price small {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.pricing-note {
  max-width: 56em;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* faq */

.faq details {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  color: var(--red);
  font-size: 20px;
  line-height: 1.2;
  flex: 0 0 auto;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  max-width: 62ch;
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* cta */

.cta {
  border-top: 1px solid var(--ink);
  padding: clamp(44px, 6vw, 72px) 0;
}

.cta .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 8px;
}

.cta p {
  max-width: 42em;
  font-size: 14.5px;
  color: var(--muted);
}

/* footer */

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 26px 0 44px;
  font-size: 12.5px;
  color: var(--muted);
}

.site-foot .shell {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-foot a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
}

.site-foot a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero .shell {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .script {
    max-width: 560px;
  }

  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 12px;
  }

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

  .steps li {
    padding-top: 16px;
  }

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

  .review > div {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 18px 0 20px;
  }

  .review > div:first-child {
    border-top: 0;
  }

  .plan {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 2px 22px;
  }

  .plan > div {
    grid-column: 1 / -1;
  }

  .plan .plan-price {
    grid-column: auto;
    font-size: 21px;
  }
}

@media (max-width: 620px) {
  .shell {
    padding: 0 18px;
  }

  .site-head .shell {
    min-height: 66px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a:not(.lang a) {
    display: none;
  }

  .site-nav .lang {
    padding-left: 0;
    border-left: 0;
  }

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

  .waitlist .btn {
    width: 100%;
  }

  .field-role {
    max-width: none;
  }

  h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .cta .shell {
    display: block;
  }

  .cta .btn {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .script::before {
    animation: none;
  }

  .btn {
    transition: none;
  }
}

/* ---------- sticky header (long homepage) ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 246, 0.96);
  border-bottom: 1px solid var(--rule-soft);
  backdrop-filter: blur(10px);
}

.site-head .shell {
  min-height: 68px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--red);
  border-radius: 2px;
  color: var(--red);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--red);
  color: var(--paper);
  border-bottom-color: var(--red);
}

/* ---------- scenario grid ---------- */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  border-top: 1px solid var(--ink);
}

.scenario {
  padding-top: 18px;
}

.scenario .label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 8px;
}

.scenario h3 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 7px;
}

.scenario p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ---------- audience ---------- */

.audience {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.audience h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 12px;
}

.audience p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.audience ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.audience li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13px;
  line-height: 1.7;
}

.audience li span {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 2px;
}

/* ---------- legal ---------- */

.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 100px);
}

.legal-wrap .kicker {
  margin-bottom: 12px;
}

.legal-wrap h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  margin-bottom: 14px;
}

.legal-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 36px;
}

.legal-wrap h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}

.legal-wrap p,
.legal-wrap li {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.legal-wrap ul {
  padding-left: 1.2em;
  margin: 0 0 12px;
}

.legal-wrap a {
  border-bottom: 1px solid var(--rule-strong);
  text-decoration: none;
}

.legal-wrap a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.legal-back {
  display: inline-block;
  margin-top: 36px;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

/* ---------- final band ---------- */

.cta {
  background: var(--red);
  color: var(--paper);
  border-top: 0;
}

.cta h2 {
  color: var(--paper);
}

.cta p {
  color: rgba(255, 253, 246, 0.78);
}

.cta .btn {
  background: var(--paper);
  border: 1px solid var(--paper);
  color: var(--red);
}

.cta .btn:hover {
  background: transparent;
  color: var(--paper);
}

/* ---------- footer ---------- */

.site-foot .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-foot a {
  border-bottom: 1px solid transparent;
}

.site-foot a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- responsive additions ---------- */

@media (max-width: 880px) {
  .scenario-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audience {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 620px) {
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .site-nav .nav-cta {
    display: none;
  }
}

#early-access {
  scroll-margin-top: 92px;
}
