/* Plumbing Maintenance Log — landing. Art direction "Szervizkönyv": limestone paper, petrol ink,
   copper pipe with couplings, ruled service-book pages. Fonts: Bitter (headings), Archivo (text). */

@font-face { font-family: "Bitter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/bitter-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: "Bitter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/bitter-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; }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bitter-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: "Bitter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bitter-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: "Bitter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/bitter-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: "Bitter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/bitter-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: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-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: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-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: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-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: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-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: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-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: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-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; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-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: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-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; }

:root {
  --paper: #f3eee5;
  --card: #fffcf7;
  --sunk: #eae3d7;
  --line: #dcd3c4;
  --ink: #14343b;
  --soft: #4e5f62;
  --petrol: #0e5a66;
  --petrol-dark: #0a4650;
  --petrol-tint: #dcebea;
  --copper: #b4602f;
  --copper-dark: #8e4520;
  --copper-light: #f2b38c;
  --copper-tint: #f5e3d5;
  --water: #2aa5b5;
  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --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; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--copper-dark); }
a[href^="mailto:"] { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 6vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-weight: 700; font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.small { font-size: 0.9rem; color: var(--soft); }
.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; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.kicker { font-family: var(--sans); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-dark); margin-bottom: 0.6em; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--soft); max-width: 46em; }
.text-link { font-weight: 700; }

/* Pipe run with copper couplings (the brand motif) */
.pipe { height: 14px; background:
  repeating-linear-gradient(90deg, transparent 0 64px, var(--copper) 64px 74px, transparent 74px 140px),
  linear-gradient(var(--petrol), var(--petrol)) center / 100% 4px no-repeat; }

/* Header */
.top { background: var(--card); position: relative; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 800; font-size: 1.15rem; line-height: 1.2; min-width: 0; }
.brand img { border-radius: 10px; flex: none; }
.nav { display: flex; gap: 4px 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: inline-block; padding: 10px 2px; font-weight: 600; text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"], .nav a:hover { color: var(--copper-dark); text-decoration: underline; text-decoration-thickness: 2px; }

/* Hero */
.hero { padding-top: clamp(36px, 7vw, 80px); }
.hero-text { max-width: 980px; margin-left: auto; margin-right: auto; }
.hero h1 { max-width: 15em; }
.hero-actions { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin: 28px 0 22px; }
.facts { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--petrol-tint); color: var(--petrol-dark); font-weight: 600; font-size: 0.92rem; padding: 6px 12px; border-radius: 8px; }
.hero-strip { background: var(--petrol-dark); background-image: linear-gradient(var(--petrol-dark) 0 55%, var(--paper) 55% 100%); padding-top: 40px; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 36px); align-items: start; }
.strip .shot:nth-child(2) { margin-top: 40px; }
.strip .shot:nth-child(3) { margin-top: 80px; }

/* Screenshots: real captures in a copper-rimmed frame */
.shot { margin: 0; background: var(--card); border: 6px solid var(--copper); border-radius: 26px; overflow: hidden; box-shadow: 0 10px 28px rgba(10, 70, 80, 0.18); max-width: 360px; width: 100%; }
.shot img { width: 100%; }

/* Play button */
.play { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 22px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; line-height: 1.15; }
.play:hover { background: var(--petrol); color: #fff; }
.play-small { font-size: 0.8rem; opacity: 0.85; }
.play-big { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.play-soon { background: var(--sunk); color: var(--soft); border: 2px dashed var(--line); cursor: default; }

/* Ledger: the numbered pages of the service book */
.ledger-section { padding: clamp(56px, 9vw, 110px) 0; }
.ledger { list-style: none; margin: 32px 0 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; }
.ledger::before { content: ""; position: absolute; top: 0; bottom: 0; left: 84px; width: 2px; background: var(--copper-light); }
.ledger li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0 24px; padding: 24px 28px 24px 0; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger-no { font-family: var(--serif); font-weight: 800; font-size: 1.7rem; color: var(--petrol); text-align: center; line-height: 1.2; }
.ledger h3 { margin-bottom: 0.3em; }
.ledger p { margin: 0; color: var(--soft); }

/* Hardness table */
.hardness { background: var(--petrol-tint); padding: clamp(56px, 8vw, 96px) 0; }
.hardness-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.table-wrap { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.intervals { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.intervals th, .intervals td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.intervals thead th { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); background: var(--sunk); }
.intervals thead th span { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; }
.intervals tbody th { font-weight: 600; }
.intervals .hard, .intervals thead th:last-child { background: var(--copper-tint); color: var(--copper-dark); font-weight: 700; }
.intervals tbody tr:last-child th, .intervals tbody tr:last-child td { border-bottom: 0; }

/* Feature stories */
.stories { padding: clamp(56px, 9vw, 110px) 0 20px; }
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 80px); align-items: center; margin-bottom: clamp(56px, 9vw, 110px); }
.story-flip .story-text { order: 2; }
.story .shot { justify-self: center; max-width: 340px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 12px; border-radius: 3px; background: var(--copper); box-shadow: inset 0 -4px 0 var(--copper-dark); }

/* Emergency call-out */
.emergency { padding: 0 0 clamp(56px, 9vw, 110px); }
.emergency-box { display: flex; gap: 28px; align-items: center; background: var(--petrol-dark); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); border-left: 10px solid var(--copper); }
.emergency-box img { flex: none; }
.emergency-box h2 { color: #fff; }
.emergency-box p { color: #d5e7e8; margin: 0; font-size: 1.1rem; }

/* Gallery */
.gallery { padding: 0 0 clamp(56px, 9vw, 110px); }
.gallery-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.gallery .shot { border-width: 4px; border-radius: 20px; }

/* Privacy strip */
.privacy-strip { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 84px) 0; }
.privacy-grid { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.privacy-grid li { border-top: 4px solid var(--petrol); padding-top: 14px; }
.privacy-grid p { color: var(--soft); margin: 0; }

/* Download */
.download { padding: clamp(48px, 7vw, 84px) 0; }
.download-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.download-box p { color: var(--soft); margin: 0; overflow-wrap: anywhere; }

/* Footer */
.foot { background: var(--ink); color: #d5e7e8; padding: 44px 0 20px; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 28px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { flex: none; }
.foot-name { font-family: var(--serif); font-weight: 800; font-size: 1.2rem; color: #fff; margin: 0 0 4px; }
.foot-facts { margin: 0; display: grid; gap: 8px; }
.foot-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.foot-facts dt { color: var(--copper-light); font-weight: 600; }
.foot-facts dd { margin: 0; overflow-wrap: anywhere; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-links a { display: inline-block; padding: 4px 0; }
.foot-note { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 28px; padding-top: 16px; font-size: 0.88rem; color: #a9c6c9; }
.foot-note p { margin: 0; }

/* Inner pages */
.page { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 9vw, 100px); }
.prose h2, .page h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps h3 { margin-bottom: 0.2em; }
.steps p { margin: 0; color: var(--soft); }
.step-no { width: 52px; height: 52px; border-radius: 50%; background: var(--petrol); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: 1.4rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style-position: outside; overflow-wrap: anywhere; }
.faq details[open] summary { color: var(--copper-dark); }
.faq details p { color: var(--soft); }

@media (max-width: 900px) {
  .hardness-grid, .story, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .story-flip .story-text { order: 0; }
  .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .strip .shot:nth-child(3) { display: none; }
  .strip .shot:nth-child(2) { margin-top: 28px; }
  .shot { border-width: 4px; border-radius: 18px; }
  .ledger::before { left: 56px; }
  .ledger li { grid-template-columns: 56px minmax(0, 1fr); gap: 0 16px; padding: 18px 16px 18px 0; }
  .ledger-no { font-size: 1.3rem; }
  .emergency-box { flex-direction: column; align-items: flex-start; }
  .emergency-box img { width: 64px; height: 64px; }
  .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .intervals thead { display: none; }
  .intervals, .intervals tbody, .intervals tr, .intervals th, .intervals td { display: block; width: 100%; }
  .intervals tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .intervals tbody th, .intervals td { border: 0; padding: 2px 0; }
  .intervals td::before { content: attr(data-label) ":"; display: inline-block; min-width: 84px; font-weight: 600; color: var(--soft); }
  .intervals .hard { background: none; }
  .foot-facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (max-width: 380px) {
  .brand { font-size: 1rem; }
  .brand img { width: 34px; height: 34px; }
  .nav { gap: 2px 14px; }
}

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