/* ============================================================
   TAISO VOICE — story.css
   Shared styles for /success-stories/* pages.
   Apple-clean minimal, optimized for reading.
   ============================================================ */

:root {
  --white:    #ffffff;
  --bg-soft:  #fbfbfd;
  --bg-gray:  #f5f5f7;
  --black:    #000000;
  --ink:      #1d1d1f;
  --muted:    #6e6e73;
  --rule:     #d2d2d7;
  --rule-dk:  rgba(255, 255, 255, 0.18);
  --blue:     #0071e3;
  --blue-2:   #0077ed;
  --blue-dk:  #2997ff;
  --green:    #29a849;

  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 760px;
  --container-wide: 1240px;
  --section-y: clamp(64px, 10vw, 120px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.022em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--blue); color: #fff; }

/* ============ NAV ============ */

nav.global {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(251, 251, 253, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
nav.global .row {
  max-width: var(--container-wide);
  margin: 0 auto; padding: 0 22px;
  height: 44px;
  display: flex; align-items: center; justify-content: space-between;
}
nav.global .brand {
  font-size: 21px; font-weight: 600;
  letter-spacing: -0.022em;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
}
nav.global .brand .voice { font-weight: 400; color: var(--muted); margin-left: 4px; }
nav.global .brand-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.45);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.45); }
  50%      { box-shadow: 0 0 0 7px rgba(0, 113, 227, 0); }
}
nav.global ul { display: flex; gap: 24px; list-style: none; align-items: center; }
nav.global ul a {
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.88;
  transition: opacity 0.2s;
}
nav.global ul a:hover { opacity: 1; }
@media (max-width: 760px) {
  nav.global ul li:not(.cta-li) { display: none; }
}
nav.global ul li.cta-li a { color: var(--blue); opacity: 1; font-weight: 500; }

/* ============ BUTTONS / LINKS ============ */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font-size: 17px; font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.17;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.25s;
  white-space: nowrap;
}
.pill-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 2px rgba(0, 113, 227, 0.20);
}
.pill-primary:hover {
  background: var(--blue-2);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.28);
  transform: translateY(-1px);
}
.link {
  color: var(--blue);
  font-size: 17px;
  letter-spacing: -0.022em;
  display: inline-flex; align-items: center; gap: 4px;
  transition: opacity 0.2s;
}
.link:hover { opacity: 0.8; }
.link .chev { transition: transform 0.2s; display: inline-block; }
.link:hover .chev { transform: translateX(2px); }
.cta-pair {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 28px;
}

/* ============ STORY HERO ============ */

.story-hero {
  padding: clamp(60px, 9vw, 100px) 0 clamp(32px, 5vw, 56px);
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-gray) 100%);
}
.story-hero .wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}
.story-hero .breadcrumbs {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  margin-bottom: 22px;
  letter-spacing: -0.012em;
}
.story-hero .breadcrumbs a { color: var(--blue); }
.story-hero .breadcrumbs .sep { opacity: 0.4; }

.story-hero .vertical-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  padding: 6px 12px;
  border-radius: 980px;
  letter-spacing: -0.012em;
  margin-bottom: 24px;
}

.story-hero h1 {
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.038em;
  margin-bottom: 24px;
}
.story-hero h1 .accent {
  background: linear-gradient(180deg, #0071e3 0%, #0a4ec2 70%, #062b85 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.story-hero .meta {
  font-size: 17px;
  color: var(--muted);
  letter-spacing: -0.012em;
}
.story-hero .meta strong { color: var(--ink); font-weight: 500; }

/* ============ STATS BAR ============ */

.stats-bar {
  background: var(--bg-gray);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats-bar .row {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 700px) {
  .stats-bar .row { grid-template-columns: repeat(3, 1fr); }
}
.stats-bar .stat {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
@media (min-width: 700px) {
  .stats-bar .stat { border-bottom: 0; padding: 0 24px; }
  .stats-bar .stat + .stat { border-left: 1px solid var(--rule); }
}
.stats-bar .stat .num {
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #1d1d1f 0%, #1d1d1f 60%, #6e6e73 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats-bar .stat .lab {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -0.012em;
  max-width: 24ch;
  margin: 0 auto;
}

/* ============ ARTICLE BODY ============ */

article.story {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 22px;
}

article.story h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: clamp(40px, 6vw, 72px) 0 20px;
}
article.story h2:first-child { margin-top: 0; }

article.story p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.014em;
}
article.story p strong { font-weight: 600; }

article.story ul.behaviors {
  list-style: none;
  margin: 24px 0 32px;
  border-top: 1px solid var(--rule);
}
article.story ul.behaviors li {
  padding: 18px 0 18px 32px;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
  line-height: 1.45;
  position: relative;
  letter-spacing: -0.012em;
}
article.story ul.behaviors li::before {
  content: "";
  position: absolute;
  left: 0; top: 24px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============ CONVERSATION INSET ============ */

.convo-inset {
  background: linear-gradient(160deg, #062157 0%, #0950b8 60%, #0071e3 130%);
  border-radius: 24px;
  padding: clamp(28px, 3.4vw, 44px);
  margin: clamp(32px, 4vw, 48px) 0;
  color: #f5f5f7;
}
.convo-inset .label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(155, 196, 255, 0.85);
  margin-bottom: 20px;
}
.convo-inset .bubbles {
  display: flex; flex-direction: column; gap: 12px;
}
.convo-inset .bubble {
  max-width: 85%;
  padding: 14px 18px;
  font-size: 15.5px;
  line-height: 1.45;
  border-radius: 18px;
}
.convo-inset .bubble.cust {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
}
.convo-inset .bubble.taiso {
  align-self: flex-end;
  background: var(--white);
  color: var(--ink);
}
.convo-inset .bubble .who {
  display: block; font-size: 11px; font-weight: 500;
  letter-spacing: 0.02em; opacity: 0.65;
  margin-bottom: 4px;
}

/* ============ PULL QUOTE ============ */

.pull-quote {
  background: var(--bg-gray);
  border-left: 3px solid var(--blue);
  padding: clamp(28px, 4vw, 48px);
  margin: clamp(40px, 6vw, 72px) 0;
  border-radius: 0 18px 18px 0;
}
.pull-quote p {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.022em;
  margin-bottom: 18px;
  color: var(--ink);
}
.pull-quote cite {
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -0.012em;
}
.pull-quote cite strong { color: var(--ink); font-weight: 500; }

/* ============ BOTTOM CTA ============ */

.story-cta {
  background: var(--bg-gray);
  text-align: center;
  padding: clamp(56px, 9vw, 100px) 22px;
}
.story-cta h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 auto 18px;
}
.story-cta p {
  font-size: 19px;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 auto 28px;
}

/* ============ MORE STORIES STRIP ============ */

.more-stories {
  background: var(--white);
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--rule);
}
.more-stories .head {
  max-width: var(--container);
  margin: 0 auto 32px;
  padding: 0 22px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
}
.more-stories .head h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.022em;
}
.more-stories .grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) { .more-stories .grid { grid-template-columns: repeat(3, 1fr); } }
.more-stories .card {
  background: var(--bg-gray);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.more-stories .card:hover { transform: translateY(-3px); }
.more-stories .card .vertical {
  font-size: 13px; font-weight: 500;
  color: var(--blue); letter-spacing: -0.012em;
}
.more-stories .card h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--ink);
}
.more-stories .card .num {
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.014em;
}

/* ============ BROWSE PAGE ============ */

.browse-hero {
  padding: clamp(80px, 12vw, 140px) 0 clamp(48px, 7vw, 80px);
  text-align: center;
  background: var(--white);
}
.browse-hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
  max-width: 14ch;
  margin: 0 auto 20px;
}
.browse-hero h1 .accent {
  background: linear-gradient(180deg, #0071e3 0%, #0a4ec2 70%, #062b85 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.browse-hero p {
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.33;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 auto;
}

.browse-grid {
  background: var(--bg-gray);
  padding: clamp(56px, 8vw, 100px) 0;
}
.browse-grid .grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) { .browse-grid .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .browse-grid .grid { grid-template-columns: repeat(3, 1fr); } }

.story-card {
  background: var(--white);
  border-radius: 24px;
  padding: clamp(28px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
}
.story-card .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--blue); letter-spacing: -0.012em;
}
.story-card .tag .icon {
  width: 24px; height: 24px;
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.10);
  display: inline-flex; align-items: center; justify-content: center;
}
.story-card .tag .icon svg {
  width: 14px; height: 14px;
  color: var(--blue);
  stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.story-card h3 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}
.story-card .where { font-size: 14px; color: var(--muted); letter-spacing: -0.012em; }
.story-card .headline {
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.story-card .headline strong { color: var(--blue); font-weight: 500; }
.story-card .read {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: inline-flex; gap: 4px; align-items: center;
  font-size: 14px; font-weight: 500;
  color: var(--blue); letter-spacing: -0.012em;
}

/* ============ DISCLAIMER ============ */

.disclaimer {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 22px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: -0.01em;
}

/* ============ FOOTER ============ */

footer {
  background: var(--bg-gray);
  color: var(--muted);
  padding: 24px 0 32px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
footer .row {
  max-width: var(--container-wide);
  margin: 0 auto; padding: 0 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 16px;
}
footer a { color: var(--muted); transition: color 0.2s; }
footer a:hover { color: var(--ink); }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
