/* Denvasa marketing site. Tokens first; white and blue by default, dark is opt-in. Motion respects prefers-reduced-motion. */
:root {
  --paper: #F6F8FC; --surface: #FFFFFF; --surface-2: #EBF1FA; --ink: #0F1B2D; --muted: #475569; --subtle: #5B6B80;
  --line: #DCE4EF; --teal: #1D5FD6; --teal-deep: #174BAA; --teal-soft: #E4EDFC; --on-teal: #FFFFFF;   /* brand blue (variable names kept) */
  --coral: #E4572E; --coral-soft: #FCE7E0; --blue: #2A78D6; --orange: #EB6834; --violet: #8A56AC;
  --radius: 18px; --shadow: 0 18px 50px rgba(14, 40, 35, 0.12);
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
/* Dark theme is opt-in (data-theme="dark"); the site is white and blue by default. */
:root[data-theme="dark"] {
  --paper: #0B1220; --surface: #111A2B; --surface-2: #172235; --ink: #E6EDF8; --muted: #A8B6CB; --subtle: #8392A8;
  --line: #22324A; --teal: #5B8DEF; --teal-deep: #9DBBF7; --teal-soft: #15284A; --on-teal: #06142B;
  --coral: #F07A55; --coral-soft: #3A1E16; --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }   /* keep headings clear of the sticky header when jumping to #pricing, #demo… */
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--teal); }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.narrow-wrap { max-width: 780px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--subtle); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px;
       font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 50px; padding: 0 22px; font-size: 16px; }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-deep); }
:root[data-theme="dark"] .btn-primary:hover { background: #7CA3F2; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--teal); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent);
       backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--display); color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: block; }
/* Two-tone wordmark from the logo: navy "Den", teal→green "vasa". */
.brand-word .den { color: #0B3D91; }
.brand-word .vasa { background: linear-gradient(90deg, #1A8FC4, #1E9E62); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .brand-word .den { color: #9DBBF7; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.menu { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.menu span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }
.mobile-nav { display: grid; gap: 4px; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-nav a { padding: 10px 4px; color: var(--ink); text-decoration: none; font-weight: 600; }
/* `display: grid` above would override the [hidden] attribute — keep the phone menu closed unless opened, and never on wide screens. */
.mobile-nav[hidden] { display: none; }
@media (min-width: 921px) { .mobile-nav { display: none; } }
@media (max-width: 920px) { .nav-links, .nav-cta { display: none; } .menu { display: block; } }

/* Type */
.eyebrow { margin: 0 0 10px; font: 700 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; font-weight: 800; }
h1 em { font-style: normal; color: var(--teal); }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; font-weight: 800; }
h2.narrow { max-width: 17ch; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.lede { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 18px 0 0; }

/* Hero */
.hero { padding-block: 56px 32px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 14.5px; }
.hero-points li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: 6px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.mock { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 12px; font-size: 13px; color: var(--muted); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar b { margin-left: 8px; font-weight: 600; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.mock-stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.mock-stats small { display: block; color: var(--subtle); font-size: 12px; }
.mock-stats strong { font: 800 22px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.col { background: var(--surface-2); border-radius: 14px; padding: 8px; min-height: 190px; display: flex; flex-direction: column; gap: 8px; }
.col h4 { margin: 2px 4px 2px; font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px 9px 14px; font-size: 13px; }
.card i { position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--c); }
.card b { display: block; font-weight: 700; }
.card span { color: var(--subtle); font-size: 12px; }
.card .alert { display: inline-block; margin-top: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--coral); background: var(--coral-soft); padding: 2px 7px; border-radius: 99px; }
.toast { position: absolute; right: -14px; bottom: -18px; display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper);
         padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); max-width: 92%; }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: #3FBF7A; }
@media (max-width: 560px) { .board { grid-template-columns: 1fr 1fr; } .board .col:last-child { display: none; } .toast { position: static; margin-top: 12px; } }

.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; margin-top: 56px; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: 2px; }

/* Sections */
.section { padding-block: 88px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .two { grid-template-columns: 1fr; gap: 32px; } .section { padding-block: 64px; } }

.consult { background: var(--surface); border-block: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 6px; background: var(--teal-soft);
                     box-shadow: inset 0 0 0 5px var(--teal-soft), inset 0 0 0 9px var(--teal); }
.checks b { color: var(--ink); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.step .n { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--teal); color: var(--on-teal); display: grid; place-items: center; font: 800 15px/1 var(--display); }
.step b { font-size: 16px; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); margin: 3px 4px 0 0; }
.pill.ok { background: var(--teal); color: var(--on-teal); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); box-shadow: var(--shadow); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
@media (max-width: 920px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.india { background: linear-gradient(180deg, var(--paper), var(--teal-soft)); }
.receipt { justify-self: center; width: min(340px, 100%); background: #FFFFFE; color: #1b1b1b; border-radius: 6px; padding: 20px 20px 16px; font-family: var(--mono); font-size: 13px;
           box-shadow: var(--shadow); transform: rotate(-2deg); position: relative;
           mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100%; }
.r-head { text-align: center; border-bottom: 1px dashed #bbb; padding-bottom: 10px; margin-bottom: 10px; display: grid; gap: 2px; }
.r-head span { font-size: 11px; color: #555; }
.r-row { display: flex; justify-content: space-between; padding: 4px 0; }
.r-row.total { border-top: 1px dashed #bbb; margin-top: 6px; padding-top: 10px; font-weight: 700; }
.r-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; color: #555; padding-bottom: 8px; }

/* Pricing */
.pricing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.toggle button { border: 0; background: transparent; color: var(--muted); font: 600 14px/1 var(--body); height: 38px; padding: 0 16px; border-radius: 10px; cursor: pointer; }
.toggle button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.save { margin-left: 6px; font-size: 11.5px; color: var(--teal-deep); background: var(--teal-soft); padding: 3px 7px; border-radius: 99px; }
.toggle button[aria-checked="true"] .save { background: var(--teal); color: var(--on-teal); }
.ref-banner { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-deep); font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.hi { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--teal); color: var(--on-teal); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; }
.plan .tag { color: var(--muted); font-size: 14px; margin: 2px 0 0; min-height: 44px; }
.price { font: 800 38px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.price small { font: 500 14px var(--body); color: var(--subtle); letter-spacing: 0; }
.price-note { color: var(--subtle); font-size: 13px; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: var(--teal); font-weight: 800; }
.plan li.off { color: var(--subtle); } .plan li.off::before { content: "—"; color: var(--subtle); }
.plan .btn { margin-top: auto; }
.compare { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.compare summary { cursor: pointer; padding: 16px 20px; font-weight: 700; }
.table-scroll { overflow-x: auto; padding: 0 12px 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
thead th { font-weight: 700; } tbody tr.group td { font-weight: 700; color: var(--teal); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; text-align: left; background: var(--surface-2); }
td.yes { color: var(--teal); font-weight: 800; } td.no { color: var(--subtle); }
.addons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.addon { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.addon b { font-variant-numeric: tabular-nums; }
.addons-title { flex-basis: 100%; margin: 0; font-weight: 700; font-size: 15px; }
.plan-sub { margin: 4px 0 -4px; font-size: 13px; font-weight: 700; color: var(--muted); }
td.addon-cell { color: var(--teal); font-size: 13px; font-weight: 600; }
.fine { color: var(--subtle); font-size: 13.5px; margin-top: 18px; }

/* Always a dark panel (both themes), so it uses fixed light text rather than the theme-swapping tokens. */
.security { background: #0B1A33; color: #E8EEF8; }
.security h2, .security .sec-list b { color: #F4F8F7; }
.security .eyebrow { color: #93B8FF; } .security .lede { color: #B9C6DA; }
:root[data-theme="dark"] .security { background: #06101F; border-block: 1px solid var(--line); }
.sec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sec-list li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.sec-list span { color: #B9C6DA; font-size: 14.5px; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 10px 0 0; }
.faq h2 { margin-bottom: 18px; }

/* Closing call-to-action: solid brand-blue band, white text, white form card (same in both themes). */
.demo { background: #1D5FD6; color: #FFFFFF; }
.demo h2 { color: #FFFFFF; }
.demo .eyebrow { color: #E6EEFF; }
.demo .lede { color: #EEF3FF; }
.demo-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-weight: 600; color: #FFFFFF; }
.demo-points li { display: flex; align-items: center; gap: 10px; }
.demo-points li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: #FFFFFF
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%231D5FD6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.form { display: grid; gap: 14px; background: #FFFFFF; color: #0F1B2D; border-radius: 20px; padding: 26px; box-shadow: 0 24px 60px rgba(8, 30, 80, 0.28); }
.demo .form label { color: #475569; }
.demo .form input, .demo .form textarea { color: #0F1B2D; background: #FFFFFF; border-color: #CBD5E1; }
.demo .form input::placeholder, .demo .form textarea::placeholder { color: #64748B; }
.demo .form-msg.ok { color: #1747A6; } .demo .form-msg.err { color: #B42318; }
.form-note { margin: -4px 0 0; font-size: 12.5px; color: #475569; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.form input, .form textarea { font: 15px/1.4 var(--body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 20%, transparent); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-msg { margin: 0; font-weight: 600; min-height: 22px; }
.form-msg.ok { color: var(--teal); } .form-msg.err { color: var(--coral); }

.footer { padding-block: 40px; border-top: 1px solid var(--line); }
.foot { display: grid; gap: 8px; color: var(--muted); }
.foot p { margin: 0; }

/* Motion (progressive enhancement: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.mover { animation: move 9s ease-in-out infinite; }
@keyframes move { 0%, 30% { transform: translateX(0); } 45%, 75% { transform: translateX(calc(100% + 18px)); } 90%, 100% { transform: translateX(0); } }
.toast { animation: pop 9s ease-in-out infinite; }
@keyframes pop { 0%, 48% { opacity: 0; transform: translateY(10px); } 55%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.step { animation: none; }
.js .flow.in .step { animation: rise .6s both; }
.js .flow.in .step:nth-child(2) { animation-delay: .15s; } .js .flow.in .step:nth-child(3) { animation-delay: .3s; } .js .flow.in .step:nth-child(4) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .toast { opacity: 1; }
}
