/* Shared look for the Easy Suite app pages (the hub and EasySign keep their own inline styles, same tokens). */
:root {
  --bg: #F5F4EE; --surface: #FAF9F5; --surface-alt: #F0EEE6; --line: #E0DDD2;
  --text: #1F1E1D; --muted: #5B5A55; --subtle: #6F6D66;
  --accent: #C96442; --accent-soft: #F5E6DD; --on-accent: #FFFFFF;
  --link: #AE5433; --link-hover: #8C3D22; --button: #AE5433; --button-hover: #9C4A2B;
  --ok: #4E6B3A; --ok-soft: #E6EDDD; --soon: #8A5A12; --soon-soft: #F6ECD6; --lab: #5B5A55; --lab-soft: #EBE8DF;
  --band-bg: #1F1E1D; --band-text: #F5F4EE; --band-muted: #B6B2A8; --band-line: #3D3B37;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1B19; --surface: #262523; --surface-alt: #2F2E2B; --line: #3D3B37;
    --text: #EEEBE3; --muted: #B6B2A8; --subtle: #8A867D;
    --accent: #D97757; --accent-soft: #3A2A22; --on-accent: #1F1E1D;
    --link: #E08A6C; --link-hover: #F0C4B0; --button: #D97757; --button-hover: #E08A6C;
    --ok: #9CC08A; --ok-soft: #1F2A1B; --soon: #D9B36A; --soon-soft: #332A18; --lab: #B6B2A8; --lab-soft: #2F2E2B;
    --band-bg: #F5F4EE; --band-text: #1F1E1D; --band-muted: #5B5A55; --band-line: #E0DDD2;
  }
}
/* Each app page in its own colour (owner's choice 2026-10-06; same tone as clay, only the hue differs).
   The hub stays clay. Set by <html data-app="..."> on the app pages; these come after the :root blocks so they win. */
html[data-app="easysign"] { --accent: #0092BD; --accent-soft: #DEEBF6; --link: #057396; --link-hover: #00617F; --button: #057DA3; --button-hover: #066F92; }
html[data-app="easypdf"] { --accent: #CA5E6A; --accent-soft: #F7E5E1; --link: #A84B54; --link-hover: #8D3843; --button: #AF4E58; --button-hover: #9D454D; }
html[data-app="easyclip"] { --accent: #009B85; --accent-soft: #DBEEED; --link: #097A6A; --link-hover: #076758; --button: #098473; --button-hover: #007667; }
html[data-app="easyfile"] { --accent: #AD7B02; --accent-soft: #EEE9DA; --link: #8D6504; --link-hover: #745101; --button: #936904; --button-hover: #835E01; }
html[data-app="easytouch"] { --accent: #717BD7; --accent-soft: #E9E7F6; --link: #5D64B3; --link-hover: #485097; --button: #6168BA; --button-hover: #575CA7; }
html[data-app="easyguard"] { --accent: #6C942F; --accent-soft: #E2EDE1; --link: #527623; --link-hover: #44640D; --button: #598025; --button-hover: #4E721F; }
html[data-app="easypaint"] { --accent: #BE6097; --accent-soft: #F4E5EC; --link: #974676; --link-hover: #843A66; --button: #A55081; --button-hover: #974676; }
@media (prefers-color-scheme: dark) {
  html[data-app="easysign"] { --accent: #07A5D3; --accent-soft: #20303A; --link: #47B1DC; --link-hover: #ABD6EF; --button: #07A5D3; --button-hover: #47B1DC; }
  html[data-app="easypdf"] { --accent: #DA717C; --accent-soft: #3B2927; --link: #E2858B; --link-hover: #F3C1BE; --button: #DA717C; --button-hover: #E2858B; }
  html[data-app="easyclip"] { --accent: #09AE96; --accent-soft: #1D3330; --link: #3CBBA5; --link-hover: #A5DCD3; --button: #09AE96; --button-hover: #3CBBA5; }
  html[data-app="easyfile"] { --accent: #C08B1F; --accent-soft: #342D1E; --link: #C89B48; --link-hover: #E0CDA5; --button: #C08B1F; --button-hover: #C89B48; }
  html[data-app="easytouch"] { --accent: #818DE6; --accent-soft: #2C2C3C; --link: #929CEA; --link-hover: #C9CBF4; --button: #818DE6; --button-hover: #929CEA; }
  html[data-app="easyguard"] { --accent: #7EA547; --accent-soft: #273224; --link: #8CB263; --link-hover: #BFD8B3; --button: #7EA547; --button-hover: #8CB263; }
  html[data-app="easypaint"] { --accent: #CE73A7; --accent-soft: #392831; --link: #D88BB6; --link-hover: #ECC1D7; --button: #CE73A7; --button-hover: #D88BB6; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.8vw, 4.3rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.22rem; margin-bottom: 0.35rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); font-size: 0.9rem; }
.center { text-align: center; }
.kicker { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); margin-bottom: 12px; }
kbd { font-family: Consolas, "Cascadia Mono", monospace; font-size: .85em; background: var(--surface-alt); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--text); white-space: nowrap; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 30; }
header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); transition: transform .45s var(--ease); }
header.away { transform: translateY(-100%); }
header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.suite-link { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.suite-link img { width: 24px; height: 24px; }
.suite-link:hover { color: var(--text); }
header .crumb { color: var(--line); margin: 0 -8px; font-size: 1.3rem; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: Georgia, serif; font-size: 1.35rem; }
.brand img { width: 32px; height: 32px; }
nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--text); }
@media (max-width: 760px) { nav a:not(.keep) { display: none; } }
@media (max-width: 560px) { .suite-link span { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--button); color: var(--on-accent); }
.btn-primary:hover { background: var(--button-hover); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-alt); color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-big { padding: 16px 30px; font-size: 1.05rem; border-radius: 14px; }
.btn-small { padding: 9px 16px; font-size: .95rem; border-radius: 10px; }
nav .btn { color: var(--text); }
nav .btn-primary, nav .btn-primary:hover { color: var(--on-accent); }

section { padding: 80px 0; }
.band-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.soon { background: var(--soon-soft); color: var(--soon); }
.chip.lab { background: var(--lab-soft); color: var(--lab); }

/* hero */
.hero { padding: 80px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
.hero h1 .w { display: inline-block; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.28rem); color: var(--muted); max-width: 620px; margin: 22px 0 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .meta { margin-top: 16px; }
.hero .chip { margin-bottom: 18px; }
.flourish { display: block; width: min(360px, 80%); height: auto; margin: 12px 0 0; overflow: visible; }
.flourish path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* hero art: the app icon with a few of its keys floating around it */
.art { position: relative; width: min(360px, 82vw); aspect-ratio: 1; margin: 0 auto; }
.art .ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed var(--line); }
.art .ring.two { inset: 24%; }
.art .icon-big { position: absolute; left: 50%; top: 50%; width: 38%; transform: translate(-50%, -50%); filter: none; }
.art .float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--text); white-space: nowrap;
}
.art .float svg { width: 16px; height: 16px; color: var(--accent); }
.art .f1 { left: -2%; top: 14%; }
.art .f2 { right: -4%; top: 34%; }
.art .f3 { left: 6%; bottom: 12%; }
.art .f4 { right: 4%; bottom: 4%; }
html.motion .art .icon-big { animation: pop 1s var(--ease) .3s both, hover 7s ease-in-out 1.4s infinite; }
html.motion .art .float { opacity: 0; animation: rise .9s var(--ease) both, drift 8s ease-in-out infinite; animation-delay: calc(.6s + var(--i) * .15s), calc(1.6s + var(--i) * -1.7s); }
html.motion .art .ring { animation: spin 60s linear infinite; }
html.motion .art .ring.two { animation-duration: 40s; animation-direction: reverse; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-8deg); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes hover { 50% { transform: translate(-50%, calc(-50% - 8px)); } }
@keyframes drift { 50% { translate: 0 -6px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { .art .float { font-size: .8rem; padding: 6px 10px; } }

/* statement */
.scene { position: relative; }
.scene .stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
html.motion .scene.statement-scene { height: 200vh; }
html:not(.motion) .scene .stage { position: static; height: auto; padding: 72px 0; overflow: visible; }
.statement { font-family: Georgia, serif; font-size: clamp(1.8rem, 4.4vw, 3.4rem); line-height: 1.22; max-width: 980px; margin: 0 auto; text-align: center; }
.statement .w { transition: opacity .35s, color .35s; }
html.motion .statement .w { opacity: .16; }
html.motion .statement .w.on { opacity: 1; }
.statement .w.hot { color: var(--link); }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 30px; perspective: 1400px; }
@media (max-width: 700px) { .features { overflow-x: clip; overflow-clip-margin: 10px; } } /* the flip reveal tilts tall cards past the screen edge */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; transition: border-color .25s; transform-style: preserve-3d; }
.card:hover { border-color: var(--accent); }
.band-alt .card { background: var(--bg); }
.card.wide { grid-column: 1 / -1; }
.icon { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }
.card p:last-child { margin-bottom: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; margin-top: 30px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 22px 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.step .num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: Georgia, serif; margin-bottom: 14px; }

/* keys */
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 10px 28px; margin-top: 24px; }
.key { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.key kbd { flex: 0 0 auto; }

/* privacy band */
.band-dark { background: var(--band-bg); color: var(--band-text); }
.band-dark .muted { color: var(--band-muted); }
.privacy { max-width: 820px; margin: 0 auto; text-align: center; }
.lock { width: 64px; height: 64px; margin: 0 auto 18px; display: block; color: var(--accent); }
.lock path, .lock rect { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
ul.promises { list-style: none; padding: 0; margin: 26px auto 0; display: grid; gap: 12px; text-align: left; max-width: 680px; }
ul.promises li { position: relative; padding: 14px 18px 14px 50px; border: 1px solid var(--band-line); border-radius: 12px; }
ul.promises li svg { position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; color: var(--accent); }

/* coming soon */
.soon-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
@media (max-width: 760px) { .soon-box { grid-template-columns: minmax(0, 1fr); } }
.soon-box .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* other apps strip */
.others { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.other { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s; }
.other:hover { border-color: var(--accent); color: var(--text); }
.other img { width: 32px; height: 32px; }

footer { padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); }
.motion-switch { font: inherit; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.motion-switch:hover { color: var(--text); border-color: var(--accent); }

/* entrance effects */
html.motion .hero h1 .w { opacity: 0; transform: translateY(0.5em) rotate(2deg); filter: blur(8px); animation: word 1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
html.motion .hero .lead, html.motion .hero .actions, html.motion .hero .meta, html.motion .hero .chip { opacity: 0; animation: rise 1s var(--ease) forwards; }
html.motion .hero .lead { animation-delay: .55s; }
html.motion .hero .actions { animation-delay: .7s; }
html.motion .hero .meta { animation-delay: .85s; }
html.motion .flourish path { stroke-dasharray: var(--len, 900); stroke-dashoffset: var(--len, 900); animation: draw 1.8s cubic-bezier(.45,.05,.25,1) .45s forwards; }
@keyframes word { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
html.motion .reveal { opacity: 0; transform: translateY(40px); }
html.motion .reveal.flip { transform: translateY(70px) rotateX(-30deg); transform-origin: 50% 100%; }
html.motion .reveal.in { opacity: 1; transform: none; }
html.calm .reveal { opacity: 0; transition: opacity .8s ease; transition-delay: var(--delay, 0s); }
html.calm .reveal.in { opacity: 1; }
html.calm .hero h1, html.calm .hero .lead, html.calm .hero .actions, html.calm .hero .meta, html.calm .flourish, html.calm .art { opacity: 0; animation: fade .9s ease forwards; }
html.calm .hero .lead { animation-delay: .15s; }
html.calm .hero .actions, html.calm .flourish, html.calm .art { animation-delay: .3s; }
@keyframes fade { to { opacity: 1; } }
@media print { .reveal, .hero *, .art * { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; } }

/* Easter egg breadcrumbs (the eggs themselves live in eggs-<page>.js). */
footer .fine { flex-basis: 100%; margin: 0; font-size: .72rem; color: var(--subtle); opacity: .8; }
.blank-line { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.blank { flex: 1; width: 0; min-width: 0; border: 0; border-bottom: 1.5px dotted var(--accent); border-radius: 0; background: transparent; padding: 0 4px 2px; color: var(--text); font: 1.2rem/1.2 "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive; outline: none; cursor: text; }
.blank:focus { border-bottom-style: solid; }
.never::after { content: " (2)"; color: var(--subtle); opacity: 0; transition: opacity .3s; }
@media (hover: hover) { .never:hover::after { opacity: .6; } }
/* Download section and developer note (apps that are available) */
.download { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .download { grid-template-columns: minmax(0, 1fr); } }
ol.install { padding-left: 1.2rem; margin: 0; }
ol.install li { margin-bottom: 10px; }
dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 18px 0 0; font-size: .95rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.note { max-width: 760px; margin: 0 auto; }
.note h2.center { text-align: center; }
.note blockquote { margin: 18px 0 0; padding: 26px 30px; background: #FFFFFF; color: #1F1E1D; border: 1px solid var(--line); border-radius: 14px; font-family: Georgia, serif; font-size: 1.18rem; }
.note blockquote p { margin: 0; }
.note .by { margin-top: 14px; color: #5B5A55; font-family: "Segoe UI", system-ui, sans-serif; font-size: .95rem; }

/* See it work: the real app in a short video, and pictures of its windows */
.watch { margin-top: 30px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #1F1E1D; }
.watch video { display: block; width: 100%; height: auto; background: #1F1E1D; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; margin-top: 22px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.shots figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }
