/* The sales site's only stylesheet. Taken from the old one-page site (old/index.html) and extended for the
   inner pages and forms. No inline styles anywhere: the Content-Security-Policy (Program.cs) forbids them. */

:root {
    --blue: #174a6e; --blue-dark: #10354f; --blue-light: #eaf4f9;
    --green: #2f7d62; --green-dark: #21644e; --green-light: #e1f1eb; --cream: #f8f6f1;
    --text: #26343d; --muted: #5b6970; --white: #fff; --error: #b42318;
    --border: #dce3e7; --shadow: 0 14px 40px rgba(16, 53, 79, .11); --radius: 18px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: #fff; line-height: 1.6 }
a { color: var(--blue) }
img { max-width: 100% }
.container { width: min(1080px, calc(100% - 32px)); margin: auto }
.narrow { max-width: 760px }

/* Top bar and menu */
.topbar { background: var(--blue-dark); color: #fff; font-size: 14px; padding: 9px 0; text-align: center }
.site-nav { min-height: 76px; display: flex; align-items: center; background: #fff; border-bottom: 1px solid #edf0f2 }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none }
.logo img { max-height: 50px; width: auto }
.logo-first { color: #028553 }
.logo-second { color: var(--blue) }
.navlinks { display: flex; gap: 22px; align-items: center }
.navlinks a { text-decoration: none; font-weight: 600; font-size: 15px; color: #4b5961 }
.navlinks a:hover, .navlinks a.active { color: var(--blue-dark) }
.navlinks a.active:not(.button) { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px }

/* The phone menu (MainLayout): hidden on wide screens. <details> folds the links out below the bar. */
.site-nav { position: relative }
.mobile-nav { display: none; align-items: center; gap: 10px }
.mobile-nav > .button { padding: 9px 14px; font-size: 15px; white-space: nowrap }
.menu { border: 0; padding: 0 } /* not the FAQ's <details> look further down */
.menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 9px 12px; border: 1px solid #c9d7df; border-radius: 11px; font-weight: 700; color: var(--blue-dark); font-size: 15px; user-select: none }
.menu summary::-webkit-details-marker { display: none }
.menu-icon, .menu-icon:before, .menu-icon:after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px }
.menu-icon { position: relative }
.menu-icon:before, .menu-icon:after { content: ""; position: absolute; left: 0 }
.menu-icon:before { top: -6px }
.menu-icon:after { top: 6px }
.menu[open] .menu-icon { background: transparent }
.menu[open] .menu-icon:before { top: 0; transform: rotate(45deg) }
.menu[open] .menu-icon:after { top: 0; transform: rotate(-45deg) }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 14px 24px rgba(16, 53, 79, .12); padding: 6px 16px 14px }
.menu-panel a { display: block; padding: 13px 4px; border-bottom: 1px solid #edf0f2; text-decoration: none; font-weight: 650; font-size: 17px; color: var(--blue-dark) }
.menu:not([open]) .menu-panel { display: none }
.menu-panel a.active { color: var(--green-dark) }
.menu-panel a.button { margin-top: 12px; padding: 13px; border-bottom: 0; font-size: 16px; text-align: center }
.menu summary { white-space: nowrap }

@media (max-width: 1000px) {
    .navlinks { display: none }
    .mobile-nav { display: flex }
}

@media (max-width: 480px) {
    .site-nav { min-height: 64px }
    .logo { font-size: 16px; gap: 8px }
    .logo img { max-height: 38px }
    .topbar { font-size: 13px }
    /* No room for both buttons next to the logo: "Prøv gratis" is at the bottom of the menu instead. */
    .mobile-nav > .button { display: none }
}

/* Buttons */
.button { display: inline-block; background: var(--blue); color: #fff !important; text-decoration: none; padding: 13px 21px; border-radius: 11px; font-weight: 750; box-shadow: 0 6px 18px rgba(23, 74, 110, .18); border: 0; font: inherit; font-weight: 750; cursor: pointer }
.button:hover { background: var(--blue-dark) }
.button.secondary { background: #fff; color: var(--blue) !important; border: 1px solid #c9d7df; box-shadow: none }
.button.green { background: var(--green) }
.button.green:hover { background: var(--green-dark) }
.button.light { background: #fff; color: var(--blue) !important }
.button.outline-light { background: transparent; border: 1px solid #8fb0c4; box-shadow: none }
.button.full { width: 100%; text-align: center }
.navlinks .button { padding: 10px 16px; color: #fff }
.actions { display: flex; gap: 12px; flex-wrap: wrap }
.actions.centered { justify-content: center }
.small-note { font-size: 13px; color: var(--muted); margin-top: 14px }

/* Front page hero */
.hero { background: linear-gradient(180deg, #f1f7fa 0%, #fff 100%); padding: 72px 0 76px }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center }
.eyebrow { display: inline-block; background: var(--green-light); color: var(--green-dark); padding: 7px 12px; border-radius: 999px; font-weight: 750; font-size: 13px; margin-bottom: 17px }
h1 { font-size: clamp(36px, 5vw, 63px); line-height: 1.06; letter-spacing: -2px; margin: 0 0 20px; color: var(--blue-dark) }
.hero p { font-size: 20px; color: #53626b; max-width: 650px; margin: 0 0 26px }
.hero strong { color: var(--blue-dark) }

/* Inner page heading */
.page-head { background: linear-gradient(180deg, #f1f7fa 0%, #fff 100%); padding: 56px 0 40px }
.page-head h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -1.2px; margin-bottom: 14px }
.page-head p { font-size: 19px; color: #53626b; max-width: 720px; margin: 0 }
.page-head .actions { margin-top: 24px }

/* Price card in the hero */
.price-card { background: #fff; border: 1px solid #dce6eb; border-radius: 24px; box-shadow: var(--shadow); padding: 30px }
.tag { display: inline-block; background: var(--blue-light); color: var(--blue); font-weight: 800; padding: 6px 10px; border-radius: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .4px }
.price { font-size: 51px; font-weight: 850; line-height: 1; color: var(--blue-dark); margin: 17px 0 2px; letter-spacing: -1.5px }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0 }
.price-card h3 { font-size: 22px; margin: 7px 0 5px; color: var(--blue-dark) }
.price-card p { font-size: 15px; color: var(--muted); margin: 0 0 19px }
.mini-checks { list-style: none; padding: 0; margin: 0 0 22px }
.mini-checks li { margin: 9px 0; padding-left: 26px; position: relative; font-size: 15px }
.mini-checks li:before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900 }
.ai-box { margin-top: 17px; background: #f5f8fa; border-radius: 15px; padding: 16px; border: 1px solid #e1e8ec }
.ai-box strong { display: block; color: var(--blue-dark); margin-bottom: 2px }
.ai-box span { font-size: 13px; color: var(--muted) }

/* Sections */
section { padding: 78px 0 }
.section-head { text-align: center; max-width: 750px; margin: 0 auto 42px }
.section-head h2 { font-size: 37px; line-height: 1.15; color: var(--blue-dark); margin: 0 0 12px; letter-spacing: -.8px }
.section-head p { color: var(--muted); font-size: 18px; margin: 0 }
.cream { background: var(--cream) }
.center { text-align: center }
.more-link { margin-top: 30px; text-align: center; font-weight: 700 }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 27px; background: #fff }
.big-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--blue-light); display: grid; place-items: center; color: var(--blue); font-size: 22px; margin-bottom: 17px }
.card h3 { margin: 0 0 7px; color: var(--blue-dark); font-size: 20px }
.card p { margin: 0; color: var(--muted) }
.card .new { display: inline-block; margin-left: 6px; background: var(--green-light); color: var(--green-dark); font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; vertical-align: middle; text-transform: uppercase }

/* Two columns: text and a picture/quote */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center }
.two-col.reverse > :first-child { order: 2 }
.two-col h2 { font-size: 34px; line-height: 1.15; color: var(--blue-dark); margin: 0 0 15px }
.two-col p { color: var(--muted); font-size: 17px }
.section-label { color: var(--green-dark); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .6px }
.checks { list-style: none; padding: 0; margin: 24px 0 0 }
.checks li { margin: 13px 0; padding-left: 31px; position: relative }
.checks li:before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #dff0e9; color: var(--green-dark); text-align: center; font-size: 13px; font-weight: 800 }
.quote { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 30px; box-shadow: var(--shadow) }
.quote p { font-size: 23px; line-height: 1.45; color: var(--blue-dark); margin: 0 0 18px; font-weight: 650 }
.quote small { color: var(--muted) }

/* A screenshot in a simple browser frame */
.screenshot { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden }
.screenshot:before { content: ""; display: block; height: 26px; background: #eef2f4 radial-gradient(circle at 14px 13px, #f28b82 4px, transparent 5px), radial-gradient(circle at 30px 13px, #fbd06b 4px, transparent 5px); background-color: #eef2f4; border-bottom: 1px solid var(--border) }
.screenshot img { display: block; width: 100%; height: auto }
.screenshot-link { display: block; transition: transform .15s }
.screenshot-link:hover { transform: translateY(-3px) }
.screenshot figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--border) }

.templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px }

/* AI demo chat */
.ai-section { background: #eef7f3 }
.ai-demo { background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--shadow); border: 1px solid #d9e8e1 }
.bubble { padding: 14px 16px; border-radius: 14px; margin: 10px 0; font-size: 14px }
.bubble ul { margin: 6px 0 0; padding-left: 20px }
.question { background: #f1f4f6; margin-left: 35px }
.answer { background: var(--green-light); margin-right: 25px }
.bubble strong { display: block; margin-bottom: 3px; color: var(--blue-dark) }
.ai-price { display: inline-flex; align-items: center; gap: 9px; background: #fff; padding: 9px 12px; border-radius: 10px; border: 1px solid #cfe2d9; margin-top: 8px; color: var(--green-dark); font-weight: 800 }

/* Prices */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; max-width: 1050px; margin: auto }
.plan { border: 1px solid var(--border); border-radius: 22px; padding: 30px; position: relative; background: #fff }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow) }
.popular { position: absolute; right: 18px; top: 18px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 8px; border-radius: 7px; text-transform: uppercase }
.plan h3 { margin: 0; color: var(--blue-dark); font-size: 22px }
.plan-price { font-size: 39px; color: var(--blue-dark); font-weight: 850; margin: 12px 0 0 }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 500 }
.plan p { color: var(--muted) }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.step { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff }
.number { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 15px }
.step h3 { margin: 0 0 6px; color: var(--blue-dark) }
.step p { margin: 0; color: var(--muted) }

/* Questions and answers */
.faq { max-width: 800px; margin: auto }
details { border-bottom: 1px solid var(--border); padding: 18px 0 }
summary { cursor: pointer; font-weight: 750; color: var(--blue-dark); font-size: 17px }
details p { color: var(--muted); margin: 10px 0 0 }

/* Running text (privacy, data and security) */
.prose h2 { font-size: 26px; color: var(--blue-dark); margin: 40px 0 10px; line-height: 1.2 }
.prose h3 { font-size: 19px; color: var(--blue-dark); margin: 26px 0 6px }
.prose p, .prose li { color: #3d4b53 }
.prose ul { padding-left: 22px }
.prose li { margin: 6px 0 }
.fact-box { background: var(--blue-light); border-radius: 14px; padding: 18px 20px; margin: 22px 0 }
.fact-box p { margin: 0 }

/* Forms */
.form-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 30px; box-shadow: var(--shadow) }
.form-card h2 { margin: 0 0 6px; color: var(--blue-dark); font-size: 26px }
.field { margin: 0 0 18px }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
label, .label { display: block; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; font-size: 15px }
.hint { display: block; font-weight: 400; font-size: 13px; color: var(--muted) }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
    width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #b9c7cf; border-radius: 10px; background: #fff; color: var(--text) }
input:focus, select:focus, textarea:focus { outline: 3px solid #b8d6e8; border-color: var(--blue) }
/* FocusOnNavigate (Routes.razor) focuses the h1 on each page for screen readers; it should not draw a focus ring. */
h1:focus { outline: none }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); margin: 6px 0 }
.choice input { margin-top: 5px; width: 18px; height: 18px }
.validation-message { color: var(--error); font-size: 14px; margin-top: 4px }
.invalid { border-color: var(--error) }
.form-extra { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0 }
.notice { background: var(--green-light); border: 1px solid #b9dccd; color: #1d4d3d; border-radius: 14px; padding: 22px 24px }
.notice h2 { margin-top: 0 }
.error-notice { background: #fdecea; border: 1px solid #f4c7c2; color: var(--error); border-radius: 12px; padding: 14px 16px }
.side-box { background: var(--cream); border-radius: 18px; padding: 24px }
.side-box h3 { margin: 0 0 8px; color: var(--blue-dark) }
.side-box p, .side-box li { color: var(--muted); font-size: 15px }
.side-box ol { padding-left: 20px }

/* Call to action and footer */
.cta { background: var(--blue-dark); color: #fff; text-align: center; padding: 76px 0 }
.cta h2 { font-size: 40px; line-height: 1.15; margin: 0 0 13px }
.cta p { color: #d9e6ed; font-size: 18px; margin: 0 auto 25px; max-width: 670px }
.cta-note { font-size: 13px; color: #b8ccd7; margin-top: 16px }
footer { background: #0c283b; color: #c9d8e0; padding: 34px 0 }
footer a { color: #c9d8e0 }
footer .footer-inner { display: flex; justify-content: space-between; gap: 25px; align-items: center; flex-wrap: wrap }
footer strong { color: #fff }
footer p { margin: 4px 0 0; font-size: 13px }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px }

@media (max-width: 860px) {
    .hero { padding: 48px 0 }
    .hero-grid, .two-col, .pricing-grid, .form-layout { grid-template-columns: 1fr; gap: 32px }
    .two-col.reverse > :first-child { order: 0 }
    .features, .steps, .field-row, .templates, .shots { grid-template-columns: 1fr }
    section { padding: 54px 0 }
    .section-head h2, .two-col h2 { font-size: 29px }
    .cta h2 { font-size: 30px }
    .price { font-size: 42px }
    .question { margin-left: 15px }
    .answer { margin-right: 10px }
    .form-card { padding: 22px }
    footer .footer-inner { flex-direction: column; align-items: flex-start }
}
