/* =========================================================================
   Shopling design system
   The Etsy shop that runs itself. Warm, premium, done-for-you.
   Palette: Forest + Bone + Clay + Amber (deliberately not the beige/brass
   AI-craft cliche). One accent for action (clay), forest as the brand anchor,
   amber reserved for the Score. Locked accent, locked radius, AA contrast.
   ========================================================================= */

:root {
  /* paper + ink */
  --bone:        #f4eee2;   /* page background, warm bone */
  --bone-2:      #ece2d0;   /* sunken blocks */
  --paper:       #fdf9f1;   /* cards / surfaces */
  --ink:         #1f1c16;   /* warm near-black */
  --ink-soft:    #50473b;   /* secondary text, AA on bone */
  --ink-faint:   #6d6354;   /* tertiary, kept >=4.5:1 on bone */

  /* forest: the brand anchor (dark surfaces, primary identity) */
  --forest:      #1f5141;
  --forest-deep: #163a2f;
  --forest-ink:  #0f261f;   /* darkest, for big dark sections */
  --forest-soft: #e0ebe4;   /* tint on light */

  /* clay: the action accent (one accent, locked) */
  --clay:        #c0512f;
  --clay-deep:   #a23f20;   /* text-on-light + hover */
  --clay-soft:   #f7e3d8;

  /* amber: reserved for the Score and highlights only */
  --amber:       #b7791b;
  --amber-bright:#d99a2c;
  --amber-soft:  #f6e9cd;

  --good:        #2f7d54;
  --good-soft:   #dff0e4;
  --warn:        #b86a16;
  --bad:         #b23b2a;

  --line:        #e3d8c4;
  --line-strong: #d2c3a8;
  --line-dark:   rgba(255,255,255,0.10);

  /* radius (locked scale) */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* shadows: warm, tinted to background, never pure black */
  --sh-sm: 0 1px 2px rgba(40,30,18,0.05), 0 1px 1px rgba(40,30,18,0.04);
  --sh:    0 2px 6px rgba(40,30,18,0.05), 0 10px 30px -12px rgba(40,30,18,0.18);
  --sh-lg: 0 6px 14px rgba(40,30,18,0.07), 0 30px 60px -28px rgba(40,30,18,0.32);
  --sh-clay: 0 10px 26px -10px rgba(192,81,47,0.5);

  --maxw: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease:     cubic-bezier(0.33, 0.7, 0.3, 1);
  --dur-press: 120ms;
  --dur-fast:  160ms;
  --dur:       260ms;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--bone);
  background-image:
    radial-gradient(780px 460px at 86% -6%, rgba(192,81,47,0.07), transparent 60%),
    radial-gradient(680px 440px at 6% 3%, rgba(31,81,65,0.07), transparent 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; position: relative;
}
/* fine grain, fixed + pointer-events-none per perf rules */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--clay-deep); text-decoration: none; }
a:hover { color: var(--clay); }
button { font-family: inherit; }
::selection { background: var(--clay-soft); color: var(--clay-deep); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 700; line-height: 1.04;
  letter-spacing: -0.02em; color: var(--ink); text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -0.028em; }
h3 { font-size: 1.32rem; letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; letter-spacing: -0.015em; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.section { padding: 88px 0; position: relative; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; }
.center .lede { margin-left: auto; margin-right: auto; }
.kicker { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay-deep); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  padding: 15px 24px; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--clay); color: #fff; box-shadow: var(--sh-clay); }
.btn--primary:hover { background: var(--clay-deep); color: #fff; }
.btn--forest { background: var(--forest); color: var(--bone); }
.btn--forest:hover { background: var(--forest-deep); color: var(--bone); }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.btn--ghost:hover { border-color: var(--clay); color: var(--clay-deep); }
.btn--lg { padding: 18px 30px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
@media (hover: hover) {
  .btn--primary:hover, .btn--forest:hover { transform: translateY(-1px); }
}

/* ---- nav ---------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(244,238,226,0.8);
  backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 800; font-size: 1.42rem; color: var(--ink); letter-spacing: -0.04em; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { color: var(--ink-soft); font-weight: 500; font-size: 0.96rem; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center; }

/* ---- hero --------------------------------------------------------------- */
.hero { padding: 52px 0 64px; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero h1 .clay { color: var(--clay); }
.hero h1 em { font-style: italic; color: var(--forest); }
.hero__sub { font-size: 1.22rem; color: var(--ink-soft); max-width: 38ch; margin-top: 20px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--ink-faint);
  font-size: 0.92rem; font-weight: 500; }
.hero__trust .t { display: inline-flex; align-items: center; gap: 7px; }

/* ---- the score widget (the wedge, used in hero + /score) ---------------- */
.scorepanel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); overflow: hidden; }
.scorepanel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; border-bottom: 1px solid var(--line); }
.scorepanel__head .lbl { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.95rem; }
.scorepanel__head .dots { display: inline-flex; gap: 6px; }
.scorepanel__head .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.scorepanel__body { padding: 22px; }
.scorefield { display: flex; gap: 10px; flex-wrap: wrap; }
.scorefield input { flex: 1; min-width: 0; }
.field-note { font-size: 0.84rem; color: var(--ink-faint); margin-top: 9px; }

input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; font-family: inherit; font-size: 1.02rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: 14px 15px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea { min-height: 92px; line-height: 1.5; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 4px var(--clay-soft); }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; color: var(--ink); }
label .hint { color: var(--ink-faint); font-weight: 400; }

/* score result */
.scoreout { margin-top: 20px; display: none; }
.scoreout.on { display: block; animation: rise var(--dur) var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scorehead { display: flex; align-items: center; gap: 20px; }
.dial { --p: 0; position: relative; width: 104px; height: 104px; flex: 0 0 auto; border-radius: 50%;
  background: conic-gradient(var(--amber-bright) calc(var(--p)*1%), var(--bone-2) 0);
  display: grid; place-items: center; }
.dial::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--paper); }
.dial b { position: relative; z-index: 1; font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--ink); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.dial b span { font-size: 0.9rem; color: var(--ink-faint); }
.scorehead .verdict h3 { margin-bottom: 3px; }
.scorehead .verdict p { color: var(--ink-soft); font-size: 0.96rem; }

.findings { margin-top: 18px; display: grid; gap: 10px; }
.finding { display: flex; gap: 12px; align-items: flex-start; background: var(--bone); border: 1px solid var(--line);
  border-radius: var(--r); padding: 13px 15px; }
.finding .ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; margin-top: 1px; }
.finding.bad .ic { background: var(--clay-soft); color: var(--clay-deep); }
.finding.warn .ic { background: var(--amber-soft); color: var(--amber); }
.finding.ok .ic { background: var(--good-soft); color: var(--good); }
.finding .ft { font-weight: 600; font-size: 0.96rem; }
.finding .fd { font-size: 0.88rem; color: var(--ink-soft); }
.deadtags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.deadtag { font-family: var(--font-mono); font-size: 0.8rem; padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--clay-soft); color: var(--clay-deep); text-decoration: line-through; }

.scorecta { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--forest-soft); border: 1px solid #cfe0d5; border-radius: var(--r-lg); padding: 16px 18px; }
.scorecta p { margin: 0; font-weight: 600; color: var(--forest-deep); }
.scorecta small { display: block; font-weight: 500; color: var(--ink-soft); }

/* ---- generic cards / module grid --------------------------------------- */
.cards { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease); }
@media (hover: hover) { .card.lift:hover { transform: translateY(-3px); box-shadow: var(--sh); } }
.card .mtag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--clay-deep); }
.card h3 { margin: 10px 0 8px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.icontile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--forest-soft); color: var(--forest); margin-bottom: 14px; }
.icontile.clay { background: var(--clay-soft); color: var(--clay-deep); }
.icontile.amber { background: var(--amber-soft); color: var(--amber); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.74rem;
  padding: 4px 10px; border-radius: var(--r-pill); background: var(--forest-soft); color: var(--forest-deep); }

/* ---- dark forest section ------------------------------------------------ */
.dark { background: linear-gradient(165deg, var(--forest), var(--forest-ink)); color: var(--bone); }
.dark h1, .dark h2, .dark h3 { color: var(--bone); }
.dark .kicker { color: var(--amber-bright); }
.dark .lede { color: rgba(244,238,226,0.78); }
.dark .panel { background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 24px; }
.dark .panel h4 { color: var(--bone); }
.dark .panel p { color: rgba(244,238,226,0.66); font-size: 0.94rem; }

/* ---- before/after split ------------------------------------------------- */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.ba__c { border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--line); }
.ba__c.before { background: var(--bone-2); }
.ba__c.after { background: var(--paper); box-shadow: var(--sh); border-color: var(--clay-soft); }
.ba__c .tag { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.ba__c.before .tag { color: var(--ink-faint); }
.ba__c.after .tag { color: var(--clay-deep); }
.ba__arrow { display: grid; place-items: center; color: var(--clay); }
.ba small { color: var(--ink-faint); }

/* ---- pricing ------------------------------------------------------------ */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; box-shadow: var(--sh-sm); position: relative; display: flex; flex-direction: column; }
.tier.hot { border: 2px solid var(--clay); box-shadow: var(--sh); }
.tier__badge { position: absolute; top: -13px; left: 28px; background: var(--clay); color: #fff; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
.tier .tn { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.tier .tp { font-family: var(--font-display); font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 2px; }
.tier .tp small { font-size: 1rem; color: var(--ink-faint); font-family: var(--font-body); font-weight: 500; }
.tier .tsub { color: var(--ink-faint); font-size: 0.9rem; min-height: 1.3em; }
.tier ul { list-style: none; margin: 20px 0; display: grid; gap: 11px; }
.tier li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 0.96rem; }
.tier li .ic { color: var(--good); flex: 0 0 auto; margin-top: 2px; }
.tier li.muted { color: var(--ink-faint); }
.tier li.muted .ic { color: var(--ink-faint); }
.tier .btn { margin-top: auto; }

/* ---- comparison table --------------------------------------------------- */
.cmp { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-sm); font-size: 0.95rem; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); background: var(--bone-2); }
.cmp thead th:nth-child(n+2), .cmp td:nth-child(n+2) { text-align: center; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp .y { color: var(--good); font-weight: 700; }
.cmp .n { color: var(--ink-faint); }
.cmp .ours { background: var(--forest-soft); }

/* ---- faq ---------------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.08rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .chev { color: var(--ink-faint); transition: transform var(--dur) var(--ease); flex: 0 0 auto; }
.qa[open] summary .chev { transform: rotate(180deg); }
.qa p { color: var(--ink-soft); padding-bottom: 20px; max-width: 64ch; }

/* ---- testimonial -------------------------------------------------------- */
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm); }
.quote p { color: var(--ink); font-size: 1.02rem; }
.quote .who { display: flex; align-items: center; gap: 11px; margin-top: 12px; }
.quote .av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--forest-soft); }
.quote .who b { font-size: 0.95rem; display: block; }
.quote .who span { font-size: 0.84rem; color: var(--ink-faint); }
.stars { color: var(--amber-bright); letter-spacing: 2px; font-size: 0.92rem; }

/* ---- footer ------------------------------------------------------------- */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { color: var(--ink-soft); font-size: 0.95rem; }
.footer ul a:hover { color: var(--clay-deep); }
.footer__about { color: var(--ink-soft); font-size: 0.96rem; max-width: 34ch; margin-top: 12px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line);
  margin-top: 38px; padding-top: 22px; color: var(--ink-faint); font-size: 0.86rem; }

/* ===================== app / dashboard / login ========================== */
.authwrap { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 0.95fr; }
@media (max-width: 880px) { .authwrap { grid-template-columns: 1fr; } .authwrap .aside { display: none; } }
.authwrap .form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(26px, 6vw, 84px); }
.authwrap .aside { background: linear-gradient(165deg, var(--forest), var(--forest-ink)); color: var(--bone); padding: 56px;
  display: flex; flex-direction: column; justify-content: space-between; }
.authcard { width: 100%; max-width: 420px; margin: 0 auto; }
.oauth { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 14px 18px;
  border-radius: var(--r); border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: 1rem; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur-press) var(--ease-out); }
.oauth:hover { border-color: var(--ink); }
.oauth:active { transform: scale(0.98); }
.oauth.etsy { background: var(--clay); color: #fff; border-color: var(--clay); }
.oauth.etsy:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.divider-or { display: flex; align-items: center; gap: 14px; color: var(--ink-faint); font-size: 0.85rem; margin: 18px 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* dashboard shell */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100dvh; }
.sidebar { background: var(--forest-ink); color: var(--bone); padding: 22px 18px; position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column; gap: 6px; }
.sidebar .brand { color: var(--bone); margin: 4px 6px 18px; }
.sidebar a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--r-sm); color: rgba(244,238,226,0.72);
  font-weight: 500; font-size: 0.95rem; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.sidebar a:hover { background: rgba(255,255,255,0.06); color: var(--bone); }
.sidebar a.on { background: var(--clay); color: #fff; }
.sidebar .spacer { flex: 1; }
.sidebar .me { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-top: 1px solid var(--line-dark); color: rgba(244,238,226,0.8); font-size: 0.9rem; }
.sidebar .me .av { width: 30px; height: 30px; border-radius: 50%; background: var(--clay); display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 0.85rem; }
.appmain { padding: 30px clamp(20px, 4vw, 44px) 60px; min-width: 0; }
.apptop { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.apptop h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.stat .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.stat .v { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 0.82rem; margin-top: 2px; }
.stat .d.up { color: var(--good); } .stat .d.down { color: var(--bad); }
.appgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.panelcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-sm); }
.panelcard h3 { font-size: 1.1rem; margin-bottom: 4px; }
.panelcard .sub { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 14px; }
.todo { list-style: none; display: grid; gap: 10px; }
.todo li { display: flex; gap: 12px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bone); }
.todo .sev { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }
.todo .sev.hi { background: var(--bad); } .todo .sev.md { background: var(--amber-bright); } .todo .sev.lo { background: var(--good); }
.todo .tt { font-weight: 600; font-size: 0.96rem; }
.todo .td { font-size: 0.86rem; color: var(--ink-soft); }
.todo .fix { margin-left: auto; flex: 0 0 auto; }
.tinybtn { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; padding: 7px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--clay-deep); cursor: pointer; transition: all var(--dur) var(--ease); }
.tinybtn:hover { border-color: var(--clay); background: var(--clay-soft); }
.tinybtn:active { transform: scale(0.96); }

.calc { display: grid; gap: 13px; }
.calc .row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.calc .row label { margin: 0; }
.calc .row input { max-width: 130px; text-align: right; padding: 9px 12px; }
.calc .out { background: var(--forest-soft); border: 1px solid #cfe0d5; border-radius: var(--r); padding: 16px; margin-top: 4px; }
.calc .out .big { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--forest-deep); letter-spacing: -0.03em; }
.calc .out .lbl { font-size: 0.82rem; color: var(--ink-soft); }

/* ---- modal -------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgba(20,18,14,0.55); backdrop-filter: blur(3px); display: none;
  align-items: center; justify-content: center; z-index: 120; padding: 20px; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.scrim.on { display: flex; opacity: 1; }
.modal { background: var(--paper); border-radius: var(--r-xl); max-width: 460px; width: 100%; padding: 32px; box-shadow: var(--sh-lg);
  transform: scale(0.95) translateY(8px); transition: transform var(--dur) var(--ease-out); position: relative; }
.scrim.on .modal { transform: none; }
.modal__x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--bone-2); color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.modal__x:hover { background: var(--line); color: var(--ink); }

/* ---- toast -------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(18px); background: var(--ink); color: var(--bone);
  padding: 12px 20px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.92rem; box-shadow: var(--sh-lg); opacity: 0;
  pointer-events: none; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); z-index: 140; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- reveal ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .06s; } .reveal[data-d="2"] { transition-delay: .12s; } .reveal[data-d="3"] { transition-delay: .18s; }

/* =========================================================================
   responsive
   ========================================================================= */
@media (min-width: 920px) {
  .hero__grid { grid-template-columns: 0.92fr 1.08fr; align-items: center; gap: 54px; }
}
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; } .appgrid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; gap: 20px; } .ba__arrow { transform: rotate(90deg); }
  .statrow { grid-template-columns: 1fr 1fr; }
  .cmp { display: block; overflow-x: auto; }
  /* dashboard: collapse sidebar to top bar */
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; padding: 12px; }
  .sidebar .brand { margin: 0 12px 0 4px; } .sidebar .spacer { display: none; } .sidebar a { padding: 9px 11px; } .sidebar .me { border: none; margin-left: auto; }
}
@media (max-width: 720px) {
  body { font-size: 16px; } .section { padding: 60px 0; }
  .nav__links { display: none; }
  .nav__links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--paper); padding: 18px 26px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--sh); }
  .nav__links.open a { padding: 6px 0; font-size: 1.05rem; }
  .nav__toggle { display: inline-flex; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__cta .btn--ghost { display: none; }
  .scorehead { gap: 16px; }
}
@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
  .statrow { grid-template-columns: 1fr 1fr; }
  .nav__cta .btn--primary { display: none; }
  .scorehead { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
