/* Arcalox marketing site, shared styles. Dark icy-glass, single theme.
   Linked relatively so the same files serve at the apex root and the
   Codeberg /arcalox/ subpath. */

:root {
  --bg: #0B0E12; --surface: #12161C; --surface2: #171C24;
  --ice: #8FC2D4; --ice-dim: #6FA6B9; --ice-glow: rgba(143,194,212,0.09);
  --ok: #7CC79A; --gap: #838C98; --warn: #CCA766;
  --text: #E6ECF2; --muted: #9BA6B2; --ghost: #838D99;
  --line: #222A33; --glass: rgba(23,28,36,0.55); --glass-edge: rgba(143,194,212,0.14);
  --maxw: 960px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 500px at 50% -8%, var(--ice-glow), transparent 70%);
  background-repeat: no-repeat;
}
a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ice); color: var(--bg); padding: 0.6rem 1rem; border-radius: 0 0 8px 0; z-index: 20; }
.skip:focus { left: 0; }

/* NAV */
nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--line);
  background: rgba(11,14,18,0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.06em; color: var(--text); }
.brand svg { display: block; }
.brand:hover { text-decoration: none; }
.brand .tm { font-size: 0.6em; color: var(--muted); vertical-align: super; font-weight: 400; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { font-size: 0.85rem; color: var(--muted); }
.nav-links a:hover { color: var(--ice); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.nav-cta { color: var(--ice); font-weight: 600; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* HERO (home) */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem 2.5rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.6rem; align-items: center; text-align: center; }
.eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ice-dim); margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 1.3rem; }
.hero h1 em { color: var(--ice); font-style: normal; }
.hero .sub { font-size: 1.14rem; color: var(--muted); max-width: 38rem; margin: 0 auto 1.9rem; text-wrap: pretty; }
.cta-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.cta { display: inline-block; padding: 0.85rem 1.7rem; border-radius: 9px; font-weight: 600; font-size: 0.98rem; }
.cta:hover { text-decoration: none; }
.cta-primary { background: var(--ice); color: #071016; }
.cta-primary:hover { background: #a6d2e0; }
.cta-outline { border: 1px solid var(--glass-edge); color: var(--ice); background: var(--glass); }
.cta-outline:hover { border-color: var(--ice); }
.hero-note { margin-top: 1.1rem; font-size: 0.85rem; color: var(--ghost); }
.hero .tagline { margin-top: 2.4rem; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ghost); text-align: center; }

/* HERO VISUAL: browser-framed app screenshot */
.hero-visual { display: flex; justify-content: center; }
.app-frame { width: 100%; max-width: 340px; border: 1px solid var(--glass-edge); border-radius: 16px; overflow: hidden;
  background: var(--surface); box-shadow: 0 34px 90px -34px rgba(0,0,0,0.85); }
.app-bar { display: flex; align-items: center; gap: 0.42rem; padding: 0.6rem 0.85rem; background: var(--surface2); border-bottom: 1px solid var(--line); }
.app-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.app-bar .url { margin-left: 0.7rem; font-size: 0.72rem; color: var(--muted); }
.app-frame img { display: block; width: 100%; height: auto; }

@media (min-width: 880px) {
  .hero { padding-top: 5.5rem; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; text-align: left; gap: 3rem; }
  .hero .sub { margin-left: 0; margin-right: 0; }
  .hero-grid .cta-row { justify-content: flex-start; }
  .app-frame { max-width: 360px; }
}

/* PAGE HERO (interior pages) */
.page-hero { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.5rem 1rem; text-align: center; }
.page-hero .eyebrow { margin-bottom: 0.9rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 1rem; }
.page-hero h1 em { color: var(--ice); font-style: normal; }
.page-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 42rem; margin: 0 auto; text-wrap: pretty; }

/* STAT STRIP */
.stats { max-width: var(--maxw); margin: 0 auto; padding: 0.5rem 1.5rem 2rem; display: flex; justify-content: center; gap: 2.6rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat .num { font-size: 1.9rem; font-weight: 300; color: var(--ice); font-variant-numeric: tabular-nums; }
.stat .label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }

/* SECTION */
.section { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem; border-top: 1px solid var(--line); }
.section.no-rule { border-top: none; }
.section > .section-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ice-dim); margin-bottom: 0.7rem; }
.section > h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 300; letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 1rem; }
.section > h2 em { color: var(--ice); font-style: normal; }
.section > .lead { color: var(--muted); max-width: 44rem; margin-bottom: 1.8rem; }
.section.center { text-align: center; }
.section.center > .lead { margin-left: auto; margin-right: auto; }
.section.center .cta-row { justify-content: center; }

/* CARDS: even rows on every breakpoint. Card counts here are 4 and 8, so a
   1 / 2 / 4 column ramp always fills each row completely (no lonely last card),
   and the grid is centered in its container. */
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, 1fr); max-width: none; } }
.grid.cols-two { max-width: 760px; }
@media (min-width: 980px) { .grid.cols-two { grid-template-columns: repeat(2, 1fr); } }
/* Three across (for a 9-card 3x3 grid). One column on phones, three from tablet up. */
.grid.cols-three { max-width: none; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid.cols-three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--glass); border: 1px solid var(--line); border-top-color: var(--glass-edge);
  border-radius: 14px; padding: 1.5rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.18s ease, border-color 0.18s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--glass-edge); }
.card .icon { font-size: 1.5rem; margin-bottom: 0.6rem; display: block; }
.card h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.4rem; }
.card p { font-size: 0.9rem; color: var(--muted); }
.card .more { display: block; margin-top: 0.9rem; font-size: 0.82rem; }

/* TRY-NOW BAND */
.trynow { max-width: var(--maxw); margin: 0 auto; padding: 2.75rem 1.5rem; }
.trynow .band { background: linear-gradient(180deg, var(--ice-glow), transparent 70%), var(--surface);
  border: 1px solid var(--glass-edge); border-radius: 18px; padding: 2.4rem 2rem; text-align: center; }
.trynow .section-label { color: var(--ice-dim); }
.trynow h2 { font-weight: 300; font-size: clamp(1.5rem,3.2vw,2rem); margin-bottom: 0.6rem; }
.trynow h2 em { color: var(--ice); font-style: normal; }
.trynow p { color: var(--muted); max-width: 40rem; margin: 0 auto 1.5rem; }
.trynow .cta-row { justify-content: center; }

/* TRUST STRIP */
.trust { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem 0; }
.trust .band { border: 1px solid var(--line); border-radius: 16px; background: var(--glass);
  display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .trust .band { grid-template-columns: repeat(3, 1fr); } }
.trust .pt { padding: 1.4rem 1.6rem; border-top: 1px solid var(--line); }
.trust .pt:first-child { border-top: none; }
@media (min-width: 720px) { .trust .pt { border-top: none; border-left: 1px solid var(--line); }
  .trust .pt:first-child { border-left: none; } }
.trust .pt h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.45rem; }
.trust .pt h3 .tick { color: var(--ok); font-size: 0.85rem; }
.trust .pt p { font-size: 0.86rem; color: var(--muted); }
.trust .pt p a { color: var(--ice); }

/* SIGNATURE / SHIELD */
.signature { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem; }
.shield { border: 1px solid var(--glass-edge); background: linear-gradient(180deg, var(--ice-glow), transparent 60%), var(--surface);
  border-radius: 18px; padding: 2.5rem; }
.shield .section-label { color: var(--ice-dim); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.6rem; }
.shield h2 { font-weight: 300; font-size: clamp(1.6rem,3.4vw,2.1rem); margin: 0.2rem 0 0.8rem; }
.shield h2 em { color: var(--ice); font-style: normal; }
.shield > p { color: var(--muted); max-width: 46rem; margin-bottom: 1.6rem; }
.kit { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 620px) { .kit { grid-template-columns: repeat(2, 1fr); } }
.kit .item { padding: 1rem 1.1rem; border-left: 2px solid var(--ice-dim); background: rgba(143,194,212,0.03); border-radius: 0 8px 8px 0; }
.kit .item h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.kit .item p { font-size: 0.85rem; color: var(--muted); }

/* COMPARISON TABLE: fixed layout so every column aligns */
.swipe-hint { display: none; font-size: 0.78rem; color: var(--ghost); text-align: center; margin-bottom: 0.7rem; }
@media (max-width: 720px) { .swipe-hint { display: block; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
table.compare { border-collapse: collapse; width: 100%; min-width: 720px; table-layout: fixed; font-size: 0.86rem; }
table.compare col.c-label { width: 22%; }
table.compare col.c-data { width: 13%; }
/* Top-align cell content so the main value (Yes/No/Partial) sits at the same
   height in every column, whether or not a cell also carries a sub-note. */
table.compare th, table.compare td { padding: 0.85rem 0.55rem; text-align: center; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
table.compare th:last-child, table.compare td:last-child { border-right: none; }
table.compare thead th { font-weight: 600; color: var(--text); font-size: 0.8rem; letter-spacing: 0.01em; background: var(--surface2); vertical-align: middle; height: 3.2rem; }
table.compare thead th.us { color: var(--ice); }
table.compare tbody th { text-align: left; font-weight: 500; color: var(--muted); }
table.compare td.us { background: rgba(143,194,212,0.05); }
table.compare tbody tr:last-child td, table.compare tbody tr:last-child th { border-bottom: none; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--gap); }
.part { color: var(--warn); }
.cell-note { display: block; font-size: 0.7rem; color: var(--ghost); margin-top: 0.15rem; line-height: 1.3; }
.compare-caption { font-size: 0.78rem; color: var(--ghost); margin-top: 0.9rem; }

/* PLATFORMS */
.platforms { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.platform { background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.6rem; text-align: center; min-width: 150px; }
.platform .icon { font-size: 1.7rem; }
.platform h4 { font-size: 0.9rem; margin: 0.4rem 0 0.2rem; }
.platform .status { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.platform .status.now { color: var(--ok); }
.platform .status.soon { color: var(--warn); }

/* FAQ */
.faq .qa { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.faq .qa:first-of-type { border-top: none; }
.faq .qa h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.35rem; }
.faq .qa p { color: var(--muted); font-size: 0.94rem; }
.faq .qa p a { color: var(--ice); }

/* NEXT-PAGE LINK ROW */
.jump { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem 0; display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.jump a { font-size: 0.85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 1rem; }
.jump a:hover { color: var(--ice); border-color: var(--glass-edge); text-decoration: none; }

/* HONEST-SCOPE NOTE (use-case pages): a deliberately plain, important block */
.honesty { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem 0; }
.honesty .box { border: 1px solid var(--line); border-left: 3px solid var(--warn);
  background: rgba(204,167,102,0.05); border-radius: 0 12px 12px 0; padding: 1.6rem 1.7rem; }
.honesty h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.55rem; }
.honesty p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0.7rem; }
.honesty p:last-child { margin-bottom: 0; }
.honesty a { color: var(--ice); }

/* PROSE INTRO (use-case pages) */
.prose { max-width: 46rem; margin: 0 auto; }
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }

/* LEGAL DOCUMENT PAGES (privacy, terms) */
.doc { max-width: 44rem; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }
.doc .eyebrow { margin-bottom: 0.8rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 300; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.doc .updated { color: var(--ghost); font-size: 0.85rem; margin-bottom: 2.2rem; }
.doc h2 { font-size: 1.25rem; font-weight: 500; margin: 2.2rem 0 0.7rem; }
.doc p, .doc li { color: var(--muted); margin-bottom: 0.9rem; }
.doc ul { padding-left: 1.25rem; } .doc li { margin-bottom: 0.5rem; }
.doc strong { color: var(--text); }
.callout { background: rgba(143,194,212,0.06); border: 1px solid var(--glass-edge); border-radius: 12px; padding: 1.4rem 1.5rem; margin: 1.5rem 0; }
.callout p { color: var(--text); margin: 0; }

/* FOOTER */
footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2.75rem 1.5rem; text-align: center; }
.foot-links { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.2rem; font-size: 0.85rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ice); text-decoration: none; }
footer .legal { font-size: 0.75rem; color: var(--ghost); line-height: 1.9; max-width: 44rem; margin: 0 auto; }
footer .tagline { display: block; margin-top: 1rem; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; color: var(--ice-dim); }

/* MOTION (opt-in, safe: content is visible by default) */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s cubic-bezier(0.2,0.7,0.2,1) both; }
  .rise-1 { animation-delay: 0.06s; } .rise-2 { animation-delay: 0.12s; }
  .rise-3 { animation-delay: 0.18s; } .rise-4 { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
