/* Public landing page. Shared by VaultPass, Tasks and ListGoMail (one copy in each
   app's public/landing/). Fonts are self-hosted: no third-party requests. */
@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
:root {
  --paper: #eef1f6;
  --paper-2: #e3e8f0;
  --surface: #ffffff;
  --ink: #16213a;
  --ink-2: #4a5672;
  --ink-3: #7b86a0;
  --line: #cfd6e3;
  --cobalt: #2f5bff;
  --steel: #11313a;
  --steel-2: #1b4650;
  --brass: #c9a24a;
  --air-red: #d8413a;
  --air-blue: #1f4fb8;
  --accent: var(--cobalt);
  --accent-ink: #ffffff;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;
  --wrap: 1160px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-s); z-index: 20; }
.skip:focus { left: 16px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 650; }
h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 36em; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.08rem; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; color: #fff; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); background: var(--paper-2); }
.top nav a.btn-primary, .top nav a.btn-primary:hover { color: var(--accent-ink); background: var(--accent); }
.top .btn { min-height: 40px; padding: 0 18px; font-size: 0.95rem; margin-left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 0.9rem; color: var(--ink-3); }

/* Sections */
section { padding-block: clamp(64px, 9vw, 112px); }
.flush-top { padding-top: 0; }
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.section-head { display: grid; gap: 14px; max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-2); }

/* Feature rows: a ruled list, two columns, no card chrome */
.rows { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 72px); }
.row { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 4px 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.row svg { grid-row: 1 / 3; align-self: start; width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.row p { color: var(--ink-2); font-size: 0.98rem; }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px 28px 32px 0; border-top: 3px solid var(--accent); display: grid; gap: 10px; align-content: start; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); font: 700 2.4rem/1 var(--display); color: var(--accent); }
.steps p { color: var(--ink-2); font-size: 0.98rem; }

/* Honest limits */
.limits { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.limits ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.limits li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.limits li span:last-child { color: var(--ink-3); white-space: nowrap; }

/* Closing band */
.closer { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.closer p { color: #c3cbe0; margin-top: 12px; max-width: 34em; }
.closer .btn-quiet { color: #fff; box-shadow: inset 0 0 0 1.5px #4b587a; }
.closer .btn-quiet:hover { box-shadow: inset 0 0 0 1.5px #fff; }

footer { padding: 40px 0 56px; color: var(--ink-3); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ============ VaultPass ============ */
.p-vault { --accent: #1d7a72; }
.p-vault .hero { background: var(--steel); color: #e8f0ef; }
.p-vault .hero .lede { color: #a9c3c1; }
.p-vault .hero .btn-primary { background: var(--brass); color: #1b1606; }
.p-vault .hero .btn-quiet { color: #e8f0ef; box-shadow: inset 0 0 0 1.5px #3c6670; }
.p-vault .hero .btn-quiet:hover { box-shadow: inset 0 0 0 1.5px #e8f0ef; }
.p-vault .hero .fine { color: #7fa09f; }
.p-vault .top { background: color-mix(in srgb, var(--steel) 96%, transparent); border-bottom-color: #23505a; }
.p-vault .top .brand, .p-vault .top nav a { color: #cfe0de; }
.p-vault .top nav a:hover { background: var(--steel-2); color: #fff; }
.p-vault .top nav a.btn-primary, .p-vault .btn-brass { background: var(--brass); color: #1b1606; }
.p-vault .brand-mark { background: var(--brass); }
.p-vault .brand-mark svg { color: var(--steel); }
.p-tasks .brand-mark { background: var(--cobalt); }
.p-mail .brand-mark { background: var(--air-blue); }

/* The cipher demo: the hero's one memorable thing */
.cipher { background: #0c252c; border: 1px solid #23505a; border-radius: var(--radius-l); padding: 26px; display: grid; gap: 18px; box-shadow: 0 30px 60px -30px #00000099; }
.cipher label { font-weight: 600; color: #cfe0de; font-size: 0.95rem; }
.cipher input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--radius-m); border: 1.5px solid #2f6470; background: #08191e; color: #fff; font: 500 1.05rem var(--mono); }
.cipher input:focus { outline: none; border-color: var(--brass); }
.wire { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; color: #7fa09f; font-size: 0.86rem; }
.wire::after { content: ""; height: 2px; background: repeating-linear-gradient(90deg, var(--brass) 0 8px, transparent 8px 14px); animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: 14px 0; } }
.server-view { border-radius: var(--radius-m); background: #08191e; border: 1px dashed #2f6470; padding: 16px; display: grid; gap: 8px; }
.server-view b { font: 600 0.86rem var(--body); color: #cfe0de; }
.server-view code { font: 0.84rem/1.55 var(--mono); color: var(--brass); word-break: break-all; min-height: 3.1em; }
.cipher .fine { color: #7fa09f; font-size: 0.84rem; }

.keyline { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 28px; justify-content: start; padding: 22px 0 0; border-top: 1px solid #23505a; }
.keyline div { display: grid; }
.keyline b { font: 700 1.05rem var(--display); color: #fff; }
.keyline span { font-size: 0.84rem; color: #7fa09f; }

/* ============ Tasks ============ */
.p-tasks { --accent: var(--cobalt); }
.day { background: var(--surface); border-radius: var(--radius-l); padding: 24px; box-shadow: 0 1px 0 var(--line), 0 24px 50px -32px #16213a55; display: grid; gap: 18px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.day-head b { font: 650 1.1rem var(--display); }
.timer { font: 700 1.6rem var(--display); color: var(--cobalt); font-variant-numeric: tabular-nums; }
.ribbon { position: relative; height: 46px; border-radius: 10px; background: repeating-linear-gradient(90deg, var(--paper) 0 calc(12.5% - 1px), var(--line) calc(12.5% - 1px) 12.5%); }
.ribbon i { position: absolute; top: 7px; bottom: 7px; border-radius: 6px; }
.ribbon .s1 { left: 4%; width: 14%; background: #7c5cff; }
.ribbon .s2 { left: 21%; width: 9%; background: #0fa37f; }
.ribbon .s3 { left: 33%; width: 21%; background: #f08a24; }
.ribbon .s4 { left: 60%; width: 7%; background: #0fa37f; }
.ribbon .s5 { left: 70%; width: 12%; background: var(--cobalt); }
.card.h-orange { --hue: #f08a24; } .card.h-violet { --hue: #7c5cff; } .card.h-cobalt { --hue: #2f5bff; } .card.h-green { --hue: #0fa37f; }
.ribbon i.now { box-shadow: 0 0 0 3px #2f5bff33; }
.hours { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-col { background: var(--paper); border-radius: var(--radius-m); padding: 10px; display: grid; gap: 8px; align-content: start; }
.mini-col h4 { margin: 0 0 2px; font: 600 0.8rem var(--body); color: var(--ink-2); }
.card { background: var(--surface); border-radius: 8px; padding: 9px 10px; font-size: 0.84rem; line-height: 1.35; box-shadow: 0 1px 2px #16213a1a; border-left: 4px solid var(--hue, var(--line)); }
.card.running { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.card small { display: block; color: var(--ink-3); font-size: 0.74rem; margin-top: 3px; }

.claude-chat { background: var(--surface); border-radius: var(--radius-l); padding: 24px; display: grid; gap: 12px; box-shadow: 0 1px 0 var(--line); }
.bubble { padding: 12px 16px; border-radius: 16px; max-width: 88%; font-size: 0.95rem; }
.bubble.me { background: var(--cobalt); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.bubble.ai { background: var(--paper); border-bottom-left-radius: 4px; }
.bubble.ai code { font: 0.86em var(--mono); background: #fff; padding: 1px 6px; border-radius: 4px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split .section-head { margin-bottom: 0; }

/* ============ ListGoMail ============ */
.p-mail { --accent: var(--air-blue); }
.airmail { height: 8px; background: repeating-linear-gradient(-45deg, var(--air-red) 0 14px, #fff 14px 22px, var(--air-blue) 22px 36px, #fff 36px 44px); }
.inbox { background: var(--surface); border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 24px 50px -32px #16213a55; }
.inbox-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search { flex: 1; height: 38px; border-radius: 999px; background: var(--paper); display: flex; align-items: center; padding: 0 16px; color: var(--ink-3); font-size: 0.9rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--air-blue); color: #fff; display: grid; place-items: center; font: 700 0.85rem var(--display); flex: none; }
.inbox-body { display: grid; grid-template-columns: 150px 1fr; }
.folders { padding: 14px 10px; display: grid; gap: 2px; align-content: start; border-right: 1px solid var(--line); font-size: 0.88rem; }
.folders span { padding: 7px 12px; border-radius: 999px; display: flex; justify-content: space-between; color: var(--ink-2); }
.folders span.on { background: #e4ebfb; color: var(--air-blue); font-weight: 600; }
.compose { margin-bottom: 8px; background: var(--air-blue); color: #fff !important; font-weight: 600; justify-content: center !important; }
.msgs { display: grid; align-content: start; }
.msg { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #e8ecf3; font-size: 0.86rem; align-items: baseline; }
.msg.unread { font-weight: 650; }
.msg .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .subj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.msg .subj em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.msg time { color: var(--ink-3); font-size: 0.78rem; font-weight: 500; }

.signin-mock { background: var(--surface); border-radius: var(--radius-l); padding: 28px; display: grid; gap: 14px; box-shadow: 0 1px 0 var(--line); max-width: 420px; }
.field { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.field div { height: 46px; border: 1.5px solid var(--line); border-radius: var(--radius-m); display: flex; align-items: center; padding: 0 14px; font-weight: 500; color: var(--ink); }
.field div em { font-style: normal; color: var(--ink-3); }

/* Sibling apps strip in the footer */
.siblings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.sibling { display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--radius-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.sibling b { font: 650 1.1rem var(--display); color: var(--ink); }
.sibling span { color: var(--ink-2); font-size: 0.94rem; }
.sibling:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .limits, .closer, .siblings { grid-template-columns: 1fr; }
  .rows { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; }
  .keyline { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .top nav a.hide-s { display: none; }
  .top .btn { padding: 0 14px; margin-left: 2px; }
  .top .wrap { gap: 8px; }
  .top nav a { padding: 8px 9px; font-size: 0.88rem; }
  .inbox-body { grid-template-columns: 1fr; }
  .folders { display: none; }
  .msg { grid-template-columns: 1fr auto; }
  .msg .subj { grid-column: 1 / -1; grid-row: 2; }
  .mini-board { grid-template-columns: 1fr 1fr; }
  .mini-board .mini-col:last-child { display: none; }
  .limits li { flex-direction: column; gap: 2px; }
}
