/* Stylumen — site styles.
   Layout: a punchy hero with a tilted tablet scene, a persona picker, three app cards,
   a dark promise band. Icons are inline SVG with gradient faces and a soft drop shadow.
   Fonts are self-hosted (SIL Open Font License), so the site makes no third-party requests. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f3f4fa;
  --surface: #ffffff;
  --surface-2: #f6f7fc;
  --ink: #151a30;
  --muted: #535a73;
  --rule: #dcdfea;
  --grid: rgba(21, 26, 48, 0.045);
  --lamp: #f2a93b;
  --chrono: #3f57e8;
  --thought: #0f9488;
  --inkstave: #8b5cf6;
  --ledge: #c9cede;
  --shadow: rgba(21, 26, 48, 0.16);
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 36rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1120; --surface: #181c31; --surface-2: #14182b; --ink: #eef0f8; --muted: #a6acc4;
    --rule: #2b3152; --grid: rgba(238, 240, 248, 0.04); --chrono: #8a9cff; --thought: #3fd6c0; --inkstave: #b69cff;
    --ledge: #0a0c18; --shadow: rgba(0, 0, 0, 0.5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1120; --surface: #181c31; --surface-2: #14182b; --ink: #eef0f8; --muted: #a6acc4;
  --rule: #2b3152; --grid: rgba(238, 240, 248, 0.04); --chrono: #8a9cff; --thought: #3fd6c0; --inkstave: #b69cff;
  --ledge: #0a0c18; --shadow: rgba(0, 0, 0, 0.5); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--chrono); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: 74rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font: 800 1.45rem/1 var(--display); letter-spacing: -0.02em; }
.wordmark svg { width: 2.1rem; height: 2.1rem; filter: drop-shadow(0 6px 8px var(--shadow)); }
.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.8rem); flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--chrono); }

/* 3D buttons: a lit face sitting on a ledge, pressed down when clicked */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: 14px; font: 700 1rem/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn-primary { color: #2a1803; background: linear-gradient(180deg, #ffd27a 0%, #f2a93b 100%); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 5px 0 #c27f16, 0 16px 22px -10px rgba(194,127,22,.7); }
.btn-ghost { color: var(--ink); background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 0 0 1px var(--rule), 0 5px 0 var(--ledge), 0 16px 22px -12px var(--shadow); }
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: translateY(4px); }
.btn-primary:active { box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 1px 0 #c27f16, 0 6px 10px -6px rgba(194,127,22,.7); }
.btn-ghost:active { box-shadow: 0 0 0 1px var(--rule), 0 1px 0 var(--ledge), 0 6px 10px -6px var(--shadow); }
.btn-sm { min-height: 2.5rem; padding: 0.55rem 1rem; font-size: 0.95rem; border-radius: 12px; }

/* 3D icons */
.icon3d { filter: drop-shadow(0 12px 14px var(--shadow)); transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.lift:hover .icon3d { transform: translateY(-4px) rotate(-3deg) scale(1.04); filter: drop-shadow(0 20px 20px var(--shadow)); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(1.5rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem 0.35rem 0.4rem; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--rule), 0 6px 14px -8px var(--shadow); font-size: 0.92rem; font-weight: 700; color: var(--muted); }
.pill .dot { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe3a6, #f2a93b 60%, #c27f16); box-shadow: 0 0 12px rgba(242,169,59,.7); }
.hero h1 { font-size: clamp(3rem, 7.6vw, 5.9rem); line-height: 0.95; margin: 1.25rem 0 1.4rem; }
.hero h1 span { display: block; background-clip: text; -webkit-background-clip: text; color: transparent; padding-bottom: 0.06em; }
.hero h1 .w-plan { background-image: linear-gradient(100deg, #6a84ff, #2b3fb8); }
.hero h1 .w-map { background-image: linear-gradient(100deg, #26d6b6, #0e7c8a); }
.hero h1 .w-make { background-image: linear-gradient(100deg, #a97bff, #ff7e8e); }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 33rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.promises { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.6rem 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 700; font-size: 0.95rem; }
.promises li { display: inline-flex; align-items: center; gap: 0.4rem; }
.promises svg { width: 1.15rem; height: 1.15rem; }

/* Hero scene: a tilted tablet showing a day page, with a mind map and a score floating beside it */
.scene { position: relative; aspect-ratio: 1.08; max-width: 40rem; width: 100%; margin-inline: auto; perspective: 1400px; }
.tablet { position: absolute; inset: 7% 9% 9% 7%; border-radius: 30px; padding: 14px; background: linear-gradient(155deg, #343a66, #12152b 70%); transform: rotateX(10deg) rotateY(-15deg) rotateZ(2deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 60px 80px -40px rgba(21,26,48,.7), 0 18px 30px -18px rgba(21,26,48,.6); }
.screen { height: 100%; border-radius: 18px; background: #fbfbfe; padding: 7% 7% 6%; display: grid; grid-template-rows: auto 1fr; gap: 6%; overflow: hidden; color: #151a30; }
.screen-head { display: flex; justify-content: space-between; align-items: baseline; font: 800 clamp(0.85rem, 1.6vw, 1.15rem)/1.1 var(--display); }
.screen-head small { font: 700 0.7em/1 var(--sans); color: #6b7290; }
.day { display: grid; grid-template-columns: 1.35fr 1fr; gap: 6%; font-size: clamp(0.55rem, 1.05vw, 0.78rem); }
.tasks, .appts { display: grid; align-content: start; gap: 0.55em; margin: 0; padding: 0; list-style: none; }
.tasks li { display: flex; align-items: center; gap: 0.6em; padding: 0.5em 0.6em; border-radius: 0.7em; background: #f0f2fa; }
.tasks b { flex: none; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 0.55em; color: #fff; font: 800 0.95em/1 var(--display); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.tasks .a b { background: linear-gradient(180deg, #6a84ff, #2b3fb8); }
.tasks .b b { background: linear-gradient(180deg, #2fe0c0, #0e7c8a); }
.tasks .c b { background: linear-gradient(180deg, #ffd27a, #f09a1a); color: #2a1803; }
.tasks .done span { text-decoration: line-through; color: #8a90a8; }
.appts li { border-left: 3px solid #6a84ff; padding: 0.35em 0 0.35em 0.6em; }
.appts li:nth-child(2) { border-color: #26d6b6; }
.appts li:nth-child(3) { border-color: #ff7e8e; }
.appts time { display: block; font-weight: 700; color: #6b7290; }
.ink-note { width: 100%; height: auto; margin-top: 0.4em; }
.ink-note path { fill: none; stroke: #3f57e8; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: write 2.2s ease .6s forwards; }
@keyframes write { to { stroke-dashoffset: 0; } }
.float { position: absolute; border-radius: 18px; background: #ffffff; padding: 0.7rem; box-shadow: 0 0 0 1px rgba(21,26,48,.06), 0 30px 40px -22px rgba(21,26,48,.55); }
.float.map { left: 0; bottom: 3%; width: 38%; transform: rotate(-5deg); }
.float.score { right: 0; top: 0; width: 40%; transform: rotate(4deg); }
.pencil { position: absolute; right: 6%; bottom: 14%; width: 42%; height: 4.2%; border-radius: 99px; transform: rotate(-38deg); transform-origin: right center; background: linear-gradient(180deg, #ffffff, #e2e5ef 55%, #b9bfd3); box-shadow: 0 18px 24px -10px rgba(21,26,48,.5); }
.pencil::before { content: ""; position: absolute; left: -7%; top: 50%; width: 9%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, #fff6dc 0 18%, rgba(242,169,59,.85) 35%, rgba(242,169,59,0) 70%); filter: blur(1px); animation: glow 2.4s ease-in-out infinite alternate; }
@keyframes glow { from { transform: translateY(-50%) scale(.85); opacity: .8; } to { transform: translateY(-50%) scale(1.25); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ink-note path { animation: none; stroke-dashoffset: 0; } .pencil::before { animation: none; } }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.02; margin-bottom: 0.9rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; max-width: var(--measure); }

/* Cards */
.card { border-radius: 24px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 0 0 1px var(--rule), 0 12px 24px -14px var(--shadow), 0 34px 60px -34px var(--shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.card.lift:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 0 0 1px var(--rule), 0 20px 34px -14px var(--shadow), 0 46px 80px -34px var(--shadow); }

/* Persona picker */
.persona-tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.persona-tab { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3.25rem; padding: 0.45rem 1.1rem 0.45rem 0.5rem; border: 0; border-radius: 16px; cursor: pointer; font: 700 1rem/1.1 var(--sans); color: var(--ink); background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: 0 0 0 1px var(--rule), 0 4px 0 var(--ledge), 0 12px 18px -12px var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.persona-tab svg { width: 2.3rem; height: 2.3rem; }
.persona-tab:hover { transform: translateY(-1px); }
.persona-tab[aria-selected="true"] { transform: translateY(3px); background: linear-gradient(180deg, #2c3157, #151a30); color: #fff; box-shadow: 0 0 0 1px #151a30, 0 1px 0 #0a0c18, 0 8px 14px -8px rgba(21,26,48,.6); }
:root[data-theme="dark"] .persona-tab[aria-selected="true"] { background: linear-gradient(180deg, #ffd27a, #f2a93b); color: #2a1803; box-shadow: 0 1px 0 #c27f16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .persona-tab[aria-selected="true"] { background: linear-gradient(180deg, #ffd27a, #f2a93b); color: #2a1803; box-shadow: 0 1px 0 #c27f16; } }
.persona { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.5rem, 4vw, 3rem); }
.persona-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem 1.5rem; align-items: start; }
.persona-main > svg { width: clamp(5rem, 10vw, 7.5rem); height: auto; }
.persona h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; margin-bottom: 0.7rem; }
.persona p { color: var(--muted); }
.ticks { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ticks svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; }
.fits { display: grid; gap: 0.9rem; align-content: start; }
.fits h4 { margin: 0 0 0.2rem; font: 700 0.95rem/1.2 var(--sans); color: var(--muted); }
.fit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: center; padding: 0.9rem 1rem; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--rule), 0 10px 18px -14px var(--shadow); text-decoration: none; color: var(--ink); }
.fit svg { width: 3.2rem; height: 3.2rem; }
.fit strong { display: block; font: 800 1.15rem/1.1 var(--display); }
.fit span { color: var(--muted); font-size: 0.95rem; }
.fit:hover strong { color: var(--chrono); }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.app { display: flex; flex-direction: column; gap: 0.9rem; padding: 2rem 1.6rem 1.6rem; scroll-margin-top: 1.5rem; }
.app > svg { width: 7.5rem; height: 7.5rem; margin: -0.5rem 0 0.25rem -0.5rem; }
.app h3 { font-size: 2rem; line-height: 1; }
.app .tag { font: 700 1.1rem/1.3 var(--display); }
.app.chrono .tag { color: var(--chrono); }
.app.thought .tag { color: var(--thought); }
.app.inkstave .tag { color: var(--inkstave); }
.app p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.88rem; font-weight: 700; background: var(--bg); box-shadow: 0 0 0 1px var(--rule); }
.app-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-size: 0.92rem; color: var(--muted); font-weight: 700; }
.status { padding: 0.25rem 0.65rem; border-radius: 999px; color: #fff; font-size: 0.82rem; }
.chrono .status { background: linear-gradient(180deg, #6a84ff, #2b3fb8); }
.thought .status { background: linear-gradient(180deg, #26d6b6, #0e7c8a); }
.inkstave .status { background: linear-gradient(180deg, #a97bff, #e0677a); }

/* Promise band */
.band { border-radius: 32px; color: #eef0f8; padding: clamp(2rem, 5vw, 4rem); background: radial-gradient(700px 320px at 88% 0%, rgba(242,169,59,.28), rgba(242,169,59,0) 60%), radial-gradient(600px 300px at 0% 100%, rgba(139,92,246,.3), rgba(139,92,246,0) 60%), linear-gradient(135deg, #252b52 0%, #141830 60%, #0d1022 100%); box-shadow: 0 50px 80px -40px rgba(13,16,34,.8); }
.band h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.02; max-width: 30rem; }
.band .sub { color: #b9bfd8; margin-top: 0.9rem; max-width: 34rem; font-size: 1.1rem; }
.promise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.promise-grid li { padding: 1.4rem; border-radius: 20px; background: rgba(255,255,255,.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255,255,255,.07); }
.promise-grid svg { width: 4.25rem; height: 4.25rem; margin-bottom: 0.9rem; filter: drop-shadow(0 12px 14px rgba(0,0,0,.45)); }
.promise-grid h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.promise-grid p { color: #b9bfd8; font-size: 0.98rem; }

/* The name */
.name { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); }
.name .big { font: 800 clamp(2.4rem, 6vw, 4rem)/1 var(--display); letter-spacing: -0.03em; }
.name .say { display: block; font: 700 1rem/1.4 var(--sans); color: var(--muted); margin-top: 0.4rem; letter-spacing: 0; }
.name p { max-width: var(--measure); }
.name p + p { margin-top: 0.7rem; color: var(--muted); }

/* Plain pages (support, privacy) */
.page { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); max-width: 44rem; }
.page h1 { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; margin-bottom: 1.25rem; }
.page h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
.page p, .page li { max-width: var(--measure); }
.page p + p { margin-top: 1rem; }
.note { border-radius: 14px; padding: 0.9rem 1.1rem; color: var(--muted); margin: 0 0 2rem; background: var(--surface); box-shadow: 0 0 0 1px var(--rule), inset 4px 0 0 var(--lamp); }

/* Footer */
.site-foot { margin-top: clamp(2rem, 6vw, 4rem); border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; color: var(--muted); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; }
.site-foot a { color: var(--muted); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .scene { max-width: 34rem; }
  .apps { grid-template-columns: 1fr; max-width: 40rem; }
  .persona { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .persona-main { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
  .name { grid-template-columns: 1fr; }
  .site-nav .btn { display: none; }
}
