/* ============================================================
   AGENTIS — segment pages (/andelsboligforening/ etc.)
   The front page styles, lifted out of index.html, plus a few blocks
   for rules, reading cards, FAQ and the partner-code box.
   ============================================================ */
.top { display:flex; align-items:center; justify-content:space-between; padding: 22px 0; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; }
.logo span { color: var(--teal); }
.top a.demo-link { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); border: 1px solid var(--hair-2); padding: 8px 14px; border-radius: 999px; }
.top a.demo-link:hover { background: var(--teal-soft); }
.top nav { display:flex; align-items:center; gap: 10px; }
.top nav a.nav-link { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-55); padding: 8px 10px; }
.top nav a.nav-link:hover { color: var(--teal-deep); }

.hero { padding-block: clamp(48px, 8vw, 104px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero .eyebrow { margin-bottom: 14px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.06; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.lede { margin-top: clamp(18px, 2.4vw, 26px); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink-70); max-width: 46ch; }
.cta-row { margin-top: clamp(26px, 3.4vw, 38px); display:flex; flex-wrap:wrap; gap: 12px; align-items:center; }
.btn { display:inline-flex; align-items:center; gap:10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.btn-primary:hover { transform: translateY(-1px); background: var(--teal-deep); }
.btn-ghost { border-color: var(--hair-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-2); }

/* hero: a meeting turning into a referat, on a 12 s loop */
.demo-card { background: #fff; border: 1px solid var(--hair); border-radius: 18px; box-shadow: 0 30px 70px -40px rgba(22,36,61,.45), var(--shadow-1); padding: 20px 22px 22px; font-size: .92rem; }
.dc-head { display:flex; align-items:center; gap: 9px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-55); padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.dc-rec { width: 9px; height: 9px; border-radius: 50%; background: #C4452F; animation: dcRec 12s infinite; }
.dc-steps { display:flex; gap: 8px; flex-wrap: wrap; padding: 14px 0; }
.dc-step { display:inline-flex; align-items:center; gap: 7px; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-40); animation: dcStep 12s infinite both; }
.dc-step i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dc-step.s1 { animation-delay: 0s; } .dc-step.s2 { animation-delay: 1.4s; } .dc-step.s3 { animation-delay: 2.8s; } .dc-step.s4 { animation-delay: 5s; }
.dc-label { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-40); margin: 12px 0 7px; }
.dc-dec, .dc-task, .dc-open { border-radius: 10px; padding: 10px 12px; line-height: 1.45; color: var(--ink); animation: dcIn 12s infinite both; }
.dc-dec { display:grid; grid-template-columns: 20px 1fr; gap: 9px; background: var(--teal-soft); }
.dc-dec .ck { width: 18px; height: 18px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .68rem; display:grid; place-items:center; margin-top: 2px; }
.dc-task { display:flex; justify-content: space-between; gap: 10px; border: 1px solid var(--hair); }
.dc-task em { font-style: normal; font-family: var(--mono); font-size: .68rem; color: var(--ink-55); white-space: nowrap; padding-top: 3px; }
.dc-open { display:grid; grid-template-columns: 20px 1fr; gap: 9px; background: #F6EEDD; border: 1px dashed rgba(184,121,28,.45); margin-top: 8px; }
.dc-open .q { color: #B8791C; font-weight: 700; text-align:center; }
.demo-card b { font-family: var(--mono); font-weight: 500; font-size: .68rem; color: var(--teal-deep); background: #fff; border: 1px solid rgba(14,138,107,.28); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.d1 { animation-delay: 4.2s; } .d2 { animation-delay: 5s; } .d3 { animation-delay: 5.8s; }
@keyframes dcStep { 0%, 4% { background: var(--bg-2); color: var(--ink-40); } 6%, 14% { background: var(--teal); color: #fff; } 18%, 88% { background: var(--teal-soft); color: var(--teal-deep); } 96%, 100% { background: var(--bg-2); color: var(--ink-40); } }
@keyframes dcIn { 0%, 2% { opacity: 0; transform: translateY(8px); } 8%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(8px); } }
@keyframes dcRec { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.band { padding-block: clamp(44px, 6.5vw, 92px); border-top: 1px solid var(--hair); }
.band.problem, .band.why, .band.formats { background: var(--bg-2); }
.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }
.band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -0.015em; line-height: 1.15; margin-top: 12px; max-width: 26ch; }
.grid3 { margin-top: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow-1); }
.grid2 { margin-top: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-2); }
.card h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.card p { margin-top: 8px; color: var(--ink-70); line-height: 1.55; }
.steps { margin-top: clamp(24px, 4vw, 40px); display: grid; gap: 4px; max-width: 760px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.step:last-child { border-bottom: 0; }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; font-family: var(--mono); font-weight: 500; }
.step h3 { font-size: 1.12rem; font-weight: 600; }
.step p { margin-top: 6px; color: var(--ink-70); line-height: 1.55; max-width: 56ch; }
.rise { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .dc-step, .dc-dec, .dc-task, .dc-open, .dc-rec { animation: none; opacity: 1; transform: none; }
  .dc-step { background: var(--teal-soft); color: var(--teal-deep); }
  
}

.contact { padding-block: clamp(48px, 7vw, 96px); background: var(--bg-2); border-top: 1px solid var(--hair); }
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items:start; }
.contact h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.015em; line-height: 1.15; }
.contact p { margin-top: 14px; color: var(--ink-70); max-width: 44ch; }
.contact .facts { margin-top: 22px; display:grid; gap: 8px; font-family: var(--mono); font-size: .8rem; color: var(--ink-55); }
form { display:grid; gap: 14px; background: var(--bg); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-1); }
label { display:grid; gap: 6px; font-size: .9rem; font-weight: 500; }
input, textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--hair-2); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 110px; resize: vertical; }
.two { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.msg { font-size: .95rem; min-height: 1.4em; }
.msg.ok { color: var(--teal-deep); font-weight: 600; }
.msg.err { color: #b3261e; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

footer { padding: 28px 0 40px; font-family: var(--mono); font-size: .76rem; color: var(--ink-40); display:flex; flex-wrap:wrap; gap: 8px 22px; }
footer a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .contact-grid, .two, .grid3, .grid2, .hero-grid, .trace { grid-template-columns: 1fr; }
  .top a.demo-link { padding: 7px 11px; font-size: .72rem; }
}

/* ---- segment pages only ---- */
.trace-lede { margin-top: 12px; color: var(--ink-70); max-width: 52ch; }
.card .src { margin-top: 12px; font-family: var(--mono); font-size: .72rem; line-height: 1.5; color: var(--ink-40); }
.card .tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.card .tag + h3 { margin-top: 6px; }
.sources { margin-top: 18px; font-size: .84rem; line-height: 1.55; color: var(--ink-55); max-width: 80ch; }
.sources a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-2); }
.reads { margin-top: clamp(22px, 3.4vw, 34px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
a.read-card { display: block; background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 18px 20px; transition: transform .2s var(--ease), border-color .2s var(--ease); }
a.read-card:hover { transform: translateY(-2px); border-color: var(--teal); }
a.read-card .kick { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); }
a.read-card h3 { margin-top: 6px; font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
a.read-card p { margin-top: 6px; font-size: .92rem; color: var(--ink-55); line-height: 1.5; }
.faq { margin-top: clamp(22px, 3.4vw, 34px); display: grid; gap: 8px; max-width: 760px; }
.faq details { background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--teal-deep); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 0 16px; color: var(--ink-70); line-height: 1.6; max-width: 66ch; }
.faq .faq-a a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-2); }
.code-band { padding-block: clamp(44px, 6.5vw, 92px); border-top: 1px solid var(--hair); background: var(--navy); color: var(--d-fg); }
.code-band .eyebrow { color: rgba(234,233,224,.6); }
.code-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -0.015em; line-height: 1.15; margin-top: 12px; max-width: 26ch; }
.code-band p { margin-top: 12px; color: rgba(234,233,224,.84); max-width: 54ch; line-height: 1.6; }
.code-form { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; background: none; border: 0; box-shadow: none; padding: 0; }
.code-form input { flex: 1 1 220px; width: auto; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.code-form .btn { flex: none; }
.code-band .msg { color: #F2C7BF; margin-top: 8px; }
@media (max-width: 760px) { .reads { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { a.read-card { transition: none; } }
