/* Combien vaut mon commerce ? : the home page and the free result.
   One idea: the shop front. A striped awning over the price tool is the only
   decoration; everything else is white space, one typeface (Inter Tight, served by
   the site) and one green. Plain rules, no :is() tricks, so that every browser,
   in-app ones included, draws the same page. */

@font-face {
  font-family: "Inter Tight CV";
  src: url("fonts/intertight-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

.h {
  --ink: #16201c;
  --muted: #56625d;
  --line: #e1e7e4;
  --bg: #f4f6f5;
  --card: #ffffff;
  --green: #145a44;
  --green-dark: #0e4434;
  --mint: #dcebe3;
  --sun: #f4c543;
  color: var(--ink);
  font-family: "Inter Tight CV", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-text-size-adjust: 100%;
}
.h *, .h *::before, .h *::after { box-sizing: border-box; }
.h h1, .h h2, .h h3 { font-family: inherit; color: var(--ink); margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
.h p { margin: 0; }
.h a { color: var(--green); }
.h-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.h-narrow { max-width: 720px; }

/* The page around: white paper, the brand in the site's typeface */
body:has(.h) { background: #f4f6f5; }
body:has(.h) .topbar { max-width: 1080px; padding: 16px 20px; }
body:has(.h) .brand { font-family: "Inter Tight CV", "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; color: #16201c; }
body:has(.h) .brand-emoji { font-size: 0; width: 26px; height: 26px; display: inline-block; vertical-align: -7px; margin-right: 8px; background: url("logo.svg") center / contain no-repeat; }
body:has(.h) .topnav a { color: #56625d; }
body:has(.h) .footer { max-width: 1080px; color: #56625d; }

/* Buttons: one green, one shape */
.h-btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 56px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--green); color: #fff; font-family: inherit; font-weight: 700; font-size: 1.08rem; line-height: 1.2;
  letter-spacing: -0.01em; text-decoration: none; cursor: pointer; text-align: center;
}
.h a.h-btn { color: #fff; text-decoration: none; }
.h-btn:hover { background: var(--green-dark); }
.h-btn:focus-visible, .h a:focus-visible, .h select:focus-visible, .h input:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.h-btn:disabled { opacity: 0.6; cursor: wait; }
.h a.h-btn-line { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.h-small { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* Hero: the question, then the shop front with the tool inside */
.h-hero { padding: 20px 0 48px; }
.h-hero-in { max-width: 640px; }
.h-hero h1 { font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.h .h-sub { font-size: clamp(1.1rem, 3.6vw, 1.3rem); color: var(--muted); margin-top: 16px; max-width: 30em; }
.h-shop { margin-top: 28px; }
.h-awning { display: block; width: 100%; height: 44px; border-radius: 12px 12px 0 0; }
.h-tool { display: block; background: var(--card); border-radius: 0 0 14px 14px; padding: 22px 22px 18px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(22, 32, 28, 0.35); margin-top: -18px; padding-top: 34px; }
.h-tool label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.h-tool label + .h-select, .h-tool label + input { margin-bottom: 16px; }
.h-tool select, .h-tool input[type="text"] {
  display: block; width: 100%; min-height: 54px; padding: 12px 14px;
  border: 1.5px solid #c9d3ce; border-radius: 10px; background: #fff; color: var(--ink);
  font-family: inherit; font-weight: 400; font-size: 1.05rem; line-height: 1.3; -webkit-appearance: none; appearance: none;
}
.h-tool select:focus, .h-tool input[type="text"]:focus { border-color: var(--green); outline: none; }
.h-select { position: relative; }
.h-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.h-tool .h-btn { margin-top: 6px; }
.h .h-free { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 12px; }

/* The result zone */
.h-result { padding-bottom: 40px; scroll-margin-top: 12px; max-width: 720px; }

/* The story of Michel: three steps, each with what he sees */
.h-story { background: var(--card); padding: 56px 0; }
.h-story h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.12; font-weight: 700; max-width: 22em; margin-bottom: 30px; }
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; }
.h-steps > li { display: grid; gap: 16px; }
@media (min-width: 860px) {
  .h-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .h-steps > li { grid-template-rows: auto 1fr; }
}
.h-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.h-steps h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.h-steps p { color: var(--muted); }
.h-step-visual { display: block; border-radius: 12px; background: var(--bg); padding: 18px; margin: 0; }
.h-mini { display: grid; gap: 4px; align-content: center; min-height: 170px; }
.h-mini span { font-size: 0.85rem; color: var(--muted); }
.h-mini b { font-size: 2.2rem; line-height: 1.05; letter-spacing: -0.03em; color: var(--green); }
.h a.h-page { padding: 18px 18px 0; overflow: hidden; height: 200px; }
.h-page img { display: block; width: 100%; height: auto; border-radius: 4px 4px 0 0; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.h-checks { list-style: none; display: grid; gap: 10px; align-content: center; min-height: 170px; }
.h-checks li { position: relative; padding-left: 30px; font-size: 0.95rem; }
.h-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); }
.h-checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* The paid file: the one thing to buy */
.h-offer { padding: 56px 0 24px; }
.h-offer-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .h-offer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; } }
.h-offer h2 { font-size: clamp(1.7rem, 5.4vw, 2.5rem); line-height: 1.1; font-weight: 700; }
.h .h-price { margin: 14px 0 20px; color: var(--muted); font-size: 1rem; }
.h-price b { display: inline-block; font-size: 2rem; letter-spacing: -0.03em; color: var(--ink); margin-right: 6px; background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); }
.h-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.h-list li { position: relative; padding-left: 32px; }
.h-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); }
.h-list li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 4px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.h .h-offer-text .h-small { margin-top: 12px; }
.h-offer-pages { position: relative; height: 340px; }
.h-offer-pages img { position: absolute; width: 58%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(22, 32, 28, 0.45); background: #fff; }
.h-offer-pages img:first-child { right: 4%; top: 30px; transform: rotate(4deg); }
.h-offer-pages img:last-child { left: 6%; top: 0; transform: rotate(-3deg); }
@media (min-width: 860px) { .h-offer-pages { height: 460px; } }
.h a.h-buyer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding: 18px 20px; border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--line); }
.h a.h-buyer:hover { box-shadow: 0 0 0 2px var(--green); }
.h-buyer strong { display: block; margin-bottom: 2px; }
.h-buyer > span:first-child { color: var(--muted); font-size: 0.95rem; }
.h-buyer > span:first-child strong { color: var(--ink); font-size: 1.05rem; }
.h-buyer-price { font-weight: 700; font-size: 1.25rem; white-space: nowrap; color: var(--green); }
.h .h-pack { margin-top: 12px; }

/* Questions */
.h-faq { padding: 48px 0 40px; }
.h-faq h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 700; margin-bottom: 14px; }
.h-faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.h-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.h-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green); }
.h-faq details[open] summary::after { content: "\2212"; }
.h-faq details p { color: var(--muted); margin-top: 10px; }
.h .h-contact { margin: 22px 0 18px; }
.h-guides { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 40px; }
.h-guides a { padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 0.9rem; text-decoration: none; }

/* The free result */
.h-res { display: grid; gap: 14px; }
.h-card { background: var(--card); border-radius: 14px; padding: 24px 22px; box-shadow: 0 0 0 1px var(--line); }
.h-res-title { font-size: 1.1rem; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; line-height: 1.35; }
.h .h-res-price { margin: 4px 0 10px; }
.h-res-price b { display: inline-block; font-size: clamp(3rem, 13vw, 4.4rem); line-height: 1; font-weight: 700; letter-spacing: -0.045em; color: var(--green); }
.h .h-res-range { font-size: 1.1rem; margin-bottom: 6px; }
.h .h-res-h { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; margin: 26px 0 8px; }
.h-sales { list-style: none; margin: 0 0 10px; padding: 0; }
.h-sales li { border-top: 1px solid var(--line); }
.h .h-sales a { display: grid; grid-template-columns: 6.6em minmax(0, 1fr) auto; gap: 10px; padding: 11px 0; color: var(--ink); text-decoration: none; }
.h-sales b { color: var(--green); }
.h-date { color: var(--muted); font-size: 0.9rem; }
.h-res-offer { background: var(--green); box-shadow: none; color: #fff; display: grid; gap: 14px; }
.h-res-offer h2 { color: #fff; font-size: 1.5rem; font-weight: 700; }
.h-res-offer p { color: #d6e6de; }
.h-res-offer .h-small { color: #b9d2c6; }
.h .h-res-offer a.h-btn { background: #fff; color: var(--green); }
.h .h-res-offer a.h-btn:hover { background: var(--mint); }
.h a.h-res-link { color: #fff; font-weight: 600; font-size: 0.95rem; }

/* Yearly bars, shared with the result */
.h .cv-bars { margin: 0; padding-bottom: 26px; }
.h .cv-bars ol { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; align-items: end; height: 150px; border-bottom: 1px solid var(--line); }
.h .cv-bars li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.h .cv-bars i { display: block; width: min(30px, 76%); background: #a9c4b7; border-radius: 4px 4px 0 0; }
.h .cv-bars li.last i { background: var(--green); }
.h .cv-bars b { position: absolute; bottom: -22px; font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.h .cv-bar-value { font-size: 0.66rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; white-space: nowrap; }
.h .cv-bar-value .cv-short { display: none; }
@media (max-width: 560px) {
  .h .cv-bar-value .cv-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .h .cv-bar-value .cv-short { display: inline; font-size: 0.6rem; letter-spacing: -0.02em; }
  .h .cv-bars ol { gap: 3px; }
}

@media (prefers-reduced-motion: no-preference) {
  .h-res-price b { animation: h-rise 500ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes h-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* The real reports open whole, as PDF */
.h a.h-page { position: relative; }
.h-open { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--green); }
.h a.h-page .h-open { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--card); padding: 8px 14px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 8px 20px -10px rgba(22, 32, 28, 0.4); white-space: nowrap; }
.h a.h-offer-pages { display: block; text-decoration: none; }
.h a.h-offer-pages .h-open { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: var(--green); color: #fff; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.h a.h-example { margin-top: 10px; min-height: 48px; font-size: 1rem; }
