/* Coobix — shared styles for Forside, Anvendelser and Om os */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Original Coobix palette */
  --teal:        #22A0AA;
  --teal-light:  #3E8F97;
  --teal-dark:   #1a7f87;
  --teal-pale:   #A6D0D3;
  --coral:       #DD6B3E;
  --coral-dark:  #C05A30;
  --slate:       #7C8797;
  --navy:        #1E2530;
  --eerie:       #16181C;
  --bg:          #FFFFFF;
  --bg-soft:     #EFF3EE;
  --light-bg:    #E8E8ED;
  --text:        #201F26;
  --text-muted:  #4A4952;
  --mid:         #5B5760;
  /* Tints derived from the palette */
  --teal-wash:   rgba(34,160,170,0.08);
  --coral-wash:  rgba(221,107,62,0.10);
  --border:      rgba(32,31,38,0.10);
  --border-teal: rgba(34,160,170,0.30);
  --text-inv:    #F5F1E4;
  --text-inv-muted: #A6C0C4;
  --radius:      14px;
  --shadow:      0 1px 2px rgba(30,37,48,0.06), 0 12px 32px -12px rgba(30,37,48,0.18);
  --serif:       'DM Serif Display', Georgia, serif;
  --gutter:      clamp(1rem, 4vw, 2.5rem);
}
html { scroll-behavior: smooth; font-size: 93.75%; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: opacity 0.3s ease;
}
body.is-leaving { opacity: 0; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
[id] { scroll-margin-top: 84px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 1.25rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.25; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--teal); }
.lead { font-size: clamp(0.98rem, 1.2vw, 1.08rem); color: var(--text-muted); max-width: 640px; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .lead { margin-top: 1.1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1.2; text-decoration: none;
  padding: 0.55rem 1.05rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn-primary { background: var(--teal); color: #fff; border: none; padding: calc(0.55rem + 1px) calc(1.05rem + 1px); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-teal); color: var(--teal-dark); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: rgba(255,255,255,0.88); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.arrow { display: inline-block; font-size: 0.95em; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(2px); }

/* NAV */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.25s, box-shadow 0.25s;
}
.site-nav.is-scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0.9rem var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 18px; width: auto; }
.logo span { font-family: 'Aptos Display', Aptos, 'DM Sans', sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; margin: 0 auto; }
.nav-links a { font-size: 0.88rem; font-weight: 400; color: var(--text-muted); text-decoration: none; position: relative; padding: 0.25rem 0; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 500; }
.nav-links a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.nav-login { font-size: 0.88rem; color: var(--text-muted); text-decoration: none; }
.nav-login:hover { color: var(--text); }
.nav-actions .btn { padding: 0.45rem 0.95rem; font-size: 0.78rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text); }
.nav-toggle line { transform-box: fill-box; transform-origin: center; transition: transform 0.25s ease, opacity 0.2s ease; }
.site-nav.is-open .nav-toggle line:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-nav.is-open .nav-toggle line:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-mobile { display: none; }
@media (max-width: 960px) {
  .nav-links, .nav-login { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile {
    display: grid; gap: 0.25rem; padding: 0 var(--gutter);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .site-nav.is-open .nav-mobile { max-height: 320px; padding: 0.5rem var(--gutter) 1.25rem; }
  .nav-mobile a { font-size: 1rem; color: var(--text); text-decoration: none; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
  .nav-mobile a[aria-current="page"] { color: var(--teal-dark); font-weight: 500; }
}
@media (max-width: 420px) {
  .logo span { display: none; }
  .nav-actions .btn { padding: 0.42rem 0.8rem; font-size: 0.76rem; }
}

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* PLACEHOLDER MARKER (content to be replaced before launch) */
.placeholder-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal-dark); background: var(--teal-wash); border: 1px dashed var(--border-teal);
  padding: 0.3rem 0.65rem; border-radius: 999px;
}
.illustrative-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--coral-dark); background: var(--coral-wash); border: 1px solid rgba(221,107,62,0.25);
  padding: 0.3rem 0.65rem; border-radius: 999px;
}

/* HERO (shared) */
.page-hero { padding: clamp(8rem, 16vw, 11rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(34,160,170,0.14), rgba(34,160,170,0) 70%);
  pointer-events: none;
}
.page-hero h1 { max-width: 15ch; margin-bottom: 1.5rem; position: relative; }
.page-hero .lead { position: relative; }
.page-hero .btn-row { margin-top: 2.25rem; position: relative; }

/* FORMS */
.form-grid { display: grid; gap: 0.9rem; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .form-grid.cols-3, .form-grid.cols-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.95rem; font-weight: 400; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(34,160,170,0.14); }
.form-consent { font-size: 0.75rem; color: var(--mid); line-height: 1.6; }
.form-consent a { color: var(--teal-dark); }
.form-error { display: none; font-size: 0.85rem; color: var(--coral-dark); }
.form-error.is-shown { display: block; }

/* SE COOBIX LIVE */
.live-wrap { background: linear-gradient(180deg, var(--bg) 0%, var(--teal-wash) 100%); }
.live-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.live-intro { padding-top: clamp(0rem, 4vw, 3rem); }
.live-intro .lead { margin-top: 1.1rem; }
.live-mail { margin-top: 2.25rem; }
.live-mail span:first-child { display: block; font-size: 0.85rem; color: var(--mid); margin-bottom: 0.4rem; }
.live-mail a { display: inline-flex; align-items: center; gap: 0.4rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--text-muted); font-size: 0.95rem; font-weight: 600; color: var(--text); text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.live-mail a:hover { color: var(--teal-dark); border-color: var(--teal); }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }
.live {
  background: #fff; border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem);
}
.live-label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.5rem; }
.live-input {
  width: 100%; min-height: 110px; resize: vertical; outline: none;
  font-family: inherit; font-size: 1rem; line-height: 1.55; color: var(--text);
  background: var(--bg-soft); border: 1px solid transparent; border-radius: 12px; padding: 0.9rem 1rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.live-input:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(34,160,170,0.14); }
.live-input::placeholder { color: var(--slate); }
.live-examples { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 0; }
.live.has-idea .live-examples { margin-bottom: 1.25rem; }
.live-examples span { font-size: 0.78rem; color: var(--mid); align-self: center; margin-right: 0.25rem; }
.chip {
  font-family: inherit; font-size: 0.78rem; font-weight: 400; color: var(--teal-dark);
  background: #fff; border: 1px solid var(--border-teal); border-radius: 999px; padding: 0.35rem 0.75rem; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.chip:hover { background: var(--teal-wash); border-color: var(--teal); }
/* Contact fields slide in once something is written in the idea field */
.live-contact { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows 0.4s ease, opacity 0.3s ease, visibility 0s 0.4s; }
.live-contact > .form-grid { overflow: hidden; min-height: 0; }
.live.has-idea .live-contact { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows 0.4s ease, opacity 0.35s ease 0.1s, visibility 0s; }
.field.span-2 { grid-column: 1 / -1; }
.live-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.live-foot .form-consent { flex: 1 1 100%; }
.done-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--teal-wash); color: var(--teal); display: grid; place-items: center; margin: 0 auto 1.1rem; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* FAQ */
.faq-list { max-width: 860px; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start;
  padding: 1.2rem 0; font-size: 0.98rem; font-weight: 500; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--teal); transition: transform 0.25s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); padding: 0 0 1.5rem; max-width: 680px; }

/* DARK CTA BAND */
.cta-band { background: var(--navy); color: var(--text-inv); position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: auto -15% -60% auto; width: 760px; height: 760px;
  background: radial-gradient(closest-side, rgba(34,160,170,0.45), rgba(34,160,170,0) 70%); pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band h2 em { color: var(--teal-pale); }
.cta-band .lead { color: var(--text-inv-muted); }
.cta-band-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .cta-band-inner { grid-template-columns: 1fr; } }
.form-success { display: none; text-align: center; padding: 2rem 0.5rem; }
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--text-muted); max-width: 480px; margin: 0 auto; }
.form-success .btn { margin-top: 1.25rem; }
form.is-sent > :not(.form-success) { display: none; }
form.is-sent .form-success { display: block; animation: fade-up 0.45s ease both; }

/* FOOTER */
.site-footer { background: var(--eerie); color: var(--text-inv-muted); padding: 4.5rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 1.1rem; letter-spacing: 0.02em; margin-bottom: 1rem; }
.footer-brand img { height: 18px; filter: brightness(0) invert(1); }
.footer-col p { font-size: 0.86rem; line-height: 1.75; max-width: 320px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 600; color: #fff; margin-bottom: 1rem; letter-spacing: 0.02em; }
.footer-links { display: grid; gap: 0.65rem; }
.footer-links a, .footer-links button { background: none; border: none; padding: 0; font-family: inherit; font-size: 0.86rem; color: var(--text-inv-muted); text-decoration: none; text-align: left; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: #fff; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.78rem; }
@media (max-width: 1000px) { .footer-inner { grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; } .footer-col:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* TOUCH SCREENS — bigger tap targets, legible labels, and 16px fields so iOS doesn't zoom on focus */
@media (max-width: 720px) {
  .btn { min-height: 44px; font-size: 0.875rem; padding: 0.7rem 1.3rem; }
  .nav-actions .btn { min-height: 40px; font-size: 0.82rem; padding: 0.55rem 1.05rem; }
  .nav-toggle { padding: 9px; }
  .nav-mobile a { padding: 0.8rem 0; }
  .chip { min-height: 40px; font-size: 0.82rem; padding: 0.5rem 0.9rem; }
  .live-examples span, .live-label, .field label { font-size: 0.85rem; }
  .form-consent { font-size: 0.8rem; }
  .field input, .field textarea, .live-input { font-size: 16px; }
  .live-mail a { padding: 0.35rem 0; }
  .footer-links { gap: 0; }
  .footer-links a, .footer-links button { display: block; padding: 0.55rem 0; font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
