/*
 * Prakura Browser website. Everything is served from this site: two fonts (SIL Open Font License, in fonts/),
 * Prakura's own wallpapers and screenshots of the real browser. Nothing is loaded from anywhere else.
 *
 * The hero wears one of the browser's wallpaper themes (Aurora, Alpine, Dusk, Dunes) with that theme's own colours,
 * the same five colours the browser uses (src/assets/themes.js). The rest of the page stays quiet.
 */
@font-face { font-family: 'Bricolage Grotesque'; src: url('fonts/bricolage-grotesque.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f2f4f8;
  --card: #ffffff;
  --sunk: #e8ecf3;
  --ink: #141a33;
  --ink-2: #4a5270;
  --ink-3: #646b88;
  --line: rgba(20, 26, 51, 0.12);
  --indigo: #4a52e0;
  --indigo-soft: rgba(74, 82, 224, 0.1);
  --ok: #12704a;
  --ok-soft: rgba(18, 112, 74, 0.1);
  --warn: #8a4d00;
  --warn-soft: rgba(176, 108, 0, 0.12);
  --frame: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 2px 6px rgba(13, 20, 48, 0.12), 0 30px 70px -20px rgba(13, 20, 48, 0.45);
  /* the AI band: the night of the Aurora wallpaper */
  --night: #071923;
  --night-2: #0d2431;
  --night-ink: #e3f3f1;
  --night-ink-2: #a9c6c3;
  --aurora: #35e0a1;
  /* the hero: the Aurora theme until another wallpaper is picked */
  --h-bg: #06161f;
  --h-ink: #e3f3f1;
  --h-accent: #35e0a1;
  --h-on-accent: #06161f;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  color-scheme: light;
}
:root[data-wall="alpine"] { --h-bg: #dce8f4; --h-ink: #1c2d42; --h-accent: #3d6aa3; --h-on-accent: #ffffff; }
:root[data-wall="dusk"] { --h-bg: #2a1b33; --h-ink: #f7e8ef; --h-accent: #ff9d6b; --h-on-accent: #2a1b33; }
:root[data-wall="dunes"] { --h-bg: #f6e3c9; --h-ink: #3d2a17; --h-accent: #a85a22; --h-on-accent: #ffffff; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1020; --card: #141a2e; --sunk: #1a2139; --ink: #e9ecf7; --ink-2: #b4bad2; --ink-3: #8a91ad;
    --line: rgba(233, 236, 247, 0.12); --indigo: #9aa1ff; --indigo-soft: rgba(154, 161, 255, 0.14);
    --ok: #5fd39a; --ok-soft: rgba(95, 211, 154, 0.12); --warn: #f0b95b; --warn-soft: rgba(240, 185, 91, 0.12);
    --frame: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 70px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: 0.18em; }
code, pre { font-family: var(--mono); font-size: 0.875em; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; font-weight: 650; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.025em; max-width: 18ch; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.015em; }
h4 { font-size: 17px; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 780px; }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons and pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 15px/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--sunk); }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn.primary { border: 0; background: var(--indigo); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--indigo) 88%, #000); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0c1020; } .btn.primary:hover { background: color-mix(in srgb, var(--indigo) 88%, #fff); } }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 16.5px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.pill.accent { background: var(--indigo-soft); color: var(--indigo); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); white-space: normal; height: auto; padding: 3px 10px; line-height: 1.4; }

/* ---------- header: sits on the hero in its colours, turns solid once the page scrolls ---------- */
.top { position: sticky; top: 0; z-index: 20; height: 64px; color: var(--h-ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 17px/1 var(--display); letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a:not(.btn) { color: inherit; opacity: 0.86; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; }
.top nav a:not(.btn):hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.top .btn { background: var(--h-accent); color: var(--h-on-accent); border: 0; }
.top .btn:hover { background: color-mix(in srgb, var(--h-accent) 88%, var(--h-ink)); }
.top.solid { background: color-mix(in srgb, var(--paper) 94%, transparent); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.top.solid .btn { background: var(--indigo); color: #fff; }
@media (prefers-color-scheme: dark) { .top.solid .btn { color: #0c1020; } }
@media (max-width: 860px) { .top nav a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; margin-top: -64px; padding-top: calc(64px + clamp(40px, 7vw, 96px)); color: var(--h-ink); isolation: isolate; }
.hero-wall { position: absolute; inset: 0 0 clamp(110px, 17vw, 260px) 0; z-index: -2; background: var(--h-bg) center 35% / cover no-repeat; opacity: 0; transition: opacity 0.45s ease; }
.hero-wall.front { opacity: 1; }
.hero-wall[data-wall="aurora"] { background-image: url('wallpapers/aurora.jpg'); }
.hero-wall[data-wall="alpine"] { background-image: url('wallpapers/alpine.jpg'); }
.hero-wall[data-wall="dusk"] { background-image: url('wallpapers/dusk.jpg'); }
.hero-wall[data-wall="dunes"] { background-image: url('wallpapers/dunes.jpg'); }
@media (max-width: 760px) {
  .hero-wall[data-wall="aurora"] { background-image: url('wallpapers/aurora-small.jpg'); }
  .hero-wall[data-wall="alpine"] { background-image: url('wallpapers/alpine-small.jpg'); }
  .hero-wall[data-wall="dusk"] { background-image: url('wallpapers/dusk-small.jpg'); }
  .hero-wall[data-wall="dunes"] { background-image: url('wallpapers/dunes-small.jpg'); }
}
/* a veil of the theme's own background behind the words, so they stay readable on every wallpaper */
.hero::before { content: ''; position: absolute; inset: 0 0 clamp(110px, 17vw, 260px) 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--h-bg) 78%, transparent) 0%, color-mix(in srgb, var(--h-bg) 45%, transparent) 42%, transparent 72%); }
.hero-in { max-width: 1200px; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 720; max-width: 14ch; text-wrap: balance; }
.hero .lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 36em; opacity: 0.92; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 30px; }
.hero-cta .btn.primary { background: var(--h-accent); color: var(--h-on-accent); }
.hero-cta .btn.primary:hover { background: color-mix(in srgb, var(--h-accent) 86%, var(--h-ink)); }
.hero-note { font-size: 14.5px; opacity: 0.88; max-width: 34em; }

/* the wallpaper picker: four of the browser's own wallpapers */
.walls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 6px; margin-top: 34px; }
.walls-label { font-size: 14px; font-weight: 600; margin-right: 6px; opacity: 0.9; }
.walls button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 5px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--h-ink) 22%, transparent);
  background: color-mix(in srgb, var(--h-bg) 55%, transparent); color: var(--h-ink); font: 500 14px/1 var(--text); cursor: pointer; }
.walls button img { width: 44px; height: 28px; border-radius: 999px; object-fit: cover; }
.walls button:hover { border-color: color-mix(in srgb, var(--h-ink) 50%, transparent); }
.walls button[aria-checked="true"] { border-color: var(--h-accent); box-shadow: 0 0 0 1px var(--h-accent) inset; font-weight: 650; }

.hero-shot-wrap { margin-top: clamp(44px, 6vw, 72px); }
.hero-shot { margin: 0 auto; max-width: 1120px; border-radius: 12px; overflow: hidden; box-shadow: var(--frame); background: var(--h-bg); outline: 1px solid color-mix(in srgb, var(--h-ink) 18%, transparent); outline-offset: -1px; }
.hero-shot img { width: 100%; aspect-ratio: 16 / 10; }
.hero-caption { max-width: 1120px; margin: 12px auto 0; font-size: 13.5px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-wall { transition: none; } }

/* ---------- sections ---------- */
section.block { padding: var(--section) 0; }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.block-head p { font-size: 18px; color: var(--ink-2); max-width: 32em; }
@media (max-width: 860px) { .block-head { grid-template-columns: 1fr; } }

/* features: chapters that alternate sides */
.chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.chapter + .chapter { margin-top: clamp(64px, 9vw, 120px); }
.chapter.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chapter.flip .chapter-text { order: 2; }
.chapter-text p { margin-top: 14px; color: var(--ink-2); font-size: 17px; max-width: 34em; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--indigo); transform: rotate(45deg); }
.frame { margin: 0; border-radius: 10px; overflow: hidden; box-shadow: var(--frame); outline: 1px solid var(--line); outline-offset: -1px; background: var(--card); }
.frame img { width: 100%; aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .chapter, .chapter.flip { grid-template-columns: 1fr; } .chapter.flip .chapter-text { order: 0; } }

/* focus levels: an ordered scale, each level adds to the one before */
.levels { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.levels li { padding: 14px 14px 16px; }
.levels li + li { border-left: 1px solid var(--line); }
.levels b { display: flex; align-items: center; gap: 8px; font: 650 16px/1.2 var(--display); }
.levels b i { display: inline-flex; gap: 3px; }
.levels b i span { width: 6px; height: 14px; border-radius: 2px; background: var(--indigo); }
.levels b i span.off { background: var(--line); }
.levels p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 560px) { .levels { grid-template-columns: 1fr; } .levels li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* the small things: a plain two-column list */
.small-things { margin-top: clamp(72px, 10vw, 128px); padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; }
.small-things dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; }
.small-things dt { font: 650 17px/1.3 var(--display); }
.small-things dd { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
kbd { font: 600 0.82em/1 var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--card); white-space: nowrap; }
@media (max-width: 860px) { .small-things { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .small-things dl { grid-template-columns: 1fr; } }

/* ---------- AI: the night of the Aurora wallpaper ---------- */
.ai { background: var(--night); color: var(--night-ink); }
.ai h2 { color: #fff; }
.ai .block-head p { color: var(--night-ink-2); }
.providers { list-style: none; margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.providers li { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(227, 243, 241, 0.18); background: var(--night-2); font-weight: 600; font-size: 15px; }
.providers li span { color: var(--night-ink-2); font-weight: 500; }
.providers li.gw { border-color: rgba(53, 224, 161, 0.5); color: var(--aurora); }
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.ai-grid h3 { font-size: 19px; color: #fff; }
.ai-grid p { margin-top: 8px; color: var(--night-ink-2); font-size: 15px; }
.ai-grid > div { padding-top: 18px; border-top: 2px solid rgba(53, 224, 161, 0.55); }
.ai .fine { margin-top: 44px; font-size: 13.5px; color: var(--night-ink-2); max-width: 60em; }
.ai a { color: var(--aurora); }
.ai kbd { background: var(--night-2); border-color: rgba(227, 243, 241, 0.3); color: var(--night-ink); }
.ai :focus-visible { outline-color: var(--aurora); }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ai-grid { grid-template-columns: 1fr; } }

/* ---------- privacy ---------- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.facts li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
.facts li b { display: block; color: var(--ink); font: 650 17px/1.3 var(--display); margin-bottom: 4px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ---------- organisations ---------- */
.teams { background: var(--sunk); }
.teams-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.teams-grid > div > p { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 32em; }
.policy-file { margin: 0; border-radius: 12px; background: #0f1530; color: #dfe4ff; box-shadow: var(--frame); overflow: hidden; }
.policy-file figcaption { padding: 12px 16px; font-size: 13px; color: #a8b0d8; border-bottom: 1px solid rgba(223, 228, 255, 0.12); }
.policy-file figcaption code { color: #fff; }
.policy-file pre { margin: 0; padding: 16px; overflow-x: auto; line-height: 1.65; font-size: 13.5px; }
.policy-file .k { color: #9fb1ff; }
.policy-file .s { color: #8fe3bd; }
.policy-file .v { color: #ffb38a; }
@media (max-width: 860px) { .teams-grid { grid-template-columns: 1fr; } }

/* ---------- download ---------- */
.download .block-head { margin-bottom: 36px; }
.rel { color: var(--ink-3); margin: 0 0 18px; font-size: 15px; }
.rel b { color: var(--ink); }
.plat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.plat + .plat { margin-top: 12px; }
.plat h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 21px; }
.plat > p { margin-top: 6px; }
.plat.mine { border-color: color-mix(in srgb, var(--indigo) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--indigo) 55%, transparent) inset; }
.plat.phones { background: transparent; border-style: dashed; }
.arts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.art { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px; border-radius: 10px; background: var(--paper); }
.art-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.art-main > b { font-size: 16px; }
.art .meta { color: var(--ink-3); font-size: 14px; word-break: break-all; }
.sum { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); max-width: 100%; }
.sum code { word-break: break-all; color: var(--ink-2); }
.copy { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: 600 12px/1 var(--text); cursor: pointer; }
.copy:hover { color: var(--ink); }
.how { font-size: 13.5px; color: var(--ink-2); max-width: 46em; }
.art .btn { flex: none; }
@media (max-width: 640px) { .art { flex-direction: column; } .art .btn { width: 100%; } }
.notice h3 { font-size: 22px; }
.notice p { margin-top: 8px; color: var(--ink-2); max-width: 46em; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 12px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.plan .muted { font-size: 14px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- questions ---------- */
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; position: relative; list-style: none; font: 600 17.5px/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 44em; }

/* ---------- who makes it ---------- */
.maker { padding: 0 0 var(--section); }
.maker-card { display: flex; align-items: center; gap: 22px; padding: 26px 28px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.maker-card img { flex: none; border-radius: 14px; }
.maker-card h2 { font-size: 24px; max-width: none; }
.maker-card p { margin-top: 6px; color: var(--ink-2); }
.maker-card .btn { margin-left: auto; flex: none; }
@media (max-width: 680px) { .maker-card { flex-direction: column; align-items: flex-start; } .maker-card .btn { margin-left: 0; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; color: var(--ink-3); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot p { max-width: 46em; }
