/* Snagrecord: site.css
 * Mobile-first. Max content width 1040px, 16px side gutters.
 */

:root {
  --bg: #F6F2EC;
  --card: #FFFFFF;
  --ink: #22201C;
  --ink2: #5C564E;
  --line: #DCD3C6;
  --accent: #B4622B;
  --accent-dark: #8A4519;

  --font-body: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Spectral", Georgia, "Times New Roman", serif;
  --radius: 12px;
  --wrap: 1040px;
  --gutter: 16px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw + 0.5rem, 2.25rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.125rem; color: var(--ink2); }
.note { font-size: 0.875rem; color: var(--ink2); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap.narrow { max-width: 720px; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt .card { background: var(--bg); }
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
/* 5 cards: 3 on top, 2 wider below (6-column grid, span 2 / span 3) */
@media (min-width: 640px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } .grid-5 > :last-child { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .grid-5 { grid-template-columns: repeat(6, 1fr); }
  .grid-5 > * { grid-column: span 2; }
  .grid-5 > :nth-last-child(-n+2) { grid-column: span 3; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--ink2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
/* Dark accent as button fill: white text passes AA contrast (~7:1). Lighter accent on hover. */
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-wide { width: 100%; }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 242, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.logo img { height: 36px; width: auto; }
.header-right { display: flex; align-items: center; gap: 1rem; }
.lang-toggle { display: flex; align-items: center; gap: 0.25rem; }
.lang-toggle button {
  background: none;
  border: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.lang-sep { color: var(--line); }
@media (max-width: 480px) { .header-right .btn-small { display: none; } } /* keep header uncluttered on small phones */

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 3.5rem; }
.hero-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .hero-inner { grid-template-columns: 3fr 2fr; gap: 3rem; } }
.hero-cities { font-size: 0.875rem; color: var(--ink2); margin: 0; }
/* ---------- Hero demo (interactive mini-checklist) ---------- */
.demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 12px 40px -20px rgba(34, 32, 28, 0.35);
}
.demo-title { font-size: 0.875rem; font-weight: 500; color: var(--ink2); margin: 0 0 0.75rem; }
.demo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.demo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background-color 0.15s;
}
.demo-item:hover { border-color: var(--accent); transform: translateX(2px); }
.demo-item:active { transform: scale(0.98); }
.demo-label { flex: 1; }
.demo-box {
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color 0.2s, border-color 0.2s;
}
/* Paths are "drawn" with stroke-dashoffset when the state changes */
.demo-box path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset 0.3s ease-out; }
.demo-item[data-state="1"] .demo-box { background: var(--ink); border-color: var(--ink); }
.demo-item[data-state="1"] .tick { stroke-dashoffset: 0; }
.demo-item[data-state="2"] .demo-box { background: var(--accent); border-color: var(--accent); }
.demo-item[data-state="2"] .cross { stroke-dashoffset: 0; }
.demo-item[data-state="2"] { border-color: var(--accent); background: #FBF1EA; }
.demo-tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink2); }
.demo-item[data-state="2"] .demo-tag { color: var(--accent-dark); }
.demo-count { margin: 1rem 0 0.5rem; font-size: 0.95rem; color: var(--ink2); }
.demo-count strong {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  text-align: center;
  font-weight: 600;
}
.demo-count strong.pop { animation: pop 0.3s ease-out; }
@keyframes pop { 50% { transform: scale(1.25); } }
.demo-cta { display: inline-block; font-weight: 600; font-size: 0.95rem; text-decoration: none; border-bottom: 2px solid currentColor; }
.demo-cta:hover { color: var(--accent); }

/* ---------- Motion ---------- */
/* Hero: staggered fade-up on load (JS-enabled pages only) */
html.js .hero-copy > *, html.js .demo { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.js .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
html.js .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
html.js .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
html.js .demo { animation-delay: 0.35s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Scroll reveal: .reveal set by JS, .in added when in view */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--delay, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Cards lift on hover; feature icons nudge */
.card { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px -24px rgba(34, 32, 28, 0.4); }
.feature .icon { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.feature:hover .icon { transform: scale(1.12) rotate(-4deg); }

/* Buttons: lift on hover, press down on click */
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px var(--accent-dark); }
.btn:active { transform: scale(0.97); }

/* Header shadow once scrolled */
.site-header { transition: box-shadow 0.2s; }
.site-header.scrolled { box-shadow: 0 6px 24px -16px rgba(34, 32, 28, 0.5); }

/* FAQ: answer fades in, +/− rotates */
summary::after { transition: transform 0.25s; }
details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
details[open] p { animation: rise 0.35s ease-out both; }

/* Steps: number badge pops in on reveal */
.steps li::before { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s; }
html.js .steps li.reveal:not(.in)::before { transform: scale(0.5); }

/* Show the demo on desktop beside the copy; on mobile it stacks under the hero text */
.hero-visual { display: block; }

/* ---------- Features ---------- */
.feature .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.9rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding-left: 3.25rem; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.25rem;
  display: grid;
  place-items: center;
}
.steps p { color: var(--ink2); }

/* ---------- Problem-card photo slots (#2, dormant until WebP files are added) ---------- */
.card-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }

/* ---------- Sample handover record (under "How it works") ---------- */
.record-wrap { margin: 2.5rem auto 0; max-width: 760px; }
.record {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;             /* paper, not a UI card */
  padding: 1.5rem;
  font-size: 0.875rem;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(34, 32, 28, 0.45);
  position: relative;
}
.record::before {               /* thin accent rule along the top, like a printed header */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
  border-radius: 6px 6px 0 0;
}
.record-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--ink);
}
.record-kicker { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); }
.record-head strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; }
.record-meta { color: var(--ink2); white-space: nowrap; }

.record-rows { list-style: none; margin: 0; padding: 0; }
.record-rows li {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  grid-template-areas: "thumb room sev" "thumb defect status";
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line);
}
.record-rows .thumb { grid-area: thumb; }
.record-room { grid-area: room; font-weight: 600; }
.record-defect { grid-area: defect; color: var(--ink2); }
.sev { grid-area: sev; justify-self: end; }
.status { grid-area: status; justify-self: end; }
.record-rows li.record-cols { display: none; }
@media (min-width: 640px) {
  .record-rows li {
    grid-template-columns: 2.25rem 7.5rem 1fr auto auto;
    grid-template-areas: "thumb room defect sev status";
    column-gap: 1rem;
  }
  .record-rows li.record-cols {
    display: grid;
    padding: 0.4rem 0;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink2);
    border-bottom: 1px solid var(--line);
  }
  .record-cols span:nth-child(2) { grid-area: room; }
  .record-cols span:nth-child(3) { grid-area: defect; }
  .record-cols span:nth-child(4) { grid-area: sev; justify-self: end; }
  .record-cols span:nth-child(5) { grid-area: status; justify-self: end; }
}
/* Photo thumbnail: placeholder made of borders until a real WebP replaces the span */
.thumb {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  position: relative;
  object-fit: cover;
}
span.thumb::after {
  content: "";
  position: absolute;
  inset: 30%;
  border: 2px solid var(--line);
  border-radius: 50%;
}
/* Severity in lay language: filled = not working, outlined = visible damage, muted = cosmetic */
.sev, .status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  border: 1px solid transparent;
}
.sev { white-space: nowrap; }
@media (min-width: 640px) { .status { white-space: nowrap; } }
.sev-high { background: var(--accent); color: #fff; }
.sev-mid { border-color: var(--accent); color: var(--accent-dark); }
.sev-low { background: var(--bg); border-color: var(--line); color: var(--ink2); }
.status-open { color: var(--accent-dark); padding-left: 0; padding-right: 0; }
.status-fixed { background: var(--bg); border-color: var(--line); color: var(--ink); }
.status-verified { background: var(--ink); color: #fff; }

.record-rights {
  margin: 1.1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  font-style: italic;
  color: var(--ink2);
  line-height: 1.5;
}
.record-foot { margin-top: 1.25rem; }
.record-stamp { display: block; font-size: 0.72rem; color: var(--ink2); letter-spacing: 0.02em; margin-bottom: 1.6rem; }
.record-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.sig { display: block; padding-top: 0.4rem; border-top: 1px solid var(--ink); font-size: 0.72rem; color: var(--ink2); }
.record-wrap figcaption { text-align: center; margin-top: 0.9rem; }

/* ---------- Form ---------- */
.form { display: grid; gap: 0.5rem; margin-top: 1.5rem; }
.form label { font-weight: 500; margin-top: 0.5rem; }
.form input, .form select {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  width: 100%;
}
.form .btn { margin-top: 1rem; }
.form .note { margin: 0.5rem 0 0; }
.input--hidden { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; font-size: 0.9rem; color: var(--ink2); margin-top: 0.75rem; }
.check input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--accent-dark); flex: none; }
.form button[disabled] { opacity: 0.6; cursor: default; transform: none; }
.form-error { color: var(--accent-dark); font-weight: 500; margin-top: 0.5rem; }
.form-error[hidden] { display: none; }

/* ---------- Early access ---------- */
.pay { text-align: center; padding: 2rem 1.5rem; }
.price { font-family: var(--font-head); margin: 0 0 1.25rem; }
.price-now { font-size: 3rem; color: var(--accent-dark); }
.price-was { font-size: 1.5rem; color: var(--ink2); margin-left: 0.5rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; text-align: left; display: grid; gap: 0.6rem; }
.checks li { padding-left: 1.75rem; position: relative; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.6rem;
  height: 1rem;
  border: solid var(--accent-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-left: 0.3rem;
}
.pay .note { margin-top: 0.75rem; }
.pay-legal { margin-bottom: 0; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); padding: 0.25rem 0; }
summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.9rem 2rem 0.9rem 0;
  position: relative;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent-dark);
  line-height: 1;
}
details[open] summary::after { content: "−"; }
details p { color: var(--ink2); padding-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); text-align: center; }
.site-footer p { margin-bottom: 0.5rem; }
.footer-mark { margin: 0 auto 1rem; opacity: 0.85; }

/* ---------- Sub-pages (thanks / privacy / terms) ---------- */
/* Language blocks: only the block matching <html lang> is shown */
html[lang="en"] .lang-block[data-lang-block="el"],
html[lang="el"] .lang-block[data-lang-block="en"] { display: none; }
.terms { padding-left: 1.5rem; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.terms li { line-height: 1.65; color: var(--ink2); }
.terms li::marker { font-weight: 600; color: var(--ink); }
.terms strong { color: var(--ink); font-weight: 600; }

.page-center { text-align: center; padding: 5rem 0; }
.page-center .btn-row { margin-top: 1.5rem; }
.btn-row-center { justify-content: center; }

/* ---------- Cookie banner: match site palette ---------- */
#cc-main {
  --cc-font-family: var(--font-body);
  --cc-bg: var(--card);
  --cc-primary-color: var(--ink);
  --cc-secondary-color: var(--ink2);
  --cc-btn-primary-bg: var(--accent-dark);
  --cc-btn-primary-hover-bg: var(--accent);
  --cc-btn-primary-border-color: var(--accent-dark);
  --cc-btn-primary-hover-border-color: var(--accent);
  --cc-btn-secondary-bg: var(--bg);
  --cc-btn-secondary-hover-bg: var(--line);
  --cc-btn-secondary-color: var(--ink);
  --cc-btn-secondary-border-color: var(--line);
  --cc-btn-secondary-hover-border-color: var(--line);
  --cc-modal-border-radius: var(--radius);
  --cc-btn-border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .card:hover, .btn-primary:hover, .demo-item:hover { transform: none; }
}
