/* Felles stil for aquaplan.no (forside og produktsider) */
:root {
  --navy: #0a1628; --navy2: #0f1e38; --navy3: #152848;
  --pool: #0e7fc2; --pool-bright: #1a9fd4;
  --gold: #d4a853; --green: #22a07a; --red: #e06666;
  --text: #f0f4f8; --text-muted: #a8bfd4; --text-dim: #6e8fa8;
  --border: rgba(200,234,248,0.10); --border-md: rgba(200,234,248,0.18);
  --radius: 14px; --radius-sm: 8px;
  --wrap: 1120px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif; color: var(--text); overflow-x: hidden;
  background: linear-gradient(175deg, #0a1628 0%, #0d2040 35%, #0a2a48 70%, #08243c 100%) fixed var(--navy);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
em { font-style: italic; color: var(--pool-bright); }
h1, h2 { font-family: 'DM Serif Display', serif; font-weight: 400; letter-spacing: -0.5px; line-height: 1.12; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.eyebrow { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--pool-bright); font-weight: 500; margin-bottom: 14px; }
.lead { font-size: 18px; font-weight: 300; color: var(--text-muted); max-width: 640px; }
h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }

/* Knapper */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 10px; font-weight: 500; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--pool); color: #fff; box-shadow: 0 8px 24px rgba(14,127,194,0.35); }
.btn-primary:hover { background: var(--pool-bright); transform: translateY(-1px); }
.btn-ghost { color: var(--text-muted); border-color: var(--border-md); background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--text-dim); }
.btn-small { padding: 9px 16px; font-size: 14px; box-shadow: none; }

/* Navigasjon */
nav { position: sticky; top: 0; z-index: 50; background: rgba(10,22,40,0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'DM Serif Display', serif; font-size: 21px; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.logo span { color: var(--pool-bright); }
.nav-links { display: flex; gap: 22px; list-style: none; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.lang { display: flex; gap: 4px; }
.lang button { background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer; font-family: inherit; }
.lang button.active { color: var(--text); border-color: var(--border-md); }

/* Hero */
.hero { padding: 80px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 70px); margin: 0 auto 22px; max-width: 900px; }
.hero .lead { margin: 0 auto 32px; font-size: 19px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.shot { margin: 56px auto 0; max-width: 1060px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-md); box-shadow: 0 30px 80px rgba(0,0,0,0.5); background: var(--navy2); }
.shot-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #0c1a30; border-bottom: 1px solid var(--border); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3b55; display: block; }

/* Problem */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.pain { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255,255,255,0.025); }
.pain .before { font-size: 14px; color: var(--text-dim); text-decoration: line-through; text-decoration-color: rgba(224,102,102,0.6); margin-bottom: 10px; }
.pain .after { font-size: 16px; color: var(--text); font-weight: 500; }

/* Steg */
.step { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; margin-top: 72px; }
.step.flip { grid-template-columns: 1.1fr 0.9fr; }
.step.flip .step-text { order: 2; }
.step-num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(14,127,194,0.18); color: var(--pool-bright); font-weight: 600; margin-bottom: 14px; }
.step h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 30px; line-height: 1.15; margin-bottom: 12px; }
.step p { color: var(--text-muted); font-weight: 300; }
.checks { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.checks li { padding-left: 26px; position: relative; color: var(--text); font-size: 15px; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 600; }
.step .shot { margin: 0; }

/* Funksjonsrutenett */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.card { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255,255,255,0.025); }
.card .ic { font-size: 22px; margin-bottom: 10px; }
.card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.card p { font-size: 13.5px; color: var(--text-muted); font-weight: 300; line-height: 1.55; }

/* Grunnlegger */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 34px; border-radius: 18px; border: 1px solid var(--border-md); background: linear-gradient(135deg, rgba(14,127,194,0.12), rgba(14,127,194,0.03)); }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--pool); display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', serif; font-size: 30px; }
.founder blockquote { font-family: 'DM Serif Display', serif; font-size: 23px; line-height: 1.35; }
.founder cite { display: block; margin-top: 12px; font-style: normal; color: var(--text-muted); font-size: 14px; }

/* Priser */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.price { padding: 28px; border-radius: 18px; border: 1px solid var(--border-md); background: rgba(255,255,255,0.03); display: flex; flex-direction: column; }
.price.featured { border-color: var(--pool); background: rgba(14,127,194,0.09); position: relative; }
.price .tag { position: absolute; top: -12px; left: 28px; background: var(--pool); color: #fff; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.price h3 { font-size: 18px; font-weight: 600; }
.price .for { color: var(--text-dim); font-size: 13.5px; margin-top: 2px; min-height: 42px; }
.price .amount { font-family: 'DM Serif Display', serif; font-size: 44px; margin-top: 14px; }
.price .amount small { font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text-muted); }
.price ul { list-style: none; margin: 18px 0 24px; display: grid; gap: 8px; font-size: 14.5px; color: var(--text-muted); }
.price ul b { color: var(--text); font-weight: 500; }
.price .btn { margin-top: auto; justify-content: center; }
.fine { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-dim); }

/* FAQ */
.faq { max-width: 780px; margin-top: 30px; }
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
summary { cursor: pointer; font-weight: 500; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--pool-bright); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { margin-top: 10px; color: var(--text-muted); font-weight: 300; }

/* Avslutning */
.final { text-align: center; padding: 64px 24px; border-radius: 22px; border: 1px solid var(--border-md); background: radial-gradient(ellipse at top, rgba(14,127,194,0.22), rgba(14,127,194,0.04) 70%); }
.final .lead { margin: 0 auto 28px; }
.contact-line { margin-top: 22px; font-size: 14px; color: var(--text-dim); }
.contact-line a { color: var(--pool-bright); text-decoration: none; }

footer { padding: 40px 0 56px; border-top: 1px solid var(--border); margin-top: 88px; font-size: 13.5px; color: var(--text-dim); }
.foot { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.foot a { color: var(--text-muted); text-decoration: none; margin-right: 16px; }
.foot a:hover { color: var(--text); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .pains, .prices { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .step, .step.flip { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .step.flip .step-text { order: 0; }
  .founder { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .hero { padding-top: 52px; }
  .hero .lead { font-size: 17px; }
}

/* Forside: produktkort */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.product { border-radius: 20px; border: 1px solid var(--border-md); background: rgba(255,255,255,0.03); overflow: hidden; display: flex; flex-direction: column; }
.product-top { padding: 30px 30px 22px; }
.product-badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 20px; background: rgba(34,160,122,0.15); color: #6fd3b0; border: 1px solid rgba(34,160,122,0.35); margin-bottom: 16px; }
.product h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 32px; line-height: 1.1; }
.product .tagline { color: var(--text-muted); margin-top: 8px; font-weight: 300; }
.product ul { list-style: none; display: grid; gap: 8px; margin: 20px 0 0; }
.product li { padding-left: 24px; position: relative; font-size: 14.5px; }
.product li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 600; }
.product-img { border-top: 1px solid var(--border); background: var(--navy2); }
.product-foot { margin-top: auto; padding: 22px 30px 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--border); }
.product-price { font-size: 13.5px; color: var(--text-muted); margin-right: auto; }
.product.nls { border-color: rgba(231,100,80,0.35); }
.product.nls .product-top { background: linear-gradient(135deg, rgba(231,76,60,0.14), rgba(231,76,60,0.02)); }
.btn-nls { background: #c9483a; color: #fff; }
.btn-nls:hover { background: #d95a4b; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.more-note { margin-top: 26px; padding: 20px 24px; border-radius: var(--radius); border: 1px dashed var(--border-md); color: var(--text-muted); font-size: 15px; }
.more-note a { color: var(--pool-bright); }
@media (max-width: 900px) {
  .products, .values { grid-template-columns: 1fr; }
}

/* Blogg: oversikt */
.blog-head { padding: 64px 0 8px; }
.blog-head h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 8px; }
.filters button { background: transparent; border: 1px solid var(--border-md); color: var(--text-muted); border-radius: 20px; padding: 7px 14px; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.filters button.active { background: rgba(14,127,194,0.18); border-color: var(--pool); color: var(--text); }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 22px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; border-radius: 18px; border: 1px solid var(--border-md); background: rgba(255,255,255,0.03); overflow: hidden; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--pool); transform: translateY(-2px); }
.post-card img { aspect-ratio: 16 / 8; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--border); }
.post-body { padding: 22px 24px 26px; }
.post-meta { font-size: 12.5px; color: var(--text-dim); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tag-cat { font-size: 11.5px; font-weight: 500; padding: 3px 10px; border-radius: 20px; background: rgba(14,127,194,0.15); color: var(--pool-bright); border: 1px solid rgba(14,127,194,0.3); }
.tag-cat.nytt { background: rgba(34,160,122,0.15); color: #6fd3b0; border-color: rgba(34,160,122,0.35); }
.tag-cat.nls { background: rgba(231,76,60,0.14); color: #e08070; border-color: rgba(231,76,60,0.35); }
.post-card h2 { font-size: 25px; margin: 12px 0 8px; }
.post-card p { color: var(--text-muted); font-weight: 300; font-size: 15px; }

/* Blogg: artikkel */
.article { max-width: 760px; margin: 0 auto; padding: 56px 20px 0; }
.article .crumb { font-size: 13.5px; color: var(--text-dim); margin-bottom: 18px; }
.article .crumb a { color: var(--pool-bright); text-decoration: none; }
.article h1 { font-size: clamp(34px, 5vw, 48px); margin: 14px 0 14px; }
.article .ingress { font-size: 19px; color: var(--text-muted); font-weight: 300; line-height: 1.6; }
.byline { display: flex; align-items: center; gap: 12px; margin: 24px 0 32px; font-size: 14px; color: var(--text-muted); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.prose { font-size: 17px; line-height: 1.75; color: #dbe6f0; }
.prose h2 { font-size: 30px; margin: 44px 0 12px; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--pool-bright); }
.prose a.btn { color: #fff; text-decoration: none; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--border-md); }
.prose figcaption { font-size: 13.5px; color: var(--text-dim); margin-top: 8px; }
.tip { margin: 26px 0; padding: 18px 22px; border-radius: 12px; border-left: 3px solid var(--gold); background: rgba(212,168,83,0.08); font-size: 16px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text-muted); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.table-scroll { overflow-x: auto; }
.cta-box { margin: 48px 0 0; padding: 30px; border-radius: 18px; border: 1px solid var(--border-md); background: radial-gradient(ellipse at top left, rgba(14,127,194,0.2), rgba(14,127,194,0.03) 70%); }
.cta-box h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 26px; margin-bottom: 8px; }
.cta-box p { color: var(--text-muted); margin-bottom: 18px; }
@media (max-width: 760px) {
  .posts { grid-template-columns: 1fr; }
  .prose { font-size: 16.5px; }
}

.lang .lang-link { border: 1px solid var(--border-md); color: var(--text-muted); border-radius: 6px; padding: 4px 9px; font-size: 12px; text-decoration: none; }
.lang .lang-link:hover { color: var(--text); }
