:root {
  --navy: #151515;
  --navy-dark: #101010;
  --navy-mid: #313131;
  --brand-blue: #1a1f5e;
  --yellow: #ffe000;
  --yellow-dk: #f5d000;
  --yellow-lt: #fffae0;
  --white: #fff;
  --off-white: #f8f9ff;
  --light-blue: #f4f6ff;
  --pale-bg: #f6f6f4;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #374151;
  --text-dark: #0f172a;
  --green: #16a34a;
  --danger: #b44931;
  --line: rgba(21, 21, 21, .18);
  --display: 'Prompt', sans-serif;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-sm: 4px 4px 0 rgba(21, 21, 21, .13);
  --shadow-md: 7px 7px 0 rgba(21, 21, 21, .16);
  --shadow-lg: 10px 10px 0 rgba(21, 21, 21, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text-dark); background: var(--white); font-family: 'Prompt', sans-serif; line-height: 1.65; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 13ch; color: var(--navy); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.22; letter-spacing: -.035em; margin-bottom: 1.25rem; }
h2 { color: var(--navy); font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.3; letter-spacing: -.025em; }
h3 { color: var(--navy); }

.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(6vw, 24px); border-bottom: 2px solid var(--text-dark); background: var(--white); position: sticky; top: 0; z-index: 10; }
.brand { color: var(--navy); font-size: 1.25rem; font-weight: 800; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand-image { display: block; width: auto; height: 72px; max-width: 152px; object-fit: contain; }
nav { display: flex; gap: 1.75rem; }
nav a { color: var(--navy); font-size: .9rem; font-weight: 500; text-decoration: none; }
nav a:hover { color: var(--yellow-dk); }
.login-link, .button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50px; cursor: pointer; font-family: var(--display); font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.login-link { background: var(--white); color: var(--text-dark); border: 2px solid var(--text-dark); font-size: .88rem; padding: .55rem 1.15rem; box-shadow: 3px 3px 0 var(--brand-blue); }
.login-link:hover, .login-link:focus-visible { background: var(--navy-mid); transform: translateY(-2px); }

.hero { position: relative; overflow: hidden; }
.hero-app-stage { min-height: min(700px, calc(100vh - 76px)); padding: clamp(64px, 8vw, 124px) max(5vw, 24px); display: grid; grid-template-columns: minmax(0, .93fr) minmax(430px, .97fr); align-items: center; gap: clamp(38px, 7vw, 120px); background: var(--light-blue); }
.hero-app-stage::before { content: ''; position: absolute; right: -6vw; bottom: -9vw; width: 31vw; min-width: 360px; aspect-ratio: 1; border-radius: 50%; background: rgba(26, 31, 94, .07); z-index: 0; }.hero-app-stage::after { content: '✦'; position: absolute; left: 48%; top: 13%; color: var(--brand-blue); font-size: 2.2rem; transform: rotate(12deg); }
.hero-copy { position: relative; z-index: 1; }
.kicker { display: inline-flex; margin: 0 0 1rem; padding: .3rem .9rem; border-radius: 50px; background: var(--yellow); color: var(--navy); font-size: .76rem; font-weight: 800; letter-spacing: .03em; }
.hero-quote { max-width: 620px; text-align: left; }.hero-eyebrow { margin: 0 0 1.1rem; color: var(--text-dark); font-size: .74rem; font-weight: 800; letter-spacing: .12em; }.hero-quote h1 { max-width: none; margin: 0; color: var(--text-dark); font-size: clamp(2.65rem, 5.15vw, 5.15rem); font-weight: 800; line-height: 1.04; letter-spacing: -.07em; }.hero-quote h1 em { color: var(--text-dark); font-style: normal; text-decoration: underline solid var(--yellow) .18em; text-underline-offset: .06em; }.quote-author { margin: 1.2rem 0 1.55rem; color: var(--gray-700); font: italic 1rem/1.3 Georgia, serif; }.hero-lede { max-width: 48ch; margin: 0 0 1.6rem; color: var(--gray-700); font-size: 1rem; line-height: 1.8; }.hero-quote .quiet { color: var(--gray-500); }
.button { min-height: 46px; padding: .72rem 1.45rem; background: var(--navy); color: var(--white); font-size: .95rem; box-shadow: var(--shadow-sm); }
.button.primary { background: var(--brand-blue); color: var(--white); border: 2px solid var(--brand-blue); box-shadow: 4px 4px 0 #c9cde9; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.button.primary:hover, .button.primary:focus-visible { background: #252a7a; box-shadow: 6px 6px 0 #c9cde9; }
.quiet { color: var(--gray-500); font-size: .84rem; margin-top: 1.1rem; }

.hero-interface-preview { position: relative; z-index: 1; width: min(100%, 570px); border: 2px solid var(--text-dark); border-radius: 28px; background: var(--white); overflow: hidden; box-shadow: 11px 11px 0 var(--brand-blue); transform: rotate(2deg); }.preview-topbar, .preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 2px solid var(--text-dark); }.preview-logo { font-size: .95rem; font-weight: 800; letter-spacing: -.04em; }.preview-logo b { color: var(--brand-blue); }.preview-status { padding: .3rem .65rem; border: 1.5px solid var(--text-dark); border-radius: 999px; background: #dff8da; font-size: .7rem; font-weight: 700; }.preview-body { padding: clamp(1.35rem, 3vw, 2.3rem); }.preview-kicker { margin: 0 0 .55rem; color: var(--gray-500); font-size: .65rem; font-weight: 800; letter-spacing: .14em; }.preview-body h2 { margin: 0; color: var(--text-dark); font-size: clamp(1.8rem, 3vw, 2.55rem); letter-spacing: -.055em; line-height: 1.08; }.preview-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; margin: 1.9rem 0 1.15rem; font-size: .73rem; font-weight: 700; }.preview-progress i { height: 9px; overflow: hidden; border: 1.5px solid var(--text-dark); border-radius: 99px; background: var(--white); }.preview-progress i b { display: block; width: 13%; height: 100%; background: var(--yellow); }.preview-progress strong { font-size: .76rem; }.preview-lessons { display: grid; gap: .6rem; padding: 0; margin: 0; list-style: none; }.preview-lessons li { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .72rem; border: 1.5px solid var(--text-dark); border-radius: 11px; background: #fff; font-size: .75rem; }.preview-lessons li:first-child { background: #eef0fa; }.preview-lessons li span { display: grid; place-items: center; width: 25px; height: 25px; border: 1.5px solid var(--text-dark); border-radius: 50%; font-size: .63rem; font-weight: 800; }.preview-lessons li b { overflow: hidden; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }.preview-lessons li em { color: var(--gray-500); font-size: .65rem; font-style: normal; white-space: nowrap; }.preview-footer { border-top: 2px solid var(--text-dark); border-bottom: 0; background: var(--pale-bg); font-size: .72rem; font-weight: 700; }.preview-footer button { border: 0; background: transparent; color: var(--text-dark); font: 800 .74rem var(--display); }

.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--brand-blue); }
.proof-strip p { color: var(--white); margin: 0; padding: 1.25rem max(4vw, 24px); border-right: 1px solid rgba(255,255,255,.25); font-size: .92rem; text-align: center; }.proof-strip p:last-child { border: 0; }

.course-section, .how-section { max-width: 1200px; margin: auto; padding: 5.5rem max(6vw, 24px); }
.section-heading { margin-bottom: 2.2rem; }.section-heading h2 { max-width: 22ch; margin: 0; }
.course-card { display: grid; grid-template-columns: 1.12fr .88fr; gap: 2rem; padding: clamp(1.8rem, 4vw, 3.5rem); background: var(--white); border: 1px solid rgba(26,31,94,.08); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.course-card .kicker { background: var(--light-blue); color: var(--navy); }.course-card h3 { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.25; margin: 0 0 .7rem; }.course-card p { color: var(--gray-700); max-width: 52ch; }
.course-meta { border-left: 1px solid var(--gray-200); padding-left: 2rem; display: flex; flex-direction: column; justify-content: center; }.course-price { color: var(--navy); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: .75rem; }.course-card .button { align-self: start; margin-top: .5rem; }
.how-section { max-width: none; background: var(--pale-bg); }.how-section > .section-heading, .how-section > .learning-steps { max-width: 1200px; margin-left: auto; margin-right: auto; }.learning-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }.learning-steps li { min-height: 175px; padding: 1.6rem; background: var(--white); border: 1px solid rgba(26,31,94,.07); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }.learning-steps span { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--yellow); color: var(--navy); font-size: .75rem; font-weight: 800; }.learning-steps h3 { margin: 1rem 0 .35rem; font-size: 1.08rem; }.learning-steps p { color: var(--gray-500); font-size: .9rem; }

.course-detail, .app-shell { max-width: 1120px; margin: auto; padding: 5.5rem max(6vw, 24px) 7.5rem; }.course-detail h1 { max-width: 16ch; }.checkout-note { max-width: 640px; margin-top: 2rem; padding: 1.6rem; border: 1px solid rgba(26,31,94,.09); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }.checkout-note b { color: var(--navy); font-size: 1.35rem; }.checkout-note .button { margin-top: .4rem; }
.app-title { padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); }.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }.metric, .table-wrap { background: var(--white); border: 1px solid rgba(26,31,94,.08); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.4rem; }.metric strong { display: block; color: var(--navy); font-size: 2rem; font-weight: 800; }.table-wrap { grid-column: 1 / -1; overflow-x: auto; }table { width: 100%; border-collapse: collapse; font-size: .88rem; }th, td { padding: .8rem .55rem; text-align: left; border-bottom: 1px solid var(--gray-200); }th { color: var(--gray-500); font-weight: 600; } .status { color: var(--navy-mid); font-size: .74rem; font-weight: 600; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.1rem; }.admin-form label { display: grid; gap: .4rem; color: var(--navy); font-size: .85rem; font-weight: 700; }.admin-form input, .admin-form textarea, .admin-form select { width: 100%; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white); color: var(--text-dark); font: 400 .95rem var(--display); padding: .68rem .75rem; }.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { outline: 3px solid rgba(255,224,0,.45); border-color: var(--yellow-dk); }.admin-form textarea { resize: vertical; }.wide { grid-column: 1 / -1; }.form-actions, .admin-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }.form-actions .quiet { margin: 0; }.button.compact { min-height: 34px; padding: .38rem .72rem; background: var(--navy); color: var(--white); font-size: .76rem; }.button.compact:disabled { opacity: .55; cursor: wait; }.renewal-button { background: var(--yellow) !important; color: var(--navy) !important; }.overrun-status, .tracker-warning { color: var(--danger); font-weight: 700; }.overrun-status small, td small { display: block; color: var(--gray-500); font-size: .72rem; font-weight: 400; }

.editor-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; border: 0; border-radius: var(--radius-md); padding: 1.6rem; background: var(--white); color: var(--text-dark); box-shadow: var(--shadow-lg); }.editor-dialog::backdrop { background: rgba(15,19,64,.48); }.editor-dialog .editor-form { margin: 0; }.editor-heading h2 { margin-bottom: .25rem; font-size: 1.5rem; }.editor-heading .quiet { margin-bottom: 0; }.course-editor-dialog { width: min(860px, calc(100vw - 32px)); }.course-content-admin { margin-top: 1.8rem; border-top: 1px solid var(--gray-200); padding-top: 1.2rem; }.course-content-admin h3 { font-size: 1.2rem; }.course-admin-module { margin: 1rem 0; padding: 1.1rem; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--off-white); }.course-admin-module h4 { margin: 0 0 .75rem; }.course-lesson-summary { padding: .65rem 0; margin: 0; border-top: 1px solid var(--gray-200); font-size: .9rem; }.course-lesson-summary small { color: var(--gray-500); }.compact-admin-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--gray-200); }.checkbox-label { display: flex !important; align-items: center; gap: .55rem; }.checkbox-label input { width: auto !important; }
.lesson-module { border-top: 1px solid var(--gray-200); margin-top: 1.7rem; padding-top: 1.2rem; }.lesson-row { width: 100%; padding: .95rem 0; border: 0; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; gap: 1rem; text-align: left; background: transparent; color: var(--navy); font: 600 .92rem var(--display); cursor: pointer; }.lesson-row:hover { color: var(--navy-mid); }.lesson-row span:last-child { color: var(--green); white-space: nowrap; }
.drive-video-dialog { width: min(960px, 96vw); }.drive-video-player { width: 100%; min-height: min(540px, 62vh); border: 0; border-radius: var(--radius-sm); background: var(--navy-dark); }
footer { padding: 2rem max(6vw, 24px); background: var(--navy-dark); color: var(--white); display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; font-size: .84rem; }footer .brand { color: var(--white); }footer p { margin: 0; color: #c7cbe8; }footer a:last-child { color: var(--yellow); }

@media (max-width: 760px) {
  .site-header { min-height: 82px; padding: 0 20px; } nav { display: none; }.brand { font-size: 1.1rem; }.brand-image { height: 60px; }.login-link { padding: .52rem 1rem; }
  .hero-app-stage { min-height: auto; grid-template-columns: 1fr; gap: 3.4rem; padding: 4.6rem 24px 5rem; }.hero-app-stage::before { width: 280px; min-width: 0; right: -120px; bottom: -120px; }.hero-app-stage::after { left: auto; right: 28px; top: 26px; }.hero-quote { max-width: 520px; }.hero-quote h1 { font-size: clamp(2.45rem, 11vw, 4.25rem); }.hero-lede { max-width: 40ch; font-size: .92rem; }.hero-interface-preview { max-width: 520px; justify-self: center; transform: rotate(0); box-shadow: 7px 7px 0 var(--brand-blue); }.preview-body { padding: 1.35rem; }.preview-progress { grid-template-columns: 1fr auto; }.preview-progress i { grid-column: 1 / -1; grid-row: 2; }.preview-lessons li { grid-template-columns: 25px minmax(0, 1fr); }.preview-lessons li em { display: none; }.proof-strip, .learning-steps, .course-card, .dashboard-grid, .admin-form { grid-template-columns: 1fr; }.proof-strip p { border-right: 0; border-bottom: 1px solid rgba(21,21,21,.18); padding: 1rem 24px; }.proof-strip p:last-child { border-bottom: 0; }.course-section, .how-section { padding: 4.5rem 24px; }.course-meta { border-left: 0; border-top: 1px solid var(--gray-200); padding-left: 0; padding-top: 1.4rem; }.course-detail, .app-shell { padding: 4.5rem 24px 6rem; } footer { padding: 1.8rem 24px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.button, .login-link { transition: none; } }
/* ---- Classroom (/learn/:courseId) ----
   Appended, never edited into existing rules: test/learnTheme.test.js pins the
   approved theme. Brand blue carries emphasis here; yellow is deliberately not
   used as a surface. Mobile and desktop are equally supported. */
.classroom { max-width: 1280px; margin: auto; padding: 2.2rem max(4vw, 16px) 5rem; }
.classroom-loading, .classroom-notice { padding: 3rem 0; }
.classroom-notice { max-width: 560px; }
.classroom-notice h1 { margin-bottom: .6rem; }
.classroom-head { display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.classroom-back { color: var(--brand-blue); font-weight: 700; font-size: .9rem; text-decoration: none; }
.classroom-back:hover { text-decoration: underline; }
.classroom-head h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.4rem); letter-spacing: -.04em; line-height: 1.1; }
.classroom-progress { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; font-size: .85rem; color: var(--gray-700); }
.classroom-bar { flex: 0 1 280px; min-width: 140px; height: 10px; overflow: hidden; border: 1.5px solid var(--text-dark); border-radius: 99px; background: var(--white); }
.classroom-bar b { display: block; height: 100%; background: var(--brand-blue); transition: width .4s ease; }
.course-progress-line { display: flex; align-items: center; gap: .7rem; margin-top: .5rem; flex-wrap: wrap; }
.course-progress-line .classroom-bar { flex-basis: 180px; }
.course-progress-line small { color: var(--gray-500); }
.classroom-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.classroom-media { border: 2px solid var(--text-dark); border-radius: var(--radius-md); overflow: hidden; background: var(--navy-dark); box-shadow: var(--shadow-md); aspect-ratio: 16 / 9; }
.classroom-player { display: block; width: 100%; height: 100%; border: 0; }
.classroom-empty { display: grid; place-items: center; height: 100%; padding: 1.5rem; text-align: center; color: #fff; }
.classroom-lesson { margin-top: 1.4rem; }
.classroom-lesson h2 { margin: .1rem 0 .8rem; font-size: clamp(1.25rem, 3vw, 1.7rem); letter-spacing: -.03em; }
.classroom-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.6rem; }
.classroom-nav .button { min-height: 44px; }
.classroom-nav .button:disabled { opacity: .4; cursor: not-allowed; }
.classroom-outline { border: 1px solid var(--gray-200); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); padding: 1rem 1rem 1.2rem; max-height: calc(100vh - 3rem); overflow: auto; position: sticky; top: 1rem; }
.outline-module + .outline-module { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.outline-module h3 { margin: 0 0 .5rem; font-size: .95rem; color: var(--navy); }
.outline-lesson { display: flex; align-items: flex-start; gap: .7rem; width: 100%; min-height: 44px; padding: .65rem .6rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-dark); font: 600 .88rem var(--display); text-align: left; cursor: pointer; }
.outline-lesson:hover { background: var(--light-blue); }
.outline-lesson[aria-current="true"] { background: #eef0fa; box-shadow: inset 3px 0 0 var(--brand-blue); }
.outline-state { flex: 0 0 22px; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--text-dark); border-radius: 50%; font-size: .7rem; font-weight: 800; }
.outline-state[data-done="yes"] { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.outline-title { display: grid; gap: .15rem; min-width: 0; }
.outline-title small { color: var(--gray-500); font-weight: 500; font-size: .74rem; }
@media (max-width: 900px) {
  .classroom { padding: 1.2rem 16px 4rem; }
  .classroom-body { grid-template-columns: 1fr; gap: 1.4rem; }
  .classroom-outline { position: static; max-height: none; }
  .classroom-media { box-shadow: var(--shadow-sm); border-radius: var(--radius-sm); }
}
@media (prefers-reduced-motion: reduce) { .classroom-bar b { transition: none; } }

/* ---- Back office: tabs, payments, products ---- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.2rem; }
.admin-tabs button { min-height: 44px; padding: .5rem 1.2rem; border: 2px solid var(--text-dark); border-radius: 50px; background: var(--white); color: var(--navy); font-family: var(--display); font-size: .92rem; font-weight: 700; cursor: pointer; }
.admin-tabs button.active { background: var(--brand-blue); border-color: var(--brand-blue); color: var(--white); box-shadow: 3px 3px 0 #c9cde9; }
.admin-tabs button:focus-visible, .chip:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; }
.shop-summary { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1rem; }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin: 1rem 0; }
.shop-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { min-height: 38px; padding: .3rem .9rem; border: 1.5px solid var(--text-dark); border-radius: 50px; background: var(--white); color: var(--navy); font-family: var(--display); font-size: .84rem; font-weight: 600; cursor: pointer; }
.chip.active { background: var(--brand-blue); border-color: var(--brand-blue); color: var(--white); }
.shop-scroll { overflow-x: auto; }
.shop-scroll table { min-width: 640px; }
.shop-flag-note { color: var(--danger); font-weight: 600; }
.shop-dialog { width: min(760px, calc(100vw - 32px)); }
.shop-facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 1rem 0 1.4rem; }
.shop-facts dt { color: var(--gray-500); font-size: .85rem; }
.shop-facts dd { margin: 0; overflow-wrap: anywhere; }
.shop-slip-card { margin: .8rem 0; padding: .9rem; border: 1.5px solid var(--text-dark); border-radius: var(--radius-sm); }
.shop-slip { display: block; max-width: 100%; max-height: 380px; border-radius: 8px; }
.shop-flag { margin: .5rem 0 0; padding: .5rem .8rem; border-left: 4px solid var(--danger); background: #fdf1ee; color: #7d2a18; font-size: .88rem; font-weight: 600; }
.shop-actions { display: grid; gap: 1rem; margin: 1.4rem 0 .6rem; }
.shop-inline { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; }
.shop-inline label { display: grid; gap: .3rem; flex: 1 1 220px; color: var(--navy); font-size: .85rem; font-weight: 700; }
.shop-inline input { min-height: 44px; padding: .5rem .8rem; border: 1.5px solid var(--text-dark); border-radius: var(--radius-sm); font: inherit; }
.shop-message { min-height: 1.4em; margin: .4rem 0 0; color: var(--navy); font-size: .9rem; font-weight: 600; }
.button.danger { background: var(--danger); color: var(--white); }
@media (max-width: 640px) { .shop-facts { grid-template-columns: 1fr; gap: 0; } .shop-facts dd { margin-bottom: .6rem; } }
.shop-summary .shop-revenue { grid-column: 1 / -1; }

/* ---- Storefront: product list, product page, order page ---- */
.preview-link { color: var(--text-dark); font: 800 .74rem var(--display); text-decoration: none; }
.recent-orders { margin: 0 0 1.4rem; padding: .8rem 1.1rem; border: 1.5px solid var(--text-dark); border-radius: var(--radius-sm); background: var(--light-blue); font-size: .9rem; }
.recent-orders p { margin: 0; }
.recent-orders a { color: var(--brand-blue); font-weight: 700; }
#shopFilters { margin-bottom: 1.4rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.shop-empty { grid-column: 1 / -1; padding: 2.2rem 1rem; border: 1.5px dashed var(--gray-500); border-radius: var(--radius-md); color: var(--gray-700); text-align: center; }
.product-card { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem; border: 2px solid var(--text-dark); border-radius: var(--radius-md); background: var(--white); color: var(--text-dark); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover, .product-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); outline: none; }
.product-card:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
.product-tile { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--light-blue); color: var(--brand-blue); font-size: 1.5rem; font-weight: 800; letter-spacing: .12em; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: .35rem; }
.product-kind { color: var(--gray-500); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.product-body h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.product-summary { display: -webkit-box; overflow: hidden; color: var(--gray-700); font-size: .88rem; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.product-meta { margin-top: auto; padding-top: .4rem; color: var(--gray-500); font-size: .8rem; }
.product-price { color: var(--navy); font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }

.shop-page { max-width: 1120px; margin: auto; padding: 4rem max(6vw, 24px) 6rem; }
.shop-page h1 { max-width: 20ch; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.shop-back { display: inline-block; margin-bottom: 1.2rem; color: var(--brand-blue); font-size: .9rem; font-weight: 700; text-decoration: none; }
.product-lede { color: var(--gray-700); font-size: 1.02rem; white-space: pre-line; }
.checkout-form, .slip-form { display: grid; gap: .9rem; margin-top: 1rem; }
.checkout-form label, .slip-form label { display: grid; gap: .3rem; color: var(--navy); font-size: .87rem; font-weight: 700; }
.checkout-form label small, .slip-form label small { color: var(--gray-500); font-weight: 400; }
.checkout-form input:not([type=checkbox]), .checkout-form textarea, .slip-form input { min-height: 46px; padding: .55rem .8rem; border: 1.5px solid var(--text-dark); border-radius: var(--radius-sm); background: var(--white); font: inherit; font-weight: 400; }
.checkout-form input:focus-visible, .checkout-form textarea:focus-visible, .slip-form input:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 1px; }
.checkout-ship { display: grid; gap: .9rem; margin: 0; padding: 1rem; border: 1.5px solid var(--text-dark); border-radius: var(--radius-sm); }
.checkout-ship legend { padding: 0 .4rem; font-size: .87rem; font-weight: 700; }
.checkout-ship[hidden] { display: none; }
.checkout-form .checkout-consent { display: flex; align-items: start; gap: .6rem; font-weight: 400; }
.checkout-consent input { width: 20px; height: 20px; margin-top: .2rem; flex: none; }
.checkout-error { min-height: 1.3em; margin: 0; color: var(--danger); font-size: .88rem; font-weight: 600; }
.order-page h1 { margin-bottom: .6rem; }
.order-status { display: inline-block; margin: 0 0 1.4rem; padding: .35rem 1rem; border: 2px solid var(--text-dark); border-radius: 50px; background: var(--light-blue); color: var(--navy); font-weight: 700; }
.order-status[data-status=approved] { background: #dff8da; }
.order-status[data-status=rejected] { background: #fdf1ee; }
.order-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: 0; margin: 0 0 1.6rem; list-style: none; counter-reset: step; }
.order-steps li { counter-increment: step; padding: .6rem .5rem; border-top: 4px solid var(--gray-200); color: var(--gray-500); font-size: .8rem; font-weight: 600; }
.order-steps li::before { content: counter(step) '. '; }
.order-steps li.done { border-color: var(--brand-blue); color: var(--navy); }
.order-steps li.current { border-color: var(--brand-blue); color: var(--navy); font-weight: 800; }
.bank-card { max-width: 520px; margin: 0 0 1.6rem; padding: 1.4rem; border: 2px solid var(--text-dark); border-radius: var(--radius-md); background: var(--white); box-shadow: 7px 7px 0 var(--brand-blue); }
.bank-card .quiet { margin: 0; }
.bank-amount { margin: 0 0 .8rem; color: var(--navy); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; }
.bank-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0 0 .8rem; }
.bank-card dt { color: var(--gray-500); font-size: .85rem; }
.bank-card dd { margin: 0; overflow-wrap: anywhere; }
.slip-form { max-width: 520px; margin: 0 0 1.6rem; padding: 1.4rem; border: 1.5px solid var(--text-dark); border-radius: var(--radius-md); }
.slip-form h2 { margin: 0; font-size: 1.3rem; }
.order-note { max-width: 560px; padding: 1rem 1.2rem; border-left: 4px solid var(--brand-blue); background: var(--light-blue); }
.order-note p { margin: .3rem 0; }
.order-link { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2rem; }
.order-link .quiet { flex-basis: 100%; margin: 0; }
@media (max-width: 760px) {
  .shop-page { padding: 3rem 20px 5rem; }
  .order-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Privacy policy and terms ---- */
.legal { max-width: 860px; margin: auto; padding: 4rem max(6vw, 24px) 6rem; }
.legal h1 { max-width: none; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .4rem; }
.legal h2 { margin: 2.4rem 0 .7rem; font-size: 1.35rem; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--gray-700); }
.legal ul { display: grid; gap: .5rem; padding-left: 1.3rem; }
.legal a { color: var(--brand-blue); font-weight: 600; }
.legal-date { color: var(--gray-500); font-size: .88rem; margin-top: 0; }
.legal-table { overflow-x: auto; margin: 1rem 0; border: 1.5px solid var(--text-dark); border-radius: var(--radius-sm); }
.legal-table table { min-width: 680px; border-collapse: collapse; font-size: .88rem; }
.legal-table th, .legal-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
.legal-table th { background: var(--light-blue); color: var(--navy); }
.legal-back { margin-top: 3rem; }

/* ---- Sign in ---- */
.signin-page { max-width: 560px; }
.signin-form { margin-top: 1.4rem; }
.signin-alt { margin-top: 1.4rem; }
.signin-alt a { color: var(--brand-blue); font-weight: 700; }
.signin-page h1 { max-width: none; }

/* ---- Google-first sign in ---- */
.google-button { min-height: 54px; padding-inline: 1.8rem; font-size: 1.02rem; }
.signin-alt summary { cursor: pointer; color: var(--brand-blue); font-weight: 700; }
.signin-alt[open] summary { margin-bottom: .6rem; }
.signin-alt .signin-form { margin-top: .4rem; }
.checkout-hint { margin: -.2rem 0 0; padding: .55rem .8rem; border-left: 4px solid var(--brand-blue); background: var(--light-blue); color: var(--gray-700); font-size: .84rem; }
.checkout-hint[hidden] { display: none; }

/* ---- Lesson video upload (back office) ---- */
.video-upload { display: grid; gap: .6rem; padding: 1rem; border: 1.5px solid var(--text-dark); border-radius: var(--radius-sm); background: var(--light-blue); }
.video-upload .video-status { margin: 0; font-weight: 700; color: var(--navy); }
.video-upload input[type=file] { max-width: 100%; }
.video-progress { width: 100%; height: 14px; accent-color: var(--brand-blue); }
.video-progress[hidden] { display: none; }

/* Shared JS TUTOR identity and cross-site navigation */
.site-header { border-bottom:1px solid #dfe4f3; }
.main-site-link { color:#1a1f5e; text-decoration:none; font-size:.88rem; font-weight:600; white-space:nowrap; }
.main-site-link:hover,.main-site-footer:hover { text-decoration:underline; }
.main-site-link:focus-visible,.main-site-footer:focus-visible { outline:3px solid #5771d1; outline-offset:4px; }
.hero-app-stage { background:#f1f4ff; }
.hero-quote h1 { color:#1a1f5e; }
.hero-quote h1 em { color:#1a1f5e; }
.hero-interface-preview { transform:none; border:1px solid #dce3f5; box-shadow:0 20px 60px rgba(26,31,94,.13); }
.preview-topbar,.preview-footer { border-color:#dce3f5; }
.preview-lessons li { border-color:#dce3f5; }
.preview-lessons li span { border-color:#aab8df; color:#1a1f5e; }
.hero-actions { display:flex; flex-wrap:wrap; gap:.8rem; }
.button.secondary { color:#1a1f5e; background:white; border:1px solid #aab8df; box-shadow:none; }
.main-site-footer { color:#fff; text-decoration:underline; text-underline-offset:3px; }
.login-link:hover,.login-link:focus-visible { color:white; }
@media(max-width:760px) { .site-header { gap:.5rem; padding:0 12px; } .main-site-link { font-size:.73rem; } .site-header .brand-image { max-width:100px; height:54px; } .login-link { padding:.5rem .7rem; font-size:.75rem; } }

/* JS TUTOR identity: the teacher and the way we learn */
.hero-app-stage { gap:clamp(2rem, 5vw, 5rem); }
.hero-eyebrow { color:#1a1f5e; font-size:.88rem; letter-spacing:0; font-weight:600; }
.tutor-portrait { position:relative; isolation:isolate; width:min(100%, 510px); justify-self:end; padding:0 1.1rem 1.1rem 0; }
.tutor-portrait::before { content:""; position:absolute; z-index:-1; inset:2.8rem 0 0 2.7rem; border-radius:32px; background:#d8e4ff; }
.tutor-portrait img { display:block; width:100%; height:clamp(390px, 46vw, 570px); object-fit:cover; object-position:center 24%; border-radius:26px; }
.portrait-caption { position:absolute; bottom:2.6rem; left:-1.7rem; display:grid; gap:.08rem; min-width:195px; padding:1rem 1.3rem; background:white; color:#1a1f5e; border-radius:16px; box-shadow:0 14px 40px rgba(15,30,80,.15); }
.portrait-caption span { font-size:.78rem; color:#59627e; } .portrait-caption strong { font-size:1.28rem; line-height:1.35; } .portrait-caption small { font-size:.72rem; font-weight:700; }
.portrait-math { position:absolute; z-index:2; top:1.2rem; right:-.35rem; display:grid; gap:.3rem; justify-items:end; }
.portrait-math span { background:#fff; color:#1a1f5e; border-radius:999px; padding:.35rem .8rem; font-size:.72rem; font-weight:700; box-shadow:0 4px 15px rgba(15,30,80,.12); }
.proof-strip p { line-height:1.65; }
@media(max-width:760px) { .tutor-portrait { width:min(100%,460px); justify-self:center; margin-top:.5rem; padding-right:.75rem; } .tutor-portrait img { height:clamp(360px,105vw,520px); } .portrait-caption { left:.8rem; bottom:2rem; } .portrait-math { right:0; } }

/* Footer: one clear identity and a compact set of useful links */
.site-footer { display:block; padding:0 max(6vw,24px); background:#1a1f5e; color:#fff; }
.site-footer .footer-inner { max-width:1200px; margin:auto; padding:2.8rem 0 2.3rem; display:flex; align-items:center; justify-content:space-between; gap:2rem; }
.site-footer .footer-identity { display:flex; align-items:center; gap:1rem; }
.site-footer .footer-logo { flex:none; display:grid; place-items:center; width:70px; height:70px; padding:6px; border-radius:16px; background:#fff; }
.site-footer .footer-logo img { display:block; width:100%; height:100%; object-fit:contain; }
.site-footer .footer-identity strong { display:block; color:#fff; font-size:1.05rem; letter-spacing:.01em; }
.site-footer .footer-identity p { margin:.2rem 0 0; color:#cbd5f3; font-size:.85rem; }
.site-footer .footer-links { display:flex; flex-wrap:wrap; gap:.75rem 1.5rem; }
.site-footer .footer-links a, .site-footer .footer-links a:last-child { color:#e7ecff; font-size:.85rem; font-weight:500; text-decoration:none; }
.site-footer .footer-links a:hover { color:#fff; text-decoration:underline; text-underline-offset:4px; }
.site-footer a:focus-visible { outline:3px solid #ffe000; outline-offset:4px; }
.site-footer .footer-bottom { max-width:1200px; margin:auto; padding:1rem 0 1.2rem; border-top:1px solid rgba(255,255,255,.18); color:#b9c6e9; font-size:.75rem; }
@media(max-width:760px) { .site-footer .footer-inner { padding:2.2rem 0 1.7rem; align-items:flex-start; flex-direction:column; gap:1.6rem; } .site-footer .footer-links { display:grid; gap:.8rem; } .site-footer .footer-logo { width:60px; height:60px; border-radius:12px; } }

/* Preview clip on a product page: a 16:9 frame that fills the column. */

/* Product card picture: a cover the owner uploaded, or the preview clip's thumbnail. */
.product-tile.has-image { overflow: hidden; background: var(--light-blue); }
.product-tile.has-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- Product page (owner-approved design, 27 Oct 2026) ----
   Mobile: one column with a price bar fixed at the bottom. Desktop: the order card
   sits in its own column and stays in view. Yellow stays a small highlight. */
.pp { --pp-ease: cubic-bezier(.22,1,.36,1); --pp-snap: cubic-bezier(.34,1.56,.64,1); --pp-line: #c9d2f2; background: #eef2ff; padding-bottom: 5rem; }
.pp h2 { margin: 0; font-size: 1.1rem; letter-spacing: 0; }
.pp-hero { position: relative; height: 180px; overflow: hidden; background: var(--brand-blue); color: var(--white); }
.pp-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pp-grid { stroke: #fff; stroke-opacity: .08; fill: none; }
.pp-glyphs { fill: #fff; fill-opacity: .16; font-family: 'Prompt', sans-serif; font-weight: 700; }
.pp-curve { stroke-dasharray: 420; stroke-dashoffset: 420; animation: pp-draw 1.1s var(--pp-ease) .15s forwards; }
@keyframes pp-draw { to { stroke-dashoffset: 0; } }
.pp-teacher { position: absolute; left: max(20px, calc((100% - 1120px) / 2 + 24px)); bottom: 22px; display: flex; gap: .8rem; align-items: center; animation: pp-rise .6s var(--pp-ease) .1s both; }
.pp-teacher b { display: block; font-size: 1.05rem; line-height: 1.3; }
.pp-teacher small { font-size: .82rem; opacity: .85; }
.pp-mono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--brand-blue); font-size: 1.35rem; font-weight: 800; }
@keyframes pp-rise { from { opacity: 0; transform: translateY(12px); } }
.pp-layout { display: grid; gap: 12px; max-width: 1120px; margin: 0 auto; padding: 1.2rem 20px 0; }
.pp-intro { animation: pp-rise .6s var(--pp-ease) .2s both; }
.pp-intro .shop-back { margin-bottom: .6rem; }
.pp-intro .kicker { margin: 0; }
.pp-intro h1 { max-width: 22ch; margin: .2rem 0 .5rem; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; }
.pp-lede { margin: 0; color: var(--gray-700); font-size: .98rem; white-space: pre-line; }
.pp-card { padding: 1rem; border-radius: var(--radius-md); background: var(--white); }
.pp-sub { margin: .1rem 0 0; color: var(--gray-500); font-size: .85rem; }
.pp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.pp-head span { color: var(--gray-500); font-size: .85rem; text-align: right; }
.pp svg { stroke-linecap: round; stroke-linejoin: round; }
.pp-admitted { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: .8rem 0 0; padding: 0; list-style: none; }
.pp-admitted li { text-align: center; }
.pp-admitted i { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 76px; margin: auto; border-radius: 14px; background: #eef2ff; }
.pp-admitted i::after { content: "✓"; position: absolute; top: -3px; right: -3px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); color: var(--brand-blue); font-size: 10px; font-style: normal; font-weight: 800; }
.pp-admitted svg, .pp-get svg { width: 24px; height: 24px; fill: none; stroke: var(--brand-blue); stroke-width: 1.8; }
.pp-admitted span { display: block; margin-top: .25rem; color: var(--brand-blue); font-size: .8rem; white-space: nowrap; font-weight: 600; }
.pp-road { position: relative; margin: 0; padding: 0; list-style: none; }
.pp-road::before { content: ""; position: absolute; top: 16px; bottom: 30px; left: 15px; border-left: 2px dashed var(--pp-line); }
.pp-road-fill { position: absolute; top: 16px; left: 15px; width: 2px; height: 0; background: var(--brand-blue); transition: height .5s var(--pp-ease); }
.pp-road li { position: relative; display: flex; align-items: flex-start; gap: .75rem; padding-bottom: 1rem; }
.pp-road li:last-child { padding-bottom: 0; }
.pp-road b { display: block; padding-top: .2rem; font-size: .95rem; line-height: 1.4; }
.pp-road small { display: block; color: var(--gray-500); font-size: .82rem; line-height: 1.5; }
.pp-dot { z-index: 1; display: grid; flex: 0 0 32px; place-items: center; height: 32px; border: 2px solid var(--pp-line); border-radius: 50%; background: var(--white); color: var(--brand-blue); font-size: .8rem; font-weight: 700; transition: background .3s, color .3s, border-color .3s, transform .35s var(--pp-snap); }
.pp-road li.on .pp-dot { border-color: var(--brand-blue); background: var(--brand-blue); color: var(--white); transform: scale(1.06); }
.pp-road li.bonus .pp-dot { border-style: dashed; }
.pp-road li.bonus.on .pp-dot { border: 2px solid var(--yellow); background: var(--yellow); color: var(--brand-blue); }
.pp-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: .8rem; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: var(--brand-blue); color: var(--white); font: inherit; cursor: pointer; }
.pp-video > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pp-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--yellow); transition: transform .25s var(--pp-snap); }
.pp-play::before { content: ""; margin-left: 5px; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 20px solid var(--brand-blue); }
.pp-video:hover .pp-play, .pp-video:focus-visible .pp-play { transform: scale(1.08); }
.pp-video:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.pp-video-cap { position: absolute; left: 14px; bottom: 10px; font-size: .82rem; font-weight: 600; }
.pp-sample { margin: .8rem 0 0; }
.pp-get { margin: .4rem 0 0; padding: 0; list-style: none; }
.pp-get li { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; border-top: 1px solid #eef1fa; font-size: .93rem; }
.pp-get li:first-child { border-top: 0; }
.pp-get svg { flex: none; }
.pp-faq details { padding: .7rem 0; border-top: 1px solid #eef1fa; }
.pp-faq details:first-of-type { margin-top: .4rem; border-top: 0; }
.pp-faq summary { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; font-weight: 600; list-style: none; cursor: pointer; }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after { content: "+"; color: var(--brand-blue); font-size: 1.25rem; line-height: 1; transition: transform .25s var(--pp-snap); }
.pp-faq details[open] summary::after { transform: rotate(45deg); }
.pp-faq details p { margin: .4rem 0 0; color: var(--gray-700); font-size: .9rem; }
.pp-order { scroll-margin-top: 104px; }
.pp-faq { order: 1; }
.pp-order-price { margin: .3rem 0 0; color: var(--brand-blue); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.pp-formats { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.pp-formats legend { margin-bottom: .5rem; padding: 0; color: var(--gray-500); font-size: .85rem; }
.checkout-form .pp-format { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: .75rem; padding: .85rem; border: 1.5px solid var(--pp-line); border-radius: 14px; color: var(--text-dark); font-weight: 400; cursor: pointer; transition: border-color .2s, background .2s, transform .3s var(--pp-snap); }
.pp-format input { position: absolute; opacity: 0; pointer-events: none; }
.pp-radio { width: 22px; height: 22px; border: 2px solid var(--pp-line); border-radius: 50%; transition: border-width .25s var(--pp-snap), border-color .2s; }
.pp-format b { display: block; font-size: .95rem; font-weight: 600; }
.pp-format small { display: block; color: var(--gray-500); font-size: .82rem; }
.pp-format-price { color: var(--brand-blue); font-size: 1.05rem; font-weight: 700; }
.pp-format:has(input:checked) { border: 2px solid var(--brand-blue); background: var(--light-blue); }
.pp-format:has(input:checked) .pp-radio { border: 7px solid var(--brand-blue); }
.pp-format:has(input:focus-visible) { outline: 3px solid var(--brand-blue); outline-offset: 2px; }
.pp-format:active { transform: scale(.98); }
.pp-tag { display: inline-block; margin-left: .3rem; padding: 0 .5rem; border-radius: 999px; background: var(--yellow); color: var(--brand-blue); font-size: .7rem; font-style: normal; font-weight: 700; vertical-align: 2px; }
.nowrap { white-space: nowrap; }
.pp-submit { width: 100%; }
.pp-paynote { margin: .2rem 0 0; font-size: .85rem; line-height: 1.6; text-align: center; }
.pp-bar { position: fixed; z-index: 9; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 20px calc(.9rem + env(safe-area-inset-bottom)); background: var(--brand-blue); color: var(--white); transition: transform .35s var(--pp-ease); }
.pp-bar.away { transform: translateY(110%); }
.pp-bar-price { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.pp-bar-price.bump { animation: pp-bump .4s var(--pp-snap); }
@keyframes pp-bump { 40% { color: var(--yellow); transform: translateY(-4px); } }
.pp-bar small { display: block; font-size: .78rem; opacity: .85; }
.pp-bar-cta { padding: .7rem 1.4rem; border-radius: 999px; background: var(--yellow); color: var(--brand-blue); font-weight: 700; text-decoration: none; transition: transform .15s var(--pp-snap); }
.pp-bar-cta:active { transform: scale(.95); }
@media (min-width: 900px) {
  .pp { padding-bottom: 4rem; }
  .pp-hero { height: 200px; }
  .pp-layout { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 28px; padding-top: 2rem; }
  .pp-layout > * { grid-column: 1; }
  .pp-order { position: sticky; top: 108px; grid-column: 2; grid-row: 1 / span 7; align-self: start; order: 0; padding: 1.4rem; }
  .pp-faq { order: 0; }
  .pp-card { padding: 1.3rem; }
  .pp-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pp *, .pp *::before, .pp *::after { animation: none !important; transition: none !important; }
  .pp-curve { stroke-dashoffset: 0; }
}
.product-tile.is-art { position: relative; place-items: start; overflow: hidden; padding: 1rem 1.1rem; background: var(--brand-blue); color: var(--white); letter-spacing: 0; }
.product-tile.is-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-tile .pp-grid { stroke: #fff; stroke-opacity: .08; fill: none; }
.product-tile .pp-glyphs { fill: #fff; fill-opacity: .18; font-family: 'Prompt', sans-serif; font-weight: 700; }
.tile-level { position: relative; align-self: end; font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; line-height: 1; }
.product-card:hover .product-tile.is-art path[stroke], .product-card:focus-visible .product-tile.is-art path[stroke] { stroke-width: 4; }

/* ---- How to order: four steps on one path that fills in when the section comes into view ---- */
.how-section > .order-path, .how-section > .op-cta { max-width: 1200px; margin-left: auto; margin-right: auto; }
.order-path { --op-line: #c9d2f2; --op-gap: 1.2rem; --op-ease: cubic-bezier(.22,1,.36,1); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--op-gap); margin-top: 0; margin-bottom: 0; padding: 0; list-style: none; }
.order-path li { position: relative; display: flex; flex-direction: column; }
.order-path li:not(:last-child)::before, .order-path li:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: 17px; width: calc(100% + var(--op-gap)); }
.order-path li:not(:last-child)::before { border-top: 2px dashed var(--op-line); }
.order-path li:not(:last-child)::after { height: 2px; background: var(--brand-blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--op-ease); }
.op-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--op-line); border-radius: 50%; background: var(--white); color: var(--brand-blue); font-size: .85rem; font-weight: 800; transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.order-path.play .op-dot { border-color: var(--brand-blue); background: var(--brand-blue); color: var(--white); transform: scale(1.08); }
.order-path.play li:last-child .op-dot { box-shadow: 0 0 0 4px var(--yellow); }
.order-path.play li:not(:last-child)::after { transform: none; }
.order-path li:nth-child(2) .op-dot { transition-delay: .35s; }
.order-path li:nth-child(3) .op-dot { transition-delay: .7s; }
.order-path li:nth-child(4) .op-dot { transition-delay: 1.05s; }
.order-path li:nth-child(1)::after { transition-delay: 0s; }
.order-path li:nth-child(2)::after { transition-delay: .35s; }
.order-path li:nth-child(3)::after { transition-delay: .7s; }
.op-card { flex: 1; margin-top: 1rem; padding: 1.4rem; border: 1px solid rgba(26,31,94,.07); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.op-card i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--light-blue); }
.op-card svg { width: 26px; height: 26px; fill: none; stroke: var(--brand-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.op-card h3 { margin: .9rem 0 .3rem; font-size: 1.05rem; line-height: 1.4; }
.op-card p { margin: 0; color: var(--gray-500); font-size: .9rem; }
.op-cta { margin-top: 2.2rem; margin-bottom: 0; text-align: center; }
@media (max-width: 760px) {
  .order-path { grid-template-columns: 1fr; gap: 0; }
  .order-path li { display: grid; grid-template-columns: 34px 1fr; column-gap: 1rem; padding-bottom: 1rem; }
  .order-path li:last-child { padding-bottom: 0; }
  .order-path li:not(:last-child)::before, .order-path li:not(:last-child)::after { top: 17px; left: 16px; width: 2px; height: 100%; }
  .order-path li:not(:last-child)::before { border-top: 0; border-left: 2px dashed var(--op-line); width: 0; }
  .order-path li:not(:last-child)::after { transform: scaleY(0); transform-origin: top; }
  .op-card { margin-top: 0; padding: 1.1rem; }
  .op-card i { display: none; }
  .op-card h3 { margin-top: .2rem; }
}
@media (prefers-reduced-motion: reduce) { .op-dot, .order-path li::after { transition: none !important; } }

/* ---- Header: logo with name on the left, menu, then LINE and the account button ---- */
.site-header { min-height: 84px; transition: box-shadow .25s ease, min-height .25s ease; }
.site-header.scrolled { min-height: 70px; box-shadow: 0 6px 18px rgba(26,31,94,.08); }
.site-header .brand { display: flex; align-items: center; gap: .7rem; letter-spacing: 0; }
.site-header .brand-image { height: 56px; }
.site-header.scrolled .brand-image { height: 46px; }
.brand-image { transition: height .25s ease; }
.brand-words { display: grid; line-height: 1.2; }
.brand-words b { color: var(--brand-blue); font-size: 1.05rem; font-weight: 800; letter-spacing: .02em; }
.brand-words small { color: var(--gray-500); font-size: .78rem; font-weight: 500; letter-spacing: 0; }
.site-header nav { flex: 1; justify-content: center; gap: 2rem; }
.site-header nav a { position: relative; padding: .3rem 0; color: var(--brand-blue); font-size: .95rem; font-weight: 600; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--brand-blue); transform: scaleX(0); transition: transform .25s cubic-bezier(.22,1,.36,1); }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--brand-blue); }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { transform: none; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.line-link { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border: 1.5px solid #c9d2f2; border-radius: 50px; color: var(--brand-blue); font-size: .88rem; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
.line-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.line-link:hover, .line-link:focus-visible { border-color: var(--brand-blue); background: var(--light-blue); }
.logout-link { color: var(--gray-500); font-size: .8rem; text-decoration: none; white-space: nowrap; }
.logout-link:hover, .logout-link:focus-visible { color: var(--brand-blue); text-decoration: underline; }
@media (max-width: 760px) {
  .site-header, .site-header.scrolled { min-height: 64px; padding: 0 14px; }
  .site-header .brand-image, .site-header.scrolled .brand-image { height: 44px; }
  .brand-words { display: none; }
  .header-actions { gap: .45rem; }
  .line-link { padding: .45rem; }
  .line-link span { display: none; }
  .logout-link { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { .site-header, .brand-image, .site-header nav a::after { transition: none; } }
