/* Transcript Studio v4-pt — Liquid Glass + Bento Grid.
   Hand-written CSS only. No framework, no CDN, no external fonts.
   Blue identity kept from v3: #1a5fb4 buttons/links, #1c2430 text. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: #1c2430;
  line-height: 1.6;
  background: #eef3fa;
  background-image:
    radial-gradient(720px 420px at 12% -4%, rgba(47, 127, 224, .22), transparent 60%),
    radial-gradient(640px 420px at 96% 8%, rgba(26, 95, 180, .16), transparent 60%),
    radial-gradient(900px 520px at 50% 118%, rgba(106, 165, 240, .18), transparent 60%),
    linear-gradient(180deg, #eaf1fb 0%, #f4f6f8 34%, #eef3fa 100%);
  background-attachment: fixed;
  min-width: 0;
}
a { color: #1a5fb4; }
img, svg, video { max-width: 100%; }
h1, h2, h3 { line-height: 1.22; overflow-wrap: break-word; }
h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: clamp(21px, 3vw, 27px); letter-spacing: -0.01em; margin: 0 0 10px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 9px 0; overflow-wrap: break-word; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
small { color: #5b6675; }
::selection { background: rgba(26, 95, 180, .22); }

/* ---------- layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main { padding: 26px 0 56px; }
.section { margin: 26px 0; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: #3d4a5e; max-width: 62ch; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #1a5fb4; background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(26, 95, 180, .25); border-radius: 999px; padding: 5px 12px; margin-bottom: 12px;
}
.muted { color: #5b6675; }

/* ---------- sticky glass header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 6px 24px rgba(26, 95, 180, .08);
}
.nav { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-top: 11px; padding-bottom: 11px; }
.brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: #1c2430; text-decoration: none;
}
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; font-size: 16px; font-weight: 800;
  background: linear-gradient(135deg, #1a5fb4, #2f7fe0 60%, #6aa5f0);
  box-shadow: 0 6px 14px rgba(26, 95, 180, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.nav-links { display: flex; gap: 4px 6px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 600; color: #33415a;
  padding: 8px 11px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center;
}
.nav-links a:hover { background: rgba(26, 95, 180, .1); color: #1a5fb4; }
.nav-links a[aria-current="page"] { background: rgba(26, 95, 180, .12); color: #1a5fb4; }

/* ---------- glass cards & bento grid ---------- */
.glass {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(26, 95, 180, .12), inset 0 1px 0 rgba(255, 255, 255, .7);
  padding: 26px;
}
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento > * { min-width: 0; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.bento-card { transition: transform .18s ease, box-shadow .18s ease; }
a.bento-card { text-decoration: none; color: #1c2430; display: block; }
a.bento-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px rgba(26, 95, 180, .18), inset 0 1px 0 rgba(255, 255, 255, .7); }
a.bento-card strong { color: #1a5fb4; }
.icon-chip {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px;
  color: #fff; background: linear-gradient(135deg, #1a5fb4, #2f7fe0);
  box-shadow: 0 8px 18px rgba(26, 95, 180, .3), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.icon-chip svg { width: 23px; height: 23px; }
.icon-chip.soft { color: #1a5fb4; background: rgba(26, 95, 180, .12); box-shadow: none; }
.card-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1a5fb4; margin-bottom: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; color: #fff;
  background: linear-gradient(128deg, #123f7d 0%, #1a5fb4 46%, #2f7fe0 78%, #5ea0ee 100%);
  box-shadow: 0 26px 56px rgba(18, 63, 125, .35);
  padding: clamp(28px, 5vw, 52px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 65%);
}
.hero::before { width: 340px; height: 340px; right: -90px; top: -120px; }
.hero::after { width: 240px; height: 240px; right: 180px; bottom: -150px; opacity: .7; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; }
.hero .lead { color: rgba(255, 255, 255, .88); }
.hero h1 { color: #fff; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-note { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.hero-chip {
  font-size: 13px; font-weight: 600; color: #fff; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ---------- buttons ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #1a5fb4, #2f7fe0);
  color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; min-height: 44px;
  font-size: 15px; font-weight: 700; line-height: 1.3; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 22px rgba(26, 95, 180, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
button:hover, .btn:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 14px 26px rgba(26, 95, 180, .38), inset 0 1px 0 rgba(255, 255, 255, .35); }
button:active, .btn:active { transform: translateY(0); box-shadow: 0 6px 14px rgba(26, 95, 180, .3); }
.btn-light {
  background: rgba(255, 255, 255, .96); color: #144b8f; box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}
.btn-light:hover { filter: brightness(1); }
.btn-ghost {
  background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .55); box-shadow: none;
}
.btn-secondary {
  background: rgba(26, 95, 180, .1); color: #1c2430; box-shadow: none; border: 1px solid rgba(26, 95, 180, .18);
}
.btn-secondary:hover { filter: none; background: rgba(26, 95, 180, .16); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(47, 127, 224, .55); outline-offset: 2px;
}

/* ---------- forms / upload ---------- */
label { display: block; font-weight: 700; margin: 14px 0 7px; font-size: 14px; }
select {
  width: 100%; padding: 11px 12px; border: 1px solid #b9c2cf; border-radius: 12px;
  background: #fff; font-size: 15px; min-height: 44px; color: #1c2430;
}
.dropzone {
  display: block; border: 2px dashed rgba(26, 95, 180, .45); border-radius: 18px;
  background: linear-gradient(180deg, rgba(26, 95, 180, .07), rgba(255, 255, 255, .5));
  padding: 26px 20px; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.dropzone:hover, .dropzone.dragover { border-color: #1a5fb4; background: linear-gradient(180deg, rgba(26, 95, 180, .13), rgba(255, 255, 255, .6)); }
.dropzone input[type="file"] { display: block; width: 100%; margin: 12px auto 0; font-size: 14px; }
.dropzone-icon {
  width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #1a5fb4, #2f7fe0);
  box-shadow: 0 10px 22px rgba(26, 95, 180, .35), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.dropzone-icon svg { width: 28px; height: 28px; }
.dropzone strong { display: block; font-size: 17px; }
.dropzone span { font-size: 14px; color: #5b6675; }
.file-name { font-size: 14px; font-weight: 600; color: #1a5fb4; margin-top: 10px; min-height: 20px; word-break: break-all; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.chip {
  font-size: 13px; font-weight: 600; color: #33415a; background: rgba(26, 95, 180, .09);
  border: 1px solid rgba(26, 95, 180, .18); border-radius: 999px; padding: 5px 11px;
}
.form-actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step-num {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 10px;
  color: #fff; font-weight: 800; font-size: 17px;
  background: linear-gradient(135deg, #1a5fb4, #2f7fe0);
  box-shadow: 0 8px 16px rgba(26, 95, 180, .3), inset 0 1px 0 rgba(255, 255, 255, .4);
}

/* ---------- notices / transcript / faq ---------- */
.error {
  background: rgba(253, 236, 234, .85); border: 1px solid #f0b6b0; color: #7a1f1a;
  border-radius: 14px; padding: 12px 14px; margin: 14px 0;
}
.notice {
  background: rgba(255, 247, 221, .8); border: 1px solid #ecd98a; border-radius: 14px;
  padding: 12px 14px; margin: 14px 0; font-size: 14px;
}
.transcript {
  white-space: pre-wrap; background: rgba(247, 248, 250, .85); border: 1px solid #dde3ea;
  border-radius: 14px; padding: 16px; max-height: 420px; overflow: auto; font-size: 15px;
}
details { border-bottom: 1px solid rgba(26, 95, 180, .16); padding: 13px 2px; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "⌄"; color: #1a5fb4; font-size: 18px; line-height: 1; transition: transform .18s ease; flex: 0 0 auto; }
details[open] summary::after { transform: rotate(180deg); }
details p { color: #3d4a5e; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding-top: 30px; padding-bottom: 30px; font-size: 14px; }
.foot-grid nav { display: grid; gap: 6px; }
.foot-grid nav a { text-decoration: none; padding: 5px 0; min-height: 32px; }
.foot-base { border-top: 1px solid rgba(26, 95, 180, .14); padding: 14px 0 26px; font-size: 13px; color: #5b6675; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2, .span-3, .span-4 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  main { padding-top: 18px; }
  .glass { padding: 20px; border-radius: 17px; }
  .bento, .steps, .steps-2 { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: span 1; }
  .nav { gap: 4px 10px; }
  .brand { font-size: 17px; }
  .nav-links a { padding: 7px 9px; font-size: 13px; }
  .hero { border-radius: 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .form-actions .btn, .form-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- v5 SEO: breadcrumbs + footer brand ---------- */
.breadcrumbs { font-size: 13px; color: #5b6675; padding-top: 14px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span[aria-current="page"] { color: #1c2430; font-weight: 600; }
.foot-brand { font-weight: 700; font-size: 16px; color: #1c2430; text-decoration: none; display: inline-block; margin-bottom: 4px; }
