/* /ai-maerkning — stempelkontor, ikke en SaaS-quiz */
:root {
    --ink: #101828;
    --navy: #071A3A;
    --navy-2: #0C274F;
    --paper: #F3EFE4;
    --paper-2: #E7E1D2;
    --stamp: #E11D74;
    --stamp-ink: #B0135A;
    --steel: #8A93A3;
    --rule: #D4CDB8;
    --ok: #2F6B4F;
    --warn: #A15C12;
}
* { box-sizing: border-box; }
.agm [hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body.agm {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.agm a { color: var(--stamp); }
.agm .serif { font-family: Fraunces, Georgia, serif; }
.agm .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.agm .wrap { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.agm .wrap-narrow { width: min(720px, calc(100% - 40px)); margin: 0 auto; }

.agm-nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; border-bottom: 1px solid var(--rule); background: var(--paper);
}
.agm-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; }
.agm-nav .brand img { height: 28px; }
.agm-nav .docket {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel);
}
.agm-nav-links { display: flex; gap: 18px; align-items: center; }
.agm-nav-links a { color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 600; }
.agm-nav-links a:hover, .agm-nav-links a.is-on { color: var(--stamp); }
.agm-nav-quiet { color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 600; }
.agm-nav-quiet:hover { color: var(--stamp); }

body.agm-open { background: #f7f4ec; }
.agm-open .agm-nav { background: transparent; border-bottom: 0; }
.agm-open-hero { text-align: left; padding: 28px 0 8px; }
.agm-open-hero h1 {
    font-family: Fraunces, Georgia, serif;
    font-weight: 600; font-size: clamp(36px, 6vw, 64px);
    line-height: 1.02; letter-spacing: -0.03em; color: var(--navy); margin: 0 0 12px;
}
.agm-open-hero p { color: #4b5563; font-size: 18px; margin: 0 0 8px; max-width: 36em; }
.agm-open-wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.agm-open-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
    padding-bottom: 64px;
}
.agm-pick-label {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--steel); margin: 0 0 10px;
}
.agm-open .agm-chip {
    flex: 1; min-width: 120px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 12px 10px 10px;
}
.agm-open .agm-chip img { height: 28px; width: auto; display: block; }
.agm-open .agm-chip.is-on { background: #fff; color: var(--navy); border-color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.agm-chip-name { font-size: 11px; letter-spacing: .04em; }
.agm-open .agm-drop {
    position: relative;
    min-height: 300px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 2px dashed #c9c0a8; border-radius: 20px; background: #fff;
    font-size: 20px; font-weight: 600; color: var(--navy); padding: 48px 24px; margin: 18px 0 0;
    -webkit-tap-highlight-color: rgba(225, 29, 116, 0.12);
    touch-action: manipulation;
}
.agm-open .agm-drop:hover, .agm-open .agm-drop.is-over { border-color: var(--stamp); background: #fff8fb; }
.agm-open .agm-drop.is-busy { opacity: .65; }
.agm-open .agm-drop-hint { font-weight: 400; font-size: 14px; }
.agm-drop-copy { display: block; text-align: center; }
.agm-drop-cta {
    width: auto; min-width: 200px; margin-top: 16px; pointer-events: none;
    position: relative; z-index: 1;
}
.agm-only-coarse { display: none !important; }
.agm-save-hint { font-size: 14px; color: #3d4553; margin: 10px 0 0; }
.agm-open .agm-variants { justify-content: stretch; }
.agm-open .agm-preview { max-height: 70vh; border-radius: 12px; margin-top: 16px; }
.agm-open .agm-stamp-actions { justify-content: center; }
.agm-open .agm-stamp-actions .agm-btn { min-width: 240px; padding: 16px 22px; font-size: 17px; }
.agm-open-note { text-align: center; font-size: 13px; color: #6b7280; max-width: 36em; margin: 28px auto 0; padding: 0 16px; }
.agm-open-upsells {
    width: min(880px, calc(100% - 32px)); margin: 48px auto 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 880px) {
    .agm-open-upsells, .agm-open-shell { grid-template-columns: 1fr; }
}

.agm-hero { background: var(--navy); color: var(--paper); padding: 56px 0 72px; }
.agm-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.agm-kicker {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stamp);
    margin: 0 0 18px;
}
.agm-hero h1 {
    font-family: Fraunces, Georgia, serif;
    font-weight: 600; font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 22px; color: var(--paper);
}
.agm-hero h1 em { font-style: italic; color: #fff; }
.agm-lede { font-size: 18px; color: #d7d2c4; max-width: 36em; margin: 0 0 28px; }
.agm-lede strong { color: #fff; font-weight: 600; }

.agm-form {
    background: var(--paper); color: var(--ink);
    padding: 22px; border: 1px solid #2a3f63;
    box-shadow: 0 24px 50px -28px rgba(0,0,0,.55);
}
.agm-form h2 { font-family: Fraunces, Georgia, serif; font-size: 22px; margin: 0 0 14px; color: var(--navy); }
.agm-form label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #5b6472; font-weight: 700; margin: 0 0 6px; }
.agm-form input[type="text"],
.agm-form input[type="email"] {
    width: 100%; padding: 12px 13px; margin-bottom: 12px;
    border: 1px solid var(--rule); background: #fff; color: var(--ink);
    font: inherit; font-size: 16px;
}
.agm-form input:focus { outline: 2px solid var(--stamp); outline-offset: 1px; }
.agm-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 13px; color: #4b5563; line-height: 1.45; }
.agm-consent input { margin-top: 3px; }
.agm-error { display: none; background: #fde8f1; color: var(--stamp-ink); border: 1px solid #f3b4cd; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.agm-error.is-on { display: block; }

.agm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; border: 0; cursor: pointer; text-decoration: none;
    background: var(--stamp); color: #fff; font: inherit; font-weight: 700; font-size: 16px;
    padding: 14px 18px;
}
.agm a.agm-btn { color: #fff; }
.agm-btn:hover { background: var(--stamp-ink); }
.agm-btn:disabled { opacity: .5; cursor: not-allowed; }
.agm-btn-navy { background: var(--navy); color: var(--paper); }
.agm a.agm-btn-navy { color: var(--paper); }
.agm-btn-navy:hover { background: #000; }
.agm-btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); width: auto; padding: 10px 16px; }
.agm-btn-ghost-light { background: transparent; color: var(--paper); border: 1px solid rgba(243,239,228,.45); width: auto; }
.agm-btn-ghost-light:hover { background: rgba(255,255,255,.08); }
.agm-doors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.agm-doors .agm-btn { width: auto; padding: 14px 22px; }
.agm-variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.agm-chip {
    border: 1px solid var(--rule); background: #fff; color: var(--navy);
    font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em;
    padding: 8px 12px; cursor: pointer;
}
.agm-chip.is-on { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.agm-drop-hint { display: block; margin-top: 8px; font-size: 13px; color: #5b6472; }
.agm-stamp-cta { margin: 22px 0 0; }
.agm-stamp-cta .agm-btn { width: auto; }
.agm-hero-compact { padding: 40px 0 36px; }
.agm-stamp-stage { background: #fff; border: 1px solid var(--rule); padding: 22px; }

.agm-demo { position: relative; }
.agm-demo figure { margin: 0; position: relative; background: #0a1630; }
.agm-demo img.frame { width: 100%; display: block; }
.agm-demo .stamp {
    position: absolute; left: 4.5%; bottom: 5.5%;
    width: 34%; max-width: 220px; height: auto;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
    transform-origin: 20% 80%;
    animation: agm-stamp 700ms 250ms cubic-bezier(.2,1.4,.3,1) both;
}
@keyframes agm-stamp {
    from { opacity: 0; transform: translate(-12px, -28px) rotate(-14deg) scale(1.25); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .agm-demo .stamp { animation: none; }
}
.agm-demo figcaption {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--steel); margin-top: 10px;
}

.agm-section { padding: 72px 0; }
.agm-section h2 { font-family: Fraunces, Georgia, serif; font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; color: var(--navy); letter-spacing: -0.02em; }
.agm-section .deck { color: #3d4553; max-width: 40em; margin: 0 0 32px; }

.agm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.agm-steps article { background: #fff; padding: 22px 20px; }
.agm-steps .n {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px; letter-spacing: .16em; color: var(--stamp); margin: 0 0 8px;
}
.agm-steps h3 { font-family: Fraunces, Georgia, serif; font-size: 22px; margin: 0 0 8px; color: var(--navy); }
.agm-steps p { margin: 0; color: #3d4553; font-size: 15px; }

.agm-law { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.agm-law dt { font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.agm-law dd { margin: 0 0 16px; color: #3d4553; font-size: 15px; }
.agm-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agm-date { border: 1px solid var(--rule); background: #fff; padding: 18px 18px 16px; }
.agm-date .when { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--stamp); }
.agm-date strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 22px; margin: 6px 0 6px; color: var(--navy); }
.agm-date p { margin: 0; font-size: 14px; color: #3d4553; }

.agm-note {
    border-left: 3px solid var(--stamp);
    padding: 12px 16px; background: var(--paper-2);
    font-size: 14px; color: #3d4553;
}
.agm-footer { border-top: 1px solid var(--rule); padding: 28px 0 48px; color: var(--steel); font-size: 13px; }

/* —— værktøj —— */
.agm-progress {
    display: flex; gap: 18px; align-items: center;
    padding: 16px 0; border-bottom: 1px solid var(--rule);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel);
}
.agm-progress .on { color: var(--navy); font-weight: 700; }
.agm-progress .done { color: var(--ok); }

.agm-tool { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; padding: 36px 0 80px; align-items: start; }
.agm-case { background: #fff; border: 1px solid var(--rule); padding: 28px 28px 32px; min-height: 420px; }
.agm-case .step-kicker {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--stamp); margin: 0 0 10px;
}
.agm-case h2 { font-family: Fraunces, Georgia, serif; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; margin: 0 0 10px; color: var(--navy); }
.agm-case .lead { color: #3d4553; margin: 0 0 22px; }

.agm-opts { display: grid; gap: 8px; }
.agm-opt {
    display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
    width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--rule);
    padding: 12px 14px; cursor: pointer; font: inherit; color: inherit;
}
.agm-opt:hover, .agm-opt:focus-visible { border-color: var(--navy); background: #fff; outline: 2px solid var(--navy); outline-offset: 1px; }
.agm-opt .key {
    width: 28px; height: 28px; display: grid; place-items: center;
    border: 1px solid var(--navy); color: var(--navy);
    font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; font-weight: 700;
}
.agm-opt .lab { font-weight: 700; color: var(--navy); }
.agm-opt .hint { display: block; font-size: 13px; color: #5b6472; font-weight: 400; margin-top: 2px; }
.agm-opt .chev { color: var(--steel); }

.agm-back { margin-top: 18px; background: none; border: 0; color: #5b6472; font: inherit; font-size: 14px; cursor: pointer; padding: 0; }
.agm-back:hover { color: var(--navy); }

.agm-verdict-kicker {
    display: inline-block; font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    background: var(--navy); color: var(--paper); padding: 4px 8px; margin-bottom: 12px;
}
.agm-verdict-kicker.is-pligt { background: var(--stamp); }
.agm-verdict-kicker.is-ok { background: var(--ok); }
.agm-verdict-kicker.is-soft { background: var(--warn); color: #fff; }
.agm-monday { margin: 18px 0 0; padding: 0; list-style: none; }
.agm-monday li { position: relative; padding: 8px 0 8px 28px; border-top: 1px solid var(--rule); font-size: 15px; }
.agm-monday li::before { content: "→"; position: absolute; left: 0; color: var(--stamp); font-weight: 700; }
.agm-sources { margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; }
.agm-sources li { margin: 0 0 6px; }
.agm-limit { margin-top: 18px; font-size: 13px; color: #5b6472; }

.agm-rail { display: flex; flex-direction: column; gap: 14px; }
.agm-card { background: #fff; border: 1px solid var(--rule); padding: 16px 16px 18px; }
.agm-card .who { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--stamp); margin: 0 0 6px; }
.agm-card h3 { font-family: Fraunces, Georgia, serif; font-size: 20px; margin: 0 0 8px; color: var(--navy); }
.agm-card p { margin: 0 0 12px; font-size: 14px; color: #3d4553; }
.agm-card .price { font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.agm-card .price s { color: var(--steel); font-weight: 500; margin-right: 6px; }
.agm-card .agm-btn { width: 100%; }

.agm-stampbox { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 22px; }
.agm-stampbox h3 { font-family: Fraunces, Georgia, serif; font-size: 24px; margin: 0 0 8px; color: var(--navy); }
.agm-drop {
    position: relative;
    border: 1px dashed #b9b19a; background: var(--paper); padding: 28px 16px;
    text-align: center; cursor: pointer; color: #3d4553; margin: 12px 0;
    overflow: hidden;
}
.agm-drop.is-over { border-color: var(--stamp); background: #fff; }
/* Overlay the native input — display:none + <label> does not open the picker on iOS. */
.agm-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    font-size: 20px;
    z-index: 2;
}
.agm-preview { width: 100%; max-height: 480px; object-fit: contain; background: #111; display: block; }
.agm-stamp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.agm-stamp-actions .agm-btn { width: auto; }

.agm-gate { max-width: 480px; margin: 48px auto 80px; }

@media (max-width: 880px) {
    .agm-hero-grid, .agm-tool, .agm-law, .agm-dates, .agm-steps { grid-template-columns: 1fr; }
    .agm-hero { padding: 36px 0 48px; }
    .agm-section { padding: 48px 0; }
    .agm-opt { grid-template-columns: 32px 1fr; }
    .agm-opt .chev { display: none; }
    .agm-case { padding: 20px 16px 24px; min-height: 0; }
    .agm-open .agm-chip { min-width: 0; padding: 10px 6px; }
    .agm-open .agm-chip img { height: 22px; }
    .agm-open .agm-drop {
        min-height: 220px;
        padding: 28px 18px;
        font-size: 18px;
    }
    .agm-open .agm-stamp-actions .agm-btn { min-width: 0; width: 100%; }
    .agm-only-fine { display: none !important; }
    .agm-only-coarse { display: block !important; }
    .agm-drop-cta.agm-only-coarse { display: inline-flex !important; }
    .agm-open-hero .agm-only-coarse { display: inline !important; }
}

@media (pointer: coarse) {
    .agm-only-fine { display: none !important; }
    .agm-only-coarse { display: block !important; }
    .agm-drop-cta.agm-only-coarse { display: inline-flex !important; }
    .agm-open-hero .agm-only-coarse { display: inline !important; }
    .agm-open .agm-drop { min-height: 220px; padding: 28px 18px; font-size: 18px; }
    .agm-open .agm-stamp-actions .agm-btn { min-width: 0; width: 100%; }
}
