/* ClapAssist Growth Tools — Official Brand Stylesheet
   Apple-grade luminous theme, typography (Geist + Fraunces),
   matching site.css perfectly. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@1,9..144,500;1,9..144,600&family=Geist:wght@300;400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #FAFAFC;
  --paper-2: #F3F4F8;
  --paper-3: #E9ECF4;
  --surface: #FFFFFF;
  --ink: #0E1020;
  --ink-2: #3E4358;
  --ink-3: #646A82;
  --ink-4: #949BB2;
  --hair: rgba(14, 16, 32, .08);
  --hair-2: rgba(14, 16, 32, .14);
  --hair-3: rgba(14, 16, 32, .22);
  --accent: #4F46E5;
  --accent-2: #4338CA;
  --accent-ink: #3730A3;
  --accent-soft: #EEF2FF;
  --accent-line: #C7D2FE;
  --accent-periwinkle: #6366F1;
  --brand-blue: #5282F1;
  --ok: #16A34A;
  --ok-soft: #F0FDF4;
  --warn: #D97706;
  --warn-soft: #FFFBEB;
  --warn-line: #FDE68A;
  --bad: #E11D48;
  --bad-soft: #FFF1F2;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', 'Iowan Old Style', Palatino, Georgia, serif;
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(14, 16, 32, .06), 0 1px 2px rgba(14, 16, 32, .04);
  --shadow-md: 0 12px 32px -8px rgba(14, 16, 32, .12), 0 0 0 1px rgba(14, 16, 32, .05);
  --shadow-lg: 0 24px 60px -12px rgba(14, 16, 32, .15), 0 0 0 1px rgba(14, 16, 32, .06);
  --container: 1080px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

body {
  font-family: var(--sans);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Navigation ---------- */
.nav-outer {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hair);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 2px 10px rgba(11, 79, 191, .18);
  background: #fff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  color: #182038;
}

.brand-name b {
  font-weight: 800;
  color: var(--brand-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .2s;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(180deg, #5B5BF0, var(--accent-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 1px var(--accent-ink);
  transition: transform .16s var(--ease), box-shadow .16s;
}

.pill:hover {
  transform: scale(1.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 12px rgba(79, 70, 229, .25), 0 0 0 1px var(--accent-ink);
}

/* ---------- Typography & Accents ---------- */
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

.grad {
  color: var(--accent-ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--accent-line);
  margin-bottom: 16px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px 80px;
  flex: 1;
}

.hero-center {
  text-align: center;
  margin-bottom: 48px;
}

.hero-center h1 {
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-center p.sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-3);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Cards Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-line);
}

.card-top {
  margin-bottom: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-line);
}

.card h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.card p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

.card:hover .card-action {
  color: var(--accent-ink);
}

/* ---------- Panels & Forms ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.panel h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -.01em;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

input[type="text"], select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  transition: border-color .2s, box-shadow .2s;
}

input[type="text"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .16s var(--ease), box-shadow .16s;
}

.btn:active {
  transform: scale(.98);
}

.btn-primary {
  background: linear-gradient(180deg, #5B5BF0, var(--accent-2));
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px -4px rgba(79, 70, 229, .35), 0 0 0 1px var(--accent-ink);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #6868F5, #4338CA);
  color: #fff !important;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hair-2), var(--shadow-sm);
}

.btn-ghost:hover {
  box-shadow: 0 0 0 1px var(--hair-3), var(--shadow-sm);
}

/* ---------- Natural ClapAssist Conversion Section ---------- */
.bridge-card {
  background: #fff;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

.bridge-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5B5BF0, #818CF8, #5282F1);
}

.bridge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.bridge-card h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.bridge-card p {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.bridge-note {
  font-size: 13px;
  color: var(--ink-4);
  margin-top: 14px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hair);
  background: #fff;
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-4);
  margin-top: auto;
}

/* ---------- Print & PDF Export Styles ---------- */
@media print {
  .nav-outer, .btn, .btn-copy, .btn-primary, .btn-ghost, .chip, .role-chips, .scenario-chips, .tabs-bar, .inline-conversion, .bridge-card, footer {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .wrap {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .panel, .card, .output-card, .detail-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  .print-only-header {
    display: block !important;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
  }
}

.print-only-header {
  display: none;
}

