/* Shared styles for everdoor.app pages. Colours are tokens on :root, redefined for dark mode. */
  :root {
    --paper: #f8f6f1; --card: #ffffff; --ink: #1b1a17; --muted: #514e46; --line: #ddd8cc;
    --accent: #0a5a48; --on-accent: #ffffff; --soft: #e8f1ed; --alert: #8a1c12; --alert-soft: #fbeceb;
    --radius: 14px;
    --brand: #0a5a48; --on-brand: #ffffff; --on-brand-soft: #d6ebe2; /* the brand bars: same in light and dark */
    --photo-bg: #ffffff; /* behind product photos: shops shoot on white, so the same in dark */
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #131311; --card: #1c1c19; --ink: #f2f0e9; --muted: #bdb9ae; --line: #34332e;
      --accent: #74d4b6; --on-accent: #0b1d18; --soft: #17302a; --alert: #ffb4a8; --alert-soft: #3a1714;
      color-scheme: dark;
    }
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0; background: var(--paper); color: var(--ink);
    font: 400 1.125rem/1.6 "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  .skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; z-index: 10; }
  .skip:focus { top: 1rem; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  [tabindex="-1"]:focus { outline: none; } /* moved there by the page, not by the visitor */
  .wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
  /* Brand bars: Everdoor green top and bottom on every page, as in the emails. The logo is one
     opaque image (door, white "Ever", light green "door" on the brand green), white text 8.2:1,
     soft text 6.6:1 on it. */
  .site-head { background: var(--brand); color: var(--on-brand); }
  .head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
  .brand { display: inline-flex; line-height: 0; border-radius: 6px; }
  .brand img { display: block; height: 2rem; width: auto; }
  .site-head nav { display: flex; align-items: center; gap: 1.5rem; }
  .site-head nav a { color: var(--on-brand); font-weight: 600; font-size: 1rem; text-decoration: none; }
  .nav-link:hover, .nav-link[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
  .site-head .nav-cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px; background: var(--on-brand); color: var(--brand); }
  .site-head .nav-cta:hover { background: var(--on-brand-soft); }
  .head-tag { color: var(--on-brand-soft); font-size: .95rem; font-weight: 600; }
  .site-head :focus-visible, .site-foot :focus-visible { outline-color: var(--on-brand); }
  @media (max-width: 34rem) {
    .head-row { min-height: 4rem; }
    .brand img { height: 1.75rem; }
    .site-head .nav-link { display: none; } /* the footer carries every link; the button stays */
  }
  .eyebrow { margin: 3.25rem 0 .6rem; font-size: .9rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
  .eyebrow.plain { font-size: 1.05rem; letter-spacing: 0; text-transform: none; font-weight: 600; overflow-wrap: anywhere; }
  .eyebrow + h1, .article .eyebrow + h1 { margin-top: 0; }
  h1, h2, h3, h4, .item, .lede { overflow-wrap: anywhere; } /* a long shop address wraps instead of running off a phone */
  h1 { font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; margin: 3.5rem 0 1rem; }
  .lede { font-size: 1.25rem; color: var(--muted); margin: 0 0 2rem; max-width: 38rem; }
  form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
  label { display: block; font-weight: 600; margin-bottom: .5rem; }
  .row { display: flex; gap: .75rem; flex-wrap: wrap; }
  input[type="text"], input[type="search"] {
    flex: 1 1 16rem; min-height: 3.25rem; padding: 0 1rem; font: inherit; color: var(--ink);
    background: var(--paper); border: 2px solid var(--muted); border-radius: 10px;
  }
  input[type="text"]:focus-visible, input[type="search"]:focus-visible { outline-offset: 2px; }
  button {
    min-height: 3.25rem; padding: 0 1.4rem; font: inherit; font-weight: 600; cursor: pointer;
    color: var(--on-accent); background: var(--accent); border: 0; border-radius: 10px;
  }
  button[aria-disabled="true"] { opacity: .65; cursor: progress; }
  .hint { color: var(--muted); font-size: 1rem; margin: .75rem 0 0; }
  .also { margin: 1rem 0 0; font-size: 1rem; color: var(--muted); }
  .also a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
  .error { display: none; margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; background: var(--alert-soft); color: var(--alert); font-weight: 600; }
  .error.shown { display: block; }
  #progress { margin: 2rem 0 0; display: none; }
  #progress.shown { display: block; }
  #progress ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
  #progress li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
  #progress li[data-state="done"] { color: var(--ink); }
  #progress li[data-state="working"] { color: var(--ink); border-color: var(--accent); }
  #progress li .state { font-weight: 600; text-align: right; }
  #report { display: none; margin: 3rem 0 0; }
  #report.shown { display: block; }
  h2 { font-size: 1.9rem; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 1rem; }
  .summary { font-size: 1.2rem; }
  .big { font-weight: 800; color: var(--accent); }
  .group { margin: 2.25rem 0 0; }
  h3 { font-size: 1.3rem; margin: 0 0 .75rem; }
  .item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0 0 .75rem; }
  h4 { font-size: 1.15rem; margin: 0 0 .25rem; }
  .meta { color: var(--muted); font-size: 1rem; margin: 0 0 .5rem; }
  .item p { margin: 0 0 .4rem; }
  .where { font-size: 1rem; font-weight: 600; color: var(--accent); margin: .5rem 0 0 !important; }
  .note { margin: 2.5rem 0 0; padding: 1.25rem; border-radius: var(--radius); background: var(--soft); }
  .note h3 { margin-top: 0; }
  .note p { margin: .5rem 0 0; }
  section.why { margin: 4.5rem 0 0; }
  section.why p { max-width: 40rem; }
  .source { color: var(--muted); font-size: .95rem; }
  .site-foot { margin: 5rem 0 0; padding: 2.75rem 0 3.25rem; background: var(--brand); color: var(--on-brand-soft); font-size: .95rem; }
  .site-foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.4rem 0 1.25rem; }
  .site-foot nav a { color: var(--on-brand); font-weight: 600; text-decoration: none; }
  .site-foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .site-foot p { margin: .4rem 0; max-width: 40rem; }
  @media (prefers-reduced-motion: no-preference) {
    #progress li[data-state="working"] .state::after { content: ""; display: inline-block; width: .6em; animation: dots 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
    @keyframes dots { from { width: 0; } to { width: 1.2em; } }
  }

  /* Answer pages */
  .article h1 { margin-top: 3rem; }
  .article .answer { font-size: 1.25rem; padding: 1.25rem; border-radius: var(--radius); background: var(--soft); margin: 0 0 2.5rem; }
  .article h2 { margin: 3rem 0 .75rem; font-size: 1.6rem; }
  .article ol.steps { padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1rem; }
  .article ol.steps > li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 3.6rem; position: relative; }
  .article ol.steps > li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; }
  .article ol.steps h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
  .article ol.steps p { margin: 0; }
  .article ul { padding-left: 1.3rem; }
  .article li { margin: .35rem 0; }
  .article a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
  .article .dont { border-left: 4px solid var(--alert); padding: .25rem 0 .25rem 1rem; }
  .article .cta { margin: 3rem 0 0; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
  .article .cta a.button { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.3rem; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; margin-top: .5rem; }
  .article .small { font-size: .95rem; color: var(--muted); }
  .article .sources li { font-size: .95rem; color: var(--muted); }

  /* Buttons that are links (offer, report, answer pages) */
  a.button { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.3rem; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; margin-top: .75rem; }
  a.button.quiet { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
  .actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

  /* Offer page */
  .offer .price { font-size: 1.25rem; padding: 1.25rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin: 2rem 0; }
  .offer .price strong { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; line-height: 1.1; }
  .offer h2 { margin: 3rem 0 .75rem; font-size: 1.6rem; }
  .offer ul.gets { padding: 0; list-style: none; display: grid; gap: .75rem; }
  .offer ul.gets li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
  .offer ul.gets li strong { display: block; }
  .offer dl dt { font-weight: 600; margin: 1.25rem 0 .25rem; }
  .offer dl dd { margin: 0; color: var(--ink); }
  .offer a:not(.button) { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
  .site-foot p a { color: var(--on-brand); text-underline-offset: 3px; }
  .swatches { display: flex; gap: .5rem; margin: .5rem 0 0; }
  .swatches span { width: 2.5rem; height: 1.5rem; border-radius: 6px; border: 1px solid var(--line); display: inline-block; }
  #jump a { color: var(--accent); text-underline-offset: 3px; font-weight: 600; }

  /* Monthly page */
  .figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .75rem; margin: 0 0 2.5rem; padding: 0; }
  .figures div { display: flex; flex-direction: column; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
  .figures dt { font-size: 1rem; color: var(--muted); }
  .figures dd { margin: .15rem 0 0; font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--accent); }
  .described { list-style: none; padding: 0 !important; margin: .5rem 0 0; display: grid; gap: .6rem; }
  .described li { margin: 0 !important; padding: 0 0 0 .9rem; border-left: 3px solid var(--line); }
  .described .state { display: block; font-size: 1rem; color: var(--muted); }
  .checks { padding-left: 1.3rem; }
  .article .answer > p:first-child { margin-top: 0; }
  .article .answer > p:last-child { margin-bottom: 0; }

  /* Approval page: each product photo beside its new description, before the merchant's yes */
  .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; }
  .find { margin: 0 0 1.5rem; }
  .find input { width: 100%; }
  .find .hint { margin-top: .5rem; }
  .product h3 { margin: 0 0 .1rem; font-size: 1.2rem; }
  .product .see { font-size: 1rem; color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
  .photos { list-style: none; padding: 0 !important; margin: 1rem 0 0; display: grid; gap: 1rem; }
  .photos li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: start; margin: 0 !important; }
  .photos img { display: block; width: 6rem; height: auto; max-height: 7.5rem; object-fit: contain; background: var(--photo-bg); border: 1px solid var(--line); border-radius: 8px; }
  .photos .n { margin: 0; font-size: .95rem; font-weight: 600; color: var(--muted); }
  .photos .text { margin: .15rem 0 0; }
  .photos .state { margin: .15rem 0 0; color: var(--muted); }
  @media (max-width: 30rem) { .photos li { grid-template-columns: 4.5rem 1fr; gap: .8rem; } .photos img { width: 4.5rem; } }

  /* Proposal page (/p/): one page a shop's contact forwards to whoever decides. Reads like a
     document: a summary first, then numbered parts, each fact with its date. */
  .proposal .prepared { margin: -.25rem 0 1.5rem; }
  .proposal .forward { font-size: 1.15rem; margin: 0 0 1.5rem; }
  .proposal .forward p { margin: 0; }
  .rows { margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
  .rows > div { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: .25rem 1.25rem; padding: .85rem 1.2rem; border-top: 1px solid var(--line); }
  .rows > div:first-child { border-top: 0; }
  .rows dt { color: var(--muted); font-size: 1rem; padding-top: .1rem; }
  .rows dd { margin: 0; overflow-wrap: anywhere; }
  .glance dd { font-weight: 600; }
  @media (max-width: 34rem) { .rows > div { grid-template-columns: 1fr; padding: .8rem 1rem; } }
  .proposal .part { margin: 3.25rem 0 0; }
  .proposal .part h2 { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 1rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
  .proposal .part h2 .n { color: var(--accent); font-size: 1rem; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; flex: none; }
  .proposal .part > p { max-width: 40rem; }
  .proposal .item h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
  .proposal .photos-line { margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
  .proposal .photos-line h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
  .proposal .photos-line p { margin: 0; }
  .proposal ul.links { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; }
  .proposal ul.links li { margin: 0; display: grid; gap: .1rem; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
  .proposal ul.links .label { font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .proposal ul.links a { font-weight: 600; overflow-wrap: anywhere; }
  .proposal ul.links .note-line { color: var(--muted); font-size: 1rem; }
  .proposal .price { display: grid; gap: .3rem; padding: 1.25rem 1.3rem; margin: 0 0 1.75rem; background: var(--soft); border-radius: var(--radius); }
  .proposal .price strong { font-size: clamp(1.9rem, 5vw, 2.4rem); font-weight: 800; line-height: 1.1; color: var(--accent); }
  .proposal .why-list { padding: 0; list-style: none; display: grid; gap: .9rem; margin: 0 0 1.5rem; }
  .proposal .why-list li { margin: 0; padding: 0 0 0 1rem; border-left: 3px solid var(--accent); }
  .proposal .why-list strong { display: block; }
  .proposal .who p { margin: 0 0 .35rem; }
  .proposal .who p:last-child { margin-bottom: 0; }
  .proposal .next .next-line { font-size: 1.35rem; font-weight: 600; padding: 1.25rem 1.3rem; margin: 0; background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); }

  /* Alt text checker (/shopify-alt-text-checker): the result reads like the scanner's report, the
     products that need most work as a ranked list with a share bar, then one clear next step. */
  .tool #report .eyebrow { margin-top: 0; }
  .tool .result-head { font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.12; margin: 0 0 1rem; }
  .tool .result-head .big { font-weight: 800; }
  .tool .group .meta { margin: -.4rem 0 .75rem; }
  .tool .summary { margin: 0 0 .75rem; }
  .tool .figures { margin: 1.75rem 0 2rem; }
  .tool .reads h3 { margin: 0 0 .4rem; }
  .tool .reads p { margin: 0; }
  .worst { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; counter-reset: worst; }
  .worst li { counter-increment: worst; display: grid; grid-template-columns: 1.75rem 1fr; column-gap: .75rem; row-gap: .15rem; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1.1rem; }
  .worst li::before { content: counter(worst); grid-column: 1; grid-row: 1 / span 3; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
  .worst li > * { grid-column: 2; }
  .worst a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
  .worst .count { color: var(--muted); font-size: 1rem; }
  .worst .bar { display: block; height: .4rem; margin-top: .35rem; border-radius: 999px; background: var(--soft); overflow: hidden; }
  .worst .bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
  .bridge { margin: 2.5rem 0 0; padding: 1.4rem 1.4rem 1.5rem; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--card); }
  .bridge h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
  .bridge p { margin: 0 0 .6rem; max-width: 40rem; }
  .tool section.why + section.why { margin-top: 3.25rem; }
  .tool section.why h2 { font-size: 1.6rem; margin: 0 0 .75rem; }

  /* Printing or saving as PDF (a proposal gets printed for a lawyer or a board): keep the brand
     bars' green, drop what only works on screen, and keep each card on one page. */
  @media print {
    .site-head, .site-foot, .answer, .price, .item, .rows, .article ol.steps > li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .skip, .site-foot nav { display: none; }
    .site-foot { margin-top: 2rem; }
    .item, .rows > div, .article ol.steps > li, .proposal ul.links li, .proposal .why-list li { break-inside: avoid; }
    .proposal .part h2 { break-after: avoid; }
  }
