/* MarcusLabs — AI Slides tool, restyled into the site palette.
   Same markup, same ids/classes, same JS; only colour, type and corners change.
   Every rule is scoped: .slides-app (the tool, #tool) or .nav … (its controls in the site header).
   Colours come only from tokens.css. */

/* ---------- original variable names, mapped to the palette ---------- */
.slides-app {
  --bg: var(--charcoal);
  --surface: var(--charcoal);
  --surface2: var(--charcoal);
  --border: var(--cocoa);
  --border2: var(--olive);
  --text: var(--cream);
  --text2: var(--stone);
  --text3: var(--taupe);
  --accent: var(--amber);
  --accent2: var(--olive);
  --warm1: var(--amber);
  --warm2: var(--amber);
  --warm3: var(--cream);
  --cool1: var(--olive);
  --cool2: var(--fog);
  --fg: var(--cream);              /* used by .acct-row, never defined in the original */
  --radius: 4px;
  --radius-sm: 2px;
  --font: var(--text);   /* small text in PT Mono; display parts set var(--sans) themselves */
  --err: var(--orange, #FD5719);
  --paper: var(--white, #FBFAE8);
  --hi: var(--blue, #0942C5);
  /* site surface roles, so site-wide element rules (a, h1–h3, strong) stay right even inside a light section */
  --ink: var(--cream);
  --ink-2: var(--stone);
  --ink-3: var(--taupe);
  --line: var(--cocoa);
  --panel: var(--charcoal);

  position: relative;
  display: block;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  font-stretch: 100%;
  line-height: normal;
  color: var(--text);
  background: var(--bg);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
.slides-app *, .slides-app *::before, .slides-app *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* content sits above the site's ambient layers (#vines z1, #chameleon z2), like .wrap.
   .slides-app itself makes no stacking context, so the fixed modals below can rise over the site header. */
.slides-app > .hero, .slides-app > .app, .slides-app > .pr-divider, .slides-app > #pricing,
.slides-app > footer { position: relative; z-index: 3; }

/* while a checkout / account / login modal is open, lock the page like the original body{overflow:hidden} did */
html:has(.slides-app .modal-overlay.show) { overflow: hidden; }
/* openModal() also sets body.style.overflow='hidden'; on the site that turns body into a scroll box and the sticky .ref-banner
   jumps while a modal is open. Keep body as the site has it; the html rule above does the locking. */
html:has(.slides-app .modal-overlay.show) body { overflow-x: clip !important; overflow-y: visible !important; }

/* ---------- header controls (moved from the original <nav>) ---------- */
/* (sized in the page's scaled pixel like the rest of the header: they grow with it on a large screen) */
.nav .nav-r { display: flex; align-items: center; gap: calc(16 * var(--u)); }
.nav #nav-user { position: relative; font-family: var(--mono); font-size: calc(12 * var(--u)); letter-spacing: .04em; line-height: 1; color: var(--stone);
  cursor: pointer; padding: calc(8 * var(--u)) calc(12 * var(--u)) calc(7 * var(--u)); border: 1px solid var(--cocoa); border-radius: calc(2 * var(--u)); white-space: nowrap; user-select: none; transition: border-color .15s; }
.nav #nav-user:hover, .nav #nav-user.open { border-color: var(--taupe); }
.nav #nav-user .nu-name { color: var(--amber); font-weight: 400; }
.nav #nav-user .nu-bal { color: var(--taupe); margin-left: calc(8 * var(--u)); font-size: calc(11 * var(--u)); }
.nav #nav-user .nu-drop { position: absolute; top: calc(100% + calc(6 * var(--u))); right: 0; z-index: 2; background: var(--charcoal); border: 1px solid var(--cocoa);
  border-radius: calc(2 * var(--u)); padding: calc(4 * var(--u)) 0; min-width: calc(150 * var(--u)); display: none; }
.nav #nav-user.open .nu-drop { display: block; }
.nav #nav-user .nu-drop a { display: block; padding: calc(10 * var(--u)) calc(14 * var(--u)) calc(9 * var(--u)); color: var(--stone); text-decoration: none; font-size: calc(11.5 * var(--u)); letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; transition: background-color .15s, color .15s; }
.nav #nav-user .nu-drop a:hover { background: var(--cocoa); color: var(--cream); }
.nav .nav-r .nav-links { display: flex; gap: calc(22 * var(--u)); font-family: var(--mono); font-size: calc(12 * var(--u)); letter-spacing: .1em; text-transform: uppercase;
  color: var(--taupe); white-space: nowrap; flex-shrink: 0; }
.nav .nav-r .nav-links a { color: inherit; text-decoration: none; transition: color .15s; }
.nav .nav-r .nav-links a:hover { color: var(--cream); }
.nav .lang-bar { display: flex; gap: 0; border: 1px solid var(--cocoa); border-radius: calc(2 * var(--u)); overflow: hidden; }
.nav .lb { font-family: var(--mono); font-size: calc(11.5 * var(--u)); letter-spacing: .04em; line-height: 1; color: var(--taupe); background: transparent; border: none;
  padding: calc(8 * var(--u)) calc(10 * var(--u)) calc(7 * var(--u)); cursor: pointer; transition: color .15s, background-color .15s; white-space: nowrap; }
.nav .lb:not(:last-child) { border-right: 1px solid var(--cocoa); }
.nav .lb:hover { color: var(--cream); }
.nav .lb.on { color: var(--charcoal); background: var(--amber); }
.nav .lang-sel { display: none; font-family: var(--mono); font-size: calc(12 * var(--u)); line-height: 1.2; color: var(--stone); background-color: var(--charcoal);
  border: 1px solid var(--cocoa); border-radius: calc(2 * var(--u)); padding: calc(7 * var(--u)) calc(26 * var(--u)) calc(6 * var(--u)) calc(10 * var(--u)); cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C0B8AB' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right calc(9 * var(--u)) center; background-size: calc(10 * var(--u)); }
/* #nav-login keeps its inline style (colour via var(--warm1), border via the hover handlers); type and corners follow the site */
.nav #nav-login { --warm1: var(--amber); font-family: var(--mono); font-size: calc(11.5 * var(--u)) !important; font-weight: 400 !important; letter-spacing: .1em;
  text-transform: uppercase; line-height: 1; padding: calc(8 * var(--u)) calc(12 * var(--u)) calc(7 * var(--u)) !important; border-radius: calc(2 * var(--u)) !important; }

/* header over a cream section */
.nav.on-light .nav-r .nav-links { color: var(--cocoa); }
.nav.on-light .nav-r .nav-links a:hover { color: var(--charcoal); }
.nav.on-light .lang-bar, .nav.on-light .lb:not(:last-child), .nav.on-light #nav-user { border-color: var(--taupe); }
.nav.on-light .lb { color: var(--cocoa); }
.nav.on-light .lb:hover { color: var(--charcoal); }
.nav.on-light .lb.on { color: var(--cream); background: var(--charcoal); }
.nav.on-light .lang-sel { color: var(--cocoa); background-color: var(--cream); border-color: var(--taupe);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2353453C' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); }
.nav.on-light #nav-user { color: var(--cocoa); }
.nav.on-light #nav-user .nu-name { color: var(--charcoal); }
.nav.on-light #nav-user .nu-bal { color: var(--cocoa); }
.nav.on-light #nav-user .nu-drop { background: var(--cream); border-color: var(--taupe); }
.nav.on-light #nav-user .nu-drop a { color: var(--cocoa); }
.nav.on-light #nav-user .nu-drop a:hover { background: var(--charcoal); color: var(--cream); }
.nav.on-light #nav-login { --warm1: var(--charcoal); }

/* ---------- hero text ---------- */
/* the site also styles .hero (full-height flex); undo that here */
.slides-app .hero { min-height: 0; display: block; padding: 24px 40px 64px; text-align: center; max-width: 960px; margin: 0 auto; color: var(--text); }
.slides-app .hero h1 { font-family: var(--sans); font-stretch: var(--expanded); font-size: clamp(2.4rem, 6.8vw, 4.6rem); font-weight: 820;
  letter-spacing: -.02em; line-height: 1.05; margin-bottom: 28px; text-wrap: balance; color: var(--text); }
/* "Turn any slide into" (the original slanted line) in pure white, as the user asked */
.slides-app .hero h1 > span[data-t="h1"] { color: #FFFFFF; }
/* "professional design": dark → light → dark, as wide as the words themselves, a different colour at each end:
   olive → fog (a cooler light) → cream (the light middle; white read too bright) → taupe → cocoa.
   No amber, blue, orange or charcoal */
.slides-app .hero h1 .gr { color: var(--cream);
  background: linear-gradient(90deg, var(--olive) 0%, var(--fog) 32%, var(--cream) 55%, var(--taupe) 78%, var(--cocoa) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap; display: block; width: fit-content; margin-inline: auto; line-height: 1.15; padding-bottom: .08em; }
.slides-app .hero p { font-size: .95rem; color: var(--text2); line-height: 1.7; margin: 0 auto; font-weight: 400; }

/* ---------- app ---------- */
.slides-app .app { max-width: 1060px; margin: 40px auto 0; padding: 0 32px; }
.slides-app .steps-bar { display: flex; align-items: center; margin-bottom: 36px; padding: 0; }
.slides-app .sw { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.slides-app .sd { width: 34px; height: 34px; border-radius: 2px; display: flex; align-items: center; justify-content: center; font-family: var(--mono);
  font-size: 13px; font-weight: 400; line-height: 1; background: var(--surface); border: 1px solid var(--border); color: var(--text3);
  transition: background-color .35s, border-color .35s, color .35s; flex-shrink: 0; }
.slides-app .sd.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.slides-app .sd.dn { background: var(--accent2); border-color: var(--accent2); color: var(--bg); }
.slides-app .sc { flex: 1; height: 1px; background: var(--border); margin: 0 12px; }
.slides-app .sl { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); font-weight: 400; transition: color .3s; }
.slides-app .sw.on .sl { color: var(--text); }
.slides-app .pn { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; display: none; animation: slides-fu .35s ease; }
.slides-app .pn.vis { display: block; }
@keyframes slides-fu { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.slides-app .pt { font-family: var(--sans); font-stretch: var(--expanded); font-size: 1.65rem; font-weight: 760; line-height: 1.2; margin-bottom: 8px; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
.slides-app .ps { font-size: 1.1rem; color: var(--text2); margin-bottom: 36px; font-weight: 400; line-height: 1.6; }
.slides-app .cr { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.slides-app .cd { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 30px 52px; cursor: pointer;
  transition: border-color .25s, background-color .25s, transform .25s; position: relative; text-align: center; display: flex; flex-direction: column;
  align-items: center; justify-content: center; }
.slides-app .cd:hover { border-color: var(--text3); transform: translateY(-2px); }
.slides-app .cd.sel { border-color: var(--accent); background: var(--surface); }
.slides-app .cd.sel::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: var(--accent); }
.slides-app .cd.sel::after { content: ''; position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 2px; background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8.5L7 11.5L12 5' stroke='%232D2B2C' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px; }
.slides-app .cd h3 { font-family: var(--sans); font-stretch: var(--expanded); font-size: 1.45rem; font-weight: 760; line-height: 1.2; letter-spacing: -.01em;
  margin-bottom: 8px; margin-top: auto; color: var(--text); }
.slides-app .cd > p { font-size: 1.05rem; color: var(--text2); line-height: 1.45; font-weight: 400; margin-bottom: auto; }
.slides-app .card-svg { width: 45px; height: 45px; margin: 0 auto 18px; display: block; }
/* the site also uses .ph (dashed placeholder); undo that here */
.slides-app .ph { display: grid; grid-template-columns: 1fr auto 1fr; justify-items: normal; align-items: center; margin-bottom: 8px; text-align: inherit;
  border: 0; background: none; color: inherit; }
.slides-app .ph h3 { font-family: var(--sans); font-stretch: var(--expanded); font-size: 1.35rem; font-weight: 760; line-height: 1.2; letter-spacing: -.01em;
  grid-column: 2; text-align: center; color: var(--text); }
.slides-app .ib { grid-column: 3; justify-self: start; margin-left: 8px; width: 18px; height: 18px; border-radius: 2px; border: 1px solid var(--border2);
  background: transparent; color: var(--text3); font-family: var(--mono); font-size: .68rem; font-weight: 700; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; transition: border-color .2s, color .2s; flex-shrink: 0; line-height: 1; }
.slides-app .ib:hover { border-color: var(--accent); color: var(--accent); }
.slides-app #p2 .cd { justify-content: flex-start; padding-top: 40px; }
.slides-app #p2 .cd h3 { margin-top: 0; }
.slides-app #p2 .cd > p { margin-bottom: 0; }
.slides-app .id { max-height: 0; overflow: hidden; transition: max-height .3s ease, opacity .3s; opacity: 0; }
.slides-app .id.op { max-height: 300px; opacity: 1; overflow-y: auto; }
.slides-app .id p { font-size: 1rem; color: var(--text2); line-height: 1.6; padding-top: 12px; font-weight: 400; border-top: 1px solid var(--border); margin-top: 12px; }
/* the original filled badges (PRESENTING / READING), in palette tints */
.slides-app .tg { display: inline-block; font-family: var(--mono); font-size: .85rem; letter-spacing: .04em; line-height: 1.4;
  padding: 4px 12px; border-radius: var(--radius); font-weight: 700; margin-bottom: 16px; }
.slides-app .tg-p { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--warm2); }
.slides-app .tg-r { background: color-mix(in srgb, var(--fog) 16%, transparent); color: var(--fog); }
.slides-app .uz { border: 1px dashed var(--text3); border-radius: var(--radius); padding: 50px 32px; text-align: center; cursor: pointer;
  transition: border-color .3s, background-color .3s; position: relative; }
.slides-app .uz:hover, .slides-app .uz.dg { border-color: var(--accent); }
.slides-app .uz.dg { border-style: solid; background: var(--cocoa); }
.slides-app .uz .ui { font-size: 2rem; line-height: 1; margin-bottom: 12px; color: var(--accent); }
.slides-app .uz h3 { font-family: var(--sans); font-stretch: var(--expanded); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.slides-app .uz p { font-size: 1rem; color: var(--text2); font-weight: 400; }
.slides-app .uz input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slides-app .fp { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); margin-top: 14px; }
.slides-app .fp .fi { width: 38px; height: 38px; border-radius: 2px; background: var(--cocoa); display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.slides-app .fp .fn { font-size: 1.05rem; font-weight: 500; color: var(--text); }
.slides-app .fp .fs { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--text3); }
.slides-app .fp .fx { width: 26px; height: 26px; border-radius: 2px; border: 1px solid transparent; background: transparent; color: var(--text2); cursor: pointer;
  font-family: var(--font); font-size: 1.1rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: color .2s, border-color .2s; margin-left: auto; }
.slides-app .fp .fx:hover { border-color: var(--err); color: var(--err); }
.slides-app .tz textarea { width: 100%; min-height: 220px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  font-family: var(--font); font-size: 1.05rem; color: var(--text); resize: vertical; line-height: 1.7; transition: border-color .2s; }
.slides-app .tz textarea::placeholder { color: var(--olive); opacity: 1; }
.slides-app .tz textarea:focus { outline: none; border-color: var(--accent); }
.slides-app .cc { text-align: right; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--text3); margin-top: 6px; transition: color .2s; }
.slides-app .cc.warn { color: var(--amber); }
.slides-app .cc.over { color: var(--err); }
.slides-app .ar-note { font-size: .78rem; color: var(--text3); margin-top: 10px; text-align: center; font-weight: 400; letter-spacing: .01em; }
/* colour / background pickers (not in the current markup; kept with the rest of the original rules) */
.slides-app .co { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.slides-app .ccd { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; cursor: pointer; transition: border-color .25s, transform .25s; position: relative; }
.slides-app .ccd:hover { transform: translateY(-2px); }
.slides-app .ccd.sel { border-color: var(--accent); }
.slides-app .ccd.sel::after { content: ''; position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; border-radius: 2px; background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8.5L7 11.5L12 5' stroke='%232D2B2C' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 11px; }
.slides-app .sw2 { display: flex; gap: 5px; margin-bottom: 12px; }
.slides-app .sw2 span { width: 26px; height: 26px; border-radius: 2px; }
.slides-app .ccd h3 { font-family: var(--sans); font-stretch: var(--expanded); font-size: 1.1rem; font-weight: 700; margin-bottom: 3px; color: var(--text); }
.slides-app .ccd p { font-size: .95rem; color: var(--text2); font-weight: 400; }
.slides-app .sl2 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); margin-bottom: 14px; font-weight: 400; }
.slides-app .bgr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.slides-app .bb2 { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; color: var(--text2); font-family: var(--font);
  font-size: 1rem; font-weight: 500; cursor: pointer; transition: border-color .2s, color .2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.slides-app .bb2:hover { border-color: var(--text3); }
.slides-app .bb2.sel { border-color: var(--accent); color: var(--text); }
.slides-app .bc { width: 16px; height: 16px; border-radius: 2px; border: 1px solid var(--border); }
.slides-app .br { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
/* buttons — the site also styles .btn (inverting outline); everything it sets is restated here */
.slides-app .btn { display: inline-block; gap: 0; padding: 14px 28px 13px; border: 1px solid transparent; border-radius: var(--radius-sm); font-family: var(--mono);
  font-size: 13px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; color: var(--text); background: transparent;
  text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.slides-app .btn:active { transform: none; }
.slides-app .btn.bp { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.slides-app .btn.bp:hover { background: var(--cream); border-color: var(--cream); color: var(--charcoal); }
.slides-app .btn.bp:disabled { background: transparent; border-color: var(--border); color: var(--olive); cursor: not-allowed; transform: none; }
.slides-app .btn.bgh { background: transparent; color: var(--text2); border-color: var(--text3); }
.slides-app .btn.bgh:hover { background: var(--cream); border-color: var(--cream); color: var(--charcoal); }
.slides-app .btn.bbig { width: 100%; padding: 18px; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.slides-app #gen-download:hover { background: var(--cream) !important; border-color: var(--cream); }
.slides-app .spn { width: 18px; height: 18px; border: 2px solid var(--cocoa); border-top-color: var(--amber); border-radius: 50%; display: none; animation: slides-sp .6s linear infinite; }
@keyframes slides-sp { to { transform: rotate(360deg); } }
.slides-app .dv { display: flex; align-items: center; gap: 16px; margin: 48px 0 32px; color: var(--text3); font-family: var(--mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.slides-app .dv::before, .slides-app .dv::after { content: ''; flex: 1; height: 1px; background: var(--border); }
/* script-generator block (removed from the markup 2026-04-20; rules kept) */
.slides-app .cb { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; margin-bottom: 24px; }
.slides-app .cb-h { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.slides-app .cb-i { width: 32px; height: 32px; border-radius: 2px; background: var(--olive); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .85rem; color: var(--charcoal); font-weight: 700; }
.slides-app .cb-t { font-family: var(--sans); font-stretch: var(--expanded); font-size: 1.2rem; font-weight: 700; color: var(--text); }
.slides-app .cb-s { font-size: 1.05rem; color: var(--text2); margin-bottom: 20px; font-weight: 400; line-height: 1.6; }
.slides-app .cb-ht { font-size: 1.02rem; color: var(--accent); margin-bottom: 22px; font-weight: 400; line-height: 1.6; display: flex; align-items: flex-start; gap: 10px; }
.slides-app .cb-ht::before { content: '✦'; flex-shrink: 0; margin-top: 1px; }
.slides-app .cir { display: flex; gap: 10px; }
.slides-app .cir input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; font-family: var(--font);
  font-size: 1.02rem; color: var(--text); transition: border-color .2s; }
.slides-app .cir input::placeholder { color: var(--olive); opacity: 1; }
.slides-app .cir input:focus { outline: none; border-color: var(--accent); }
.slides-app .cir button { padding: 16px 24px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--border); color: var(--text2);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s; white-space: nowrap; }
.slides-app .cir button:hover { border-color: var(--accent); color: var(--text); }
/* roadmap block (not in the current markup; rules kept) */
.slides-app .rm { max-width: 1060px; margin: 52px auto 0; padding: 0 32px; }
.slides-app .rm-t { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text3); font-weight: 400; margin-bottom: 20px; text-align: center; }
.slides-app .rm-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: stretch; }
.slides-app .rmc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px 20px; text-align: center; display: flex;
  flex-direction: column; align-items: center; }
.slides-app .rmc.cur { border-color: var(--accent); }
.slides-app .rmv { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--text3); margin-bottom: 6px; letter-spacing: .08em; }
.slides-app .rmc.cur .rmv { color: var(--accent); }
.slides-app .rml { font-size: 1rem; font-weight: 600; margin-bottom: 5px; line-height: 1.4; color: var(--text); }
.slides-app .rmd { font-size: .88rem; color: var(--text2); line-height: 1.5; font-weight: 400; }
.slides-app .rmb { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px 3px;
  border-radius: 2px; border: 1px solid var(--accent); color: var(--accent); margin-bottom: 10px; }

/* ---------- confirm / prompt dialog ---------- */
.slides-app .cdlg-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300; background: var(--charcoal);
  background: color-mix(in srgb, var(--charcoal) 88%, transparent); display: none; align-items: center; justify-content: center; }
.slides-app .cdlg-overlay.show { display: flex; }
.slides-app .cdlg { background: var(--surface); border: 1px solid var(--stone); border-radius: var(--radius); padding: 32px; max-width: 400px; width: 90%; text-align: center; }
.slides-app .cdlg-msg { font-size: 1rem; color: var(--text); margin-bottom: 20px; line-height: 1.5; font-weight: 400; }
.slides-app .cdlg-input { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
  font-family: var(--font); font-size: 1rem; color: var(--text); margin-bottom: 20px; transition: border-color .2s; }
.slides-app .cdlg-input:focus { outline: none; border-color: var(--accent); }
.slides-app .cdlg-input::placeholder { color: var(--olive); opacity: 1; }
.slides-app .cdlg-btns { display: flex; gap: 10px; justify-content: center; }
.slides-app .cdlg-btns button { padding: 12px 26px 11px; border-radius: var(--radius-sm); font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: .1em;
  text-transform: uppercase; line-height: 1.2; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; border: none; }
.slides-app .cdlg-ok { background: var(--accent); color: var(--bg); }
.slides-app .cdlg-ok:hover { background: var(--cream); color: var(--charcoal); }
.slides-app .cdlg-cancel { background: transparent; color: var(--text2); border: 1px solid var(--text3) !important; }
.slides-app .cdlg-cancel:hover { border-color: var(--cream) !important; color: var(--text); }

/* ---------- the disclaimer: the tool's closing statement ----------
   It was a thin grey bar fixed to the bottom of the one-page tool, with a rule along its top that crowded the Paddle note.
   The user asked for it to be presented in a special way, so it now closes the tool after the pricing, set like the site's
   own statements: the condition as a mono lead-in, the principle in display type. The words are unchanged in all five
   languages; js/slides.js only wraps them in spans (lead-in, dash, principle, and phrases for Chinese and Japanese). */
.slides-app > .disc { position: relative; z-index: 3; padding: clamp(88px, 12svh, 150px) 24px clamp(40px, 7svh, 96px); text-align: center; }
.slides-app .disc p { margin: 0 auto; max-width: 1180px; }
.slides-app .dis-if { display: block; margin-bottom: 20px; font-family: var(--mono); font-size: .8125rem; line-height: 1.5; letter-spacing: .14em;
  text-transform: uppercase; color: var(--taupe); }
.slides-app .dis-if .dash { color: var(--amber); }
/* two lines on a computer screen (the user's ask); a phone wraps it as it needs */
.slides-app .dis-rule { display: block; max-width: min(36ch, 100%); margin: 0 auto; font-family: var(--sans); font-stretch: var(--expanded); font-weight: 760;
  font-size: clamp(1.375rem, 3.2vw, 2.875rem); line-height: 1.12; letter-spacing: -.01em; color: var(--olive); text-wrap: pretty; text-wrap: balance; }   /* olive, at the user's request */
/* Chinese and Japanese: their own system fonts at a real weight, a measure in em, and line breaks only between phrases */
.slides-app .dis-rule:lang(zh-Hans) { font-family: "ML Sans", "PingFang SC", "Microsoft YaHei", sans-serif; }
.slides-app .dis-rule:lang(zh-Hant) { font-family: "ML Sans", "PingFang TC", "Microsoft JhengHei", sans-serif; }
.slides-app .dis-rule:lang(ja) { font-family: "ML Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
.slides-app .dis-rule:is(:lang(zh), :lang(ja)) { max-width: min(17em, 100%); font-weight: 600; font-size: clamp(1.5rem, 2.7vw, 2.5rem); line-height: 1.3; letter-spacing: .02em; }
.slides-app .dis-rule:lang(ja) { max-width: min(21em, 100%); }
.slides-app .dis-rule:lang(es) { max-width: none; font-size: clamp(1.25rem, 2.6vw, 2.375rem); }   /* the longest sentence: a step smaller to stay on two lines */
.slides-app .dis-if:is(:lang(zh), :lang(ja)) { font-size: .875rem; letter-spacing: .06em; }
.slides-app .dis-rule .nb { display: inline-block; }

/* ---------- footer (the tool's own) ---------- */
.slides-app footer { text-align: center; padding: 48px 24px 72px; font-size: .95rem; color: var(--text3); font-weight: 400; }
.slides-app footer a { color: var(--text3); text-decoration: none; }
.slides-app footer a:hover { color: var(--text2); }
.slides-app footer .email { color: var(--accent); font-size: 1.05rem; display: inline-block; margin-top: 4px; }
.slides-app footer .policies { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }

/* the header's language buttons give way to the compact menu below 760 px (with ML Sans at 125 the Menu button was pushed off a 641-720 px screen) */
@media (max-width: 760px) { .nav .lang-bar { display: none; } .nav .lang-sel { display: block; } .nav .nav-r { gap: calc(10 * var(--u)); } .nav .nav-r .nav-links { gap: calc(14 * var(--u)); font-size: calc(11 * var(--u)); } .nav #nav-login { letter-spacing: .04em; } }
@media (max-width: 860px) { .slides-app .cd h3 { font-size: 1.25rem; } }
@media (max-width: 640px) {
  .slides-app .hero { padding: 100px 20px 40px !important; }
  .slides-app .hero h1 { font-size: clamp(1.4rem, 7vw, 2.8rem); }
  .slides-app .hero p { font-size: .85rem; }
  .slides-app .app, .slides-app .rm { padding: 0 16px; }
  .slides-app .pn, .slides-app .cb { padding: 26px 20px; }
  .slides-app .cr, .slides-app .co, .slides-app .bgr { grid-template-columns: 1fr; }
  .slides-app .cb-ht { display: block; }
  .slides-app .cb-ht::before { margin-right: 6px; }
  .slides-app .rm-g { grid-template-columns: 1fr 1fr; }
  .slides-app .sl { display: none; }
  .slides-app > .disc { padding: 72px 20px 40px; }
  .slides-app .dis-if { font-size: .72rem; letter-spacing: .1em; }
  .slides-app .hero h1 .gr { white-space: normal; }
  .slides-app .desk { display: none; }
}

/* ---------- step-2 usage tip (PPT → PPT only) ---------- */
.slides-app .p2-tip { max-width: 996px; margin: 18px auto 0; padding: 0 4px 0 14px; border-left: 1px solid var(--accent); font-size: .82rem; color: var(--text2);
  font-weight: 400; line-height: 1.55; text-align: left; }

/* ---------- rule above pricing ---------- */
.slides-app .pr-divider { max-width: 1216px; height: 1px; margin: 72px auto 0; background: var(--border); }
@media (max-width: 760px) { .slides-app .pr-divider { margin: 48px 16px 0; max-width: none; } }

/* ---------- pricing ---------- */
.slides-app #pricing { max-width: 1280px; margin: 52px auto 0; padding: 0 32px; }
.slides-app .pr-t { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text3); font-weight: 400; margin-bottom: 8px; text-align: center; }
.slides-app .pr-s { font-size: 1.05rem; color: var(--text2); font-weight: 400; text-align: center; margin-bottom: 32px; line-height: 1.6; }
.slides-app .pr-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.slides-app .prc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px; position: relative;
  transition: transform .25s, border-color .25s; }
.slides-app .prc:hover { transform: translateY(-2px); }
/* Monthly (recommended): amber rule; Heavy (best value): olive rule. Solid lines, no gradient border. */
.slides-app .prc.pop { border: 1px solid var(--accent); background: var(--surface); }
.slides-app .prc.heavy { border-color: var(--accent2); }
.slides-app .prc-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--bg); font-family: var(--mono);
  font-size: 11px; font-weight: 400; line-height: 1.4; padding: 4px 12px 3px; border-radius: 2px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.slides-app .prc.pop .prc-badge { background: var(--accent); }
.slides-app .prc.heavy .prc-badge { background: var(--accent2); color: var(--charcoal); }
.slides-app .prc-name { font-family: var(--sans); font-stretch: var(--expanded); font-size: 1.25rem; font-weight: 760; margin-bottom: 6px; color: var(--text); line-height: 1.2; }
.slides-app .prc-desc { font-size: .84rem; color: var(--text2); font-weight: 400; margin-bottom: 18px; line-height: 1.45; }
.slides-app .prc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin-bottom: 10px; }
.slides-app .prc { container-type: inline-size; }
.slides-app .prc-price .am { font-family: var(--sans); font-stretch: var(--expanded); font-size: 2.6rem; font-size: min(2.6rem, 22cqi - 16px); font-weight: 820; letter-spacing: -.02em; line-height: 1;
  color: var(--text); font-variant-numeric: tabular-nums; }
.slides-app .prc-price .cu { font-size: 1rem; color: var(--text2); font-weight: 400; }
.slides-app .prc-price .pe { font-size: 1rem; color: var(--text2); font-weight: 400; }
.slides-app .prc-credits-line { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.slides-app .prc-credits-line .prc-credits-main { font-size: 1rem; font-weight: 650; color: var(--warm1); line-height: 1.05; }
.slides-app .prc-pages-approx { font-size: .78rem; color: var(--text3); margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.slides-app .ib-inline { margin: 0 2px 0 6px; position: relative; top: 0; }
.slides-app .prc-id { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .3s, margin .3s; }
.slides-app .prc-id.op { max-height: 260px; opacity: 1; margin: 4px 0 4px 22px; }
.slides-app .prc-id p { font-size: .85rem; color: var(--text2); line-height: 1.55; font-weight: 400; padding: 10px 12px; border-left: 1px solid var(--accent2);
  background: none; border-radius: 0; margin: 0; }
.slides-app .prc-feat { list-style: none; padding: 0; margin: 0 0 28px; }
.slides-app .prc-feat li { font-size: .95rem; color: var(--text); font-weight: 400; padding: 7px 0; display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.slides-app .prc-feat li::before { content: '✓'; color: var(--olive); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.slides-app .prc-feat li.prc-feat-credits::before { content: '✓'; color: var(--olive); }
.slides-app .prc-feat li.prc-id-wrap { padding: 0; }
.slides-app .prc-feat li.prc-id-wrap::before { content: none; }
.slides-app .prc-btn { width: 100%; padding: 16px 16px 15px; border-radius: var(--radius-sm); font-family: var(--mono); font-size: 13px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; border: none; text-align: center; }
.slides-app .prc-btn.primary { background: var(--accent); color: var(--bg); border: 1px solid var(--accent); }
.slides-app .prc-btn.primary:hover { background: var(--cream); border-color: var(--cream); color: var(--charcoal); }
.slides-app .prc-btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--text3); }
.slides-app .prc-btn.secondary:hover { background: var(--cream); border-color: var(--cream); color: var(--charcoal); }
.slides-app .prc-add { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.slides-app .prc-add-t { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); font-weight: 400; margin-bottom: 6px; }
.slides-app .prc-add-d { font-size: .92rem; color: var(--text2); font-weight: 400; line-height: 1.5; margin-bottom: 14px; }
.slides-app .prc-add-d strong { color: var(--accent); font-weight: 650; }
.slides-app .prc-addon-btn { width: 100%; padding: 12px 14px 11px; font-size: 12px; }
/* one line across under the plans; above the cards, which trail the scroll by up to 70 px and would slide over it */
.slides-app .pr-note { position: relative; z-index: 1; margin-top: 36px; text-align: center; font-size: .88rem; color: var(--text3); font-weight: 400; line-height: 1.5; }

/* ---------- checkout / account / login modals ---------- */
.slides-app .modal-overlay { position: fixed; inset: 0; z-index: 200; background: var(--charcoal); background: color-mix(in srgb, var(--charcoal) 88%, transparent);
  display: none; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.slides-app .modal-overlay.show { display: flex; }
.slides-app .modal { background: var(--surface); border: 1px solid var(--stone); border-radius: var(--radius); width: 100%; max-width: 460px; max-height: 90vh;
  overflow-y: auto; padding: 40px 36px; position: relative; animation: slides-fu .3s ease; color: var(--text); }
.slides-app .modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 1px solid transparent; background: transparent; color: var(--text3);
  font-family: var(--font); font-size: 1.3rem; line-height: 1; cursor: pointer; border-radius: 2px; display: flex; align-items: center; justify-content: center;
  transition: background-color .2s, color .2s; }
.slides-app .modal-close:hover { background: var(--cocoa); color: var(--text); }
.slides-app .modal-plan { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--cocoa); border-radius: var(--radius-sm); margin-bottom: 28px; }
.slides-app .modal-plan-name { font-family: var(--sans); font-stretch: var(--expanded); font-size: 1.02rem; font-weight: 700; color: var(--text); }
.slides-app .modal-plan-price { font-family: var(--sans); font-stretch: var(--expanded); font-size: 1.1rem; font-weight: 760; color: var(--accent); white-space: nowrap; }
.slides-app .modal-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); font-weight: 400; margin-bottom: 10px; display: block; }
.slides-app .modal-input { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-family: var(--font);
  font-size: 1rem; color: var(--text); transition: border-color .2s; margin-bottom: 20px; }
.slides-app .modal-input::placeholder { color: var(--olive); opacity: 1; }
.slides-app .modal-input:focus { outline: none; border-color: var(--accent); }
.slides-app .pay-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.slides-app .pay-method { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .2s; }
.slides-app .pay-method:hover { border-color: var(--text3); }
.slides-app .pay-method.sel { border-color: var(--accent); }
.slides-app .pay-method-radio { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--text3); flex-shrink: 0; position: relative; transition: border-color .2s; }
.slides-app .pay-method.sel .pay-method-radio { border-color: var(--accent); }
.slides-app .pay-method.sel .pay-method-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.slides-app .pay-method-icon { font-size: 1.3rem; width: 28px; text-align: center; flex-shrink: 0; }
.slides-app .pay-method-name { font-size: 1rem; font-weight: 500; color: var(--text); }
.slides-app .pay-method-desc { font-size: .82rem; color: var(--text3); font-weight: 400; margin-left: auto; }
.slides-app .modal-submit { width: 100%; padding: 16px 16px 15px; border-radius: var(--radius-sm); background: var(--accent); color: var(--bg); font-family: var(--mono);
  font-size: 13px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; border: none; cursor: pointer; transition: background-color .2s, color .2s; }
.slides-app .modal-submit:hover { background: var(--cream); color: var(--charcoal); }
.slides-app .modal-submit:disabled { background: var(--cocoa); color: var(--text3); cursor: not-allowed; }
/* referral */
.slides-app .ref-banner { position: sticky; top: calc(64 * var(--u0) + 8px);   /* under the header (64 scaled px), 8px clear */
  z-index: 15; margin: 0 24px; background: var(--charcoal); border: 1px solid var(--warm1); border-radius: var(--radius-sm);
  padding: 12px 18px; display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--warm1); }
.slides-app .ref-banner .rb-emoji { font-size: 1.15rem; }
.slides-app .ref-banner .rb-msg { flex: 1; line-height: 1.4; }
.slides-app .ref-banner .rb-claim { background: var(--warm1); color: var(--charcoal); padding: 9px 14px 8px; border: none; border-radius: 2px; font-family: var(--mono);
  font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background-color .2s; }
.slides-app .ref-banner .rb-claim:hover { background: var(--cream); }
.slides-app .ref-banner .rb-close { background: none; border: none; color: var(--text2); cursor: pointer; font-family: var(--font); font-size: 1.2rem; padding: 0 4px; line-height: 1; }
.slides-app .ref-banner .rb-close:hover { color: var(--text); }
.slides-app .ref-box { background: transparent; border: 1px solid var(--warm1); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 16px; }
.slides-app .ref-label { font-family: var(--mono); font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.slides-app .ref-link-row { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--border); padding: 10px 10px 10px 14px; border-radius: var(--radius-sm); margin-bottom: 12px; }
.slides-app .ref-link-text { flex: 1; font-family: var(--mono); font-size: .88rem; color: var(--warm1); user-select: all; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slides-app .ref-copy-btn, .slides-app .ref-qr-btn { background: var(--warm1); color: var(--charcoal); border: none; padding: 9px 14px 8px; border-radius: 2px; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; transition: background-color .2s, color .2s; }
.slides-app .ref-copy-btn:hover, .slides-app .ref-qr-btn:hover { background: var(--cream); }
.slides-app .ref-copy-btn.copied { background: var(--hi); color: var(--paper); }
.slides-app .ref-qr-container { text-align: center; padding: 16px; background: var(--paper); border-radius: var(--radius-sm); margin-top: 12px; color: var(--charcoal); }
.slides-app .ref-qr-container canvas, .slides-app .ref-qr-container img { display: inline-block; max-width: none; }
.slides-app .ref-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.slides-app .ref-stat { background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.slides-app .ref-stat-num { font-family: var(--sans); font-stretch: var(--expanded); font-size: 1.6rem; font-weight: 820; line-height: 1.1; color: var(--warm1); font-variant-numeric: tabular-nums; }
.slides-app .ref-stat-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin-top: 6px; }
.slides-app .acct-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.slides-app .acct-row:last-child { border-bottom: none; }
.slides-app .acct-row span:first-child { color: var(--text2); }
.slides-app .acct-row span:last-child { color: var(--fg); font-weight: 500; }
.slides-app .acct-upgrade { background: transparent; border: 1px solid var(--warm1); border-radius: var(--radius-sm); padding: 16px; margin: 16px 0; text-align: center; color: var(--text); }
.slides-app .acct-upgrade-btn { background: var(--warm1); color: var(--charcoal); padding: 11px 22px 10px; border: none; border-radius: 2px; font-family: var(--mono); font-size: 12px;
  font-weight: 400; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; cursor: pointer; margin-top: 10px; transition: background-color .2s; }
.slides-app .acct-upgrade-btn:hover { background: var(--cream); }
.slides-app .modal-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: .82rem; color: var(--text3); font-weight: 400; }
.slides-app .modal-secure::before { content: '🔒'; font-size: .75rem; }
.slides-app .modal-divider { height: 1px; background: var(--border); margin: 24px 0; }
.slides-app .modal-login { text-align: center; font-size: .92rem; color: var(--text2); font-weight: 400; }
.slides-app .modal-login a { color: var(--accent); text-decoration: none; font-weight: 500; cursor: pointer; }
.slides-app .modal-login a:hover { color: var(--accent); text-decoration: underline; }
/* OTP login */
.slides-app .otp-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text2); font-family: var(--font); font-size: .88rem;
  cursor: pointer; padding: 0; margin-bottom: 24px; transition: color .2s; }
.slides-app .otp-back:hover { color: var(--text); }
.slides-app .otp-title { font-family: var(--sans); font-stretch: var(--expanded); font-size: 1.4rem; font-weight: 760; line-height: 1.2; margin-bottom: 8px; letter-spacing: -.01em; color: var(--text); }
.slides-app .otp-sub { font-size: .95rem; color: var(--text2); line-height: 1.55; margin-bottom: 24px; font-weight: 400; }
.slides-app .otp-sub .em { color: var(--warm1); font-weight: 500; }
.slides-app .otp-row { display: flex; gap: 8px; margin-bottom: 18px; justify-content: space-between; }
.slides-app .otp-box { flex: 1; aspect-ratio: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--mono);
  font-size: 1.4rem; font-weight: 700; color: var(--text); text-align: center; transition: border-color .2s; min-width: 0; padding: 0; }
.slides-app .otp-box:focus { outline: none; border-color: var(--accent); }
.slides-app .otp-box.filled { border-color: var(--border2); }
.slides-app .otp-helper { font-size: .85rem; color: var(--text3); font-weight: 400; line-height: 1.6; margin-bottom: 18px; }
.slides-app .otp-helper a { color: var(--accent); text-decoration: none; cursor: pointer; font-weight: 400; }
.slides-app .otp-helper a:hover { color: var(--accent); text-decoration: underline; }
.slides-app .otp-helper a.disabled { color: var(--text3); cursor: not-allowed; text-decoration: none; }
.slides-app .otp-error { font-size: .85rem; color: var(--err); margin-bottom: 14px; display: none; line-height: 1.5; }
.slides-app .otp-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--text3); line-height: 1.6; font-weight: 400; }
@media (max-width: 980px) { .slides-app .pr-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .slides-app .pr-g { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) { .slides-app .prc { padding-inline: 22px; } }

@media (prefers-reduced-motion: reduce) {
  .slides-app .pn, .slides-app .modal { animation: none; }
}

/* Spanish: the slanted first line of the tool's heading is the longest; a step smaller keeps it on one line (#tool gets lang from setLang) */
#tool:lang(es) .hero h1 > span[data-t="h1"] { font-size: .58em !important; }
