/* ============================================
   Pearce Inagaki — Business Setup & Real Estate Advisory
   Single-page redesign. Brand tokens preserved exactly
   from the existing site: deep ink burgundy + warm paper + brass.
   ============================================ */

:root {
  /* Palette — deep ink burgundy + warm paper + brass (unchanged brand tokens) */
  --ink: #4A151B;
  --ink-soft: #5C1F26;
  --ink-muted: #6B4A4C;
  --paper: #F5F0E8;
  --paper-2: #EEE7DA;
  --paper-3: #E4DBC8;
  --line: #D8CFB9;
  --line-strong: #C4B899;
  --cream: #FBF7F0;
  --accent: #B8894A;         /* brass */
  --accent-soft: #D4AB6D;
  --accent-deep: #8B6431;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(74, 21, 27, 0.05);
  --shadow: 0 4px 24px -8px rgba(74, 21, 27, 0.16);
  --shadow-lg: 0 24px 60px -20px rgba(74, 21, 27, 0.3);

  /* Type */
  --font-display: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --max: 1280px;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
/* Japanese locale: layer in Noto Sans JP for CJK glyph coverage while
   keeping the Latin brand fonts (Newsreader / Instrument Sans) for any
   mixed EN/JA text (e.g. "Yasue Inagaki（稲垣 恭恵）"). */
body.lang-ja {
  font-family: "Instrument Sans", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}
body.lang-ja h1, body.lang-ja h2, body.lang-ja h3, body.lang-ja .brand-mark {
  font-family: "Newsreader", "Noto Sans JP", "Hiragino Mincho ProN", serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(38px, 6vw, 84px); }
h2 { font-size: clamp(30px, 4.2vw, 52px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.lede {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.4;
  font-weight: 300;
  color: var(--ink-soft);
  font-style: italic;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 240, 232, 0.95);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  margin-right: auto;
}
.brand-monogram {
  flex-shrink: 0;
  border-radius: 3px;
  display: block;
}
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
}
.brand-logo-cap {
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  white-space: nowrap;
}
.brand-copy {
  display: flex;
  flex-direction: column;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language toggle (EN / 日本語) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.lang-toggle:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.lang-toggle-globe {
  font-family: "Noto Sans JP", var(--font-body);
  font-size: 12px;
  line-height: 1;
  opacity: 0.75;
}
.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav-mobile-actions .lang-toggle { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.btn-primary .arr { transition: transform 0.2s; }
.btn-primary:hover .arr { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Mobile menu button (hamburger) */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  border-radius: 2px;
  padding: 0;
}
.nav-menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 8px var(--pad) 24px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-soft);
}
.nav-mobile .nav-mobile-actions {
  margin-top: 20px;
}
.nav-mobile .btn { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
  position: relative;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-copy h1 {
  margin-bottom: 28px;
}
.hero-copy h1 .italic {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 300;
}
.hero-copy .lede {
  max-width: 560px;
  margin-bottom: 40px;
  font-style: normal;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  font-weight: 400;
  font-family: var(--font-body);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-meta {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero-meta-item .num em {
  font-style: italic;
  color: var(--accent);
}
.hero-meta-item .lbl {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(74, 21, 27, 0.4) 100%);
}
.hero-visual-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

/* ---------- Section base ---------- */
.section {
  padding: clamp(72px, 10vw, 140px) 0;
}
.section-alt { background: var(--cream); }
.section-dark {
  background: var(--ink);
  color: var(--cream);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .eyebrow { color: var(--accent-soft); }
.section-dark .eyebrow::before { background: var(--accent-soft); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 20px; }
.section-head .lede {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink-muted);
}

/* ---------- Value props (Why Choose Us) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value {
  padding: 48px 32px 48px 0;
  border-right: 1px solid var(--line);
}
.value:last-child { border-right: none; padding-right: 0; }
.value:not(:first-child) { padding-left: 32px; }
.value .num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 24px;
  font-style: italic;
}
.value h3 {
  margin-bottom: 16px;
  font-size: 24px;
}
.value p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* ---------- Services / Pricing ---------- */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.price-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured h3,
.price-card.featured .price-card-price { color: var(--cream); }
.price-card.featured .price-card-desc { color: rgba(251, 247, 240, 0.72); }
.price-card.featured .price-card-features li { color: rgba(251, 247, 240, 0.9); }
.price-card.featured .price-card-features li::before { color: var(--accent-soft); }
.price-card.featured .price-card-price .period { color: rgba(251, 247, 240, 0.6); }
.price-card-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-card-name {
  font-family: var(--font-display);
  font-size: 23px;
  margin-bottom: 14px;
}
.price-card-price {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 34px);
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}
.price-card-price .period {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-muted);
  font-style: normal;
  margin-left: 4px;
}
.price-card-desc {
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 24px;
  flex-grow: 1;
}
.price-card-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.price-card-features li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.price-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}
.price-card-cta { width: 100%; justify-content: center; }

/* Retainer services (2-column cards below the 3 main tiers) */
.retainer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.retainer-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.retainer-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.retainer-card h3 { font-size: 22px; margin-bottom: 10px; }
.retainer-card-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.retainer-card p {
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Who We Are (simple team section) ---------- */
.team-simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 40px);
}
.team-simple-member { text-align: center; }
.team-simple-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.team-simple-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-simple-name {
  font-family: var(--font-display);
  font-size: 21px;
  margin-bottom: 4px;
  color: var(--ink);
}
.team-simple-role {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.team-simple-bio {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 32ch;
  margin: 0 auto 12px;
}
.team-simple-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.team-simple-link:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.team-simple-link .arr { transition: transform 0.2s; }
.team-simple-link:hover .arr { transform: translateX(3px); }

/* ---------- Contact / Jotform section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-side h2 { margin-bottom: 20px; }
.contact-side .lede {
  margin-bottom: 32px;
  max-width: 42ch;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--ink-muted);
}
.contact-points { display: grid; gap: 20px; margin-top: 32px; }
.contact-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.contact-point-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
}
.contact-point-text h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.contact-point-text p {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}

.jotform-wrap {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
  min-height: 640px;
}
.jotform-wrap iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}
.jotform-fallback {
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}
.jotform-fallback strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 12px;
  font-style: italic;
}

/* ---------- CTA banner ---------- */
.cta-banner { padding: clamp(64px, 10vw, 120px) 0; text-align: center; }
.cta-banner h2 { max-width: 22ch; margin: 0 auto 20px; }
.cta-banner .lede {
  max-width: 54ch;
  margin: 0 auto 40px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 17px;
  /* Base .lede sets --ink-soft, which is nearly illegible on the dark
     burgundy .section-dark background this banner uses. Override to a
     bright, high-contrast cream so it reads clearly against --ink. */
  color: rgba(251, 247, 240, 0.92);
}
.cta-banner-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(251, 247, 240, 0.72);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251, 247, 240, 0.12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer .brand-mark { color: var(--cream); font-size: 24px; margin-bottom: 0; }
.footer .brand-mark em { color: var(--accent-soft); }
.footer .brand-logo-cap { color: rgba(251, 247, 240, 0.55); }
.footer-desc {
  font-size: 13.5px;
  line-height: 1.65;
  margin-top: 12px;
  max-width: 34ch;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-soft); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(251, 247, 240, 0.5);
  letter-spacing: 0.04em;
}

/* ---------- Floating CTA tab ---------- */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 200px;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  transition: background 0.2s, transform 0.2s;
}
.floating-cta:hover { background: var(--ink-soft); transform: translateY(-2px); }
.floating-cta .arr { color: var(--accent-soft); transition: transform 0.2s; flex-shrink: 0; }
.floating-cta:hover .arr { transform: translateX(3px); }
.floating-cta-label { white-space: normal; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   Booking funnel: /services -> /agreement -> /checkout -> /success
   ===================================================================== */

/* Simple centered hero used on funnel pages */
.pricing-hero {
  padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px);
  text-align: center;
}
.pricing-hero .eyebrow { justify-content: center; }
.pricing-hero h1 { max-width: 22ch; margin: 0 auto 20px; }
.pricing-hero .lede {
  max-width: 58ch;
  margin: 0 auto;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink-muted);
}
.currency-note {
  margin: 14px auto 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* Funnel step indicator */
.funnel-steps {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  flex-wrap: wrap;
}
.funnel-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.funnel-step:not(:last-child)::after {
  content: "—";
  color: var(--line-strong);
  margin-left: 8px;
}
.funnel-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  background: var(--paper);
  flex-shrink: 0;
}
.funnel-step.is-current .funnel-step-num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.funnel-step.is-current .funnel-step-label { color: var(--ink); font-weight: 600; }
.funnel-step.is-done .funnel-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.funnel-step.is-done .funnel-step-label { color: var(--accent-deep); }

.funnel-note {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--cream);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.funnel-note p { margin: 0; }

/* ---------- Agreement page (Jotform MASA + SOW) ---------- */
.agreement-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.agreement-summary {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 32px 28px;
  position: sticky;
  top: 96px;
}
.agreement-summary h3 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.agreement-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.agreement-summary-row:last-of-type { border-bottom: none; }
.agreement-summary-label { color: var(--ink-muted); }
.agreement-summary-value {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}
.agreement-summary-value .period {
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-muted);
}
.agreement-change-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
  border-bottom: 1px dotted var(--line-strong);
}
.agreement-change-link:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

.agreement-jotform { min-height: 900px; padding: 12px; }
.agreement-jotform iframe { min-height: 880px; }

.agreement-manual-advance {
  margin-top: 24px;
  padding: 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  text-align: center;
}
.agreement-manual-advance p {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 16px;
}

/* ---------- Checkout page ---------- */
.checkout-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 40px);
}
.checkout-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-muted);
}
.checkout-card-row strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  text-align: right;
}
.checkout-pay-btn {
  width: 100%;
  justify-content: center;
  margin-top: 28px;
  font-size: 15px;
  padding: 16px 24px;
}
.checkout-pay-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.checkout-secure-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 14px 0 0;
}
.checkout-error {
  margin-top: 16px;
  padding: 14px 16px;
  background: #F6E9E7;
  border: 1px solid #D9B9B4;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- Result pages (success / cancel) ---------- */
.result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 24px;
}
.result-icon-success { background: var(--ink); color: var(--accent-soft); }
.result-icon-cancel { background: var(--paper-3); color: var(--ink-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-right > a.btn-primary { display: none; }
  .nav-menu-btn { display: flex; }
  .hero-split { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { aspect-ratio: 3/4; }
  .values { grid-template-columns: 1fr; }
  .value { border-right: none; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .value:last-child { border-bottom: none; }
  .value:not(:first-child) { padding-left: 0; }
  .pricing-tiers { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; order: -1; }
  .retainer-grid { grid-template-columns: 1fr; }
  .team-simple { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .agreement-grid { grid-template-columns: 1fr; }
  .agreement-summary { position: static; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 640px) {
  .brand-monogram { width: 32px; height: 32px; }
  .brand-mark { font-size: 19px; }
  .nav .brand-logo-cap { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .cta-banner-actions { flex-direction: column; align-items: stretch; }
  .cta-banner-actions .btn { justify-content: center; }
  .hero-meta { flex-direction: column; gap: 20px; }
  .footer-links { flex-direction: column; gap: 12px; }
  .floating-cta {
    bottom: 16px;
    right: 12px;
    max-width: 150px;
    padding: 11px 14px;
    font-size: 11.5px;
  }
}
