/* ============================================================================
   PTE ESSAY, assets/style.css
   Single stylesheet for all ten pages. Updated 2026-08-07.

   HOW THIS FILE IS ORGANISED (top to bottom):
     1. :root design tokens            (every brand colour lives here)
     2. Reset, base elements, layout   (container, headings, skip link)
     3. Components                     (header/nav, buttons, sections, hero,
                                        grids and cards, notice, FAQ, pricing,
                                        resources, forms, CTA band, footer)
     4. Responsive breakpoints
     5. 2026 upgrade block             (a11y, back to top, support link, small
                                        screens, reduced motion)
     6. ACCESSIBILITY CONTRAST FIX, dated 2026-08-07   (read before touching)

   THE TOKEN SYSTEM
   Everything colour, radius, shadow, width and font related is a CSS custom
   property declared once in :root and referenced with var(). To restyle the
   site, change the token, not the rule that uses it. Search for "--" in :root
   and you have the whole palette in one screen.

   WHERE THE BRAND COLOURS LIVE
   :root immediately below. --ink and --ink-soft are the dark base, --teal,
   --teal-dark and --teal-deep are the brand teal ramp, --accent is an amethyst
   used sparingly, and --aqua-soft / --aqua-tint are the section tints. Nothing
   else in the file should contain a raw brand hex.

   IMPORTANT: this file ends with a dated contrast override block that
   re-declares the primary button gradient and the default link colour. Rules
   further up that set those will be overridden by it. Edit the override block,
   not just the original rule.

   This stylesheet is structurally different from the Mark My Essay and IELTS
   Essay ones (different tokens, different component internals) even though the
   HTML class names match. Do not copy rules between the three sites without
   checking the token names exist on the target.

   No preprocessor, no build step, no CDN. This file is served as written.
   ============================================================================ */
/* ==========================================================================
   PTE Essay , stylesheet
   Palette adapted from Pearson PTE: teal #12B2A6 + deep ink #181F3A,
   soft aqua section tints, amethyst accent used sparingly.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. DESIGN TOKENS
   The whole palette and the shared geometry. Change a value here and it
   changes everywhere the token is used. See the contrast override at the
   bottom of the file before changing --teal or --teal-dark.
   --------------------------------------------------------------------------- */
:root {
  --ink:        #181F3A;   /* headings, footer, dark surfaces */
  --ink-soft:   #20294a;
  --teal:       #12B2A6;   /* primary brand / buttons / links */
  --teal-dark:  #0E8E85;   /* hover, gradient end */
  --teal-deep:  #0A6B64;
  --aqua-soft:  #E8F7F5;   /* soft section background */
  --aqua-tint:  #F3FBFA;
  --accent:     #6C4CF1;   /* amethyst, sparing highlights */
  --text:       #33384A;   /* body text */
  --muted:      #5E6678;   /* secondary text */
  --line:       #E2E8EC;   /* borders / hairlines */
  --white:      #ffffff;
  --bg:         #ffffff;
  --shadow:     0 10px 30px rgba(24, 31, 58, 0.08);
  --shadow-sm:  0 4px 14px rgba(24, 31, 58, 0.07);
  --radius:     14px;
  --radius-sm:  10px;
  --maxw:       1120px;
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------------------------------------------------------------------------
   2. RESET, BASE ELEMENTS AND LAYOUT
   Global reset, body typography, heading scale, the .container width rail and
   the skip link. Headings use clamp() so they scale with the viewport without
   needing breakpoints.
   --------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1rem; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-row { margin-top: 18px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===========================================================================
   3. COMPONENTS
   Each block below is one component. Class names are used verbatim in the
   HTML, so renaming one here means grepping all ten pages.
   =========================================================================== */

/* --------------------------------------------------------------------------
   Header / nav
   The hamburger .nav-toggle is display:none until the 980px breakpoint, and
   assets/script.js uses exactly that (toggle.offsetParent === null) to decide
   whether the menu is in mobile mode. Move the breakpoint and the script
   follows automatically.
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .96rem;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--aqua-soft); color: var(--teal-deep); }
.nav-links a.active { color: var(--teal-deep); }
.nav-links .nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  padding: 6px 8px;
}

/* --------------------------------------------------------------------------
   Buttons
   .btn is the shape. .btn-primary / .btn-outline / .btn-ghost are the skins.
   .btn-ghost is white-on-dark and only legible on a dark background.
   .btn-primary's gradient is overridden by the dated block at the end of this
   file, so change it there, not here.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 178, 166, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(18, 178, 166, 0.38); color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--teal-deep);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--aqua-soft); color: var(--teal-deep); }

.btn-ghost {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.24); color: #fff; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 56px 0; }
.section-soft { background: var(--aqua-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin: 0 0 10px;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(18,178,166,0.16), transparent 60%),
    radial-gradient(900px 420px at 0% 110%, rgba(108,76,241,0.10), transparent 55%),
    linear-gradient(180deg, var(--aqua-tint) 0%, #ffffff 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero h1 { margin-bottom: 18px; font-size: clamp(2.4rem, 6vw, 3.4rem); }
.hero > .container > p { font-size: 1.18rem; color: var(--muted); max-width: 660px; }

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .9rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); display: inline-block; }

/* --------------------------------------------------------------------------
   Grids & cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }

.icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: var(--aqua-soft);
  border-radius: 14px;
  margin-bottom: 16px;
}

/* Steps */
.steps { display: grid; gap: 16px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   Testimonials (.quote, .avatar, .stars)
   DEAD CODE, KEPT ON PURPOSE. Fabricated testimonials were removed from every
   page on 2026-08-07 and no page uses these classes any more. They are left
   here only so the markup can be restored quickly IF, and only if, real and
   verifiable reviews are ever collected with the reviewer's permission.
   Do not reintroduce invented quotes, names, avatars, or star ratings.
   -------------------------------------------------------------------------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }
.quote p { font-size: 1rem; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.who strong { display: block; color: var(--ink); }
.who span { font-size: .85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Notice / callout
   -------------------------------------------------------------------------- */
.notice {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  max-width: 880px;
  margin: 0 auto;
}
.notice h3 { margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   FAQ accordion
   Open and closed states are driven entirely by the .open class that
   assets/script.js puts on .faq-item. The panel animates on max-height, which
   the script sets in pixels from scrollHeight (you cannot transition to
   height:auto). The 2026 block further down also flips visibility so a closed
   panel is out of the tab order, not just out of sight.
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q:hover { color: var(--teal-deep); }
.faq-q .chev { color: var(--teal); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Pricing
   .price-tag-pop ("Most Popular") is absolutely positioned against the card,
   so it only works inside a .price-card that also has .featured (which is what
   establishes the positioning context via position:relative on .price-card).
   The tick marks on .price-features li are CSS generated content, not text.
   -------------------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow);
}
.price-tag-pop {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price { font-size: 2.4rem; font-weight: 700; color: var(--ink); margin: 6px 0 4px; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-features { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 10px; }
.price-features li { position: relative; padding-left: 26px; color: var(--text); }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 700;
}
.price-card .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   Resources cards
   -------------------------------------------------------------------------- */
.res-card { display: flex; flex-direction: column; }
.res-card h3 { font-size: 1.1rem; }
.res-card h3 a { color: var(--ink); }
.res-card h3 a:hover { color: var(--teal-deep); }
.res-tag {
  align-self: flex-start;
  background: var(--aqua-soft);
  color: var(--teal-deep);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.res-link { margin-top: auto; font-weight: 600; color: var(--teal-deep); }

.video-wrap { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--ink); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tips { padding-left: 20px; margin: 0; display: grid; gap: 10px; }
.tips li { color: var(--text); padding-left: 4px; }

/* --------------------------------------------------------------------------
   Forms
   Note the selectors are scoped to .form-row, unlike the other two essay sites
   which style bare input/select/textarea. A field added outside a .form-row
   will be unstyled here.
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .92rem; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 178, 166, 0.18);
}
.form-row textarea { min-height: 130px; resize: vertical; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-ic { font-size: 1.3rem; flex: none; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 60%, var(--teal-deep) 140%);
  color: #fff;
  border-radius: 20px;
  padding: 54px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe9e6; max-width: 560px; margin: 0 auto 26px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #c9d2e3; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 12px; }
.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.site-footer h4 { color: #fff; font-size: .98rem; margin-bottom: 14px; }
.site-footer a { display: block; color: #9fb0c2; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 20px; font-size: .88rem; color: #8593a8; text-align: center; }

/* ===========================================================================
   4. RESPONSIVE BREAKPOINTS
   980px is the nav breakpoint (see the header note above). 520px handles the
   narrow phone case. Two more breakpoints, 480px and 360px, live in the 2026
   block below.
   =========================================================================== */

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px;
    gap: 2px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-links .nav-cta { margin: 8px 0 0; }

  .grid-2, .grid-3, .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 40px 0; }
  .hero { padding: 44px 0 40px; }
  .cta-band { padding: 40px 24px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero-cta-row .btn { width: 100%; }
}


/* ==========================================================================
   2026 upgrade: landmarks, accordion a11y, back-to-top, support link,
   small-screen support down to 360px, reduced motion.
   Palette untouched, existing variables reused.
   ========================================================================== */

/* Main landmark should not add a focus ring of its own when the skip link
   sends focus to it. */
main:focus { outline: none; }
main:focus-visible { outline: 3px solid #0A6B64; outline-offset: -3px; }

/* Visible focus outline for keyboard users. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #0A6B64;
  outline-offset: 2px;
}

/* Skip link, visible as soon as it takes focus. */
.skip-link:focus { left: 0; }


/* Collapsed FAQ panels must be out of the tab order as well as out of view. */
.faq-a { visibility: hidden; transition: max-height .28s ease, visibility 0s linear .28s; }
.faq-item.open .faq-a { visibility: visible; transition: max-height .28s ease, visibility 0s linear 0s; }
.faq-q { font-family: inherit; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(45deg); }

/* Footer support line (Buy me a coffee). Quiet, one instance, no popup. */
.footer-support {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 26px;
  padding-top: 20px;
}
.footer-support p { margin: 0; font-size: .92rem; color: #c9d2e3; }
.footer-support .bmc-link {
  display: inline;
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-support .bmc-link:hover { color: #ffffff; text-decoration: underline; }

/* Inline support card, used once on the resources page. */
.support-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  padding: 24px 26px;
  background: #fff;
  margin-top: 34px;
}
.support-card h3 { margin-bottom: 8px; }
.support-card p:last-child { margin-bottom: 0; }

/* Back to top. Hidden with opacity + visibility rather than display:none so it
   can transition, and so it stays out of the tab order while hidden. The
   delayed visibility transition is what makes the fade-out work. */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}
.back-to-top:hover { background: var(--teal-dark); }

/* Self-check and plain-English blocks on the free resource sections. */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--teal);
  font-weight: 800;
}
.plain-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.plain-table caption { text-align: left; font-weight: 700; padding-bottom: 10px; color: var(--ink); }
.plain-table th, .plain-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: .96rem;
}
.plain-table th { background: var(--aqua-soft); color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* Small screens, tested down to 360px wide. */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 13px 20px; font-size: .95rem; }
  .hero-cta-row .btn,
  .notice .btn,
  .cta-band .btn { width: 100%; text-align: center; margin-left: 0 !important; }
  .notice .btn + .btn { margin-top: 10px; }
  .card, .price-card, .form-card, .quote, .support-card { padding: 22px 18px; }
  .faq-q { padding: 16px 16px; font-size: 1rem; }
  .faq-a-inner { padding: 0 16px 18px; }
  .back-to-top { right: 12px; bottom: 12px; width: 42px; height: 42px; }
  .footer-grid { gap: 26px; }
}

@media (max-width: 360px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .logo img { height: 32px; }
}

/* PRINT: there is no print stylesheet on this site. Pages print acceptably
   from the default UA styles. If you add one, put it here and remember the
   fixed .back-to-top and the sticky .site-header both need hiding. */

/* Respect a reduced-motion preference. This near-zero override is the standard
   pattern: it neutralises every transition and animation rather than trying to
   list them. Anything animated that you add is therefore covered for free. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .btn:hover, .back-to-top { transform: none !important; }
}


/* ============================================================
   6. ACCESSIBILITY CONTRAST FIX, 2026-08-07. READ BEFORE EDITING.

   WHAT IT FIXES: the brand teal did not meet WCAG 2.1 AA for normal-size text,
   which needs a 4.5:1 contrast ratio against the background. White text on the
   original primary button gradient measured 2.64:1 at the light end, and the
   default body-link colour measured 4.02:1 on white. Both were failures, on
   every page, on the most-clicked elements on the site.

   HOW IT FIXES IT: this block declares two new tokens and re-applies them to
   the same selectors. Because it is the last thing in the file, it wins on
   source order. The hue is untouched (teal, about 176 degrees), only the
   lightness was reduced, so the site still looks like itself.

   MEASURED RATIOS (foreground vs #ffffff, verified 2026-08-07):
     .btn-primary gradient start  #12B2A6 -> #0d7e76   2.64:1 -> 4.93:1  PASS
     .btn-primary gradient end    #0E8E85 -> #0c756e   4.02:1 -> 5.55:1  PASS
     body link colour             #0E8E85 -> #0d7e76   4.02:1 -> 4.93:1  PASS

   WARNING: deleting or reverting this block puts every primary button and
   every body link back below 4.5:1 and reintroduces the AA failures site-wide.
   It is not cosmetic and it is not optional. If a redesign changes the brand
   teal, re-measure the new values against white and update the tokens here
   rather than removing the block.

   NOTE: --teal is still used raw elsewhere (chevrons, dots, bar accents,
   borders). Those are non-text or large decorative uses, which sit under the
   3:1 non-text rule, so they were left alone deliberately.
   ============================================================ */

/* ============================================================
   ACCESSIBILITY CONTRAST FIX - 2026-08-07
   WCAG 2.1 AA (4.5:1) remediation. Brand hue is unchanged
   (teal ~176deg); only lightness is reduced.
   Delete this whole block to revert to the previous colours.
     .btn-primary gradient start  #12B2A6 -> #0d7e76  (2.64 -> 4.93 vs #fff)
     .btn-primary gradient end    #0E8E85 -> #0c756e  (4.02 -> 5.55 vs #fff)
     default body link colour     #0E8E85 -> #0d7e76  (4.02 -> 4.93 vs #fff)
   ============================================================ */
:root {
  --teal-aa:      #0d7e76;  /* darkened var(--teal) for white text / links */
  --teal-dark-aa: #0c756e;  /* darkened var(--teal-dark) for white text */
}
a { color: var(--teal-aa); }
.btn-primary { background: linear-gradient(135deg, var(--teal-aa) 0%, var(--teal-dark-aa) 100%); }
/* ============================================================ */

/* ============================================================================
   UPGRADE BLOCK, 2026-11-16
   Added with the free guides and tools pages. Uses only the :root tokens above.
   Contents: tap-size fixes, breadcrumb, "check before you rely" note, how-it-works
   line, free guide pages, timer, error checker, print styles.
   ============================================================================ */
.nav-toggle { min-width: 44px; min-height: 44px; padding: 8px; }
.site-footer a { padding: 6px 0; }

.breadcrumb { font-size: .92rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.breadcrumb a { display: inline-block; padding: 8px 0; }

.page-note {
  background: var(--aqua-tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}
.page-note h2, .page-note h3 { font-size: 1.05rem; margin-bottom: 6px; }
.page-note p:last-child { margin-bottom: 0; }
.page-note.warn { border-left-color: var(--teal-deep); background: var(--aqua-soft); }

.guide-page .container { max-width: 880px; }
.guide-page h2 { margin-top: 40px; }
.guide-page h3 { margin-top: 24px; }
.guide-page ul, .guide-page ol { padding-left: 22px; }
.guide-page li { margin-bottom: 8px; }
.guide-page .card, .guide-page .page-note { margin-top: 20px; }
.guide-page .dl-traits dt { font-weight: 700; color: var(--ink); margin-top: 14px; }
.guide-page .dl-traits dd { margin: 2px 0 0; color: var(--text); }
.guide-page .back-sentence { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.src-list a { overflow-wrap: anywhere; }

.how-line { margin: 14px 0 0; padding-left: 22px; max-width: 760px; color: var(--muted); }
.how-line li { margin-bottom: 6px; }

.passage { background: var(--aqua-tint); border-left: 4px solid var(--teal); padding: 14px 18px; border-radius: var(--radius-sm); }
.model { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: var(--radius-sm); }
.label-small { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--teal-deep); margin: 0 0 6px; }

.timer-desk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-top: 20px; }
.timer-desk fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.timer-desk legend { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.mode-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mode-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; }
.mode-row input { width: 20px; height: 20px; }
.timer-display { font-size: 2.6rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; margin: 8px 0; }
.timer-display.low { color: var(--accent); }
.timer-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 18px; }
.timer-buttons .btn { min-height: 44px; cursor: pointer; font-family: inherit; font-size: 1rem; }
.timer-desk textarea { width: 100%; min-height: 280px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; line-height: 1.6; color: var(--text); resize: vertical; }
.timer-desk textarea:focus { outline: 3px solid var(--teal-deep); outline-offset: 2px; }
.spell-row { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 8px 0; }
.spell-row input { width: 22px; height: 22px; }
.readout { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--aqua-soft); border: 1px solid var(--line); }
.readout p { margin: 0 0 6px; }
.readout p:last-child { margin-bottom: 0; }
.readout .count { font-size: 1.4rem; font-weight: 800; color: var(--ink); }

.err-list { list-style: none; padding: 0; margin: 0; }
.err-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.err-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.err-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.err-pair p { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); }
.err-wrong { background: var(--aqua-tint); border-left: 4px solid var(--accent); }
.err-right { background: var(--aqua-soft); border-left: 4px solid var(--teal-deep); }
.err-why { margin: 6px 0 10px; color: var(--muted); }
.err-tick { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.err-tick input { width: 22px; height: 22px; }
.picks { background: var(--aqua-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 20px; }

@media (max-width: 640px) {
  .err-pair { grid-template-columns: 1fr; }
  .timer-desk { padding: 16px; }
  .timer-display { font-size: 2.2rem; }
}

@media print {
  .site-header, .site-footer, .back-to-top, .skip-link, .timer-buttons, .no-print, .breadcrumb { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { background: none; padding: 0 0 8pt; }
  .section { padding: 8pt 0; }
  .guide-page .container { max-width: none; }
  .card, .page-note, .err-item, .picks, .passage, .model { box-shadow: none; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .err-pair { grid-template-columns: 1fr 1fr; }
}
/* ============================================================================ */

/* ===== 2026-11-16 icon and booking-button refresh =====
   Emoji icons replaced by inline SVG line icons (stroke = currentColor).
   .btn-book is the readable booking button (dark fill, white text, large).
   Contrast: white on var(--ink) is well above 4.5:1 (AA). */
svg.ico-svg { width: 24px; height: 24px; flex: none; }
.icon svg { width: 26px; height: 26px; }
.form-card .icon { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: var(--aqua-soft); color: var(--teal-deep); }
.info-ic svg { width: 22px; height: 22px; }
.card .icon, .info-ic { color: var(--teal-deep); }
.ico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: .4em; flex: none; color: var(--teal-deep); }
.btn-book {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  font-weight: 800; font-size: 1.05rem; letter-spacing: .01em;
  padding: 16px 28px; min-height: 52px; border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.22); text-decoration: none;
}
.btn-book svg.ico-svg { width: 22px; height: 22px; flex: none; }
.btn-book:hover, .btn-book:focus-visible { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; text-decoration: none; }
@media (max-width: 480px) { .btn-book { width: 100%; } }
@media print { .btn-book { display: none; } }
