/* Elio Networks look, taken from elionetworks.com: bright yellow panels, near-black type,
   sentence-case medium-weight headings, pill buttons, hexagon motif.
   Type: Elio uses Euclid Circular A (licensed). Figtree is a free stand-in; when Elio
   supplies the Euclid files, add them in fonts/ and put "Euclid Circular A" first in --font. */

@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("/fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("/fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --yellow: #ffcc37;
  --yellow-deep: #f4b800;
  --ink: #1b1b1d;
  --grey: #4f4f4f;
  --line: #ebebeb;
  --field: #767676;
  --danger: #b00020;
  --font: "Euclid Circular A", "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(.5rem, 2.8vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; font-size: 1.125rem; line-height: 1.5; }
h1, h2, h3 { font-weight: 500; margin: 0; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.page { padding-inline: var(--gutter); }
.inner { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Header */
.top .inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.top img { display: block; height: 44px; width: auto; }
.top a.help { font-size: .9375rem; font-weight: 500; text-decoration: none; padding: .5rem 1rem; border-radius: 999px; background: var(--yellow); }
.top a.help:hover { background: var(--yellow-deep); }

/* Yellow panels */
.panel-y {
  position: relative; overflow: hidden; background: var(--yellow);
  border-radius: 28px;
  padding: clamp(2.5rem, 7vw, 6rem) 0;
}
.panel-y > .inner { position: relative; z-index: 1; }
.shape { position: absolute; background: var(--yellow-deep); opacity: .45; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.shape.a { width: min(46vw, 34rem); aspect-ratio: 1; right: -8%; top: -12%; transform: rotate(12deg); }
.shape.b { width: min(26vw, 18rem); aspect-ratio: 1; right: 22%; bottom: -22%; transform: rotate(-8deg); opacity: .3; }
@media (max-width: 700px) { .shape.a { right: -30%; top: auto; bottom: -10%; width: 80vw; } .shape.b { display: none; } }

/* Hero */
h1 { font-size: clamp(2.6rem, 8.5vw, 5.5rem); line-height: 1.02; letter-spacing: -.012em; max-width: 14ch; }
.lead { font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.35; max-width: 30ch; margin: 1.5rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
.text-link { font-weight: 600; font-size: .9375rem; letter-spacing: .02em; text-transform: uppercase; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  background: var(--ink); color: #fff; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 1.0625rem; font-weight: 600; padding: .9rem 1.6rem; border-radius: 999px; min-height: 52px;
}
.btn:hover { background: #000; }
.btn::after { content: "\2192"; font-weight: 500; }
.btn:focus-visible { outline-color: var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.btn:disabled { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: .25rem 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }

/* Intro */
.intro { padding: clamp(3rem, 8vw, 6rem) 0 1rem; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 1.25rem; }
.intro p { max-width: 38rem; }

/* Three areas */
.areas { display: grid; gap: 2rem 3rem; padding: 2rem 0 clamp(3rem, 8vw, 6rem); list-style: none; margin-block: 0; }
@media (min-width: 760px) { .areas { grid-template-columns: repeat(3, 1fr); } }
.areas li { margin: 0; }
.hex {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem;
  background: var(--yellow); font-weight: 700; font-size: 1.1rem;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.areas h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: .5rem; }
.areas p { color: var(--grey); font-size: 1rem; margin: 0; }

/* Access */
.access { margin-bottom: var(--gutter); }
.card { background: #fff; border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.5rem); width: min(100%, 36rem); margin-inline: auto; }
.card[hidden] { display: none; }
.card.wide { width: min(100%, 60rem); padding: clamp(1rem, 3vw, 2.5rem); }
.card h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: .75rem; }

label { display: block; font-weight: 600; margin: 1.25rem 0 .4rem; }
input {
  width: 100%; font: inherit; padding: .8rem 1rem; min-height: 52px;
  border: 2px solid var(--field); border-radius: 12px; background: #fff; color: var(--ink);
}
input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
#code { font-size: 1.75rem; letter-spacing: .4em; text-align: center; font-weight: 600; }
form .btn { margin-top: 1.5rem; width: 100%; }
@media (min-width: 480px) { form .btn { width: auto; } }
.error { color: var(--danger); font-weight: 600; margin: .75rem 0 0; }
.aside { color: var(--grey); margin: 1.5rem 0 0; font-size: 1rem; }
.notice { background: #fff4d6; padding: 1rem; border-radius: 12px; }

iframe { width: 100%; height: 900px; border: 0; border-radius: 12px; background: #fff; margin-top: 1rem; }
@media (max-width: 600px) { iframe { height: 1100px; } }

/* Footer */
footer { background: var(--ink); color: #fff; margin-top: var(--gutter); padding: 3rem var(--gutter); font-size: 1rem; }
footer p { margin: 0 0 .5rem; }
footer a { color: #fff; }
footer a:focus-visible { outline-color: var(--yellow); }
footer .fine { color: #b8b8b8; }

/* Privacy page */
.doc { padding: 3rem 0; max-width: 44rem; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); max-width: none; margin-bottom: 1.5rem; }
.doc h2 { font-size: 1.5rem; margin: 2rem 0 .5rem; }
