:root {
    --bg: #f7f4ef;
    --ink: #1c1917;
    --muted: #78716c;
    --line: #e7e5e4;
    --card: #fffdf9;
    --accent: #0f766e;
    --accent-soft: #ccfbf1;
    --warn: #9a3412;
    --shadow: 0 8px 24px rgba(28,25,23,.05);
    --font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--sans);
    background:
      radial-gradient(900px 420px at 10% -10%, #e7f6f2 0%, transparent 55%),
      linear-gradient(180deg, #efe8dc 0%, var(--bg) 32%, #f8faf9 100%);
  }
  .banner {
    background: #134e4a; color: #ecfdf5;
    padding: .65rem 1.1rem; font-size: .88rem;
    display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; align-items: center;
  }
  .banner a { color: #99f6e4; }
  .app { max-width: 920px; margin: 0 auto; padding: 1rem 1.1rem 3rem; }

  /* App chrome — not a mall */
  .chrome {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    padding: .8rem 1rem; box-shadow: var(--shadow); margin-bottom: .85rem;
  }
  .brand { display: flex; gap: .7rem; align-items: center; }
  .mark {
    width: 34px; height: 34px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #5eead4, #0f766e 70%);
  }
  .brand h1 { margin: 0; font-family: var(--font); font-size: 1.2rem; font-weight: 600; }
  .brand small { display: block; color: var(--muted); font-size: .78rem; }
  .chrome-right { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
  .pill, .navlink, .tab, .btn, .more-link {
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    border-radius: 999px; padding: .35rem .75rem; font-size: .85rem;
    text-decoration: none; cursor: pointer;
  }
  .pill.plan { background: var(--accent-soft); border-color: #99f6e4; color: #115e59; }
  .avatar {
    width: 32px; height: 32px; border-radius: 50%; background: #d6d3d1;
    display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700;
  }

  /* Home = hub; stages = progress path (not peer tabs) */
  .path-wrap {
    display: flex; flex-direction: column; gap: .55rem;
    margin-bottom: .95rem;
  }
  .hub-row {
    display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
  }
  .hub-link {
    border: 1px solid var(--line); background: rgba(255,255,255,.85);
    color: var(--ink); border-radius: 999px; padding: .3rem .75rem;
    font-size: .82rem; text-decoration: none;
  }
  .hub-link.active { background: var(--ink); color: #fff; border-color: var(--ink); }
  .hub-hint { color: var(--muted); font-size: .78rem; }

  .path {
    display: flex; align-items: stretch; gap: 0;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  }
  .path-step {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: .55rem;
    padding: .7rem .75rem; text-decoration: none; color: var(--ink);
    background: #fff; border: none; position: relative;
  }
  .path-step + .path-step { border-left: 1px solid var(--line); }
  .path-num {
    flex: 0 0 auto;
    width: 1.55rem; height: 1.55rem; border-radius: 50%;
    display: grid; place-items: center;
    font-size: .75rem; font-weight: 700;
    background: #e7e5e4; color: #57534e;
  }
  .path-copy { min-width: 0; }
  .path-copy strong {
    display: block; font-size: .88rem; font-weight: 650;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .path-copy small {
    display: block; color: var(--muted); font-size: .72rem; margin-top: .08rem;
  }
  .path-step.done .path-num { background: var(--accent-soft); color: #115e59; }
  .path-step.done .path-copy strong { color: #115e59; }
  .path-step.current {
    background: #f0fdfa;
  }
  .path-step.current .path-num { background: var(--accent); color: #fff; }
  .path-step.current .path-copy strong { color: #0f766e; }
  .path-step.upcoming { opacity: .72; }
  .path-step:hover { background: #fafaf9; }
  .path-step.current:hover { background: #e6f7f3; }
  .navlink.active { background: var(--ink); color: #fff; border-color: var(--ink); }
  @media (max-width: 720px) {
    .path { flex-direction: column; }
    .path-step + .path-step { border-left: none; border-top: 1px solid var(--line); }
  }

  .main {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 1.15rem 1.25rem 1.5rem; box-shadow: var(--shadow); min-height: 480px;
  }
  .journey {
    display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start;
    background: #fafaf9; border: 1px solid var(--line); border-radius: 12px;
    padding: .7rem .85rem; margin-bottom: 1rem;
  }
  .guide {
    width: 40px; height: 40px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #a7f3d0, #0f766e);
  }
  .where { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  .next { font-family: var(--font); font-size: 1.05rem; margin: .12rem 0; }
  .why { color: var(--muted); font-size: .9rem; }

  .eyebrow { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .2rem; }
  h2 { font-family: var(--font); font-size: 1.65rem; margin: 0 0 .35rem; font-weight: 600; }
  .lede { color: #44403c; margin: 0 0 1rem; max-width: 38rem; line-height: 1.5; }
  .btn.primary {
    background: var(--accent); color: #fff; border-color: var(--accent);
    padding: .65rem 1.05rem; font-weight: 600; display: inline-block;
  }
  .btn.ghost { background: transparent; }
  .sample {
    display: inline-block; margin-top: .55rem; font-size: .72rem; color: var(--warn);
    background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; padding: .12rem .5rem;
  }

  .card {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: .85rem; box-shadow: 0 4px 14px rgba(28,25,23,.04);
  }
  .card h4 { margin: 0 0 .3rem; font-size: 1rem; }
  .card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
  .card a { color: var(--accent); font-size: .88rem; }
  .lift { border-color: #99f6e4; background: #f0fdfa; }

  .score { display: flex; align-items: center; gap: 1rem; margin: .7rem 0 1rem; }
  .ring {
    width: 68px; height: 68px; border-radius: 50%;
    background: conic-gradient(var(--accent) 0 72%, #e7e5e4 0);
    display: grid; place-items: center;
  }
  .ring span {
    width: 48px; height: 48px; border-radius: 50%; background: #fff;
    display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  }

  .checklist { list-style: none; padding: 0; margin: 0; }
  .checklist li {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .6rem 0; border-bottom: 1px solid var(--line);
  }
  .tag {
    font-size: .72rem; border-radius: 999px; padding: .12rem .45rem;
    background: #f5f5f4; color: #57534e;
  }
  .tag.ok { background: #dcfce7; color: #166534; }
  .tag.warn { background: #ffedd5; color: #9a3412; }

  table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: .7rem; }
  th, td { text-align: left; padding: .5rem .35rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }

  /* Quiet secondary access — not a left rail of stickers */
  .quiet-links {
    margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: .55rem .9rem; align-items: center;
    font-size: .85rem; color: var(--muted);
  }
  .quiet-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
  .quiet-links a:hover { color: var(--ink); }
  .quiet-links .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; margin-right: .2rem; }

  .more-panel {
    display: none; margin-top: 1rem; padding: 1rem;
    border: 1px dashed var(--line); border-radius: 12px; background: #fafaf9;
  }
  .more-panel.open { display: block; }
  .more-panel h3 { margin: 0 0 .5rem; font-size: .95rem; }
  .more-panel p { margin: 0 0 .75rem; color: var(--muted); font-size: .88rem; }
  .more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
  .more-grid a {
    display: block; padding: .55rem .7rem; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink);
    font-size: .88rem;
  }
  .more-grid a span { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; }
  .note-tier {
    font-size: .82rem; color: var(--muted); margin: .5rem 0 0;
  }

  /* Free-scan style — five area bars (beta-tester favorite Julie called out) */
  .five-areas {
    margin: 1.15rem 0 1.35rem;
    padding: 1rem 1.05rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }
  .five-areas > header {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    align-items: baseline; margin-bottom: .85rem;
  }
  .five-areas > header h3 {
    margin: 0; font-family: var(--font); font-size: 1.15rem; font-weight: 600;
  }
  .five-areas > header p {
    margin: .15rem 0 0; color: var(--muted); font-size: .85rem;
  }
  .five-areas .total {
    font-size: .95rem; font-weight: 700; color: var(--accent);
    white-space: nowrap;
  }
  .area-row {
    display: grid; grid-template-columns: minmax(9rem, 1.2fr) 1fr auto;
    gap: .55rem .85rem; align-items: center;
    padding: .45rem 0; border-top: 1px solid var(--line);
  }
  .area-row:first-of-type { border-top: none; }
  .area-row .name { font-size: .9rem; font-weight: 600; }
  .area-row .hint { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; margin-top: .1rem; }
  .bar-track {
    height: 10px; border-radius: 999px; background: #e7e5e4; overflow: hidden;
  }
  .bar-fill {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, #0f766e, #14b8a6);
  }
  .area-row .pts { font-size: .85rem; font-weight: 700; color: #44403c; min-width: 3.2rem; text-align: right; }
  .area-row .pts span { color: var(--muted); font-weight: 500; }
  @media (max-width: 640px) {
    .area-row { grid-template-columns: 1fr auto; }
    .bar-track { grid-column: 1 / -1; }
  }
