/* === TOKENS === */
:root {
  --dark:    #2E2822;
  --dark-2:  #2A2420;
  --camel:   #C09A6A;
  --camel-h: #A07848;
  --cream:   #F5F0E8;
  --off-white: #FAFAF8;
  --beige:   #EDE8DF;
  --border:  #E2DDD4;
  --text:    #1A1A1A;
  --text-2:  #5A5047;
  --text-3:  #9A8E82;
  --r:       10px;
  --r-lg:    18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* FONTS: EB Garamond everywhere. Revert: change body font-family back to 'Inter' and remove h1/h2/h3 line */
body { font-family: 'EB Garamond', Georgia, serif; color: var(--text); line-height: 1.65; background: #fff; font-size: 17px; }
strong { font-weight: 600; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 26px; border-radius: var(--r); font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; border: 2px solid transparent;
  transition: all .18s; font-family: inherit;
}
.btn-primary  { background: var(--camel); color: #fff; border-color: var(--camel); }
.btn-primary:hover { background: var(--camel-h); border-color: var(--camel-h); }
.btn-ghost    { background: transparent; color: rgba(245,240,232,.8); border-color: rgba(245,240,232,.25); }
.btn-ghost:hover { background: rgba(245,240,232,.08); color: var(--cream); }
.btn-outline  { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text); background: var(--text); color: #fff; }
.btn-nav      { background: var(--camel); color: #fff; padding: 9px 20px; font-size: 13px; border-color: var(--camel); }
.btn-nav:hover { background: var(--camel-h); border-color: var(--camel-h); }
.btn-sm       { padding: 9px 18px; font-size: 13px; }
.btn-block    { width: 100%; }
.btn-download { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-download:hover { background: var(--dark-2); border-color: var(--dark-2); }

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); padding: 14px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: 0; }
.logo-mark { display: flex; align-items: center; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .15s; }
.nav-link:hover { color: var(--text); }

/* === HERO === */
.hero { background: var(--dark); color: var(--cream); padding: 108px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -5%, rgba(160,120,72,.22) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { text-align: center; position: relative; }
.hero-badge {
  display: inline-block; background: rgba(160,120,72,.15); color: var(--camel);
  border: 1px solid rgba(160,120,72,.3); padding: 6px 18px; border-radius: 40px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 32px;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 80px); font-weight: 500; line-height: 1.05;
  letter-spacing: 0px; margin-bottom: 24px; color: var(--cream);
}
.hero h1 em { font-style: normal; color: var(--camel); }
.hero-sub { font-size: 17px; color: rgba(245,240,232,.55); max-width: 480px; margin: 0 auto 44px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 20px; font-weight: 900; color: var(--cream); letter-spacing: -0.5px; }
.trust-item span { font-size: 10px; color: rgba(245,240,232,.38); text-transform: uppercase; letter-spacing: .8px; }
.trust-sep { color: rgba(245,240,232,.12); font-size: 28px; }

/* === SECTION LABELS / HEADINGS === */
.section-label {
  display: block; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.4px; color: var(--camel); margin-bottom: 12px; text-align: center;
}
h2 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 500; letter-spacing: 0px; line-height: 1.18; }
.section-sub { color: var(--text-2); font-size: 18px; max-width: 480px; margin: 14px auto 0; text-align: center; line-height: 1.65; }

/* === DEMO === */
.demo-section { padding: 96px 0; background: var(--off-white); border-top: 1px solid var(--border); }
.demo-section > .container > h2 { text-align: center; }
.demo-wrap { max-width: 700px; margin: 52px auto 0; }

.selector-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.product-options { display: flex; gap: 12px; margin-bottom: 20px; }
.demo-product-card {
  flex: 1; display: flex; align-items: center; gap: 14px;
  background: #fff; border: 2px solid var(--border); border-radius: var(--r);
  padding: 14px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.demo-product-card:hover { border-color: #c0b8ac; }
.demo-product-card.active-product { border-color: var(--camel); box-shadow: 0 0 0 3px rgba(160,120,72,.1); }
.demo-product-card img { width: 52px; height: 52px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.demo-product-info { display: flex; flex-direction: column; gap: 3px; }
.demo-product-label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); font-weight: 700; }
.demo-product-info strong { font-size: 14px; font-weight: 700; }

.upload-area {
  border: 2px dashed var(--border); border-radius: var(--r-lg); padding: 52px 24px;
  text-align: center; cursor: pointer; background: #fff; transition: border-color .18s, background .18s;
  margin-bottom: 16px; overflow: hidden;
}
.upload-area:hover { border-color: var(--camel); background: #fdfbf8; }
.upload-area.has-image { padding: 0; border-style: solid; }
.upload-icon {
  width: 52px; height: 52px; background: var(--beige); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 20px; color: var(--camel); font-weight: 800;
}
.upload-area strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.upload-area span { font-size: 13px; color: var(--text-3); }

.loading {
  text-align: center; padding: 40px; color: var(--text-2); font-size: 15px;
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border);
  margin-top: 16px;
}
.loading small { display: block; color: var(--text-3); font-size: 12px; margin-top: 6px; }

/* Processing image preview */
.gen-preview-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-top: 16px; }
.gen-preview-wrap img { width: 100%; display: block; border-radius: var(--r-lg); }
.gen-preview-overlay {
  position: absolute; inset: 0; border-radius: var(--r-lg);
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: genScan 1.8s ease-in-out infinite;
}
.gen-preview-badge {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(20,16,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; border-radius: 30px; padding: 7px 16px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.gen-badge-lines { display: flex; flex-direction: column; }
.gen-badge-est { font-size: 10px; font-weight: 400; opacity: .65; margin-top: 1px; white-space: nowrap; }
.gen-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #c09a6a;
  animation: genDotPulse 1.2s ease-in-out infinite;
}
@keyframes genScan {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes genDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}
.gen-preview-wrap .gen-fade-in { animation: genFadeIn .5s ease forwards; }
@keyframes genFadeIn { from { opacity: 0; } to { opacity: 1; } }
.error { color: #b00; text-align: center; padding: 16px; }

/* === RESULT === */
.result-img { width: 100%; border-radius: var(--r-lg); display: block; margin-top: 20px; }
.result-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.result-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); }

/* === HOW IT WORKS === */
.how { padding: 96px 0; background: var(--cream); }
.how > .container > h2 { text-align: center; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; margin-top: 60px; }
@media (max-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.step { text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--dark);
  color: var(--cream); display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; margin: 0 auto 20px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* === PRICING === */
/* === WHY SECTION === */
.why-section { padding: 96px 0; background: var(--off-white); border-top: 1px solid var(--border); }
.why-section h2 { text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin-top: 64px; }
.why-card { display: flex; flex-direction: column; gap: 14px; }
.why-num { font-family: 'EB Garamond', Georgia, serif; font-size: 42px; font-weight: 400; font-style: italic; color: var(--camel); line-height: 1; opacity: 0.7; }
.why-card h3 { font-size: 20px; font-weight: 600; margin: 0; }
.why-card p { color: var(--text-2); font-size: 16px; line-height: 1.7; margin: 0; }

.pricing { padding: 96px 0; background: var(--cream); border-top: 1px solid var(--border); }
.pricing > .container > h2 { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 56px; align-items: stretch; }
.plan { position: relative; background: #fff; border-radius: var(--r-lg); padding: 36px 28px; border: 2px solid var(--border); }
.plan-featured { background: var(--dark); border-color: var(--dark); }
.plan-featured h3 { color: var(--cream); }
.plan-featured .price { color: var(--cream); }
.plan-featured .price span { color: rgba(245,240,232,.4); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  display: inline-block; background: var(--camel); color: #fff;
  font-size: 10px; font-weight: 700; padding: 4px 14px; border-radius: 20px; letter-spacing: .3px; white-space: nowrap;
}
.plan h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.price { font-size: 42px; font-weight: 900; letter-spacing: -1.5px; margin: 12px 0 28px; }
.price span { font-size: 15px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.plan ul { list-style: none; margin-bottom: 28px; }
.plan ul li { padding: 9px 0; font-size: 15px; border-bottom: 1px solid var(--border); color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.plan ul li::before {
  content: '✓'; font-weight: 800; color: var(--camel); flex-shrink: 0; font-size: 13px;
}
.plan-featured ul li { color: rgba(255,252,248,.96); border-bottom-color: rgba(255,255,255,.1); }
.plan-featured ul li::before { color: rgba(160,120,72,.9); }
.plan .btn { width: 100%; text-align: center; }

/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { font-size: 17px; font-weight: 600; padding: 20px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--camel); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 15px; color: var(--text-2); line-height: 1.7; padding-bottom: 20px; margin: 0; }

/* === ONBOARDING === */
.onboarding { padding: 96px 0; background: var(--off-white); border-top: 1px solid var(--border); }
.onboarding > .container > h2 { text-align: center; }
.onboard-form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin: 44px auto 0; }
.onboard-form input {
  padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--r);
  font-size: 15px; font-family: inherit; transition: border-color .15s; background: #fff;
}
.onboard-form input:focus { outline: none; border-color: var(--camel); }
.script-result {
  max-width: 480px; margin: 28px auto 0; padding: 28px;
  background: var(--off-white); border-radius: var(--r-lg); border: 1px solid var(--border);
}
.script-result h3 { margin-bottom: 14px; font-size: 16px; font-weight: 700; }
.script-result pre {
  background: var(--dark); color: #a3c9a8; padding: 18px; border-radius: var(--r);
  font-size: 12px; overflow-x: auto; margin-bottom: 14px; white-space: pre-wrap; word-break: break-all;
}

/* === INTEGRASJON === */
.ptab {
  padding: 10px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; background: none; color: var(--text-3);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  font-family: inherit; transition: color .15s;
}
.ptab:hover { color: var(--text); }
.ptab.active { color: var(--text); border-bottom-color: var(--camel); }

.integ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.integ-steps { display: flex; flex-direction: column; gap: 24px; }
.integ-step { display: flex; gap: 14px; align-items: flex-start; }
.integ-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--dark);
  color: #fff; font-size: 13px; font-weight: 800; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.integ-step > div > strong { font-size: 16px; font-weight: 700; display: block; margin-bottom: 4px; }
.integ-step p { font-size: 15px; color: var(--text-2); line-height: 1.6; margin: 0; }
.integ-step p strong { display: inline; font-size: inherit; font-weight: 600; }
.integ-step em { font-style: normal; font-weight: 600; color: var(--text); }

.integ-code-wrap { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border); padding: 24px; }
.integ-code-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-3); margin-bottom: 12px; }
.integ-code {
  background: var(--dark); color: #a3c9a8; font-family: 'Courier New', monospace;
  font-size: 13px; padding: 18px; border-radius: var(--r); overflow-x: auto;
  white-space: pre; line-height: 1.6; margin: 0 0 14px;
}
.integ-note { font-size: 14px; color: var(--text-3); line-height: 1.6; margin: 0; }

@media (max-width: 700px) {
  .integ-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* === FOOTER === */
footer { padding: 40px 0; border-top: 1px solid var(--border); background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer p { color: var(--text-3); font-size: 15px; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { color: var(--camel); }

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .product-options { flex-direction: column; }
  .hero-trust { gap: 20px; }
  .nav-links .nav-link { display: none; }
  .result-actions { flex-direction: column; align-items: flex-start; }
  .demo-product-tag { padding: 6px; gap: 0; }
  .demo-tag-text { display: none; }
}

/* === ADMIN (unchanged) === */
.admin-page { background: #f5f5f5; min-height: 100vh; }
#gv-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: #fff; border-radius: 16px; padding: 44px; width: 340px; text-align: center; box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.login-card h1 { margin-bottom: 28px; font-size: 22px; }
.login-card input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 12px; font-size: 15px; }
.admin-nav { background: #1a1a1a; color: #fff; padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; }
.admin-content { padding: 32px; }
.admin-content h2 { margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px; vertical-align: top; }
th { background: #f8f8f8; font-weight: 600; font-size: 12px; text-transform: uppercase; color: #666; }
.pattern-tag { display: inline-flex; align-items: center; gap: 6px; background: #f0f0f0; padding: 4px 10px; border-radius: 20px; margin: 2px; font-size: 12px; font-family: monospace; }
.pattern-tag.exclude { background: #fff0f0; color: #c00; }
.btn-del { background: none; border: none; cursor: pointer; color: #aaa; font-size: 14px; padding: 0; line-height: 1; }
.btn-del:hover { color: #c00; }
.add-pattern { display: flex; gap: 8px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.add-pattern input { flex: 1; min-width: 140px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 12px; font-family: monospace; }
.add-pattern label { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #c00; white-space: nowrap; cursor: pointer; }

/* === DEMO REEL === */
.demo-browser { max-width: 860px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.15); text-align: left; }
.demo-browser-bar { background: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.demo-browser-body { position: relative; overflow: hidden; aspect-ratio: 1958/1482; background: #000; }
.demo-comp-base { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-comp-after { position: absolute; inset: 0; animation: demoReveal 8s ease-in-out infinite; }
@keyframes demoReveal {
  0%, 18%  { opacity: 0; }
  38%, 72% { opacity: 1; }
  88%, 100% { opacity: 0; }
}
.demo-badge { position: absolute; top: 16px; padding: 5px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .8px; pointer-events: none; }
.demo-badge-before { left: 16px; background: rgba(0,0,0,.55); color: #fff; animation: demoBadgeBefore 8s ease-in-out infinite; }
.demo-badge-after  { left: 16px; background: #c09a6a; color: #fff; animation: demoBadgeAfter 8s ease-in-out infinite; }
@keyframes demoBadgeBefore {
  0%, 18%  { opacity: 1; }
  32%, 100% { opacity: 0; }
}
@keyframes demoBadgeAfter {
  0%, 32%  { opacity: 0; }
  48%, 72% { opacity: 1; }
  88%, 100% { opacity: 0; }
}
.demo-product-tag { position: absolute; bottom: 16px; left: 16px; background: rgba(0,0,0,.65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 8px; padding: 8px 12px; display: flex; align-items: center; gap: 9px; color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
