/* VidSeen — inner pages. Loaded after styles.css and built from the same tokens. */

.nav-links a[aria-current="page"] { background: var(--blue-50); color: var(--blue-700); }

/* page hero: the home hero, shorter */
.hero-page { padding-bottom: clamp(56px, 7vw, 96px); }
.hero-page::after { bottom: -46%; height: 70%; opacity: .7; }
.hero-page .hero-title { font-size: clamp(2.5rem, 1.2rem + 4.4vw, 4.5rem); }
.hero-visual { position: relative; z-index: 1; max-width: 1080px; margin: clamp(48px, 6vw, 72px) auto 0; }
.js .hero-visual { opacity: 0; transform: translateY(16px); }
.js.loaded .hero-visual { opacity: 1; transform: none; transition: opacity .7s ease .3s, transform .8s var(--ease) .3s; }
@media (prefers-reduced-motion: reduce) { .js .hero-visual { opacity: 1 !important; transform: none !important; transition: none !important; } }
.hero-actions .text-link { align-self: center; padding: 0 12px; }

/* a frosted shelf of cards, like the home tray but with any number of columns */
.shelf {
  display: grid; gap: 16px; padding: 16px; border-radius: 28px;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); align-items: stretch;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 80px -30px rgba(0, 100, 201, .45), inset 0 0 0 1px rgba(54, 154, 255, .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.shelf > .ui-card, .shelf > .board { max-width: none; }
.shelf-photo { position: relative; border-radius: 20px; overflow: hidden; min-height: 240px; }
.shelf-photo img { width: 100%; height: 100%; object-fit: cover; }

/* a section that pairs words with a product visual */
.wrap { max-width: calc(var(--wrap) + 2 * var(--m)); margin: 0 auto; padding: var(--gap) var(--m) 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(72px, 9vw, 128px); }
.split-flip .visual { order: -1; }
.split-copy .label { margin-bottom: 14px; }
.split-copy > p:not(.label) { margin-top: 16px; color: var(--ink-2); max-width: 48ch; }
.visual {
  display: grid; gap: 16px; justify-items: center; align-content: center; min-height: 380px;
  padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--blue-100), var(--blue-50) 60%);
}
.visual-photo { padding: 0; overflow: hidden; position: relative; background: none; }
.visual-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }

/* a definition list of capabilities */
.items { display: grid; gap: 20px; margin-top: 28px; }
.items div { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.items dt { grid-column: 2; font-weight: 600; font-size: 1.0625rem; }
.items dd { grid-column: 2; margin: 0; color: var(--ink-2); }
.items .icon-sm { grid-row: 1 / span 2; grid-column: 1; }
.icon-sm { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.icon-sm svg, .card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* three cards in a row */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s var(--ease), border-color .2s; }
.card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.card .h4 { margin-top: 18px; }
.card > p { margin-top: 8px; color: var(--ink-2); }
.card .meta { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.card .btn, .card .text-link { margin-top: auto; }
.card .btn { margin-top: 24px; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 100, 201, .6); }
.card-icon svg { width: 24px; height: 24px; }
.card-mini { margin-top: 20px; }
.card-mini .ui-card { max-width: none; box-shadow: none; background: var(--bg-soft); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-family: var(--font-head); }
.card-pick { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.card { position: relative; }
.card-tag { position: absolute; top: 28px; right: 24px; }

/* a soft panel for an honest note or a verdict */
.note {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--bg-soft);
}
.note .h3 { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); }
.note p { margin-top: 10px; color: var(--ink-2); max-width: 64ch; }
.note .text-link { margin-top: 18px; margin-right: 24px; }

/* the two "choose" cards */
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choose-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--bg-soft); }
.choose-card .checks { margin-top: 24px; }
.choose-a { background: linear-gradient(160deg, #369aff 0%, #0064c9 100%); color: #fff; box-shadow: 0 30px 70px -30px rgba(0, 100, 201, .6); }
.choose-a .checks li::before { background-color: rgba(255, 255, 255, .22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.choose-a .label { background: rgba(255, 255, 255, .2); color: #fff; }

/* real tables */
.table-wrap { margin-top: 48px; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg-soft); font-family: var(--font-head); font-size: 1.0625rem; font-weight: 700; }
.compare tbody th { font-weight: 600; width: 28%; }
.compare td { color: var(--ink-2); }
.compare .yes, .compare .no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; vertical-align: -6px; margin-right: 6px; }
.compare .yes { background: var(--blue-100); color: var(--blue-700); }
.compare .no { background: #eef1f5; color: #8a94a8; }
.compare .yes svg, .compare .no svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.compare .col-on { background: var(--blue-50); }
.compare thead .col-on { background: var(--blue-100); color: var(--blue-700); }
.compare td strong { color: var(--ink); font-weight: 600; }

/* bill estimate */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 48px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.calc-controls { padding: clamp(24px, 4vw, 40px); background: #fff; display: grid; gap: 24px; align-content: start; }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.calc-label output { font-family: var(--font-head); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; margin-top: 12px; accent-color: var(--blue-600); height: 28px; cursor: pointer; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 0; border: 0; border-radius: 999px; background: var(--bg-soft); }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 42px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 100, 201, .6); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.calc-hint { color: var(--ink-2); font-size: 15px; }
.calc-result { padding: clamp(24px, 4vw, 40px); background: linear-gradient(160deg, #369aff 0%, #0064c9 100%); color: #fff; display: grid; align-content: center; gap: 10px; }
.calc-result .calc-big { font-family: var(--font-head); font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-result .calc-big small { font-size: 1rem; font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.calc-result p { color: #fff; }
.calc-result .btn { justify-self: start; margin-top: 12px; }

/* training dashboard fragment */
.board { width: 100%; padding: 18px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); font-size: 14px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.board-head strong { font-family: var(--font-head); font-size: 17px; }
.board-head span { color: var(--ink-2); font-size: 13px; }
.board table { width: 100%; border-collapse: collapse; }
.board th, .board td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.board tr:last-child td { border-bottom: 0; }
.board th { font-weight: 500; color: var(--ink-2); font-size: 13px; }
.board td:first-child { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.board .avatar { width: 28px; height: 28px; font-size: 10px; }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status-ok { background: #dff5ea; color: var(--green); }
.status-wait { background: #fff1d6; color: #8a5300; }
.status-new { background: #eef1f5; color: var(--ink-2); }
.board-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--ink-2); font-size: 13px; }

/* quiz and request fragments */
.quiz-q { font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opts li { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.quiz-opts li.is-on { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.field-ui { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--bg-soft); }
.opt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt-row span { display: grid; place-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; background: var(--bg-soft); font-weight: 600; font-size: 13px; }
.opt-row span.is-on { background: var(--blue-50); color: var(--blue-700); box-shadow: inset 0 0 0 1.5px var(--blue); }
.opt-row svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* small helpers */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap-tight { padding-top: 0; }
.actions-left { justify-content: flex-start; }
.quiz-submit { margin-top: 14px; }
.cards-flush { margin-top: 0; }
.cards-downloads { grid-template-columns: 1fr 1fr; }

/* closing band on inner pages: the home CTA, reused */
.cta-inner .hero-actions { margin-top: 32px; }

@media (max-width: 1024px) {
  .shelf { grid-template-columns: 1fr 1fr; }
  .shelf > :first-child { grid-column: 1 / -1; }
  .split, .split-flip { grid-template-columns: minmax(0, 1fr); }
  .split-flip .visual { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .choose { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shelf { grid-template-columns: 1fr; padding: 10px; border-radius: 22px; }
  .visual { min-height: 0; padding: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .note { grid-template-columns: 1fr; }
  .board { padding: 12px; }
  .board th:nth-child(3), .board td:nth-child(3) { display: none; }
}
