/* Public home page. Uses the colours and fonts from style.css; only layout is added here. */
.pub-bar { position: sticky; top: 0; z-index: 20; background: var(--band); color: var(--band-ink); }
.pub-bar .inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.pub-bar .brand { color: var(--band-ink); margin-right: auto; }
.pub-nav { display: flex; align-items: center; gap: 4px; }
.pub-nav a { color: var(--band-ink); text-decoration: none; padding: 10px 12px; min-height: var(--tap); display: inline-flex; align-items: center; border-radius: 8px; }
.pub-nav a:hover, .pub-nav a:focus-visible { background: rgba(255,255,255,.1); }
.pub-nav a.cta { background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; margin-left: 6px; }
.nav-toggle { display: none; min-height: var(--tap); min-width: var(--tap); background: transparent; color: var(--band-ink); border: 1px solid var(--band-muted); border-radius: 8px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .pub-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--band); padding: 8px 16px 16px; gap: 2px; }
  .pub-nav.open { display: flex; }
  .pub-nav a.cta { margin: 8px 0 0; justify-content: center; }
}
.pub-section { padding-top: 64px; padding-bottom: 64px; }
.pub-section.alt { background: var(--surface-2); }
.pub-section h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
.pub-section .sub { color: var(--muted); max-width: 720px; margin: 0 0 28px; }
.pub-hero { background: var(--band); color: var(--band-ink); padding-top: 64px; padding-bottom: 64px; }
.pub-hero .cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pub-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
.pub-hero p { color: var(--band-muted); font-size: 1.1rem; max-width: 560px; }
.pub-hero .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn.ghost-light { background: transparent; color: var(--band-ink); border: 1px solid var(--band-muted); }
.sample { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.sample .tag { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sample .overall { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-ink); margin: 4px 0 12px; }
.bar-row { display: grid; grid-template-columns: 1fr 120px 32px; gap: 10px; align-items: center; font-size: .92rem; margin: 6px 0; }
.bar-row .track { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; background: var(--gold); }
.fill.w60 { width: 60%; } .fill.w65 { width: 65%; } .fill.w70 { width: 70%; } .fill.w55 { width: 55%; }
.sample .fix { margin-top: 12px; padding: 10px 12px; background: var(--gold-soft); border-radius: 8px; font-size: .92rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.step-num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); align-items: center; justify-content: center; font-weight: 700; margin-bottom: 8px; }
.crit { margin: 0; padding-left: 18px; } .crit li { margin: 6px 0; }
.price-card .price { font-family: var(--font-display); font-size: 2rem; margin: 4px 0; }
.price-card.reco { border: 2px solid var(--gold); }
.price-card ul { padding-left: 18px; margin: 8px 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; min-height: var(--tap); }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--muted); }
.final { background: var(--band); color: var(--band-ink); text-align: center; padding-top: 64px; padding-bottom: 64px; }
.final h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0 0 12px; }
.final p { color: var(--band-muted); max-width: 620px; margin: 0 auto 24px; }
.final .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.disclaimer { font-size: .9rem; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding: 32px 0 8px; }
.foot-cols h3 { font-size: 1rem; margin: 0 0 8px; } .foot-cols a { display: block; padding: 4px 0; }
@media (max-width: 860px) { .pub-hero .cols, .grid2, .grid3 { grid-template-columns: 1fr; } .pub-section { padding-top: 44px; padding-bottom: 44px; } .pub-hero { padding-top: 40px; padding-bottom: 40px; } }

/* Phase 5: subpages, free check, sample reports, plans table */
.pub-section[id], section[id] { scroll-margin-top: 80px; }
.page-h1 { font-family: var(--font-display); font-size: var(--fs-h1); margin: 0 0 8px; }
.pub-nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
.free-box textarea { width: 100%; min-height: 200px; }
.free-box .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; margin: 4px 0 12px; }
#fcOut { margin-top: 16px; }
#fcOut .sample { box-shadow: none; border: 1px solid var(--line); }
.sample-wide { max-width: 860px; box-shadow: none; border: 1px solid var(--line); }
.sample-wide h3 { font-size: 1.05rem; margin: 18px 0 6px; font-family: var(--font-display); }
.fixes { display: grid; gap: 10px; }
.fix-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--surface-2); }
.fix-item p { margin: 2px 0; }
.fix-item .was { color: var(--bad); } .fix-item .now { color: var(--good); font-weight: 600; } .fix-item .why { color: var(--muted); font-size: .92rem; }
.transcript-sample mark { background: var(--warn-bg); color: var(--ink); padding: 0 2px; border-radius: 3px; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.plan-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.plan-table th, .plan-table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.price-card .band-badge { margin-bottom: 6px; }
.trust-slot[hidden] { display: none !important; }
.ui-crumbs { margin-bottom: 8px; }

/* Visual recovery (4 Nov 2026): proof chips, skill tiles, report preview, Speaking test band */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; }
.chips li { font-size: .85rem; padding: 6px 12px; border: 1px solid var(--band-muted); border-radius: 999px; color: var(--band-ink); }
.skill-strip { background: var(--band); padding-bottom: 40px; margin-top: -1px; }
.skill-strip .inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skill-tile { display: flex; flex-direction: column; gap: 4px; background: var(--surface); color: var(--ink); text-decoration: none; padding: 18px 20px; border-radius: var(--radius); border-top: 4px solid var(--gold); min-height: var(--tap); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.skill-tile b { font-family: var(--font-display); font-size: 1.1rem; }
.skill-tile span { color: var(--muted); font-size: .92rem; }
.skill-tile:hover, .skill-tile:focus-visible { transform: translateY(-2px); outline: 2px solid var(--gold); }
.rep { margin-top: 20px; }
.rep .fix-item { margin: 12px 0; }
.speak-grid { align-items: center; }
.flow { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; margin: 0 0 20px; }
.flow li { counter-increment: s; position: relative; padding-left: 52px; min-height: 40px; }
.flow li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.demo-box:empty, .demo-box:not(:has(video:not([hidden]))) { display: none; }
.demo-box video { width: 100%; border-radius: var(--radius); background: #000; }
.speak-grid:has(.demo-box:not(:has(video:not([hidden])))) { grid-template-columns: 1fr; max-width: 760px; }
@media (max-width: 860px) { .skill-strip .inner { grid-template-columns: repeat(2, 1fr); } .skill-strip { padding-bottom: 28px; } }
@media (max-width: 400px) { .skill-strip .inner { grid-template-columns: 1fr; } }
@media (max-width: 860px) { #pricingCards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; } #pricingCards > .card { flex: 0 0 78%; scroll-snap-align: start; } #how .grid3 { gap: 12px; } #how .card { padding: 14px 16px; } }

/* Writing and Speaking pages (4 Nov 2026): same hero, tile strip and flow as the homepage */
.skill-strip.n3 .inner { grid-template-columns: repeat(3, 1fr); }
.skill-strip.n4 .inner { grid-template-columns: repeat(4, 1fr); }
.skill-tile em { font-style: normal; font-size: .8rem; color: var(--gold-ink); font-weight: 600; }
.page-hero .crumbs-light { font-size: .85rem; color: var(--band-muted); margin: 0 0 14px; }
.page-hero .crumbs-light a { color: var(--band-ink); }
@media (max-width: 860px) { .skill-strip.n3 .inner, .skill-strip.n4 .inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .skill-strip.n3 .inner, .skill-strip.n4 .inner { grid-template-columns: 1fr; } }

/* Plan Finder on /plans (4 Nov 2026) */
.plan-finder { margin: 8px 0 32px; }
.pf-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 760px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.pf-in { animation: pf-fade .25s ease both; }
@keyframes pf-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pf-in { animation: none; } }
.pf-steps { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 14px; }
.pf-dot { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; }
.pf-dot.now { border-color: var(--gold); color: var(--ink); }
.pf-dot.done { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pf-count { margin: 0 0 6px; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.pf-q { font-family: var(--font-display); font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin: 0 0 18px; line-height: 1.2; }
.pf-q:focus { outline: none; }
.pf-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-opt { text-align: left; background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-height: var(--tap); font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.pf-opt:hover, .pf-opt:focus-visible { border-color: var(--gold); outline: none; }
.pf-opt.sel { border-color: var(--gold); background: var(--gold-soft); }
.pf-date { margin-top: 16px; display: grid; gap: 6px; max-width: 280px; }
.pf-date input { min-height: var(--tap); padding: 8px 12px; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.pf-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.pf-nav .pf-next { margin-left: auto; }
.pf-nav .pf-next[disabled] { opacity: .45; cursor: not-allowed; }
.pf-end { margin-top: 18px; }
.pf-note { margin: 16px 0 0; color: var(--muted); font-size: .88rem; }
.pf-price { margin: 0 0 12px; font-size: 1rem; color: var(--muted); }
.pf-price b { font-family: var(--font-display); font-size: 2.2rem; color: var(--ink); }
.pf-incl { margin: 0 0 14px; padding-left: 20px; }
.pf-why { background: var(--gold-soft); border-radius: 10px; padding: 12px 14px; margin: 0; }
.pf-all { margin: 8px 0 14px; font-size: 1.2rem; }
@media (max-width: 600px) { .pf-card { padding: 20px 16px; } .pf-opts { grid-template-columns: 1fr; } .pf-nav .pf-next { margin-left: 0; width: 100%; } }
