/* ═══════════════════════════════════════════════════════════════════════════
   Speak Korean · 한국어 (Soft Pastel Aesthetic)
   ---------------------------------------------------------------------------
   Delightful, warm, soft pastel glass design system.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Soft Pastel Palette */
  --bg-main: #faf5ff;
  --bg-card: rgba(255, 255, 255, 0.86);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-card-active: #ffffff;
  
  /* Text colors */
  --ink: #1e1b4b;
  --ink-2: #334155;
  --ink-3: #64748b;
  
  /* Soft Lines & Highlights */
  --line: rgba(226, 232, 240, 0.8);
  --line-bright: rgba(168, 85, 247, 0.3);
  --wash: rgba(243, 232, 255, 0.5);
  
  /* Default Partner Accent (Soft Lavender & Indigo) */
  --c: #6366f1;
  --c-violet: #a855f7;

  /* Border Radii */
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 12px;

  --pad: 20px;
  --text-scale: 1;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --glass-blur: blur(20px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-main);
  color: var(--ink);
}

body {
  font-family:
    'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: calc(16px * var(--text-scale));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  /* One flat pastel tone. The colour never shifts per partner or per screen. */
  background-color: var(--bg-main);
}

button {
  font: inherit;
  color: inherit;
  margin: 0;
  cursor: pointer;
  border: 0;
  background: none;
  touch-action: manipulation;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 3px;
  border-radius: 8px;
}

[hidden] {
  display: none !important;
}

/* ── App Shell ───────────────────────────────────────────────────────────── */

.app {
  height: 100%;
}

.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.screen--scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Splash Screen ──────────────────────────────────────────────────────── */

.splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  background: var(--bg-main);
  transition: opacity 0.4s var(--ease);
}

.splash.is-gone {
  opacity: 0;
  pointer-events: none;
}

.splash__mark {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  background: var(--c);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 40%, transparent);
  animation: pulseFloat 2.4s ease-in-out infinite;
}

.splash__text {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@keyframes pulseFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}

/* ── Typography ─────────────────────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 12px;
  font-size: calc(13px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c);
}

.display {
  margin: 0;
  font-size: calc(34px * var(--text-scale));
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.lede {
  margin: 12px 0 0;
  font-size: calc(15px * var(--text-scale));
  line-height: 1.5;
  color: var(--ink-2);
}

.sub {
  margin: 0 0 16px;
  font-size: calc(14px * var(--text-scale));
  line-height: 1.5;
  color: var(--ink-3);
}

.fineprint {
  margin: 0;
  font-size: calc(13px * var(--text-scale));
  color: var(--ink-3);
}

/* ── Choose Screen (Partner Picker Modal) ────────────────────────────────── */

.pick {
  flex: 1;
  padding: calc(var(--safe-t) + 24px) var(--pad) 24px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.pick__head {
  margin-bottom: 24px;
}

.cards {
  display: grid;
  gap: 16px;
}

.card-p {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.08);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card-p:hover {
  border-color: var(--c);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.14);
}

.card-p.is-active {
  border-color: var(--c);
  box-shadow: 0 0 0 2px var(--c), 0 14px 40px color-mix(in srgb, var(--c) 30%, transparent);
}

.card-p__photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 4;
  font-size: 72px;
  background: #f1f5f9;
  overflow: hidden;
}

.card-p__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.card-p__scrim {
  position: absolute;
  inset: auto 0 0;
  height: 65%;
  background: linear-gradient(to top, rgba(30, 27, 75, 0.88), rgba(30, 27, 75, 0.3) 50%, transparent);
  pointer-events: none;
}

.card-p__text {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 16px;
  color: #ffffff;
}

.card-p__tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: calc(11px * var(--text-scale));
  font-weight: 700;
  color: #ffffff;
  background: color-mix(in srgb, var(--c) 85%, transparent);
  backdrop-filter: blur(8px);
}

.card-p__name {
  display: block;
  font-size: calc(28px * var(--text-scale));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card-p__roman {
  display: block;
  margin-top: 2px;
  font-size: calc(14px * var(--text-scale));
  color: rgba(255, 255, 255, 0.9);
}

.card-p__blurb {
  display: block;
  padding: 14px 18px 16px;
  font-size: calc(14px * var(--text-scale));
  line-height: 1.5;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.9);
}

.card-p__hobbies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.card-p__hobby {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: calc(12px * var(--text-scale));
  font-weight: 600;
  color: var(--ink-2);
  background: #f3e8ff;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.card-p__check {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--c);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 50%, transparent);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s var(--ease);
}

.card-p.is-active .card-p__check {
  opacity: 1;
  transform: scale(1);
}

.dock {
  position: sticky;
  bottom: 0;
  padding: 16px var(--pad) calc(var(--safe-b) + 16px);
  background: linear-gradient(to top, rgba(250, 245, 255, 0.95) 75%, transparent);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.bigbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: calc(16px * var(--text-scale));
  font-weight: 800;
  color: #fff;
  background: var(--c);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--c) 40%, transparent);
  transition: transform 0.2s var(--ease);
}

.bigbtn:active {
  transform: scale(0.98);
}

/* ── Home Screen ────────────────────────────────────────────────────────── */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-t) + 14px) var(--pad) calc(var(--safe-b) + 90px);
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.home__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}

.home__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: calc(13px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.home__mark {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: calc(13px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  background: var(--c);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 35%, transparent);
}

.iconbtn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--ink-2);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.08);
  transition: all 0.2s var(--ease);
}

.iconbtn:hover {
  background: var(--bg-card-hover);
  color: var(--ink);
}

/* Partner Carousel on Home Screen */
.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}

.carousel-head__title {
  margin: 0;
  font-size: calc(12px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c);
}

.carousel-head__badge {
  font-size: calc(11px * var(--text-scale));
  font-weight: 700;
  color: var(--ink-3);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.partner-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.partner-carousel::-webkit-scrollbar {
  height: 4px;
}

.partner-carousel::-webkit-scrollbar-track {
  background: rgba(168, 85, 247, 0.08);
  border-radius: 999px;
}

.partner-carousel::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--c) 50%, transparent);
  border-radius: 999px;
}

/* On home the carousel is a compact switcher — a face, a name, a check.
   The full cards (blurb, hobbies, register) live on the Partners tab; putting
   them here pushed the call button below the fold. */
.partner-carousel .card-p {
  flex: 0 0 104px;
  scroll-snap-align: start;
}

.partner-carousel .card-p__photo {
  aspect-ratio: 1;
  max-height: none;
  border-radius: var(--r-lg);
}

.partner-carousel .card-p__blurb,
.partner-carousel .card-p__tag,
.partner-carousel .card-p__roman {
  display: none;
}

.partner-carousel .card-p__name {
  font-size: calc(16px * var(--text-scale));
}

.partner-carousel .card-p__text {
  padding: 8px 10px;
}

/* Mission Card Banner */
.mission {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--c) 12%, #ffffff);
  backdrop-filter: var(--glass-blur);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}

.mission__text {
  font-size: calc(13px * var(--text-scale));
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

/* Daily Phrase Card */
.study {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 15px 18px;
  border-radius: var(--r-lg);
  text-align: left;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.06);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.study:hover {
  border-color: var(--line-bright);
}

.study:active {
  transform: scale(0.99);
}

.study__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: calc(11px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c);
}

.study__label::after {
  content: '🔊';
  font-size: 14px;
}

.study__ko {
  display: block;
  font-size: calc(21px * var(--text-scale));
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  word-break: keep-all;
  color: var(--ink);
}

.study__ro {
  display: block;
  margin-top: 4px;
  font-size: calc(13px * var(--text-scale));
  font-style: italic;
  color: var(--c-violet);
}

.study__en {
  display: block;
  margin-top: 4px;
  font-size: calc(14px * var(--text-scale));
  color: var(--ink-2);
}

/* Stats Grid */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 10px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.05);
  transition: transform 0.2s var(--ease);
}

.stats:active {
  transform: scale(0.99);
}

.stat {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.stat__value {
  font-size: calc(17px * var(--text-scale));
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
}

.stat__label {
  font-size: calc(10px * var(--text-scale));
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Main Call Action Button */
.home__action {
  margin-top: auto;
  padding-top: 14px;
}

.callbtn-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: calc(17px * var(--text-scale));
  font-weight: 800;
  color: #fff;
  background: var(--c);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--c) 45%, transparent);
  transition: transform 0.2s var(--ease);
}

.callbtn-lg:active {
  transform: scale(0.98);
}

.callbtn-lg__icon {
  font-size: 20px;
}

.home__note {
  margin: 8px 0 0;
  text-align: center;
  font-size: calc(12px * var(--text-scale));
  color: var(--ink-3);
}

/* ── Voice Call Screen (Soft Pastel Stage) ──────────────────────────────── */

.screen--call {
  background: #1c1b33;
  position: relative;
  color: #ffffff;
}

.call__top {
  padding: calc(var(--safe-t) + 16px) var(--pad) 0;
  text-align: center;
  z-index: 10;
}

.call__timer {
  margin: 0;
  font-family: monospace;
  font-size: calc(16px * var(--text-scale));
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
}

.call__state {
  margin: 4px 0 0;
  font-size: calc(15px * var(--text-scale));
  font-weight: 700;
  color: #a7f3d0;
}

.call__stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px var(--pad);
  /* Absorb the squeeze when the caption grows — the stage gives way,
     never the caption card or the controls. */
  min-height: 0;
  overflow: hidden;
}

.call__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin-bottom: 16px;
}

.call__ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--c) 70%, transparent);
}

.call__ring--b {
  inset: -22px;
  border-color: color-mix(in srgb, var(--c-violet) 50%, transparent);
}

.call__face {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  font-size: 54px;
  background: #1e293b;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 35px color-mix(in srgb, var(--c) 60%, transparent);
  overflow: hidden;
}

.call__face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  z-index: 3;
}

.call__face.has-photo .face__emoji {
  display: none !important;
}

.call__name {
  margin: 0;
  font-size: calc(28px * var(--text-scale));
  font-weight: 800;
  color: #ffffff;
}

.call__bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin-top: 10px;
}

.call__hint {
  margin: 10px 0 0;
  font-size: calc(13px * var(--text-scale));
  color: rgba(255, 255, 255, 0.7);
}

.call__caption {
  margin: 0 var(--pad) 16px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
  z-index: 10;
  min-height: 80px;
  /* The screen is a fixed-height flex column; without this the card gets
     squeezed and a long translation visibly spills out under it. The card
     keeps its size and long text scrolls inside instead. */
  flex-shrink: 0;
  max-height: 34vh;
  overflow-y: auto;
  overflow-wrap: anywhere;
}

.caption__who {
  margin: 0 0 4px;
  font-size: calc(11px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c084fc;
}

.caption__ko {
  margin: 0;
  font-size: calc(18px * var(--text-scale));
  font-weight: 800;
  color: #ffffff;
}

.caption__en {
  margin: 4px 0 0;
  font-size: calc(14px * var(--text-scale));
  color: rgba(255, 255, 255, 0.85);
}

.caption__translate {
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: calc(12px * var(--text-scale));
  font-weight: 700;
  color: #fff;
  background: color-mix(in srgb, var(--c) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
}

.call__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 var(--pad) calc(var(--safe-b) + 20px);
  z-index: 10;
}

.callbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: transform 0.2s var(--ease);
}

.callbtn:active {
  transform: scale(0.94);
}

.callbtn__icon {
  font-size: 20px;
}

.callbtn__label {
  font-size: calc(10px * var(--text-scale));
  font-weight: 700;
}

.callbtn--end {
  width: 82px;
  height: 82px;
  background: #f43f5e;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.5);
}

/* ── Bottom Sheet & Modals ───────────────────────────────────────────────── */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 75, 0.4);
  backdrop-filter: blur(6px);
}

.sheet__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 12px 22px calc(var(--safe-b) + 24px);
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: 0;
  box-shadow: 0 -16px 45px rgba(168, 85, 247, 0.1);
  color: var(--ink);
}

.sheet__grab {
  display: block;
  width: 40px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: calc(15px * var(--text-scale));
  font-weight: 800;
}

.btn--primary {
  color: #fff;
  background: var(--c);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 40%, transparent);
}

/* ── Sign in ────────────────────────────────────────────────────────────── */

.login {
  max-width: 460px;
  margin: 0 auto;
  padding: clamp(24px, 6vh, 64px) 22px 40px;
}

.login__box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

/* The three partners, right on the door — the reason to come in. */
.login__faces {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.login__face {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  font-size: 34px;
  background: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.12);
}

.login__face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.login__points {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.login__points li {
  position: relative;
  padding-left: 24px;
  font-size: calc(14px * var(--text-scale));
  color: var(--ink-2);
}

.login__points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--c);
}

.login__or {
  margin: 4px 0 0;
  font-size: calc(13px * var(--text-scale));
  font-weight: 700;
  text-align: center;
  color: var(--ink-3, #767d8c);
}

.btn--google {
  gap: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(100, 116, 139, 0.35);
}

.btn--google span {
  font-weight: 900;
  color: #4285f4;
}

.field {
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(100, 116, 139, 0.35);
  background: #fff;
  font: inherit;
  font-size: calc(15px * var(--text-scale));
  color: var(--ink);
}

.field:focus {
  outline: 2px solid var(--c);
  outline-offset: 1px;
}

.card {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.05);
}

.card__title {
  margin: 0 0 6px;
  font-size: calc(15px * var(--text-scale));
  font-weight: 800;
  color: var(--ink);
}

.card__body {
  margin: 0;
  font-size: calc(14px * var(--text-scale));
  color: var(--ink-2);
}

.toast {
  position: fixed;
  bottom: calc(var(--safe-b) + 30px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: calc(14px * var(--text-scale));
  font-weight: 800;
  color: #fff;
  background: rgba(30, 27, 75, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.toast.is-error {
  background: rgba(239, 68, 68, 0.95);
}

/* Packs & Paywall */
.packs {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.05);
}

.pack.is-active {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, #ffffff);
  box-shadow: 0 0 0 2px var(--c);
}

.pack__credits {
  font-size: calc(16px * var(--text-scale));
  font-weight: 800;
  color: var(--ink);
}

.pack__price {
  font-size: calc(16px * var(--text-scale));
  font-weight: 800;
  color: var(--c);
}

.pack__note {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: calc(11px * var(--text-scale));
  font-weight: 800;
  color: #fff;
  background: var(--c);
}

/* Photocard Collection Grid */
.photocards-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.photocard {
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.06);
  transition: all 0.2s var(--ease);
}

.photocard.is-unlocked {
  border-color: color-mix(in srgb, var(--c) 40%, transparent);
}

.photocard.is-locked {
  opacity: 0.65;
}

.photocard__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: calc(11px * var(--text-scale));
  font-weight: 800;
  color: #fff;
  background: var(--c);
  margin-bottom: 6px;
}

.photocard__title {
  margin: 0;
  font-size: calc(16px * var(--text-scale));
  font-weight: 800;
  color: var(--ink);
}

.photocard__partner {
  margin: 2px 0 0;
  font-size: calc(13px * var(--text-scale));
  color: var(--ink-3);
}

.photocard__quote {
  margin: 8px 0 10px;
  font-size: calc(14px * var(--text-scale));
  font-style: italic;
  color: var(--c-violet);
}

.photocard__tts {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: calc(12px * var(--text-scale));
  font-weight: 800;
  color: #fff;
  background: var(--c);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 35%, transparent);
}

.photocard__lock {
  margin: 8px 0 0;
  font-size: calc(13px * var(--text-scale));
  font-weight: 700;
  color: var(--ink-3);
}

/* ── Tab Screens ───────────────────────────────────────────────────────── */

.tab-screen {
  flex: 1;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
  padding: calc(var(--safe-t) + 16px) var(--pad) calc(var(--safe-b) + 90px);
}

.tab-header {
  margin-bottom: 20px;
}

.partner-tab-card {
  margin-bottom: 16px;
}

/* ── Sticky Bottom Navigation Bar (Soft Pastel Glass) ────────────────────── */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 480px;
  height: calc(62px + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 -6px 25px rgba(168, 85, 247, 0.08);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  color: var(--ink-3);
  transition: all 0.2s var(--ease);
  position: relative;
}

.nav-item__icon {
  display: inline-flex;
  transition: transform 0.2s var(--ease);
}

.nav-item__icon svg {
  width: 22px;
  height: 22px;
}

.nav-item__label {
  font-size: calc(11px * var(--text-scale));
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-item.is-active {
  color: var(--c);
}

.nav-item.is-active .nav-item__icon {
  transform: translateY(-2px) scale(1.1);
}

.nav-item.is-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--c);
  box-shadow: 0 2px 6px var(--c);
}

/* ── Sheet & study components ─────────────────────────────────────────────
   The cards that carry the actual teaching: phrases, corrections, wins,
   transcripts. One family, one look — white card, soft radius, the partner's
   colour only as an accent. */

.sheet__body h3 {
  margin: 4px 0 6px;
  font-size: calc(22px * var(--text-scale));
  font-weight: 900;
  letter-spacing: -0.01em;
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.row .btn {
  flex: 1;
}

/* Plain buttons get a visible surface; --primary re-asserts its gradient
   because this block comes later in the cascade than the original rule. */
.btn {
  background: #fff;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.btn--primary {
  border: 0;
  color: #fff;
  background: var(--c);
}

.card__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* Phrase cards — warmup, rescue, notebook collection */
.phrases {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.phrase {
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.06);
}

.phrase p {
  margin: 0;
}

.phrase__label {
  margin-bottom: 4px !important;
  font-size: calc(10px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c);
}

.phrase__ko {
  font-size: calc(18px * var(--text-scale));
  font-weight: 800;
  line-height: 1.35;
}

.phrase__ro {
  margin-top: 2px !important;
  font-size: calc(12px * var(--text-scale));
  font-weight: 600;
  color: var(--c);
}

.phrase__en {
  margin-top: 2px !important;
  font-size: calc(13px * var(--text-scale));
  color: var(--ink-3);
}

.phrase__play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: calc(12px * var(--text-scale));
  font-weight: 700;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

/* Correction cards — said → better, and why */
.fixcard {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-left: 3px solid var(--c);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.06);
}

.fixcard p {
  margin: 0;
}

.fixcard__said {
  font-size: calc(13px * var(--text-scale));
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: rgba(100, 116, 139, 0.5);
}

.fixcard__better {
  margin-top: 3px !important;
  font-size: calc(17px * var(--text-scale));
  font-weight: 800;
}

.fixcard__ro {
  margin-top: 1px !important;
  font-size: calc(12px * var(--text-scale));
  font-weight: 600;
  color: var(--c);
}

.fixcard__why {
  margin-top: 5px !important;
  font-size: calc(13px * var(--text-scale));
  color: var(--ink-2);
}

.fixcard--clean {
  border-left-color: #10b981;
  text-align: center;
}

/* Keep cards — the phrase worth remembering, and beaten weak points */
.keepcard {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--c) 8%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
}

.keepcard p {
  margin: 0;
}

.keepcard__label {
  margin-bottom: 4px !important;
  font-size: calc(10px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c);
}

.keepcard__ko {
  font-size: calc(18px * var(--text-scale));
  font-weight: 800;
  line-height: 1.35;
}

.keepcard__ro {
  margin-top: 2px !important;
  font-size: calc(12px * var(--text-scale));
  font-weight: 600;
  color: var(--c);
}

.keepcard__en {
  margin-top: 2px !important;
  font-size: calc(13px * var(--text-scale));
  color: var(--ink-2);
}

.keepcard--win {
  background: color-mix(in srgb, #10b981 9%, #ffffff);
  border-color: color-mix(in srgb, #10b981 30%, transparent);
}

.keepcard--win .keepcard__label {
  color: #059669;
}

/* Level change banner */
.levelup {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--r-lg);
  text-align: center;
  color: #fff;
  background: var(--c);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 35%, transparent);
}

.levelup__label {
  font-size: calc(10px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.85;
}

.levelup__value {
  font-size: calc(19px * var(--text-scale));
  font-weight: 900;
}

.levelup__note {
  font-size: calc(12px * var(--text-scale));
  opacity: 0.85;
}

/* Transcript — the whole call, line by line */
.transcript {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.line {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: start;
}

.line p {
  margin: 0;
}

.line__who {
  padding-top: 2px;
  font-size: calc(11px * var(--text-scale));
  font-weight: 800;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line--mine .line__who {
  color: var(--c);
}

.line__ko {
  font-size: calc(15px * var(--text-scale));
  font-weight: 600;
  line-height: 1.45;
}

.line__en {
  margin-top: 1px !important;
  font-size: calc(13px * var(--text-scale));
  color: var(--ink-3);
}

/* A past call in the notebook that can be reopened in full. */
.line--tap {
  cursor: pointer;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

/* Text-size stepper in Settings */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 4px;
}

.stepper__label {
  font-size: calc(15px * var(--text-scale));
  font-weight: 700;
}

.stepper__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  background: #fff;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.stepper__value {
  min-width: 64px;
  text-align: center;
  font-size: calc(14px * var(--text-scale));
  font-weight: 700;
  color: var(--ink-2);
}

/* Anything tagged data-speak reads itself out loud on tap */
[data-speak] {
  cursor: pointer;
}

/* "How do I say…?" ask box in the mid-call sheet */
.askbox {
  display: flex;
  gap: 8px;
}

.askbox .field {
  flex: 1;
  min-width: 0;
}

/* Loading + empty states */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 0;
}

.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--c) 20%, transparent);
  border-top-color: var(--c);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 24px;
  text-align: center;
}

.empty__emoji {
  font-size: 40px;
}

.empty__title {
  margin: 0;
  font-size: calc(17px * var(--text-scale));
  font-weight: 800;
}

.empty__body {
  margin: 0;
  font-size: calc(14px * var(--text-scale));
  color: var(--ink-3);
}

/* ── Post-Call Analytics Scorecard ────────────────────────────────────────── */

.analytics-scorecard {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.08);
}

.score-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--c) 40%, transparent);
  color: #fff;
  flex-shrink: 0;
}

.score-main__num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.score-main__label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 2px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  flex: 1;
}

.score-item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: #f8fafc;
  border: 1px solid var(--line);
}

.score-item__val {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.score-item__lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ── Active Partner Spotlight & Hobbies Widget ────────────────────────── */

.spotlight-card {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.05);
}

.spotlight__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.spotlight__badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: calc(11px * var(--text-scale));
  font-weight: 800;
  color: #fff;
  background: var(--c);
}

.spotlight__name {
  font-size: calc(14px * var(--text-scale));
  font-weight: 800;
  color: var(--ink);
}

.spotlight__blurb {
  margin: 0 0 10px;
  font-size: calc(13px * var(--text-scale));
  line-height: 1.45;
  color: var(--ink-2);
}

.spotlight__hobbies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hobby-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: calc(11px * var(--text-scale));
  font-weight: 700;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

/* ── Photocard Collection Preview Banner ────────────────────────────────── */

.photocard-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  text-align: left;
  background: color-mix(in srgb, var(--c) 10%, #ffffff);
  backdrop-filter: var(--glass-blur);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.06);
  transition: transform 0.2s var(--ease);
}

.photocard-banner:active {
  transform: scale(0.99);
}

.photocard-banner__icon {
  font-size: 24px;
}

.photocard-banner__info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.photocard-banner__label {
  font-size: calc(10px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c);
}

.photocard-banner__title {
  font-size: calc(13px * var(--text-scale));
  font-weight: 800;
  color: var(--ink);
  margin-top: 2px;
}

.photocard-banner__arrow {
  font-size: 18px;
  font-weight: 800;
  color: var(--c);
}

/* ── Real-Time Speech Analytics & Memory Dashboard Card ─────────────────── */

.analytics-card {
  margin-top: 10px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.06);
}

.analytics-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.analytics-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: calc(12px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c);
}

.analytics-card__status {
  font-size: calc(10px * var(--text-scale));
  font-weight: 800;
  color: #10b981;
}

.analytics-card__bars {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.chart-row__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.chart-row__name {
  font-size: calc(12px * var(--text-scale));
  font-weight: 700;
  color: var(--ink-2);
}

.chart-row__val {
  font-size: calc(12px * var(--text-scale));
  font-weight: 800;
  color: var(--ink);
}

.chart-row__track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.12);
  overflow: hidden;
}

.chart-row__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--c);
  transition: width 0.5s var(--ease);
}

.chart-row__fill--purple {
  background: var(--c);
}

.heatmap-section {
  margin-bottom: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.heatmap-title {
  display: block;
  margin-bottom: 8px;
  font-size: calc(10px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.heatmap-dots {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.streak-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.day-label {
  font-size: calc(10px * var(--text-scale));
  font-weight: 700;
  color: var(--ink-3);
}

.streak-day .dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: rgba(203, 213, 225, 0.5);
  transition: all 0.2s var(--ease);
}

.streak-day.is-active .dot {
  background: var(--c);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--c) 40%, transparent);
}

.memory-bar-card {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--c) 8%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
}

.memory-bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.memory-bar__lbl {
  font-size: calc(12px * var(--text-scale));
  font-weight: 800;
  color: var(--ink);
}

.memory-bar__next {
  font-size: calc(10px * var(--text-scale));
  font-weight: 700;
  color: var(--c);
}

.memory-bar__track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.15);
  overflow: hidden;
}

.memory-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--c);
  transition: width 0.5s var(--ease);
}

/* ── Unified Compact Visual Dashboard ────────────────────────────────────── */

/* A <button>, so the whole grid taps through to the notebook. */
.visual-dashboard {
  display: block;
  width: 100%;
  padding: 0;
  margin-top: 10px;
  text-align: left;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.v-card {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.05);
}

.v-card__lbl {
  font-size: calc(10px * var(--text-scale));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c);
}

.v-card__val {
  margin-top: 2px;
  font-size: calc(16px * var(--text-scale));
  font-weight: 800;
  color: var(--ink);
}

.v-card__sub {
  font-size: calc(11px * var(--text-scale));
  font-weight: 600;
  color: var(--ink-3);
}

.v-card__track {
  width: 100%;
  height: 5px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.12);
  overflow: hidden;
}

.v-card__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--c);
  transition: width 0.4s var(--ease);
}

.v-card__fill--purple {
  background: var(--c);
}

/* ── Onboarding / Login Hero & Visual Guide ────────────────────────── */

.login {
  max-width: 440px;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 20px) var(--pad) calc(var(--safe-b) + 40px);
}

.login__head {
  text-align: center;
  margin-bottom: 20px;
}

.login__title {
  margin: 8px 0 4px;
  font-size: calc(32px * var(--text-scale));
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.login__subtitle {
  margin: 0;
  font-size: calc(14px * var(--text-scale));
  font-weight: 600;
  color: var(--c-violet);
}

/* Large Hero Idol Partner Card */
.hero-idol-card {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.18);
  border: 2px solid color-mix(in srgb, var(--c) 40%, transparent);
}

.hero-idol__photo {
  position: relative;
  aspect-ratio: 4 / 4.8;
  background: #f1f5f9;
}

.hero-idol__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-idol__live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: calc(11px * var(--text-scale));
  font-weight: 800;
  color: #fff;
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.hero-idol__scrim {
  position: absolute;
  inset: auto 0 0;
  height: 65%;
  background: linear-gradient(to top, rgba(30, 27, 75, 0.92), rgba(30, 27, 75, 0.4) 60%, transparent);
  pointer-events: none;
}

.hero-idol__info {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding: 20px;
  color: #fff;
}

.hero-idol__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: calc(11px * var(--text-scale));
  font-weight: 700;
  background: color-mix(in srgb, var(--c) 80%, transparent);
  margin-bottom: 6px;
}

.hero-idol__name {
  margin: 0;
  font-size: calc(26px * var(--text-scale));
  font-weight: 800;
  line-height: 1.2;
}

.hero-idol__quote {
  margin: 6px 0 0;
  font-size: calc(14px * var(--text-scale));
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

/* Korean never appears without its meaning beside it — even on the door. */
.hero-idol__quote--en {
  margin-top: 2px;
  font-size: calc(12px * var(--text-scale));
  font-style: normal;
  color: rgba(255, 255, 255, 0.72);
}

/* "이렇게 사용해요" 3-Step Visual Guide */
.how-it-works {
  margin-bottom: 24px;
}

.how-title {
  margin: 0 0 12px;
  font-size: calc(16px * var(--text-scale));
  font-weight: 800;
  color: var(--ink);
}

.step-cards {
  display: grid;
  gap: 10px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.05);
}

.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--c), var(--c-violet));
  flex-shrink: 0;
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-head {
  font-size: calc(14px * var(--text-scale));
  font-weight: 800;
  color: var(--ink);
}

.step-desc {
  font-size: calc(12px * var(--text-scale));
  line-height: 1.4;
  color: var(--ink-3);
  margin-top: 2px;
}
