/* How it works, privacy, live feedback and the trainer. */

/* Lists with a tick or a stop sign */
.ticks, .nevers { display: grid; gap: 14px; margin-top: 30px; }
.ticks li, .nevers li { display: flex; gap: 14px; align-items: flex-start; color: var(--dim); font-size: 16px; line-height: 1.5; }
.ticks b, .nevers b { color: var(--text); font-weight: 600; }
.ticks .icon, .nevers .icon { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); stroke-width: 2.2; }
.fine { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--edge-soft); font-size: 14.5px; color: var(--faint); max-width: 54ch; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 0 28px 32px; display: grid; gap: 12px; align-content: start; }
.step p { color: var(--dim); font-size: 15.5px; }
.step-n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step-art { margin: 0 -28px 14px; height: 240px; display: grid; place-items: center; border-bottom: 1px solid var(--edge-soft); background: radial-gradient(70% 90% at 50% 100%, var(--iris-soft), transparent 75%); }
.art-box { position: relative; width: min(100%, 330px); aspect-ratio: 320 / 200; }
.art-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-box canvas { position: absolute; }
.step-art text { font-family: var(--font-text); font-size: 11.5px; font-weight: 500; fill: var(--dim); }
.step-art .floor { stroke: var(--edge-strong); stroke-width: 1; }
.art-place .cone { fill: var(--accent-soft); stroke: var(--accent-line); stroke-width: 1; stroke-dasharray: 3 5; }
.art-place .device { fill: var(--glass-strong); stroke: var(--text); stroke-width: 1.5; }
.art-place .stand { stroke: var(--edge-strong); stroke-width: 2; stroke-linecap: round; }
.art-place .measure line { stroke: var(--faint); stroke-width: 1; }
.art-place text { fill: var(--accent); }
.art-talk { display: grid; gap: 10px; justify-items: start; width: min(100% - 48px, 300px); }
.talk { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: var(--r-pill); background: var(--glass-strong); border: 1px solid var(--edge); font-size: 15.5px; font-weight: 500; letter-spacing: -0.015em; }
.talk.is-warn { color: var(--warn); border-color: var(--warn-line); margin-left: 22px; }
.talk:last-child { margin-left: 8px; }

/* Privacy */
.privacy-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.privacy-copy { display: grid; justify-items: start; }
.privacy-copy .h2 { margin: 22px 0; }
.privacy-copy .ticks, .privacy-copy .nevers { margin-top: 26px; }

.flow { display: grid; grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 0.85fr); padding: 0; box-shadow: var(--shadow-deep); }
.flow-title { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--dim); }
.flow-title .icon { width: 18px; height: 18px; color: var(--accent); }
.flow-device { padding: 24px; display: grid; gap: 16px; align-content: start; background: linear-gradient(180deg, var(--accent-soft), transparent 60%); }
.flow-view { position: relative; aspect-ratio: 1 / 1.08; border-radius: var(--r-md); border: 1px solid var(--accent-line); background: var(--glass-deep); overflow: hidden; }
.flow-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-view .chip { position: absolute; left: 10px; top: 10px; height: 28px; font-size: 12px; }
.flow-gone { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; font-size: 12px; font-weight: 500; text-align: center; color: var(--accent); background: var(--scrim); -webkit-backdrop-filter: var(--blur-light); backdrop-filter: var(--blur-light); }
.flow-steps { display: grid; gap: 8px; }
.flow-steps li { display: grid; padding: 11px 14px; border-radius: var(--r-sm); background: var(--glass); border: 1px solid var(--edge-soft); line-height: 1.35; }
.flow-steps b { font-size: 14px; font-weight: 600; }
.flow-steps span { font-size: 12.5px; color: var(--dim); }

.flow-wall { position: relative; width: 150px; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px 0; }
.wall-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--accent-line); }
.wall-label { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-pill); background: var(--ink); border: 1px solid var(--accent-line); color: var(--accent); font-size: 12px; font-weight: 500; white-space: nowrap; }
.wall-label .icon { width: 14px; height: 14px; }
.wall-pass { position: relative; display: grid; gap: 6px; justify-items: center; padding: 13px 10px; border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--edge); width: 126px; text-align: center; }
.pass-label { font-size: 12px; color: var(--dim); }
.wall-pass code { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--text); }
.packet { position: absolute; left: -6px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: packet 2.6s var(--curve) infinite; }
@keyframes packet { 0% { transform: translateX(-22px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(152px); opacity: 0; } }

.flow-trainer { padding: 24px; display: grid; gap: 16px; align-content: center; background: linear-gradient(180deg, var(--trainer-soft), transparent 65%); }
.flow-quote { font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; }
.flow-note { font-size: 13px; color: var(--dim); }

/* Live feedback */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.cell { grid-column: span 3; padding: 26px; display: grid; gap: 10px; align-content: start; transition: transform var(--slow) var(--curve); }
.cell:hover { transform: translateY(-4px); }
.cell p { color: var(--dim); font-size: 15px; line-height: 1.55; }
.cell-icon { width: 40px; height: 40px; padding: 9px; margin-bottom: 10px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.cell-icon.is-warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.cell-icon.is-gold { color: var(--gold); background: var(--gold-soft); border-color: var(--gold-line); }
.cell-count { grid-column: span 6; grid-row: span 2; padding: 0; grid-template-rows: 1fr auto; }
.cell-hold { grid-column: span 6; padding: 0; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
.cell-view { position: relative; min-height: 250px; background: radial-gradient(70% 80% at 50% 100%, var(--iris-soft), transparent 75%); }
.cell-count .cell-view { min-height: 340px; border-bottom: 1px solid var(--edge-soft); }
.cell-hold .cell-view { border-right: 1px solid var(--edge-soft); }
.cell-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cell-number { position: absolute; left: 26px; top: 22px; display: flex; align-items: baseline; gap: 8px; }
.cell-number b { font-family: var(--font-num); font-weight: 500; font-size: 64px; line-height: 0.9; letter-spacing: -0.07em; font-variant-numeric: tabular-nums; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: 0.06em; }
.cell-number.is-gold b { font-size: 44px; background-image: var(--grad-gold); }
.cell-number small { font-size: 14px; color: var(--dim); }
.cell-text { padding: 24px 26px 28px; display: grid; gap: 10px; align-content: center; }

.verdicts { display: grid; gap: 8px; margin-top: 10px; }
.verdicts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--glass); border: 1px solid var(--edge-soft); font-size: 14px; font-weight: 500; }
.verdicts .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.verdicts em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 500; white-space: nowrap; }
.verdicts .is-good .icon, .verdicts .is-good em { color: var(--success); }
.verdicts .is-miss .icon, .verdicts .is-miss em { color: var(--warn); }
.cues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cues span { padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--trainer-line); background: var(--trainer-soft); font-size: 13.5px; font-weight: 500; }

.tut { position: relative; display: grid; gap: 6px; margin-top: 12px; padding-right: 72px; }
.tut i { height: 6px; width: var(--w); border-radius: var(--r-pill); background: linear-gradient(90deg, var(--iris), var(--accent)); }
.tut b { position: absolute; right: 0; bottom: -4px; font-family: var(--font-num); font-weight: 500; font-size: 26px; letter-spacing: -0.05em; line-height: 1; }
.sides { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 12px; font-family: var(--font-num); font-size: 13.5px; }
.sides div { height: 6px; border-radius: var(--r-pill); background: var(--edge); overflow: hidden; }
.sides i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); }
.sides i.is-low { background: var(--warn); }
.sides em { font-style: normal; color: var(--dim); }
.fade-chart { width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.fade-chart .line { fill: none; stroke: var(--warn); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fade-chart .area { fill: var(--warn-soft); }
.fade-chart circle { fill: var(--ink); stroke: var(--warn); stroke-width: 2; }
.goal { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.goal b { font-family: var(--font-num); font-weight: 500; font-size: 44px; letter-spacing: -0.07em; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.goal small { font-size: 14px; color: var(--dim); }

/* The trainer */
.trainer-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.trainer-copy { display: grid; justify-items: start; }
.trainer-copy .h2 { margin: 22px 0; }
.trainer-copy .ticks .icon { color: var(--trainer); background: var(--trainer-soft); }
.voice { padding: clamp(24px, 3vw, 40px); display: grid; gap: 22px; box-shadow: var(--shadow-deep), 0 0 120px var(--trainer-soft); }
.voice::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 20% 0%, var(--trainer-soft), transparent 70%); }
.voice-head { display: flex; align-items: center; gap: 16px; }
.voice-head div { display: grid; line-height: 1.35; }
.voice-head b { font-size: 16px; font-weight: 600; }
.voice-head small { font-size: 13.5px; color: var(--dim); }
.voice-line { min-height: 4.1em; font-size: clamp(22px, 2.3vw, 30px); font-weight: 500; line-height: 1.3; letter-spacing: -0.03em; text-wrap: pretty; }
.voice-line.in { animation: cue-in 400ms var(--curve); }
.voice-label { font-size: 13.5px; color: var(--dim); padding-top: 20px; border-top: 1px solid var(--edge-soft); }
.styles { display: flex; flex-wrap: wrap; gap: 8px; }
.styles button { min-height: 40px; padding: 0 15px; border-radius: var(--r-pill); border: 1px solid var(--edge); background: var(--glass); font-size: 14px; font-weight: 500; color: var(--dim); transition: color var(--fast), border-color var(--fast), background var(--fast); }
.styles button:hover { color: var(--text); border-color: var(--edge-strong); }
.styles button[aria-pressed='true'] { color: var(--ink); background: var(--white); border-color: var(--white); }

@media (max-width: 1080px) {
  .cell { grid-column: span 6; }
  .cell-count, .cell-hold { grid-column: span 12; }
  .cell-count { grid-row: auto; }
}
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
  .privacy-grid, .trainer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cell, .cell-count, .cell-hold { grid-column: span 12; }
  .cell-hold { grid-template-columns: 1fr; }
  .cell-hold .cell-view { border-right: 0; border-bottom: 1px solid var(--edge-soft); }
  .cell-count .cell-view { min-height: 260px; }
  .flow { grid-template-columns: 1fr; }
  .flow-wall { width: auto; padding: 22px 24px; }
  .wall-label { position: relative; top: auto; left: auto; transform: none; }
  .wall-line { left: 0; right: 0; top: 50%; bottom: auto; width: auto; border-left: 0; border-top: 1px dashed var(--accent-line); }
  .wall-pass { width: auto; padding: 12px 18px; }
  .packet { display: none; }
  .voice-line { min-height: 5.4em; }
}
@media (prefers-reduced-motion: reduce) {
  .packet { display: none; }
  .cell:hover { transform: none; }
}
