/* Home Climate Cost Lab — "Mérőlap" (meter sheet): sage paper, green-black ink, moss, chartreuse marker,
   heating orange / cooling sea green. Fonts are self-hosted (OFL). */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f3f2ea;
  --card: #ffffff;
  --sunk: #e8e7dc;
  --ink: #1e2b24;
  --soft: #4f5a53;
  --line: #d9d8cc;
  --moss: #2f5d4c;
  --moss-dark: #234638;
  --lime: #c9de5b;
  --lime-tint: #eef4cf;
  --heat: #e07b3c;
  --heat-text: #a8481a;
  --cool: #1fa394;
  --cool-text: #1b6a61;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--moss-dark); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--lime); }
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1em; overflow-wrap: break-word; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.kicker { font-family: var(--mono); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--moss); margin: 0 0 0.75em; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 11px; height: 11px; background: var(--lime); border: 2px solid var(--ink); flex: none; }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--soft); max-width: 40em; }
.section-lead { color: var(--soft); max-width: 40em; }
.text-link { font-weight: 700; }
.small { font-size: 0.9rem; color: var(--soft); }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 500; border: 1.5px solid transparent; border-radius: 6px; }
.nav a:hover { border-color: var(--line); background: var(--card); }
.nav a[aria-current="page"] { background: var(--lime); border-color: var(--ink); font-weight: 700; }

/* Meter counter */
.counter { display: inline-flex; gap: 5px; margin-bottom: 18px; }
.counter span { width: 34px; height: 48px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--mono); font-weight: 600; font-size: 1.6rem; border-radius: 4px; position: relative; }
.counter span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(243, 242, 234, 0.18); }
.counter span.last { background: var(--heat); color: var(--ink); }
.counter-small span { width: 26px; height: 36px; font-size: 1.2rem; }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy h1 { max-width: 15em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 26px 0 18px; }
.hero-note { font-size: 0.95rem; color: var(--soft); border-left: 4px solid var(--heat); padding-left: 12px; max-width: 34em; }
.hero-shot { justify-self: center; width: min(360px, 88%); }

/* Screenshot treatment: ink-bordered panel with a chartreuse index tab (same as the store set) */
.shot { margin: 0; position: relative; padding-top: 22px; }
.shot-tab { position: absolute; top: 0; left: 18px; font-family: var(--mono); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--lime); border: 2.5px solid var(--ink); border-radius: 4px; padding: 3px 10px; z-index: 1; }
.shot-frame { border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--ink); }
.shot-frame img { width: 100%; }

/* Season band */
.season { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.season-title { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); max-width: 30em; }
.months { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.month { border-radius: 5px; padding: 8px 8px 6px; display: flex; flex-direction: column; gap: 2px; min-width: 0; border: 1.5px solid transparent; }
.month-name { font-family: var(--mono); font-weight: 600; font-size: 0.9rem; }
.month-kind { font-size: 0.8rem; }
.month-heat { background: var(--heat); color: var(--ink); }
.month-cool { background: var(--cool); color: #ffffff; }
.month-off { background: var(--paper); border-color: var(--line); color: var(--soft); }
.season-note { color: var(--soft); font-size: 0.95rem; margin: 0; }

/* Steps */
.steps { padding: 64px 0 24px; }
.step { display: grid; gap: 28px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; }
.step .shot { width: min(340px, 86%); justify-self: center; }
.step-copy p { color: var(--soft); max-width: 34em; }

/* Gallery */
.gallery { padding: 48px 0 64px; background: var(--ink); color: var(--paper); }
.gallery .kicker { color: var(--lime); }
.gallery .kicker::before { border-color: var(--paper); }
.gallery .section-lead { color: #c9cfc8; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 72%); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 18px; padding-bottom: 12px; }
.gallery-track .shot { scroll-snap-align: start; }
.gallery .shot-frame { border-color: var(--paper); }

/* Features */
.features { padding: 64px 0; }
.feature-list { display: grid; gap: 0; margin: 24px 0 0; border-top: 2px solid var(--ink); }
.feature { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.feature dt { font-weight: 700; font-size: 1.15rem; }
.feature dd { margin: 0; color: var(--soft); }

/* Method */
.method { padding: 56px 0; background: var(--lime-tint); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.method-grid { display: grid; gap: 32px; }
.method-list { margin: 0; padding-left: 1.4em; }
.method-list li { margin-bottom: 0.6em; }
.method-list li::marker { font-family: var(--mono); font-weight: 600; color: var(--moss); }
.honest { background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 22px; }
.honest h3 { color: var(--heat-text); }

/* Privacy + download */
.privacy-band { padding: 64px 0; }
.privacy-grid { display: grid; gap: 36px; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 3px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231e2b24' stroke-width='2.4'/%3E%3C/svg%3E") center / 16px no-repeat; }
.download { background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 26px; align-self: start; }
.download .play { margin: 8px 0 18px; }
.contact { margin: 0; overflow-wrap: anywhere; }

/* Google Play CTA */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; text-decoration: none; border: 2px solid var(--ink); }
.play:hover { color: var(--paper); background: var(--moss-dark); }
.play-mark { width: 26px; height: 26px; background: linear-gradient(90deg, var(--heat) 0 48%, transparent 48% 52%, var(--cool) 52%); clip-path: polygon(0 40%, 50% 0, 100% 40%, 100% 100%, 0 100%); flex: none; }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.04em; }
.play-big { font-weight: 700; font-size: 1.15rem; }
.play-soon { background: var(--card); color: var(--ink); cursor: default; }

/* Inner pages */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); }
.page h2 { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem); margin-top: 1.6em; }
.rule { height: 8px; margin: 10px 0 26px; background: repeating-linear-gradient(90deg, var(--heat) 0 calc(8.333% - 4px), transparent calc(8.333% - 4px) 8.333%); max-width: 420px; }
.legal p, .legal li { color: #2c3832; }
.guide-steps { padding-left: 1.4em; }
.guide-steps li { margin-bottom: 1.2em; }
.guide-steps li::marker { font-family: var(--mono); font-weight: 600; color: var(--moss); }
.guide-steps h3 { margin-bottom: 0.25em; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; padding: 6px 0; overflow-wrap: anywhere; }
.faq details p { color: var(--soft); }

/* Footer */
.foot { background: var(--ink); color: var(--paper); }
.tape { height: 22px; background: var(--lime) repeating-linear-gradient(90deg, transparent 0 18px, var(--ink) 18px 20px) bottom / 100% 9px no-repeat; border-bottom: 3px solid var(--ink); }
.foot-inner { display: grid; gap: 18px; padding-top: 32px; padding-bottom: 36px; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { border-radius: 10px; flex: none; }
.foot-name { font-weight: 800; font-size: 1.15rem; margin: 0; }
.foot-small { margin: 0; color: #c9cfc8; font-size: 0.92rem; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: var(--paper); display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--lime); }
.foot-note { margin: 0; color: #aeb6af; font-size: 0.85rem; max-width: 52em; }

@media (min-width: 640px) {
  .months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .gallery-track { grid-auto-columns: minmax(240px, 42%); }
}

@media (min-width: 960px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .hero-shot { width: 360px; justify-self: end; }
  .months { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .step { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
  .step-flip { grid-template-columns: 360px minmax(0, 1fr); }
  .step-flip .shot { order: -1; }
  .step .shot { width: 100%; }
  .gallery-track { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
  .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
  .privacy-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .foot-inner { grid-template-columns: auto 1fr; align-items: center; }
  .foot-links { justify-content: flex-end; }
  .foot-note { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
