/* Germany Life OS — design tokens follow the brand sheet: bright module colours,
   soft tinted cards, rounded icon tiles, handwritten taglines. */
:root {
  --ink: #0f1b3d;
  --ink-2: #3b4566;
  --muted: #6b7493;
  --line: #e3e7f2;
  --bg: #f6f8fd;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 27, 61, .05), 0 8px 24px rgba(15, 27, 61, .06);
  --ok: #16a34a;
  --warn: #d97706;
  --alert: #dc2626;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --blue: #2563eb;   --blue-t: #e8f0ff;
  --green: #16a34a;  --green-t: #e7f7ec;
  --violet: #6d28d9; --violet-t: #f1ebff;
  --amber: #f59e0b;  --amber-t: #fff4dc;
  --orange: #ea580c; --orange-t: #ffefe3;
  --teal: #0f8b8d;   --teal-t: #e2f6f4;
  --rose: #e11d48;   --rose-t: #ffe9ee;
  --indigo: #6d5df6; --indigo-t: #eeecff;
  --cyan: #0891b2;   --cyan-t: #e0f6fb;
  --pink: #db2777;   --pink-t: #fde8f3;
  --sky: #0284c7;    --sky-t: #e3f3fd;
  --lime: #65a30d;   --lime-t: #eef8e0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.hand { font-family: var(--hand); font-size: 26px; color: var(--ink-2); line-height: 1.1; transform: rotate(-3deg); display: inline-block; }

/* ---------- module colour helper ---------- */
.c-blue { --c: var(--blue); --t: var(--blue-t); }
.c-green { --c: var(--green); --t: var(--green-t); }
.c-violet { --c: var(--violet); --t: var(--violet-t); }
.c-amber { --c: var(--amber); --t: var(--amber-t); }
.c-orange { --c: var(--orange); --t: var(--orange-t); }
.c-teal { --c: var(--teal); --t: var(--teal-t); }
.c-rose { --c: var(--rose); --t: var(--rose-t); }
.c-indigo { --c: var(--indigo); --t: var(--indigo-t); }
.c-cyan { --c: var(--cyan); --t: var(--cyan-t); }
.c-pink { --c: var(--pink); --t: var(--pink-t); }
.c-sky { --c: var(--sky); --t: var(--sky-t); }
.c-lime { --c: var(--lime); --t: var(--lime-t); }

.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c)); box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 30%, transparent); flex: none; }
.icon-tile.lg { width: 64px; height: 64px; border-radius: 50%; }
.icon-tile.sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-tile svg { width: 55%; height: 55%; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand b { font-size: 17px; font-weight: 800; display: block; line-height: 1.1; }
.brand span { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.topnav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.topnav a { color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.topnav a:hover, .topnav a.on { background: var(--bg); text-decoration: none; color: var(--ink); }
.plan-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--indigo-t); color: var(--indigo); }

/* ---------- app shell ---------- */
.shell { max-width: 1240px; margin: 0 auto; padding: 24px 16px 64px; display: grid; grid-template-columns: 230px 1fr; gap: 28px; }
.side { position: sticky; top: 74px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.side h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.side a:hover { background: #fff; text-decoration: none; }
.side a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.side a .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--t); color: var(--c); }
.side a .dot svg { width: 15px; height: 15px; }
main { min-width: 0; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .side h4 { display: none; }
  .side > div { display: flex; gap: 6px; }
  .side a { white-space: nowrap; background: #fff; }
  .topnav .hide-sm { display: none; }
}

/* ---------- page header ---------- */
.page-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; padding: 22px; border-radius: 24px;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%), linear-gradient(135deg, var(--t), #fff 80%); border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line)); position: relative; overflow: hidden; }
.page-head h1 { color: color-mix(in srgb, var(--c) 55%, var(--ink)); margin: 0; font-size: clamp(26px, 3.4vw, 38px); }
.page-head p { margin: 4px 0 0; color: var(--ink-2); max-width: 640px; }
.page-head .art { margin-left: auto; width: 170px; max-height: 150px; object-fit: cover; border-radius: 16px; }
.page-head .hand { position: absolute; right: 200px; bottom: 10px; font-size: 22px; }
@media (max-width: 700px) { .page-head .art, .page-head .hand { display: none; } }

/* ---------- cards & grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c, var(--blue)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--blue)) 18%, transparent); }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.drop { border: 2px dashed color-mix(in srgb, var(--c, var(--blue)) 40%, var(--line)); border-radius: 16px; padding: 18px; text-align: center; background: var(--t, var(--bg)); cursor: pointer; }
.drop input { display: none; }
.drop.has { border-style: solid; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; border: 0; border-radius: 12px; padding: 11px 18px; cursor: pointer;
  color: #fff; background: var(--c, var(--blue)); box-shadow: 0 4px 12px color-mix(in srgb, var(--c, var(--blue)) 28%, transparent); }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.ghost { background: #fff; color: var(--c, var(--blue)); border: 1.5px solid color-mix(in srgb, var(--c, var(--blue)) 35%, var(--line)); box-shadow: none; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { --c: var(--alert); }

/* ---------- bits ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--t, var(--bg)); color: var(--c, var(--ink-2)); }
.badge.high { background: #fee2e2; color: var(--alert); }
.badge.medium { background: #fef3c7; color: #b45309; }
.badge.low, .badge.info { background: #e0f2fe; color: #0369a1; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.checks li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--c, var(--green)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--blue)) 70%, #fff), var(--c, var(--blue))); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
td.r, th.r { text-align: right; }
.table-wrap { overflow-x: auto; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--amber-t); color: #92400e; font-size: 14px; }
.notice.err { background: #fee2e2; color: #991b1b; }
.notice.ok { background: var(--green-t); color: #166534; }
.empty { text-align: center; color: var(--muted); padding: 28px; }
.prose { white-space: pre-wrap; font-size: 15px; background: var(--bg); border-radius: 12px; padding: 14px; border: 1px solid var(--line); max-height: 520px; overflow: auto; }
.score-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--c, var(--green)) calc(var(--p) * 1%), var(--line) 0); }
.score-ring b { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; color: var(--c, var(--green)); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { font: inherit; font-weight: 600; font-size: 14px; border: 1.5px solid var(--line); background: #fff; padding: 7px 12px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.tabs button.on { border-color: var(--c, var(--blue)); color: var(--c, var(--blue)); background: var(--t, var(--bg)); }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 40px 0 24px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); margin-bottom: 10px; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 520px; }
.hero .art { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; width: 100%; max-width: 380px; justify-self: end; }
.hero .art img { width: 100%; height: 100%; object-fit: cover; }
.mini-modules { display: grid; grid-template-columns: repeat(4, 76px); gap: 14px 16px; margin: 22px 0; }
.mini-modules a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-2); line-height: 1.2; }
.mini-modules a:hover { text-decoration: none; color: var(--ink); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero .art { justify-self: stretch; aspect-ratio: 16/10; } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }
.tile { border-radius: 26px; padding: 24px; display: grid; grid-template-columns: 1fr 40%; gap: 12px; min-height: 300px; color: var(--ink);
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 55%), linear-gradient(140deg, var(--t), #fff 85%); border: 1px solid color-mix(in srgb, var(--c) 16%, var(--line)); transition: transform .15s; }
.tile:hover { transform: translateY(-3px); text-decoration: none; }
.tile h3 { font-size: 26px; font-weight: 800; color: color-mix(in srgb, var(--c) 45%, var(--ink)); margin: 0; }
.tile .lead { color: var(--ink-2); margin: 10px 0; font-weight: 500; }
.tile .art { align-self: center; border-radius: 18px; overflow: hidden; }
.tile .checks { font-size: 14px; }
.tile .hand { margin-top: 8px; font-size: 24px; }
@media (max-width: 520px) { .tile { grid-template-columns: 1fr; } .tile .art { display: none; } }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }
.funnel { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.funnel div { padding: 8px 14px; border-radius: 12px; font-weight: 700; text-align: center; background: var(--t); color: var(--c); }
.funnel span { color: var(--muted); }
.footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- dashboard ---------- */
.journey .item { display: grid; grid-template-columns: 130px 1fr 80px; gap: 12px; align-items: center; padding: 8px 0; }
.journey .item b { font-size: 14px; }
.journey .item span { text-align: right; font-weight: 700; font-size: 14px; }
@media (max-width: 520px) { .journey .item { grid-template-columns: 100px 1fr 60px; } }
.today li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); list-style: none; }
.today { padding: 0; margin: 0; }
.today .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; font-size: 14px; font-weight: 800; }
.today .ok .st { background: var(--ok); }
.today .todo .st { background: #c7cde0; }
.today .warn .st { background: var(--warn); }
.today .alert .st { background: var(--alert); }

/* ---------- checklist ---------- */
.task { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; }
.task + .task { margin-top: 8px; }
.task summary { display: flex; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.task summary::-webkit-details-marker { display: none; }
.task input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--c, var(--teal)); flex: none; }
.task.done .t { text-decoration: line-through; color: var(--muted); }
.task .body { padding: 10px 0 4px 34px; font-size: 14px; }
.task .body ol { margin: 6px 0; padding-left: 18px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 16px; white-space: pre-wrap; font-size: 15px; }
.msg.user { align-self: flex-end; background: var(--indigo); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }

/* ---------- guide prose ---------- */
.article { font-size: 16.5px; }
.article h2 { margin-top: 1.6em; font-size: 20px; }
.article ul { padding-left: 20px; }
.article li { margin: 4px 0; }

/* ---------- print (application packages) ---------- */
@media print { .topbar, .side, .no-print { display: none !important; } .shell { display: block; } }
.topnav a.btn, .topnav a.btn:hover { color: #fff; background: var(--blue); }

/* ---------- premium ---------- */
.badge.pro { background: linear-gradient(135deg, #8b7bff, var(--indigo)); color: #fff; font-size: 10.5px; padding: 2px 8px; letter-spacing: .02em; }
.badge.pro.soft { background: var(--indigo-t); color: var(--indigo); }
.side a .badge.pro { margin-left: auto; }
.upsell { border: 1.5px dashed color-mix(in srgb, var(--indigo) 45%, var(--line)); background: linear-gradient(135deg, var(--indigo-t), #fff 70%); }

/* Lock marks for AI (Gemini) features that are Premium-only */
svg.i.lock { width: 11px; height: 11px; stroke-width: 2.4; }
.badge.pro svg.i.lock { width: 11px; height: 11px; margin-right: 1px; }
.lock-mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--indigo); color: #fff; vertical-align: middle; flex: none; }
.icon-tile { position: relative; }
.tile-lock { position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--indigo); color: #fff; box-shadow: 0 0 0 2px #fff; }
.tile-lock svg.i.lock { width: 10px; height: 10px; }

/* ======================================================================
   GermanCopilot (steel-man plan): home, journey dashboard, copilot actions,
   document vault, letter decoder sections
   ====================================================================== */
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.center { text-align: center; }
.home { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.home .block { margin-top: 56px; }
.eyebrow { font-weight: 800; color: var(--indigo); letter-spacing: .02em; margin: 0 0 8px; }
.eyebrow span { color: var(--muted); font-weight: 600; }
.home .hero h1 { font-size: clamp(34px, 5.4vw, 58px); }

.problems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (max-width: 900px) { .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.problem { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, var(--t), #fff 80%);
  border: 1px solid color-mix(in srgb, var(--c) 20%, var(--line)); color: var(--ink); transition: transform .12s; min-width: 0; }
.problem:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow); }
.problem b { flex: 1; font-size: 15px; line-height: 1.25; }
.problem .arr { color: var(--c); font-weight: 800; }

.profile-pitch { align-items: center; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.mock-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mock-cards > div { background: var(--t); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mock-cards b { color: color-mix(in srgb, var(--c) 60%, var(--ink)); font-size: 15px; }
.mock-cards small { color: var(--ink-2); font-size: 12px; }
.mock-alert { margin: 12px 0 6px; font-weight: 700; color: var(--warn); }
.mock-tasks { list-style: none; padding: 0; margin: 0; }
.mock-tasks li { padding: 5px 0 5px 28px; position: relative; font-size: 14px; }
.mock-tasks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border: 2px solid #c7cde0; border-radius: 5px; }
.mock-tasks li.done { color: var(--muted); text-decoration: line-through; }
.mock-tasks li.done::before { background: var(--ok); border-color: var(--ok); }

.copilot-bar { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 20px; margin: 18px 0 14px; color: #fff;
  background: linear-gradient(120deg, var(--indigo), #8b7bff); box-shadow: 0 10px 30px color-mix(in srgb, var(--indigo) 30%, transparent); }
.copilot-bar:hover { text-decoration: none; filter: brightness(1.04); }
.copilot-bar .icon-tile { background: rgba(255,255,255,.2); box-shadow: none; }
.copilot-bar small { opacity: .92; color: #fff; }

.flag-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: center; padding: 28px; border-radius: 26px; margin-top: 18px;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 55%), linear-gradient(140deg, var(--t), #fff 85%);
  border: 1px solid color-mix(in srgb, var(--c) 16%, var(--line)); }
.flag-hero img { border-radius: 18px; }
@media (max-width: 720px) { .flag-hero { grid-template-columns: 1fr; } .flag-hero img { display: none; } }
.hand-big { font-family: var(--hand); font-size: clamp(30px, 4vw, 42px); color: var(--c, var(--violet)); margin: 10px 0; line-height: 1.1; }
.steps3 { font-size: 18px; color: var(--ink-2); }
.steps3 b { color: var(--c, var(--violet)); }
.feature { color: inherit; text-decoration: none !important; transition: transform .12s; }
.feature:hover { transform: translateY(-2px); }

.how { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }
.how li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.how li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: #fff; font-weight: 800; }
.how small { color: var(--muted); }
.trust h3 { display: flex; gap: 8px; align-items: center; }
.trust h3 svg { color: var(--indigo); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plans .card { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.plans .card .checks { flex: 1; font-size: 14px; }
.plans .card + .card { margin-top: 0; }
.price { font-size: 36px; font-weight: 800; margin: 4px 0; }
.price small { font-size: 16px; color: var(--muted); }
.plans .featured { border: 2px solid var(--indigo); box-shadow: 0 12px 40px color-mix(in srgb, var(--indigo) 18%, transparent); }
.plans .soon { opacity: .85; }

.final-cta { text-align: center; margin: 56px 0 0; padding: 40px 20px; border-radius: 28px; color: #fff; background: linear-gradient(120deg, var(--indigo), #8b7bff); }
.final-cta h2 { font-size: clamp(24px, 3.4vw, 36px); color: #fff; }
.funnel-line { margin: 18px 0 0; font-size: 13px; opacity: .85; }

/* ---------- journey dashboard ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.chip small { color: var(--muted); font-weight: 600; }
.chip.edit { color: var(--indigo); }
.journey-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .journey-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .journey-cards { grid-template-columns: 1fr; } }
.jcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); box-shadow: var(--shadow); min-width: 0; }
.jcard:hover { text-decoration: none; border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.jcard b { font-size: 18px; color: color-mix(in srgb, var(--c) 55%, var(--ink)); overflow-wrap: anywhere; }
.jcard small { color: var(--muted); }
.tasklist { list-style: none; padding: 0; margin: 0; }
.tasklist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tasklist li label { margin: 0; }
.tasklist input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--indigo); }
.tasklist li.done a, .tasklist li.done span { text-decoration: line-through; color: var(--muted); }
.tasklist a { color: inherit; }
.tasklist .x { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.tasklist .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--line); color: #fff; font-weight: 800; font-size: 13px; }
.tasklist li.done .tick { background: var(--ok); }
.today li > div small { display: block; margin-top: 2px; }
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .agents { grid-template-columns: 1fr; } }
.agent { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; align-self: start; }
.agent summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.agent summary::-webkit-details-marker { display: none; }
.agent .dotst { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.agent.st-alert .dotst { background: var(--alert); }
.agent.st-warn .dotst { background: var(--warn); }
.agent.st-info .dotst { background: var(--sky); }
.insight { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; font-size: 14px; }
.insight p { margin: 4px 0 8px; color: var(--ink-2); }

/* ---------- copilot ---------- */
.msg .answer { white-space: pre-wrap; }
.msg.assistant { max-width: 92%; white-space: normal; }
.plan { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
@media (max-width: 620px) { .plan { grid-template-columns: 1fr; } }
.plan > p { grid-column: 1 / -1; margin: 0; }
.plan-sec { background: var(--indigo-t); border-radius: 12px; padding: 10px 12px; }
.plan-sec h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--indigo); }
.plan-sec ul { margin: 0; padding-left: 18px; font-size: 14px; }
.official { margin-top: 10px; font-size: 14px; background: var(--teal-t); border-radius: 12px; padding: 10px 12px; }
.official ul { margin: 4px 0 0; padding-left: 18px; }
.ai-note { font-size: 13px; color: #92400e; background: var(--amber-t); border-radius: 10px; padding: 8px 10px; margin: 8px 0 0; }
.actbar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.actbar .actout { flex-basis: 100%; }
.actbar .btn svg { width: 15px; height: 15px; }
.suggestion { text-align: left; white-space: normal; }

/* ---------- profile goals ---------- */
.goal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.goal { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; font-weight: 600; cursor: pointer; margin: 0; }
.goal:has(input:checked) { border-color: var(--indigo); background: var(--indigo-t); color: var(--indigo); }

/* ---------- letter decoder ---------- */
.decode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .decode { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .decode { grid-template-columns: 1fr; } }
.decode .card + .card { margin-top: 0; }
.card .num { float: right; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--t, var(--violet-t)); color: var(--c, var(--violet)); font-weight: 800; font-size: 13px; }
.big-date { font-size: 22px; font-weight: 800; color: var(--violet); }
.official-card { border-left: 4px solid var(--teal); }
.outputs { padding-left: 20px; }
.outputs li { margin: 6px 0; }

/* ---------- document vault ---------- */
.facts { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.doc form.exp input { padding: 6px 8px; }

/* ---------- alignment fixes ---------- */
/* Cards side by side in a grid must line up: the stacked-card spacing only applies outside grids. */
.grid > .card, .pillars > .card, .plans > .card, .decode > .card, .agents > .agent { margin-top: 0; }
.grid > .card + .card, .pillars > .card + .card { margin-top: 0; }
.grid.g2 > section.card { height: 100%; }
.pillars { align-items: stretch; }

/* Agents: masonry columns instead of a ragged grid */
.agents { display: block; columns: 3 300px; column-gap: 12px; }
.agents > .agent { break-inside: avoid; display: block; margin: 0 0 12px; width: 100%; }
.agent summary > span:nth-child(2) { flex: 1; min-width: 0; }

/* Attention list: icon aligned with the first line of text */
.attention-card .today li { align-items: flex-start; }
.attention-card .today .st { margin-top: 2px; }
.attention-card .today .btn { flex: none; }

/* Top bar on phones: one line */
@media (max-width: 620px) {
  .topbar .in { gap: 8px; padding: 8px 12px; }
  .brand span { display: none; }
  .brand b { font-size: 15px; white-space: nowrap; }
  .brand img { width: 32px; height: 32px; }
  .topnav { flex-wrap: nowrap; gap: 0; }
  .topnav a { padding: 6px 8px; white-space: nowrap; }
  .plan-pill { font-size: 11px; padding: 3px 8px; }
  .plan-pill .long { display: none; }
}
@media (max-width: 380px) { .topnav a[href="/pricing"] { display: none; } }

/* Problem buttons on phones: no overflowing arrows */
@media (max-width: 520px) {
  .problems { gap: 8px; }
  .problem { padding: 12px; gap: 8px; }
  .problem b { font-size: 14px; overflow-wrap: anywhere; }
  .problem .arr { display: none; }
  .problem .icon-tile.sm { width: 30px; height: 30px; }
}
@media (max-width: 440px) { .brand > div { display: none; } }

/* dashboard in the original layout */
.journey .journey-sub { display: block; margin: -6px 0 4px 142px; font-size: 12px; }
@media (max-width: 520px) { .journey .journey-sub { margin-left: 112px; } }
.agent-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.agent-list li { padding: 7px 0; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.agent-list .btn { flex: none; }
.xbtn { margin-left: auto; flex: none; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }

/* Action-focused layout and keyboard/mobile accessibility. */
:root { --muted:#56617d; --indigo:#5846d6; --green:#147d3a; --amber:#a65b00; --cyan:#08758e; --lime:#47770b; --teal:#086e70; }
:focus-visible { outline:3px solid #2563eb; outline-offset:3px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:-80px; left:16px; z-index:100; padding:12px; background:white; border:2px solid var(--blue); }
.skip-link:focus { top:12px; }
.grid > .card + .card { margin-top:0; }
.priority { border:1px solid var(--line); background:white; border-radius:16px; padding:18px; display:flex; flex-direction:column; align-items:flex-start; }
.priority h3 { margin-top:12px; }
.priority p { font-size:14px; color:var(--ink-2); flex:1; }
.briefing { background:linear-gradient(125deg,var(--indigo-t),white 85%); }
.ask-panel form input,.ask-preview input { flex:1; min-width:0; }
.ask-preview { margin-top:24px; }
.ask-preview .hint { margin:8px 0 0; }
.prompt-examples { margin-top:12px; }
.feature-art { width:100%; height:140px; object-fit:contain; margin-bottom:16px; }
.feature p { font-size:14px; }
.agent-suggestion { padding:12px 0; border-bottom:1px solid var(--line); }
.agent-suggestion p { font-size:14px; margin:8px 0; }
.task-toggle { border:1px solid var(--line); background:white; border-radius:8px; min-width:36px; min-height:36px; cursor:pointer; color:var(--ink); }
summary { cursor:pointer; }
body { overflow-wrap:anywhere; }
input,select,textarea { min-width:0; }
#letter-result h3 { margin-top:18px; }
#letter-result .stack { margin-top:12px; }
.drop input[type=file] { display:block; max-width:100%; margin-bottom:10px; font-size:13px; }
.home { padding-bottom:40px; }
@media (max-width:620px) { .home .hero { padding-top:28px; } .home .hero h1 { font-size:36px; } .topbar .in { align-items:flex-start; flex-wrap:wrap; gap:8px; } .topnav { gap:0; } .topnav a { padding:7px 8px; } .brand b { font-size:15px; } .side { max-width:100%; } .card { padding:16px; } .ask-panel form,.ask-preview .row { align-items:stretch; } .ask-panel form input,.ask-preview input { flex-basis:100%; } .page-head { padding:18px; } #dl input { flex-basis:100%; } .task .exp input { max-width:100%; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

@media (max-width:620px) { .brand > div { display:block; } .brand { flex-basis:100%; } .topnav { margin-left:0; flex-wrap:wrap; } .brand span { display:block; } }

.footer a,.hint a,.notice a,.article a,p a:not(.btn) { text-decoration:underline; text-underline-offset:3px; }
.actbar fieldset { flex-basis:100%; border:1px solid var(--line); border-radius:12px; padding:12px; margin:8px 0; }
.actbar fieldset label { flex-wrap:wrap; align-items:flex-start; margin-bottom:10px; }
.actbar fieldset small { flex-basis:100%; margin-left:24px; }

/* Learning is the first Copilot entry point, including on phones. */
.learn-nav { display:inline-flex; align-items:center; gap:6px; font-weight:700!important; color:var(--blue)!important; }
.learning-first { display:flex; align-items:center; justify-content:space-between; gap:24px; background:linear-gradient(120deg,var(--blue-t),white 90%); margin-bottom:16px; }
.learning-first p { margin-bottom:8px; }
.learning-first .eyebrow { color:var(--blue); }
.learning-first > div { min-width:0; }
.learning-first > .stack { flex-shrink:0; max-width:280px; }
@media (max-width:620px) { .learning-first { flex-direction:column; align-items:stretch; gap:10px; } .learning-first > .stack { max-width:none; } .learn-nav { white-space:normal!important; } }

.routine-steps { margin:20px 0 12px; padding-left:24px; }
.routine-steps li { margin:0 0 16px; padding-left:4px; }
.routine-steps .badge { margin-left:8px; }
.routine-steps p { margin:4px 0; color:var(--ink-2); }
.feedback-history { margin-top:16px; }
.feedback-history li { margin-bottom:12px; }
#study-form button { justify-self:start; }

/* Application design picker (application.html) */
.design-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; background: #fff; }
.design-card.on { border-color: var(--c, var(--green)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--green)) 18%, transparent); }
.design-card .thumb { --k: .25; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: #fff; position: relative; }
.design-card .thumb iframe { width: 794px; height: 1123px; border: 0; transform: scale(var(--k)); transform-origin: 0 0; pointer-events: none; position: absolute; top: 0; left: 0; }

/* Tabs linking the pages of one sidebar section */
.subnav { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 18px; padding: 4px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.subnav a:hover { background: var(--bg); text-decoration: none; }
.subnav a.on { background: var(--t); color: var(--c); }
.subnav .badge.pro { font-size: 10px; }
@media print { .subnav { display: none !important; } }
