/* Pomoov site. Colours, type and dial geometry come from design/tokens.json. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #2a2521;
  --ink-secondary: #5a514a;
  --face: #fffdf9;
  --tick-minor: #b5a99e;
  --outline: rgba(42, 37, 33, 0.22);
  --track: rgba(42, 37, 33, 0.09);
  --shell: #fbe2ce;
  --disc: #f0803a;
  --display: "Bricolage Grotesque", "Figtree", sans-serif;
  --text: "Figtree", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="lago"] { --shell: #d8e8ec; --disc: #1f6f86; }
[data-theme="helecho"] { --shell: #dfe9d8; --disc: #5b8c4f; }
[data-theme="peonia"] { --shell: #f7dfe4; --disc: #d8628a; }
[data-theme="pizarra"] { --shell: #e5e4e0; --disc: #6c7177; }
[data-theme="algodon"] { --shell: #f6f4ef; --disc: #8e2540; }

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--shell);
  color: var(--ink);
  font-family: var(--text);
  font-size: 100%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--outline) transparent;
  transition: background-color 0.5s var(--ease-out);
}

body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }

::selection { background: var(--ink); color: var(--face); }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2.5px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */

.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.site-nav { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 0.9375rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; border-radius: 22px; }
.site-nav a:hover { background: var(--track); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Hero */

.hero { padding: 24px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.2vw, 5rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; }

.lede { font-size: 1.1875rem; font-weight: 500; color: var(--ink-secondary); max-width: 34ch; margin: 24px 0 0; }

.availability { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pill { display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border-radius: 28px; background: var(--ink); color: var(--face); font-weight: 600; font-size: 1.0625rem; }
.availability small { font-size: 0.9375rem; font-weight: 500; color: var(--ink-secondary); }

/* Dial */

.dial-stage { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.dial { width: 100%; max-width: 480px; height: auto; display: block; }
.dial .face { fill: var(--face); }
.dial .sector { fill: var(--disc); transition: fill 0.5s var(--ease-out); }
.dial .tick-minor { stroke: var(--tick-minor); stroke-width: 2; stroke-linecap: round; }
.dial .tick-major { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.dial .num { font-family: var(--display); font-weight: 700; font-size: 26px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.dial .knob { fill: var(--face); stroke: var(--ink); stroke-width: 3; }
.dial .glyph { fill: var(--ink); }
.dial-button { cursor: pointer; }
.dial-button:focus-visible { outline: none; }
.dial-button:focus-visible .knob { stroke-width: 7; }
.dial-button:hover .knob { fill: #fff; }

.readout { display: flex; align-items: baseline; gap: 14px; }
.time { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 7vw, 4.125rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.phase { font-weight: 600; font-size: 0.9375rem; color: var(--ink-secondary); }

.swatches { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.swatch { width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.swatch span { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--shell), 0 0 0 4px transparent; transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out); }
.swatch:hover span { transform: scale(1.12); }
.swatch[aria-pressed="true"] span { box-shadow: 0 0 0 3px var(--shell), 0 0 0 5.5px var(--ink); }

/* Facts */

.facts { border-top: 1.5px solid var(--outline); padding: 56px 0 72px; }
.facts .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.facts p { margin: 12px 0 0; color: var(--ink-secondary); font-weight: 500; max-width: 36ch; }

/* Documents: legal hub, privacy, terms */

.doc { flex: 1; padding: 32px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.doc .updated { margin: 16px 0 0; color: var(--ink-secondary); font-weight: 500; }
.doc h2 { margin-top: 48px; }
.doc p, .doc li { font-size: 1.0625rem; max-width: 68ch; }
.doc p { margin: 14px 0 0; }
.doc ul { margin: 14px 0 0; padding-left: 1.2em; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--disc); }
.doc strong { font-weight: 700; }

.link-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1.5px solid var(--outline); }
.link-list li { margin: 0; max-width: none; border-bottom: 1.5px solid var(--outline); }
.link-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: center; padding: 22px 4px; text-decoration: none; }
.link-list a:hover { background: var(--track); }
.link-list b { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.link-list span { grid-column: 1; color: var(--ink-secondary); font-weight: 500; }
.link-list svg { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; transition: transform 0.3s var(--ease-out); }
.link-list a:hover svg { transform: translateX(5px); }

/* Footer */

.site-footer { margin-top: auto; border-top: 1.5px solid var(--outline); padding: 20px 0 28px; font-size: 0.9375rem; font-weight: 500; color: var(--ink-secondary); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -10px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); }

@media (max-width: 820px) {
  .hero { padding-top: 8px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .dial-stage { order: -1; }
  .dial { max-width: 340px; }
  .facts .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .site-nav a { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* SVG elements do not get the HTML hidden style. */
.dial [hidden] { display: none; }
