/* ==========================================================================
   Heimdall – mobil parkolás · B változat
   Layout follows the HappyIT / Heimdall corporate site (bracketed headings,
   cards, icon rows), colours follow the Heimdall app (navy + orange).
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-ext-wght-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: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-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;
}

:root {
  /* App colours (dark theme) */
  --bg: #131a2a;
  --bg-deep: #0f1522;
  --surface: #1c253a;
  --surface-2: #222c44;
  --accent: #f5a623;
  --accent-hover: #ffb84a;
  --accent-ink: #141009;
  --accent-soft: rgba(245, 166, 35, 0.14);
  --brand-green: #088351;
  --text: #f1f3f7;
  --text-2: #c6ccd8;
  --muted: #8b95aa;
  --line: rgba(255, 255, 255, 0.08);

  --container: 1080px;
  --nav-h: 76px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text-2); font-family: var(--font); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Teal photo-like surface (used by banner, hero, CTA) ---------- */
.teal-surface { /* navy hero surface (class name kept for markup compatibility) */
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 120px),
    radial-gradient(800px 420px at 85% 15%, rgba(245,166,35,0.16), transparent 60%),
    radial-gradient(700px 400px at 5% 100%, rgba(8,131,81,0.10), transparent 60%),
    linear-gradient(120deg, #0f1522 0%, #1a2336 60%, #1f2a42 100%);
  color: #fff;
  border-bottom: 1px solid var(--line);
}

/* ---------- Banner (wordmark) ---------- */
.banner { padding: 64px 0 40px; }
.banner .container { display: flex; align-items: center; gap: 26px; }
.banner img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08); }
.banner-word { font-size: clamp(48px, 9vw, 104px); font-weight: 600; letter-spacing: -0.01em; line-height: 1; color: #fff; }
.banner-word small { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin-top: 10px; }

/* ---------- Nav bar ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.site-header .container { max-width: 1240px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-weight: 700; font-size: 17px; letter-spacing: 0.12em; color: var(--text); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.pill-link) { font-size: 14px; font-weight: 600; color: var(--text-2); }
.nav a:not(.pill-link):hover { color: var(--accent); }
.pill-link { display: inline-flex; align-items: center; height: 34px; padding: 0 18px; border: 1.5px solid var(--accent); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text); transition: background .15s, color .15s; }
.pill-link:hover { background: var(--accent); color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--accent); color: var(--accent); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn-orange {
  display: inline-flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(245,166,35,0.28);
  transition: background .15s, transform .15s;
}
.btn-orange:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-orange svg { width: 18px; height: 18px; }
.btn-line { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1.5px solid var(--accent); border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 13.5px; color: var(--accent); background: transparent; cursor: pointer; }
.btn-line:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; overflow-y: visible; }
.hero .container { display: grid; grid-template-columns: 1fr 470px; gap: 32px; align-items: center; min-height: 440px; }
.hero-text { padding: 56px 0; }
.hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.015em; }
.hero-lead { margin-top: 18px; font-size: 17.5px; line-height: 1.6; color: var(--text-2); max-width: 470px; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* phones overflow the band downward, like the camera on the corporate site */
.hero-phones { position: relative; align-self: stretch; }
.device { position: absolute; padding: 9px; background: #0a0e17; border-radius: 40px; box-shadow: 0 28px 60px -14px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.12); }
.device img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 31px; }
.hero-phones .device { width: 220px; top: 130px; }
.hero-phones .device:nth-child(1) { left: -10px; transform: rotate(-6deg); }
.hero-phones .device:nth-child(2) { left: 50%; margin-left: -135px; width: 270px; z-index: 2; top: 70px; }
.hero-phones .device:nth-child(3) { right: -10px; transform: rotate(6deg); }

/* ---------- Bracketed section titles ---------- */
.section { padding: 96px 0; }
.title {
  position: relative;
  display: table;
  margin: 0 auto 48px;
  padding: 6px 16px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
  text-align: center;
}
.title::before, .title::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--accent); }
.title::before { top: 0; left: 0; border-top-width: 5px; border-left-width: 5px; }
.title::after { bottom: 0; right: 0; border-bottom-width: 5px; border-right-width: 5px; }
.section-sub { text-align: center; max-width: 560px; margin: -28px auto 48px; color: var(--muted); }

/* Hero sits on top, so the first section needs room for the overflowing phones */
.after-hero { padding-top: 190px; }

/* ---------- Steps (diamond icons) ---------- */
.diamonds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 760px; margin: 0 auto; text-align: center; }
.diamond { position: relative; width: 116px; height: 116px; margin: 0 auto 26px; display: grid; place-items: center; color: var(--accent); }
.diamond::before { content: ""; position: absolute; inset: 17px; border: 1.5px solid var(--accent); transform: rotate(45deg); border-radius: 4px; background: var(--surface); }
.diamond svg { position: relative; width: 44px; height: 44px; }
.diamond .num { position: absolute; top: -2px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 800; font-size: 14px; display: grid; place-items: center; z-index: 1; }
.diamonds h3 { font-size: 17px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.02em; }
.diamonds p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
.card { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; text-align: center; display: flex; flex-direction: column; }
.card-media { position: relative; height: 250px; overflow: hidden; background: radial-gradient(320px 200px at 50% 100%, rgba(245,166,35,0.18), transparent 70%), linear-gradient(180deg, #232d45, #1a2236); border-bottom: 1px solid var(--line); }
.card-media .device { left: 50%; top: 28px; width: 210px; margin-left: -105px; box-shadow: 0 14px 30px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1); }
.card-body { padding: 20px 22px 24px; }
.card h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; color: var(--accent); letter-spacing: 0.01em; }
.card .kicker { margin-top: 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.card p { margin-top: 10px; font-size: 14px; color: var(--text-2); }

/* ---------- Gradient band ---------- */
.band { background: linear-gradient(90deg, var(--bg) 0%, var(--surface) 50%, #3b3424 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.band ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.band-icon { width: 86px; height: 86px; margin: 0 auto 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(245,166,35,0.25); }
.band-icon svg { width: 42px; height: 42px; }
.band h3 { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.3; }
.band p { margin-top: 4px; font-size: 13.5px; color: var(--text-2); }

/* ---------- Circles ---------- */
.circles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.circle { width: 116px; height: 116px; margin: 0 auto 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(245,166,35,0.25); display: grid; place-items: center; }
.circle svg { width: 58px; height: 58px; }
.circles h3 { font-size: 16.5px; font-weight: 700; }
.circles p { margin-top: 8px; font-size: 14px; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15.5px; color: var(--text); display: flex; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141009' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .2s; }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 22px 20px 58px; font-size: 14.5px; }
.faq .answer p + p { margin-top: 8px; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 72px 0; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.cta p { margin-top: 10px; color: var(--text-2); font-size: 17px; font-weight: 500; }
.cta .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: var(--text-2); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; }
.footer-grid strong { display: block; font-weight: 700; color: var(--text); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 64px; height: 64px; border-radius: 15px; }
.footer-brand span { font-size: 30px; font-weight: 600; letter-spacing: 0.04em; color: var(--text); }
.footer-links { justify-self: end; display: grid; gap: 4px; }
.footer-bottom { margin-top: 40px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 48px 0 40px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; opacity: 0.6; }
.legal-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
.legal-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--muted); font-size: 14px; }
.legal-meta strong { color: var(--text-2); }
.legal-layout { display: grid; grid-template-columns: 230px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 96px; }
.legal-layout > * { min-width: 0; }
.legal-nav { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; }
.legal-nav ul { display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--text); }
.legal-nav a:hover { background: var(--surface-2); color: var(--accent); }
.legal-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.legal-actions { padding: 10px 4px 4px; }
.legal-actions .btn-line { width: 100%; justify-content: center; }
.legal-text { white-space: pre-line; max-width: 760px; color: var(--text-2); font-size: 15.5px; line-height: 1.8; overflow-wrap: anywhere; }
.legal-placeholder { max-width: 760px; border: 1.5px dashed rgba(245,166,35,0.55); background: rgba(245,166,35,0.08); color: var(--text-2); border-radius: 10px; padding: 16px 20px; font-size: 14px; margin-bottom: 26px; }
.legal-placeholder code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 5px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .hero-text { padding: 48px 0 0; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-phones { height: 380px; max-width: 470px; width: 100%; margin: 0 auto; }
  .section.after-hero { padding-top: 250px; }
  .circles { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; background: var(--bg); box-shadow: 0 12px 24px rgba(0,0,0,0.4); border-bottom: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav a:not(.pill-link) { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav .pill-link { margin-top: 14px; justify-content: center; height: 42px; }
  .banner { padding: 40px 0 28px; }
  .banner img { width: 64px; height: 64px; border-radius: 15px; }
  .section { padding: 72px 0; }
  .diamonds { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; max-width: 420px; }
  .band ul { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-links { justify-self: center; }
  .footer-brand { order: -1; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; flex-wrap: wrap; }
  .legal-actions { display: none; }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .banner .container { gap: 16px; }
  .banner-word small { font-size: 11px; letter-spacing: 0.24em; }
  .hero-phones { height: 250px; }
  .hero-phones .device { width: 150px; padding: 6px; border-radius: 28px; }
  .hero-phones .device img { border-radius: 22px; }
  .hero-phones .device:nth-child(1) { left: -6px; top: 70px; }
  .hero-phones .device:nth-child(2) { width: 180px; margin-left: -90px; top: 30px; }
  .hero-phones .device:nth-child(3) { right: -6px; top: 70px; }
  .section.after-hero { padding-top: 180px; }
  .btn-orange { width: 100%; justify-content: center; }
  .circles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media print {
  .banner, .site-header, .site-footer, .legal-nav, .legal-placeholder, .skip-link { display: none !important; }
  .legal-hero { background: none !important; padding: 0 0 12px; }
  .legal-hero h1, .legal-meta, .breadcrumb { color: #000 !important; }
  .legal-layout { display: block; padding: 0; }
  body { background: #fff; }
  .legal-text { color: #000; max-width: none; font-size: 11pt; }
}

/* ---------- Additions for heimo.hu ---------- */
/* App store "coming soon" badges (become normal .btn-orange links when the app is live) */
.btn-orange.is-soon { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(245,166,35,0.6); cursor: default; }
.btn-orange.is-soon:hover { transform: none; background: transparent; }
.btn-orange.is-soon svg { color: var(--accent); }
.btn-orange small { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }

/* Barion payment banner in the footer */
.footer-pay { margin-top: 36px; display: flex; justify-content: center; }
.footer-pay a { display: block; padding: 8px; }
.footer-pay img { display: block; width: 340px; max-width: 100%; height: auto; }

/* Legal pages */
.legal-meta a { color: var(--accent); font-weight: 600; }
.legal-meta a:hover { text-decoration: underline; }
.legal-version-note { max-width: 760px; margin-bottom: 22px; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; font-size: 14px; color: var(--text-2); }
.legal-version-note a { color: var(--accent); overflow-wrap: anywhere; }
.notfound { padding: 48px 24px 96px; display: grid; gap: 18px; }
.notfound a:not(.btn-orange) { color: var(--accent); }

@media print {
  .legal-version-note { border: 0; background: none; padding: 0; color: #000; }
  .footer-pay { display: none; }
}
