/* ═══════════════════════════════════════════════════════
   Design Tokens
   ═══════════════════════════════════════════════════════ */
:root {
  --ink: #0a0a0f;
  --ink-2: #1a1a24;
  --muted: #6b6b7a;
  --muted-2: #9a9aac;
  --line: rgba(10, 10, 15, 0.08);
  --line-2: rgba(10, 10, 15, 0.04);
  --bg: #f6f5f1;
  --bg-2: #faf9f6;
  --card: #ffffff;
  --accent: #3d3d5c;
  --accent-warm: #d97757;
  --sage: #6f7d5f;
  --danger: #dc3545;
  --success: #28a745;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(10, 10, 15, 0.04), 0 24px 60px -20px rgba(10, 10, 15, 0.12), 0 0 0 1px rgba(255,255,255,0.5) inset;
  --shadow-btn: 0 8px 20px -6px rgba(10, 10, 15, 0.3);
  --transition: 0.2s ease;
}

/* ═══════════════════════════════════════════════════════
   Base Styles
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(217, 119, 87, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(111, 125, 95, 0.05), transparent 60%);
}

.serif {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'Geist Mono', monospace;
}

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

/* ═══════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(246, 245, 241, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f6f5f1;
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  font-style: italic;
}

.logo-mark-sm {
  width: 22px;
  height: 22px;
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: var(--radius-pill);
}

.nav a, .nav-link {
  padding: 7px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  cursor: pointer;
}

.nav a:hover, .nav-link:hover { color: var(--ink); }
.nav a.active, .nav-link.active { background: var(--ink); color: #f6f5f1; }

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

/* ═══════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════ */
.btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--muted); }
.btn-dark { background: var(--ink); color: #f6f5f1; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-submit {
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 500;
  background: var(--ink);
  color: #f6f5f1;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  box-shadow: var(--shadow-btn);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(10, 10, 15, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px -4px rgba(10, 10, 15, 0.3);
}

.btn-submit .arrow {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.btn-submit:hover .arrow {
  transform: translateX(2px);
}

/* ═══════════════════════════════════════════════════════
   Trust Row
   ═══════════════════════════════════════════════════════ */
.trust-row {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 40px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.trust-row .mono {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.trust-row .dot {
  width: 4px;
  height: 4px;
  background: var(--muted-2);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   Container / Main Layout
   ═══════════════════════════════════════════════════════ */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 40px 80px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ═══════════════════════════════════════════════════════
   Left Column — Intro
   ═══════════════════════════════════════════════════════ */
.intro {
  padding-top: 40px;
  position: sticky;
  top: 100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 28px;
}

.eyebrow-pulse {
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(111, 125, 95, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(111, 125, 95, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(111, 125, 95, 0.05); }
}

h1 {
  font-size: 64px;
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}

h1 .serif {
  font-size: 72px;
  color: var(--accent-warm);
  font-style: italic;
  display: inline;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 460px;
}

/* ═══════════════════════════════════════════════════════
   Pillars
   ═══════════════════════════════════════════════════════ */
.pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
  border-top: 1px solid var(--line);
}

.pillar {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.pillar-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.pillar-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.pillar-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.pillar-icon {
  color: var(--muted-2);
  transition: color var(--transition);
}

.pillar:hover .pillar-icon {
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════
   Testimonial
   ═══════════════════════════════════════════════════════ */
.testimonial {
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial:hover {
  box-shadow: 0 8px 24px -8px rgba(10, 10, 15, 0.08);
  transform: translateY(-1px);
}

.testimonial-quote {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.testimonial-quote::before { content: '\201C'; color: var(--accent-warm); }
.testimonial-quote::after { content: '\201D'; color: var(--accent-warm); }

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

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97757, #a55b3f);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.author-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.author-role { font-size: 12px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   Card (Form Container)
   ═══════════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 119, 87, 0.3), transparent);
}

.card-header {
  padding: 28px 32px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.card-header-left { flex: 1; }

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg);
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card-body {
  padding: 8px 32px 32px;
}

/* ═══════════════════════════════════════════════════════
   Form Sections
   ═══════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 12px;
  margin-top: 8px;
}

.section-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ═══════════════════════════════════════════════════════
   Form Fields
   ═══════════════════════════════════════════════════════ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-row-single { margin-bottom: 14px; }

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

label .opt {
  color: var(--muted-2);
  font-weight: 400;
  font-size: 11.5px;
}

.input, .select, .textarea {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-2);
  transition: all var(--transition);
  outline: none;
  width: 100%;
}

.input:hover, .select:hover, .textarea:hover {
  border-color: rgba(10, 10, 15, 0.14);
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--ink);
  background: white;
  box-shadow: 0 0 0 4px rgba(10, 10, 15, 0.04);
}

.input::placeholder, .textarea::placeholder {
  color: var(--muted-2);
}

.input.error, .select.error, .textarea.error {
  border-color: var(--danger);
  background: #fff5f5;
}

.input.error:focus, .select.error:focus, .textarea.error:focus {
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08);
  border-color: var(--danger);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
  line-height: 1.5;
}

.textarea-wrap { position: relative; }

.char-count {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 11px;
  color: var(--muted-2);
  font-family: 'Geist Mono', monospace;
  background: white;
  padding: 2px 6px;
  border-radius: 6px;
  pointer-events: none;
}

.helper {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  min-height: 0;
  overflow: hidden;
  transition: all var(--transition);
}

.field-error.visible {
  min-height: 16px;
}

/* ═══════════════════════════════════════════════════════
   Tag Cloud
   ═══════════════════════════════════════════════════════ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tag-cloud.error-tags {
  padding: 4px;
  border-radius: var(--radius-md);
  background: rgba(220, 53, 69, 0.04);
}

.tag {
  padding: 7px 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.tag:hover {
  background: white;
  border-color: var(--muted-2);
}

.tag.selected {
  background: var(--ink);
  color: #f6f5f1;
  border-color: var(--ink);
}

.tag.selected::before {
  content: '\2713';
  font-size: 10px;
  opacity: 0.7;
}

.tag:active {
  transform: scale(0.96);
}

/* ═══════════════════════════════════════════════════════
   Consent
   ═══════════════════════════════════════════════════════ */
.consent {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin: 20px 0 20px;
}

.consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--ink);
  cursor: pointer;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.consent label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
  cursor: pointer;
  display: block;
}

.consent label a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* ═══════════════════════════════════════════════════════
   Submit Row
   ═══════════════════════════════════════════════════════ */
.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.submit-note {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════
   Confirmation State
   ═══════════════════════════════════════════════════════ */
.confirmation-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.confirmation-content {
  text-align: center;
  padding: 60px 40px;
}

.confirmation-icon {
  color: var(--sage);
  margin-bottom: 24px;
  animation: confirmAppear 0.5s ease-out;
}

.confirmation-heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  animation: confirmSlide 0.4s ease-out 0.1s both;
}

.confirmation-message {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 360px;
  margin: 0 auto 28px;
  animation: confirmSlide 0.4s ease-out 0.2s both;
}

.confirmation-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-warm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  animation: confirmSlide 0.4s ease-out 0.3s both;
}

.confirmation-link:hover {
  color: var(--ink);
}

@keyframes confirmAppear {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes confirmSlide {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}

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

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════════════
   Toast
   ═══════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  background: var(--ink);
  color: #f6f5f1;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px -4px rgba(10, 10, 15, 0.3);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
  pointer-events: auto;
  white-space: nowrap;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: var(--sage);
}

.toast-error {
  background: var(--danger);
}

/* ═══════════════════════════════════════════════════════
   Modal
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.modal-visible { opacity: 1; }

.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 90%;
  box-shadow: 0 24px 60px -20px rgba(10, 10, 15, 0.25);
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

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

.modal-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.modal-actions {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
}

/* ═══════════════════════════════════════════════════════
   Dropdown
   ═══════════════════════════════════════════════════════ */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  transition: all var(--transition);
}

.dropdown-trigger:hover { border-color: rgba(10, 10, 15, 0.14); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px -4px rgba(10, 10, 15, 0.12);
  z-index: 10;
  display: none;
  max-height: 240px;
  overflow-y: auto;
}

.dropdown-menu.open { display: block; }

.dropdown-item {
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
}

.dropdown-item:hover { background: var(--bg); }
.dropdown-item.active { font-weight: 500; color: var(--ink); }
