/* Advertia HRMS homepage v2. Owner's references (7 Nov 2026): Deel, Gusto, Mercury, greytHR, factoHR.
   Bold colour panels, real people, real product cards floating over photos, friendly geometric type.
   Three palettes to choose from (data-palette), light and dark (data-theme / system). */

:root {
  --font-head: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1240px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));

  --bg: #ffffff;
  --bg-alt: #f6f4fb;
  --ink: #15121f;
  --ink-2: #57536a;
  --line: #e6e2f0;
  --card: #ffffff;
  --brand: #4a2bd6;
  --brand-deep: #2a1680;
  --brand-ink: #ffffff;
  --brand-soft: #eeeaff;
  --accent: #ffb020;
  --ok: #12a46f;
  --warn: #b45309;
  --warn-soft: #fff3df;
  --hero-from: #3b1fb8;
  --hero-to: #6a3df0;
  --shadow: 0 24px 60px -28px rgba(30, 14, 90, 0.45);
  --shadow-sm: 0 8px 24px -12px rgba(30, 14, 90, 0.25);
  color-scheme: light;
}
[data-palette="coral"] {
  --bg-alt: #fdf4f1; --line: #f1e3dd; --brand: #e5533d; --brand-deep: #9c2a1b; --brand-soft: #fde6e0;
  --hero-from: #e14b36; --hero-to: #f2795c; --accent: #ffd27a;
  --shadow: 0 24px 60px -28px rgba(120, 30, 15, 0.4); --shadow-sm: 0 8px 24px -12px rgba(120, 30, 15, 0.22);
}
[data-palette="teal"] {
  --bg-alt: #f1f8f6; --line: #dcebe6; --brand: #0d7a66; --brand-deep: #064c40; --brand-soft: #dff3ee;
  --hero-from: #075e50; --hero-to: #11977f; --accent: #ffb020;
  --shadow: 0 24px 60px -28px rgba(6, 60, 50, 0.45); --shadow-sm: 0 8px 24px -12px rgba(6, 60, 50, 0.25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0f0d16; --bg-alt: #17141f; --ink: #f1eff7; --ink-2: #b5b0c6; --line: #2a2536; --card: #1a1724; --brand-soft: #241d3d; --warn-soft: #3a2a14; --brand: #9d8bff; --brand-ink: #120e1f; color-scheme: dark; }
  :root:not([data-theme="light"])[data-palette="coral"] { --bg: #140f0e; --bg-alt: #1d1614; --line: #33261f; --card: #1d1715; --brand-soft: #3a1f19; --brand: #f4705a; }
  :root:not([data-theme="light"])[data-palette="teal"] { --bg: #0c1312; --bg-alt: #121c1a; --line: #22322e; --card: #131d1b; --brand-soft: #123029; --brand: #2fb79c; }
}
:root[data-theme="dark"] { --bg: #0f0d16; --bg-alt: #17141f; --ink: #f1eff7; --ink-2: #b5b0c6; --line: #2a2536; --card: #1a1724; --brand-soft: #241d3d; --warn-soft: #3a2a14; --brand: #9d8bff; --brand-ink: #120e1f; color-scheme: dark; }
:root[data-theme="dark"][data-palette="coral"] { --bg: #140f0e; --bg-alt: #1d1614; --line: #33261f; --card: #1d1715; --brand-soft: #3a1f19; --brand: #f4705a; }
:root[data-theme="dark"][data-palette="teal"] { --bg: #0c1312; --bg-alt: #121c1a; --line: #22322e; --card: #131d1b; --brand-soft: #123029; --brand: #2fb79c; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
svg { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--card); padding: 8px 12px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-head); color: inherit; margin: 0 0 0.45em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.08; }
h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
s { opacity: 0.6; text-decoration-thickness: 2px; }

/* buttons, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 700 1rem/1 var(--font-head); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform 150ms, background-color 150ms, border-color 150ms; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-light { background: #ffffff; color: var(--brand-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-line { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font: 700 0.75rem/1.4 var(--font-head); letter-spacing: 0.02em; }
.pill-light { background: rgba(255, 255, 255, 0.18); color: #fff; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.eyebrow { font: 700 0.82rem/1.3 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow-accent { color: var(--brand); }
.eyebrow-light { color: rgba(255, 255, 255, 0.8); }

/* offer bar + header */
.offer-bar { background: var(--brand-deep); color: #fff; font-size: 0.9rem; }
.offer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding-block: 9px; text-align: center; }
.offer-inner a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-underline-offset: 3px; }
.offer-short { display: none; }
@media (max-width: 560px) { .offer-long { display: none; } .offer-short { display: inline; } .offer-inner { flex-wrap: nowrap; gap: 10px; padding-block: 8px; font-size: 0.86rem; white-space: nowrap; } .offer-inner .pill { padding: 2px 8px; } }
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.12rem var(--font-head); }
.logo b { font-weight: 800; color: var(--brand); }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; font-weight: 800; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.link-quiet { text-decoration: none; font-weight: 600; color: var(--ink-2); }

/* hero */
.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.hero-panel { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(32px, 5vw, 64px); color: #fff; background: radial-gradient(120% 90% at 0% 0%, var(--hero-to) 0%, transparent 60%), linear-gradient(160deg, var(--hero-from), var(--brand-deep)); display: flex; flex-direction: column; justify-content: center; min-height: 600px; }
.hero-panel::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 44px solid rgba(255, 255, 255, 0.07); }
.hero-panel .eyebrow { color: rgba(255, 255, 255, 0.78); }
.hero-sub { font-size: 1.12rem; line-height: 1.6; color: rgba(255, 255, 255, 0.86); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.86); }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { color: var(--accent); }
.hero-photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 600px; background: var(--bg-alt); }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.float { position: absolute; background: var(--card); color: var(--ink); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); max-width: 270px; border: 1px solid var(--line); }
.float-head { display: flex; align-items: center; gap: 8px; font: 700 0.86rem var(--font-head); }
.float-head svg { color: var(--brand); }
.float-big { font: 800 1.7rem/1.1 var(--font-head); margin: 6px 0 2px; letter-spacing: -0.02em; }
.float-sub { font-size: 0.82rem; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }
.dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.dot svg { width: 14px; height: 14px; }
.dot-ok { background: color-mix(in srgb, var(--ok) 16%, transparent); }
.dot-ok svg { color: var(--ok); }
.chip { display: inline-block; margin-top: 8px; font-size: 0.74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.float-a { top: 26px; left: 24px; }
.float-b { right: 22px; top: 44%; max-width: 240px; }
.float-c { left: 24px; bottom: 44px; }
.demo-tag { position: absolute; right: 14px; bottom: 12px; font-size: 0.72rem; color: #fff; background: rgba(0, 0, 0, 0.45); padding: 3px 9px; border-radius: 999px; }

/* fact tiles */
.facts { padding: 4px 0 20px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 20px 22px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.tile-ico { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--card); color: var(--brand); box-shadow: var(--shadow-sm); }
.tile-big { font: 800 1.55rem/1.1 var(--font-head); letter-spacing: -0.02em; }
.tile-sub { font-size: 0.86rem; color: var(--ink-2); line-height: 1.4; }

/* sections */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec-tight { padding-top: 0; }
.sec-alt { background: var(--bg-alt); }
.sec-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.sec-sub { font-size: 1.1rem; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; transition: transform 160ms, box-shadow 160ms; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.card-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; }
.card-ico svg { width: 24px; height: 24px; }
.c1 { background: #ede9ff; color: #4a2bd6; } .c2 { background: #fff1d6; color: #b26b00; } .c3 { background: #dff5ec; color: #0d7a66; } .c4 { background: #fde4ef; color: #b4235f; }
.c5 { background: #e2f0ff; color: #1d5fb8; } .c6 { background: #fbe9dd; color: #b24a12; } .c7 { background: #ece9e4; color: #4a4338; } .c8 { background: #e6f7f9; color: #0b7285; }

/* tour */
.tour { border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 52px); background: linear-gradient(150deg, var(--hero-from), var(--brand-deep)); color: #fff; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 36px; align-items: center; }
.tour h2 { color: #fff; }
.tour-tabs { display: flex; flex-direction: column; gap: 8px; margin: 22px 0 18px; }
.tour-tabs button { text-align: left; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: #fff; font: 600 1rem var(--font-head); cursor: pointer; transition: background-color 150ms; }
.tour-tabs button[aria-selected="true"] { background: #fff; color: var(--brand-deep); border-color: #fff; }
.tour-note { color: rgba(255, 255, 255, 0.84); margin: 0; }
.tour-screen { background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); }
.tour-screen img { border-radius: 10px; width: 100%; }
.phone-panel { display: grid; place-items: center; background: var(--bg-alt); border-radius: 10px; padding: 18px; }
.phone-panel img { max-width: 260px; border-radius: 26px; border: 6px solid #15121f; }

/* why switch */
.vs { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs-them, .vs-us { border-radius: var(--radius-sm); padding: 22px 24px; }
.vs-them { background: var(--bg-alt); color: var(--ink-2); }
.vs-us { background: var(--brand-soft); border: 1.5px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.vs-label { display: block; font: 700 0.76rem var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.vs-us .vs-label { color: var(--brand); }
.vs p { margin: 0; }

/* factories split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.2; }
.split-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.float-d { right: 20px; bottom: 20px; }
.checks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.02rem; }
.checks svg { color: var(--brand-ink); background: var(--brand); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 1px; }
.honest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-2); font-size: 0.94rem; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.price-card-hl { background: linear-gradient(160deg, var(--hero-from), var(--brand-deep)); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.pc-flag { position: absolute; top: 18px; right: 18px; }
.pc-band { font: 700 0.95rem var(--font-head); margin: 0 0 14px; }
.pc-price { font: 800 3rem/1 var(--font-head); letter-spacing: -0.03em; margin: 0 0 6px; }
.pc-price s { font-size: 1.4rem; font-weight: 600; vertical-align: middle; }
.pc-unit { color: var(--ink-2); margin: 0 0 14px; font-size: 0.92rem; }
.price-card-hl .pc-unit, .price-card-hl .pc-alt { color: rgba(255, 255, 255, 0.82); }
.pc-alt { font-size: 0.88rem; color: var(--ink-2); margin: 0; }
.bill-row { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: center; background: var(--bg-alt); border-radius: var(--radius); padding: 24px 28px; }
.bill label { display: block; font: 700 0.95rem var(--font-head); margin-bottom: 10px; }
.bill-line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.bill input { width: 140px; min-height: 54px; font: 700 1.4rem var(--font-head); padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-variant-numeric: tabular-nums; }
.bill output { font: 800 1.6rem/1.2 var(--font-head); letter-spacing: -0.02em; }
.bill output s { font-size: 1rem; font-weight: 600; margin-right: 6px; }
.bill-math { color: var(--ink-2); font-size: 0.9rem; margin: 10px 0 0; }
.included { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.included li { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 0.95rem; }
.included svg { color: var(--ok); }
.extras { text-align: center; color: var(--ink-2); font-size: 0.92rem; margin: 18px auto 0; max-width: 900px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border-radius: var(--radius-sm); padding: 26px; border: 1px solid var(--line); }
.steps p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font: 800 1.1rem var(--font-head); margin-bottom: 16px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 700 1.08rem var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; color: var(--brand); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--ink-2); margin: 0 0 20px; }

/* final cta + footer */
.cta-band { background: linear-gradient(150deg, var(--hero-from), var(--brand-deep)); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 44px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.cta-inner img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.foot { background: var(--bg-alt); color: var(--ink); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.foot p { color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.foot h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-fine { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 0.86rem; color: var(--ink-2); }
.switchers { display: flex; gap: 12px; align-items: center; }
.switchers select, .theme-btn { min-height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 14px; font: 500 0.86rem var(--font-body); cursor: pointer; }

/* responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .link-quiet { display: none; }
  .hero-grid, .tour, .split, .faq-grid, .cta-inner, .bill-row { grid-template-columns: 1fr; }
  .hero-panel { min-height: 0; }
  .hero-photo { min-height: 460px; }
  .prices { grid-template-columns: 1fr; }
  .vs-row { grid-template-columns: 1fr; }
  .tour-tabs { flex-direction: row; flex-wrap: wrap; }
  .tour-tabs button { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .top-actions .btn { display: none; }
  .cards, .tiles, .steps { grid-template-columns: 1fr; }
  .hero-photo { min-height: 520px; }
  .float { max-width: calc(100% - 40px); }
  .float-a { top: 16px; left: 16px; }
  .float-b { right: 16px; top: auto; bottom: 150px; }
  .float-c { left: 16px; bottom: 34px; }
  .included { grid-template-columns: 1fr; }
  .pc-price { font-size: 2.5rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .btn:hover, .card:hover { transform: none; } }

/* colour switcher: shown to every visitor (js/site.js) */
body:has(.review-switch:not([hidden])) { padding-bottom: 84px; }
.review-switch { position: fixed; bottom: 20px; right: 20px; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #15121f; color: #fff; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); font: 600 0.85rem var(--font-head); }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.sw[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px #15121f, 0 0 0 4px #fff; }
.sw-violet { background: #4a2bd6; } .sw-coral { background: #e5533d; } .sw-teal { background: #0d7a66; }
.sw-mode { min-height: 30px; padding: 0 12px; white-space: nowrap; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: 600 0.8rem var(--font-head); cursor: pointer; }

/* App chrome on phones and tablets (owner 11 Nov 2026: the phone should feel like an app): a bottom tab
   bar, and a sheet (design/homepage-v2/chrome.html) with the other pages, the colour and light/dark.
   The floating colour switcher is for desktops; on phones the same choice sits in the sheet. */
.icon-btn { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn-on { display: grid; }
.tabbar { display: none; }
.sheet { width: min(560px, 100%); max-width: 100%; max-height: 88dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(10, 8, 20, 0.5); }
.sheet[open] { animation: sheet-up 240ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes sheet-up { from { transform: translateY(32px); opacity: 0; } }
.sheet-in { padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 8px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { font-size: 1.25rem; margin: 0; }
.sheet-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.sheet-tiles a { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 92px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 6%, var(--card)); text-decoration: none; font: 600 0.88rem/1.25 var(--font-head); }
.sheet-tiles svg { width: 22px; height: 22px; color: var(--brand); }
.sheet-tiles a:active, .sheet-tiles a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--brand); }
.appear { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 6%, var(--card)); margin-bottom: 14px; }
.appear-label { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 0.95rem var(--font-head); }
.appear-label svg { color: var(--brand); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 0.88rem var(--font-head); cursor: pointer; }
.swatch i { width: 24px; height: 24px; border-radius: 50%; }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg { display: inline-flex; justify-self: start; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 0.88rem var(--font-head); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.sheet > .sheet-in > .btn { width: 100%; }
@media (min-width: 901px) { .sheet { margin: auto; border-radius: 24px; } .sheet-grab { display: none; } }
@media (max-width: 900px) {
  .icon-btn { display: grid; }
  .top-inner { min-height: 60px; gap: 12px; }
  .top-actions { gap: 10px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px max(4px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 0; border: 0; background: none; color: var(--ink-2); font: 600 0.72rem/1.1 var(--font-head); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar .ti { display: grid; place-items: center; width: 54px; height: 30px; border-radius: 999px; transition: background-color 120ms; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar [aria-current="page"] { color: var(--brand); }
  .tabbar [aria-current="page"] .ti, .tabbar a:active .ti, .tabbar button:active .ti, .tabbar [aria-expanded="true"] .ti { background: var(--brand-soft); color: var(--brand); }
  body, body:has(.review-switch:not([hidden])) { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .review-switch { display: none !important; }
}

/* Cookie banner (owner 12 Nov 2026): Google Analytics and Clarity load only after Accept. Above the phone tab bar. */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 84px; z-index: 70; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); font: 0.9rem/1.45 var(--font-body); }
.cookie-bar p { margin: 0; flex: 1; }
.cookie-bar a { color: var(--brand); }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btns .btn { min-height: 40px; }
@media (max-width: 900px) { .cookie-bar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: stretch; } .cookie-btns .btn { flex: 1; } }
