/* Boligtjek – godik.ai's "Mac glassy" look. Tokens copied from godik.ai css/variables.css + glass.css. */
[hidden] { display: none !important; }
#tjek, #budget, #guide, #booking, #result { scroll-margin-top: 96px; }

:root {
  /* godik.ai tokens */
  --color-primary: #111827; --color-accent: #2563EB; --color-accent-light: #EFF6FF;
  --color-bg: #FFFFFF; --color-bg-alt: #F9FAFB; --color-bg-dark: #111827;
  --color-text: #111827; --color-text-secondary: #4B5563; --color-text-muted: #9CA3AF; --color-text-light: #F9FAFB;
  --color-border: #E5E7EB; --color-border-light: #F3F4F6;
  --color-positive: #059669; --color-negative: #DC2626; --color-mixed: #D97706;
  --font-body: 'Inter', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 9999px;
  --transition: 200ms ease;
  --glas: rgba(255, 255, 255, 0.72); --glas-hover: rgba(255, 255, 255, 0.9);
  --glas-dark: rgba(17, 24, 39, 0.55); --glas-dark-hover: rgba(17, 24, 39, 0.68);
  --glas-topbar: rgba(17, 24, 39, 0.84); /* darker than godik.ai's header: it sits on a light page, not a video; keeps the language buttons at >= 4.5:1 */
  --kant: 1px solid rgba(255, 255, 255, 0.6); --kant-dark: 1px solid rgba(255, 255, 255, 0.14);
  --skygge: 0 8px 32px rgba(0, 0, 0, 0.08); --skygge-hover: 0 14px 40px rgba(0, 0, 0, 0.12);
  --blur: blur(24px) saturate(170%);
  --r-glas-sm: 16px; --r-glas: 20px; --r-glas-lg: 28px; --header-h: 60px;

  /* aliases used by the page */
  --primary: var(--color-primary); --accent: var(--color-accent); --accent-light: var(--color-accent-light);
  --bg: var(--color-bg); --bg-alt: var(--color-bg-alt); --text: var(--color-text); --text-2: var(--color-text-secondary);
  --muted: #6B7280; --border: var(--color-border); --pos: var(--color-positive); --neg: var(--color-negative); --mixed: var(--color-mixed);
  --r: var(--radius-lg); --r-lg: var(--r-glas); --shadow: var(--skygge); --font: var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
/* Soft blobs behind everything (glass.css) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 420px at 12% 18%, rgba(37, 99, 235, 0.22), transparent 70%),
    radial-gradient(560px 460px at 88% 32%, rgba(16, 185, 129, 0.16), transparent 70%),
    radial-gradient(640px 520px at 50% 92%, rgba(251, 191, 36, 0.16), transparent 70%);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: 1.35rem; display: flex; gap: .6rem; align-items: center; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* Glass surfaces */
.card, .type > span, .numbers div, .budget-out .stat, .checklist, .files li, .flags li, .dialog {
  background: var(--glas); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: var(--kant); box-shadow: var(--skygge);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .type > span, .numbers div, .budget-out .stat, .checklist, .files li, .flags li, .dialog { background: rgba(255, 255, 255, 0.92); }
  .topbar { background: rgba(17, 24, 39, 0.96); }
}

/* Floating dark glass header (glass.css .header) */
.topbar {
  position: fixed; top: 10px; left: 10px; right: 10px; z-index: 100;
  background: var(--glas-topbar); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: var(--kant-dark); border-radius: var(--r-glas); box-shadow: var(--skygge);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); flex-wrap: wrap; padding: .4rem 0; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, .25); }
.langs { display: flex; gap: .2rem; flex-wrap: wrap; background: rgba(255, 255, 255, .08); border: var(--kant-dark); border-radius: var(--radius-full); padding: .2rem; }
.langs button { border: 0; background: transparent; padding: .4rem .8rem; border-radius: var(--radius-full); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; color: #fff; transition: background var(--transition), color var(--transition); }
.langs button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.langs button[aria-pressed="true"] { background: #fff; color: var(--color-primary); }
.langs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Hero */
.hero { padding: calc(var(--header-h) + 90px) 0 3rem; text-align: center; }
.hero .lead { font-size: 1.125rem; color: var(--text-2); line-height: 1.7; max-width: 720px; margin: 0 auto 1.8rem; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--accent); background: var(--glas); border: var(--kant); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); padding: .35rem .9rem; border-radius: var(--radius-full); margin-bottom: 1.2rem; }
.trust { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; color: var(--text-2); font-size: .95rem; }
.trust li::before { content: "✓ "; color: var(--pos); font-weight: 700; }
.steps { list-style: none; padding: 0; margin: 2.5rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 760px; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.1rem 1rem; background: var(--glas); border: var(--kant); border-radius: var(--r-glas-sm); box-shadow: var(--skygge); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.steps span, .num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: .95rem; flex: none; }

/* Sections transparent so the blobs show through */
.section { padding: 3rem 0; background: transparent; }
.section.alt { background: transparent; }
.section-title { justify-content: center; font-size: 1.8rem; }
.card { border-radius: var(--r-glas); padding: clamp(1.25rem, 4vw, 2rem); margin-bottom: 1.5rem; transition: transform var(--transition), background var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-2px); background: var(--glas-hover); box-shadow: var(--skygge-hover); }

/* Buttons (base.css + glass.css radius) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; border: none; border-radius: var(--r-glas-sm); padding: .8125rem 1.75rem; font: inherit; font-weight: 500; font-size: .9375rem; cursor: pointer; text-decoration: none; transition: all var(--transition); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { opacity: .85; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-secondary { background: var(--glas); color: var(--text); border: 1px solid var(--color-border); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn-secondary:hover { border-color: var(--text); background: var(--glas-hover); }
.btn-wide { width: 100%; margin-top: .5rem; }
.hero .btn-primary { background: var(--accent); }
.hero .btn-primary:hover { background: #1D4ED8; opacity: 1; }

/* Type picker */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.type { cursor: pointer; position: relative; }
.type input { position: absolute; opacity: 0; }
.type > span { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem; border-radius: var(--r-glas-sm); border: 2px solid rgba(255, 255, 255, .7); transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.type > span:hover { transform: translateY(-2px); background: var(--glas-hover); }
.type small { color: var(--text-2); font-size: .85rem; }
.type input:checked + span { border-color: var(--accent); background: rgba(239, 246, 255, .9); }
.type input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Upload */
.checklist { border-radius: var(--r-glas-sm); padding: .8rem 1rem; margin-bottom: 1rem; }
.checklist summary { cursor: pointer; font-weight: 600; }
.checklist ul { margin: .6rem 0 0; padding-inline-start: 1.2rem; color: var(--text-2); }
.drop { border: 2px dashed rgba(17, 24, 39, .25); border-radius: var(--r-glas-sm); padding: 1.5rem; text-align: center; transition: background var(--transition), border-color var(--transition); }
.drop.over { background: rgba(239, 246, 255, .8); border-color: var(--accent); }
.drop-title { font-weight: 600; margin-bottom: .2rem; }
.drop-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: .8rem; }
.files { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .8rem; border-radius: var(--radius-md); font-size: .9rem; box-shadow: none; }
.files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files button { border: 0; background: none; color: var(--neg); cursor: pointer; font: inherit; font-size: .85rem; }
.notice { font-size: .875rem; background: rgba(255, 251, 235, .9); border: 1px solid #FDE68A; border-radius: var(--radius-md); padding: .6rem .8rem; margin: 1rem 0; }
.error { color: var(--neg); font-weight: 500; }

/* Fields */
.field { display: flex; flex-direction: column; gap: .35rem; margin: 1rem 0 0; font-size: .92rem; font-weight: 500; }
.field input, .field textarea { font: inherit; font-weight: 400; padding: .7rem .8rem; border: 1px solid var(--color-border); border-radius: 10px; background: rgba(255, 255, 255, .85); width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0; font-size: .92rem; }
.check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: none; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid .full { grid-column: 1 / -1; }

.working { display: flex; gap: .6rem; align-items: center; justify-content: center; color: var(--text-2); margin-top: 1rem; }
.spinner { width: 18px; height: 18px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Result */
.result h3 { margin-top: 1.6rem; }
.banner { background: rgba(239, 246, 255, .9); border: 1px solid #BFDBFE; border-radius: var(--radius-md); padding: .7rem .9rem; font-size: .9rem; margin-bottom: 1rem; }
.ai-label { font-size: .85rem; color: var(--muted); }
.verdict { display: inline-block; font-weight: 700; padding: .35rem .9rem; border-radius: var(--radius-full); margin-bottom: 1rem; }
.verdict.ok { background: #ECFDF5; color: var(--pos); }
.verdict.caution { background: #FFFBEB; color: var(--mixed); }
.verdict.stop { background: #FEF2F2; color: var(--neg); }
.flags { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.flags li { border-inline-start-width: 4px; border-radius: var(--radius-lg); padding: .8rem 1rem; box-shadow: none; }
.flags li.high { border-inline-start-color: var(--neg); }
.flags li.medium { border-inline-start-color: var(--mixed); }
.flags li.low { border-inline-start-color: var(--accent); }
.flags p { margin: .3rem 0 0; color: var(--text-2); font-size: .93rem; }
.sev { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-inline-end: .5rem; }
.high .sev { color: var(--neg); } .medium .sev { color: var(--mixed); } .low .sev { color: var(--accent); }
.numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.numbers div { border-radius: var(--radius-lg); padding: .8rem; box-shadow: none; }
.numbers small { display: block; color: var(--text-2); }
.numbers b { font-size: 1.1rem; }
.numbers em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); }
.result ul.plain { padding-inline-start: 1.2rem; }
.result-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Budget */
.budget-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin: 1.5rem 0 1rem; }
.budget-out .stat { border-radius: var(--radius-lg); padding: .8rem; box-shadow: none; }
.budget-out .stat small { display: block; color: var(--text-2); font-size: .85rem; }
.budget-out .stat b { font-size: 1.2rem; }
.budget-out .stat.main { background: var(--color-bg-dark); border: var(--kant-dark); color: #fff; }
.budget-out .stat.main small { color: #D1D5DB; }
.budget-out .msg { grid-column: 1 / -1; border-radius: var(--radius-md); padding: .7rem .9rem; font-size: .92rem; }
.msg.ok { background: #ECFDF5; color: #065F46; } .msg.tight { background: #FFFBEB; color: #92400E; } .msg.risky, .msg.warn { background: #FEF2F2; color: #991B1B; }

/* Guide */
.tabs { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.tabs button { border: var(--kant); background: var(--glas); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: var(--radius-full); padding: .55rem 1rem; min-height: 44px; font: inherit; cursor: pointer; transition: all var(--transition); }
.tabs button[aria-selected="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.guide-steps { padding-inline-start: 1.3rem; margin: 0; }
.guide-steps li { margin-bottom: 1rem; }
.guide-steps p { margin: .2rem 0 0; color: var(--text-2); }

/* Booking */
.ticks { list-style: none; padding: 0; }
.ticks li { padding-inline-start: 1.6rem; position: relative; margin-bottom: .4rem; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--pos); font-weight: 700; }
.price { font-weight: 600; background: rgba(239, 246, 255, .9); border: 1px solid #BFDBFE; border-radius: var(--radius-md); padding: .7rem .9rem; }
.success { background: #ECFDF5; color: #065F46; border-radius: var(--radius-md); padding: 1rem; font-weight: 600; }

/* Footer (godik.ai footer.css tone) */
.footer { background: var(--color-bg-dark); color: var(--color-text-muted); padding: 4rem 0 2rem; font-size: .875rem; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2rem; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer__logo { font-weight: 700; font-size: 1.125rem; color: var(--color-text-light); display: block; margin-bottom: .75rem; text-decoration: none; }
.footer a { color: var(--color-text-muted); text-decoration: none; transition: color var(--transition); }
.footer a:hover { color: var(--color-text-light); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 2rem; }
.footer__bottom p { margin: 0; }

/* Dialog */
.dialog { max-width: 640px; width: calc(100% - 2rem); border-radius: var(--r-glas-lg); padding: 1.5rem 1.75rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dialog::backdrop { background: rgba(17,24,39,.5); }
.dialog p { font-size: .93rem; color: var(--text-2); }

@media (max-width: 809px) {
  body::before {
    background:
      radial-gradient(360px 300px at 15% 12%, rgba(37, 99, 235, 0.14), transparent 70%),
      radial-gradient(380px 320px at 90% 45%, rgba(16, 185, 129, 0.10), transparent 70%),
      radial-gradient(420px 360px at 50% 95%, rgba(251, 191, 36, 0.10), transparent 70%);
  }
  .hero { padding-top: calc(var(--header-h) + 110px); }
}
@media (max-width: 680px) {
  .types, .grid, .footer__inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: .6rem; }
  .steps li { flex-direction: row; justify-content: center; }
  .topbar-inner { justify-content: center; gap: .3rem; padding: .5rem 0; min-height: 0; }
  .topbar { left: 6px; right: 6px; top: 6px; }
  .langs { flex-wrap: nowrap; }
  .langs button { font-size: .78rem; padding: .35rem .55rem; letter-spacing: -.01em; }
  #tjek, #budget, #guide, #booking, #result { scroll-margin-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .type > span, .btn, .tabs button { transition: none; }
  .card:hover, .type > span:hover { transform: none; }
}
@media print {
  body::before, .topbar, .hero, #guide, #booking, .footer, #tjek .card:not(.result), .result-actions { display: none !important; }
  .card { box-shadow: none; border: 0; background: #fff; }
}

/* RTL (Arabic): numbers and Danish terms stay readable inside Arabic text */
[dir="rtl"] { text-align: start; }
[dir="rtl"] .numbers b, [dir="rtl"] .numbers em, [dir="rtl"] .budget-out .stat b, [dir="rtl"] .files li span, [dir="rtl"] .field input { unicode-bidi: isolate; }
[dir="rtl"] .field input, [dir="rtl"] .field textarea { text-align: start; }
[dir="rtl"] input[inputmode="numeric"], [dir="rtl"] input[inputmode="decimal"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { direction: ltr; text-align: end; }
[dir="rtl"] .sev { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
