/* CornerDesk — cornerdesk.ai (page I)
   Every shape comes from the CornerDesk logo: the navy tile, the sky-blue
   tile offset behind it, and the quarter-circle light. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/plex-sans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --navy-line: #334155;
  --sky: #31a6da;
  --pale: #8fd3f0;
  --ground: #f5f7f9;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #47505c;
  --on-navy: #f1f5f9;
  --on-navy-dim: #9fc3d8;
  --on-navy-soft: #c5d3e0;
  --rule: #dbe0e6;
  --rule-2: #c3cad3;
  --accent: #176182;
  --ai: #5b4a8b;
  --ai-bg: #f6f4fb;
  --ai-ink: #2f2548;
  --positive: #1b6b4c;
  --error-on-navy: #fbe9eb;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --offset: clamp(14px, 2vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--ground); color: var(--ink); line-height: 1.5; }
svg { display: block; flex: 0 0 auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
a { color: var(--accent); }
a:hover { color: #1c749c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.on-navy :focus-visible { outline-color: var(--pale); }
[hidden] { display: none !important; }
.bal { text-wrap: balance; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 600; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }

/* Header */
.site-header .wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 26px; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--sky); }
@media (max-width: 600px) { .status { display: none; } .brand { font-size: 23px; } }

/* The offset tile (from the logo) */
.tile { position: relative; padding: 0 var(--offset) var(--offset) 0; }
.tile::before { content: ""; position: absolute; top: var(--offset); left: var(--offset); right: 0; bottom: 0; background: var(--sky); border-radius: 32px; }
.tile-face { position: relative; background: var(--navy); color: var(--on-navy); border-radius: 32px; overflow: hidden; }
.quarter { position: absolute; top: 0; right: 0; background: var(--pale); border-bottom-left-radius: 100%; pointer-events: none; }

/* Hero */
.hero .wrap { padding-top: 16px; padding-bottom: 112px; }
@media (max-width: 600px) { .hero .wrap { padding-bottom: 72px; } }
.hero .tile-face { padding: clamp(28px, 4.4vw, 64px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
@media (max-width: 600px) { .hero .tile-face { padding: 28px 22px; } }
.hero .quarter { width: clamp(120px, 16vw, 220px); height: clamp(120px, 16vw, 220px); opacity: 0.14; }
.hero-copy { position: relative; flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-name, .hero h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
.hero-name { color: var(--pale); }
.promise { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; font-weight: 600; max-width: 560px; }
.hero-sub { font-size: 17px; line-height: 1.6; color: var(--on-navy-dim); max-width: 560px; text-wrap: pretty; }

/* Form */
.signup { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.signup label { font-size: 14px; font-weight: 600; }
.signup-row { display: flex; flex-wrap: wrap; gap: 12px; }
.signup input[type="email"] { flex: 1 1 250px; min-width: 0; font: inherit; font-size: 17px; min-height: 56px; padding: 0 18px; border: 1px solid var(--on-navy-dim); border-radius: 14px; background: var(--navy-2); color: var(--on-navy); }
.signup input[type="email"]::placeholder { color: #8b9bb0; }
.signup input[aria-invalid="true"] { border-color: var(--error-on-navy); }
.signup .help { font-size: 13px; line-height: 1.5; color: var(--on-navy-dim); }
.signup .help a { color: var(--pale); }
.signup .error { font-size: 15px; color: var(--error-on-navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 17px; font-weight: 600; min-height: 56px; padding: 0 26px; border: 0; border-radius: 14px; cursor: pointer; text-decoration: none; }
.btn-pale { background: var(--pale); color: var(--navy); }
.btn-pale:hover { background: #b3e2f6; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; padding: 0 30px; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.thanks { max-width: 560px; background: var(--navy-2); border-radius: 14px; padding: 22px 26px; display: flex; flex-direction: column; gap: 6px; }
.thanks strong { font-size: 19px; font-weight: 600; }
.thanks p { font-size: 15px; line-height: 1.5; color: var(--on-navy-dim); }

/* Story card: one decision, start to finish */
.story { position: relative; flex: 1 1 400px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 22px; overflow: hidden; }
.story-head { padding: 16px 20px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.story-head p { font-size: 13px; font-weight: 600; color: var(--muted); }
.btn-mini { font: inherit; font-size: 13px; font-weight: 600; min-height: 32px; padding: 0 14px; background: var(--white); color: var(--accent); border: 1px solid #6f7a89; border-radius: 10px; cursor: pointer; }
.story-stage { min-height: 300px; padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; background: var(--ground); }
.beat { display: flex; flex-direction: column; gap: 14px; }
.beat.in { animation: cdIn .4s ease-out; }
@keyframes cdIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-label { font-size: 13px; font-weight: 700; color: var(--accent); }
.request { align-self: flex-start; background: var(--white); border: 1px solid var(--rule-2); border-radius: 16px 16px 16px 4px; padding: 18px 20px; font-size: 19px; line-height: 1.45; }
.note { font-size: 15px; color: var(--muted); display: flex; gap: 10px; }
.big { font-size: 23px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.rows { list-style: none; padding: 6px 18px; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; }
.rows li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; display: flex; gap: 12px; }
.rows li:last-child { border-bottom: 0; }
.story-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.story-steps button { font: inherit; font-size: 14px; font-weight: 600; min-height: 48px; border: 0; border-right: 1px solid var(--rule); border-top: 3px solid transparent; background: var(--white); color: var(--muted); cursor: pointer; }
.story-steps button:last-child { border-right: 0; }
.story-steps button[aria-current="step"] { border-top-color: var(--sky); background: #e3f2f9; color: var(--accent); }
.c-data { color: var(--accent); } .c-ai { color: var(--ai); } .c-person { color: var(--positive); }

/* Three authors */
.authors { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.authors li { background: var(--white); border: 1px solid var(--rule); border-radius: 22px; padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.authors li.ai { background: var(--ai-bg); border: 1px dashed var(--ai); color: var(--ai-ink); }
.authors .mark { font-size: 26px; line-height: 1; }
.authors strong { font-size: 21px; font-weight: 700; }
.authors p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.authors li.ai p { color: var(--ai-ink); }

/* One program */
.program { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section .wrap { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 48px; }
@media (max-width: 600px) { .section .wrap { padding-top: 72px; padding-bottom: 72px; } }
.split-head { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-end; }
.split-head .h2 { flex: 1 1 560px; }
.split-head .lede { flex: 1 1 320px; max-width: 420px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.modules { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px 18px; }
.module { position: relative; padding: 0 8px 8px 0; }
.module::before { content: ""; position: absolute; top: 8px; left: 8px; right: 0; bottom: 0; background: var(--pale); border-radius: 16px; }
.module > div { position: relative; background: var(--white); border: 1px solid var(--rule-2); border-radius: 16px; padding: 22px 22px 20px; min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.module strong { font-size: 18px; font-weight: 700; }
.module span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.module.dark::before { background: var(--sky); }
.module.dark > div { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.module.dark span { color: var(--on-navy-dim); }

/* Leaders */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--rule); border-radius: 22px; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.card .quarter { width: 64px; height: 64px; }
.card .role { font-size: 14px; font-weight: 700; color: var(--accent); }
.card h3 { font-size: 21px; font-weight: 700; line-height: 1.28; padding-right: 36px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Why + trust */
.why { background: var(--navy); color: var(--on-navy); }
.why .wrap { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 56px; }
@media (max-width: 600px) { .why .wrap { padding-top: 72px; padding-bottom: 72px; } }
.why figure { display: flex; flex-direction: column; gap: 20px; }
.why figcaption { font-size: 14px; font-weight: 700; color: var(--pale); }
.why blockquote p { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; max-width: 1080px; }
.why blockquote span { color: var(--pale); }
.trust { list-style: none; padding: 28px 0 0; border-top: 1px solid var(--navy-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 32px; font-size: 16px; color: var(--on-navy-soft); }
.trust li { display: flex; gap: 10px; }
.trust li::before { content: "✓"; color: var(--pale); }

/* Close */
.close .wrap { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
@media (max-width: 600px) { .close .wrap { padding-top: 80px; padding-bottom: 80px; } }
.close-lockup { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 28px); }
.close-lockup svg { width: clamp(60px, 8vw, 96px); height: auto; }
.close-word { font-size: clamp(48px, 8vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.close-tag { font-size: 22px; line-height: 1.45; color: var(--muted); max-width: 640px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }

/* Plain pages (privacy, 404) */
.page .wrap { max-width: 800px; padding-bottom: 104px; }
.page .tile-face { background: var(--white); color: var(--ink); border: 1px solid var(--rule); padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 20px; }
.page .tile::before { background: var(--pale); }
.page h1 { font-size: clamp(34px, 4.2vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.page h2 { font-size: 22px; font-weight: 700; margin-top: 12px; }
.page p, .page li { font-size: 17px; line-height: 1.6; color: var(--muted); }
.page ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
