/* passtoefltest.com design standard: the one place for colours, text sizes, spacing, corners and buttons.
   Used by the practice app (index.html), the legal and pricing pages, and the blog.
   See it all on /styleguide.html (not indexed). New styles use these names, never raw values. */

:root {
  color-scheme: dark;

  /* ---- surfaces ---- */
  --bg: #0e1525;               /* page */
  --bg-elev: #151f35;          /* cards, panels */
  --bg-elev-2: #1d2944;        /* inputs, chips, raised items inside cards */
  --border: #283655;
  --overlay: rgba(4,8,18,0.72);  /* behind dialogs */

  /* ---- text ---- */
  --text: #e8edf7;             /* main text: 15.4:1 on --bg */
  --text-dim: #a9b4c8;         /* secondary text: 7.6:1 on --bg */
  --text-faint: #94a0b7;       /* labels, hints: 6.2:1 on --bg (never lighter than this) */
  --on-accent: #fff;           /* text on blue buttons (on --accent-strong) */

  /* ---- brand ---- */
  --accent: #8ba2ff;           /* main actions, links, focus */
  --accent-strong: #3155ee;    /* background of blue buttons and badges with white text: 4.7:1 */
  --accent-dim: #2545d2;       /* hover / pressed */
  --accent-soft: rgba(139,162,255,0.14);   /* selected item background */
  --accent-2: #a78bfa;         /* second colour, only in gradients */
  --accent-2-soft: rgba(167,139,250,0.10);
  --glow-blue: rgba(91,141,239,0.26);    /* moving light in the feature cards */
  --glow-lime: rgba(190,235,60,0.18);
  --glow-mint: rgba(70,215,195,0.20);
  --glow-line: rgba(255,255,255,0.07);   /* rays, stripes and wave lines over the light */
  --lime: #d8f582;             /* highlight: stickers, the button on dark or blue bands */
  --on-lime: #16273f;          /* text on --lime: 12.4:1 */
  --band: #0a1020;             /* dark band across the landing page (demo section) */
  --on-band: #ffffff;          /* text on --band */
  --on-band-dim: #c9d3e6;      /* secondary text on --band and on the blue band */
  --tint-blue: #172347;        /* Speaking card */
  --tint-violet: #1f1c3c;      /* Writing card */
  --tint-peach: #2b2119;       /* Reading card */
  --dot-speaking: #8ba2ff; --dot-writing: #a78bfa; --dot-reading: #f0a868;   /* skill dots and icons */

  /* ---- meaning ---- */
  --good: #4ade80;   --good-bg: #14532d;  --good-fg: #86efac;   /* correct, done, short */
  --warn: #fbbf24;   --warn-bg: #78350f;  --warn-fg: #fcd34d;   /* attention, medium */
  --bad:  #f87171;   --bad-bg:  #7f1d1d;  --bad-fg:  #fca5a5;   /* error, long */
  --info-bg: #1e3a5f; --info-fg: #93c5fd;                       /* ETS badges, info */
  --rec: #ef4444;    --rec-hover: #dc2626;                     /* recording, danger button */
  --warn-line: rgba(251,191,36,0.4);                            /* outline of a warning tag */
  --note-warn-bg: #2a2310; --note-warn-border: #5c4a14;          /* warning panel */
  --done-border: #2b5a40;                                        /* a finished test card */
  --highlight-bg: #1a2338; --highlight-border: #2c3d63;          /* "continue where you left off" */

  /* ---- text sizes (px) ---- */
  --fs-caption: 11px;   /* uppercase labels, chips */
  --fs-small: 12px;     /* fine print */
  --fs-meta: 13px;      /* meta lines, small buttons */
  --fs-ui: 14px;        /* most interface text */
  --fs-body: 15px;      /* buttons, card text */
  --fs-body-lg: 16px;   /* reading text, inputs on phones (no zoom on iOS) */
  --fs-lead: 17px;      /* intro paragraphs, blog reading text, small headings */
  --fs-h3: 20px;
  --fs-h2: 24px;
  --fs-h1-sm: 28px;     /* page title on phones */
  --fs-h1: 32px;
  --fs-display: 42px;   /* landing headline, timer */
  --fs-number: 56px;    /* big result on phones */
  --fs-number-lg: 72px; /* big result */
  --fs-hero: 56px;      /* landing headline on computers */
  /* Google Sans (self-hosted in /fonts/, SIL Open Font License): one font for English, Russian and Armenian (teacher, 29 Nov 2026) */
  --font: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans Armenian", sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;

  /* ---- spacing (px): use these for new padding, margins and gaps ---- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;

  /* ---- corners ---- */
  --radius-sm: 8px;     /* inputs, small boxes */
  --radius: 12px;       /* cards, buttons */
  --radius-lg: 20px;    /* large panels, landing cards */
  --radius-pill: 999px; /* chips, badges, toggles */

  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-edge: rgba(0,0,0,0.45);   /* shadow colour of a bar pinned to the screen edge */
  /* Reading "Complete the Words" boxes: one cell per missing letter (--cw-n, the number of letters, is set on each box) */
  --cw-gap: 0.4em;
  --cw-cell: calc(1ch + var(--cw-gap));
  --cw-n: 3;
  /* Landing feature icons: --ic-i is the step number of an animated part (set on each part) */
  --ic-i: 0;
}

/* ---- light mode: follows the device setting (same names, light values; contrast checked on /styleguide.html) ---- */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f8f9fc;
    --bg-elev: #ffffff;
    --bg-elev-2: #eef1f7;
    --border: #e3e7ee;
    --overlay: rgba(22,39,63,0.45);
    --text: #16273f;
    --text-dim: #566175;
    --text-faint: #5f6a7d;
    --on-accent: #fff;
    --accent: #3155ee;
    --accent-strong: #3155ee;
    --accent-dim: #2545d2;
    --accent-soft: rgba(49,85,238,0.09);
    --accent-2: #7346d6;
    --accent-2-soft: rgba(115,70,214,0.07);
    --glow-blue: rgba(110,135,255,0.30);
    --glow-lime: rgba(205,245,50,0.50);
    --glow-mint: rgba(95,222,208,0.38);
    --glow-line: rgba(255,255,255,0.75);
    --lime: #d8f582;
    --on-lime: #16273f;
    --band: #16273f;
    --on-band: #ffffff;
    --on-band-dim: #c9d3e6;
    --tint-blue: #eef2ff;
    --tint-violet: #f3f0fb;
    --tint-peach: #fdf2e8;
    --dot-speaking: #3155ee; --dot-writing: #7346d6; --dot-reading: #c2620f;
    --good: #157038;   --good-bg: #dcf5e4;  --good-fg: #145c30;
    --warn: #a14a06;   --warn-bg: #fdf0cd;  --warn-fg: #7c3a07;
    --bad:  #b42323;   --bad-bg:  #fde4e4;  --bad-fg:  #8f1d1d;
    --info-bg: #e6ebff; --info-fg: #2440b8;
    --rec: #d22c2c;    --rec-hover: #b42323;
    --warn-line: rgba(161,74,6,0.35);
    --note-warn-bg: #fff6df; --note-warn-border: #eccf86;
    --done-border: #8cc9a3;
    --highlight-bg: #eef2ff; --highlight-border: #c3cffb;
    --shadow: 0 12px 32px rgba(22,39,63,0.08);
    --shadow-edge: rgba(22,39,63,0.14);
  }
}

/* ---- Google Sans: Latin, Russian and Armenian letters only (no symbol set, so emoji keep their colours) ---- */
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/google-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/google-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/google-sans-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/google-sans-cyrillic-ext-400-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/google-sans-armenian-400-normal.woff2) format("woff2"); unicode-range: U+0308,U+0530-058F,U+2010,U+2024,U+25CC,U+FB13-FB17; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/google-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/google-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/google-sans-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/google-sans-cyrillic-ext-500-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/google-sans-armenian-500-normal.woff2) format("woff2"); unicode-range: U+0308,U+0530-058F,U+2010,U+2024,U+25CC,U+FB13-FB17; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/google-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/google-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/google-sans-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/google-sans-cyrillic-ext-600-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/google-sans-armenian-600-normal.woff2) format("woff2"); unicode-range: U+0308,U+0530-058F,U+2010,U+2024,U+25CC,U+FB13-FB17; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/google-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/google-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/google-sans-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/google-sans-cyrillic-ext-700-normal.woff2) format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/google-sans-armenian-700-normal.woff2) format("woff2"); unicode-range: U+0308,U+0530-058F,U+2010,U+2024,U+25CC,U+FB13-FB17; }

/* ---- buttons: three kinds, one look everywhere ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: 12px 22px; border: none; border-radius: var(--radius); font-size: var(--fs-body); font-weight: 600; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; font-family: inherit; line-height: 1.2; text-decoration: none; }
.btn-primary { background: var(--accent-strong); color: var(--on-accent); }   /* the one main action on a screen */
.btn-primary:hover { background: var(--accent-dim); }
.btn-primary:disabled { background: var(--bg-elev-2); color: var(--text-faint); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }   /* secondary actions */
.btn-ghost:hover { color: var(--text); border-color: var(--text-faint); }
.btn-danger { background: var(--rec); color: var(--on-accent); }       /* stop / destructive */
.btn-danger:hover { background: var(--rec-hover); }
.btn-sm { padding: 8px 14px; font-size: var(--fs-ui); }
.btn-lg { padding: 14px 26px; font-size: var(--fs-body-lg); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
/* soft button: small rounded button for secondary actions instead of underlined text (teacher, 30 Nov 2026).
   .link-btn is the app's older name for the same thing. */
.btn-soft, .link-btn { display: inline-flex; align-items: center; gap: var(--sp-1); background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; border-radius: var(--radius-pill); padding: 6px 14px; font-family: inherit; font-size: var(--fs-ui); font-weight: 600; line-height: 1.3; text-decoration: none; cursor: pointer; vertical-align: middle; transition: border-color 0.15s; }
.btn-soft:hover, .link-btn:hover { border-color: var(--accent); text-decoration: none; }
.btn-soft-danger { background: var(--bad-bg); color: var(--bad-fg); }
.btn-soft-danger:hover { border-color: var(--bad); }
summary.btn-soft { list-style: none; }
summary.btn-soft::-webkit-details-marker { display: none; }

/* ---- top bar and footer of the blog and the legal pages (the landing page has its own, same look) ---- */
.site-top { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3) var(--sp-4); flex-wrap: wrap; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-6); }
.site-top .brand { font-weight: 700; font-size: var(--fs-ui); letter-spacing: .04em; color: var(--text); text-transform: uppercase; text-decoration: none; }   /* Stage 5: as in the app */
.site-top .brand span { color: var(--accent); }
.site-top-r { display: flex; align-items: center; gap: var(--sp-2) var(--sp-3); flex-wrap: wrap; }
.site-top .btn { white-space: nowrap; }
/* No pull-down refresh on phones while a student is inside a set, test or result (teacher, 28 Nov 2026) */
html.no-pull, html.no-pull body { overscroll-behavior-y: none; }
/* "← Back to practice" under the top bar of blog and legal pages (navigation QA, 28 Nov 2026) */
.page-back { display: inline-block; margin: var(--sp-2) 0 0; font-size: var(--fs-ui); color: var(--accent); text-decoration: none; }
.page-back:hover { color: var(--accent-dim); }
.top-link { color: var(--text-dim); text-decoration: none; font-size: var(--fs-ui); font-weight: 500; padding: var(--sp-2); border-radius: var(--radius-sm); }
.top-link:hover { color: var(--text); background: var(--bg-elev); }
.lang-pill { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-pill); }
.lang-pill a { color: var(--text-dim); text-decoration: none; padding: 5px 12px; font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0.03em; border-radius: var(--radius-pill); }
.lang-pill a:hover { color: var(--text); }
.lang-pill a[aria-current] { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.site-foot { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--border); color: var(--text-dim); font-size: var(--fs-ui); display: grid; gap: var(--sp-3); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.site-foot a { color: var(--text-dim); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.site-foot .tm { font-size: var(--fs-meta); color: var(--text-faint); }
@media (max-width: 560px) { .site-top-r { width: 100%; justify-content: space-between; } .site-top .top-link { display: none; } }
@media (max-width: 560px) { .brand-long { display: none; } }   /* the site name without "Practice" on phones */
.back-link { display: inline-block; color: var(--text-dim); text-decoration: none; font-size: var(--fs-ui); margin: 0 0 var(--sp-4); }
.back-link:hover { color: var(--text); }

/* ---- keyboard focus: every clickable thing shows where the keyboard is ---- */
:where(a, button, [role="button"], input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
