/* Clinidanth marketing site */
:root {
  --teal: #0E4F4A; --teal-2: #146159; --teal-deep: #0A3834; --mint: #8FCFC2; --mint-soft: #DDEFEA;
  --ivory: #FAF7F1; --sand: #F1ECE2; --ink: #1B2624; --muted: #52615D; --line: #DCE5E1; --white: #FFFFFF;
  --coral: #E0795B; --good: #1E6B4E;
  --f-display: "Marcellus", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--teal); color: #fff; font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--teal-2); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn-ghost:hover { background: var(--mint-soft); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(250, 247, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-deep); text-decoration: none; font: 400 26px/1 var(--f-display); }
.wm-mark { width: 34px; height: 34px; }
.wm-mark rect { fill: var(--teal); }
.wm-mark path { fill: var(--ivory); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav-links a:not(.btn):hover { color: var(--teal); }
.nav-toggle { display: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--teal); background: transparent; color: var(--teal); font: 600 15px var(--f-body); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); background:
  radial-gradient(900px 480px at 88% 10%, rgba(143, 207, 194, .35), transparent 70%),
  radial-gradient(700px 400px at 0% 100%, rgba(224, 121, 91, .10), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.eyebrow-light { color: var(--mint); }
.hero h1 { font-family: var(--f-display); font-size: clamp(38px, 5.4vw, 62px); line-height: 1.08; color: var(--teal-deep); letter-spacing: -.01em; }
.lead { margin: 22px 0 0; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.note { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }

/* Hero video: full-bleed on wide screens, a framed clip under the headline on phones */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #EEE7DA url("/assets/video/hero-wide.jpg?v=2") center/cover no-repeat; }
.hero-video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translateX(9%); }
.hero-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(250, 247, 241, .97) 0%, rgba(250, 247, 241, .9) 34%, rgba(250, 247, 241, .35) 58%, rgba(250, 247, 241, 0) 72%),
              linear-gradient(0deg, rgba(250, 247, 241, .9) 0%, rgba(250, 247, 241, 0) 22%); }
.hero-copy { position: relative; }
.hero-grid { min-height: clamp(520px, 72vh, 720px); }
.hero-grid > * { min-width: 0; } /* a video's natural 1600px width must never widen the column */
.hero-chips { position: relative; align-self: end; justify-self: end; display: grid; gap: 14px; justify-items: end; }
.glass-chip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; color: var(--ink);
  background: rgba(255, 255, 255, .62); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 18px 40px -18px rgba(10, 56, 52, .35), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.glass-chip b { display: block; font-size: 14.5px; font-weight: 600; }
.glass-chip small { display: block; font-size: 12.5px; color: var(--muted); }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 6px rgba(224, 121, 91, .18); flex: none; }
.chip-b { display: grid; gap: 0; background: rgba(10, 56, 52, .88); color: #fff; }
.chip-b small { color: #CFE6E1; }
.chip-b b { font: 400 26px/1.1 var(--f-display); }
.chip-label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.chip-a { animation: drift 7s ease-in-out infinite; }
.chip-b { animation: drift 8s ease-in-out -3s infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Video panels in later sections */
.video-panel { margin: 32px 0 0; border-radius: 22px; overflow: hidden; background: #EEE7DA; box-shadow: 0 30px 60px -30px rgba(10, 56, 52, .35); }
.video-panel video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-panel figcaption { padding: 12px 18px; font-size: 14px; color: var(--muted); background: var(--white); }
#website .video-panel { max-width: 880px; }
.video-small { max-width: 520px; }
.video-dark { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tint { background: var(--sand); }
.section-dark { background: var(--teal-deep); color: #EAF4F1; }
.section-title { font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; color: var(--teal-deep); max-width: 24ch; }
.section-dark .section-title { color: #fff; }
.section-lead { margin: 14px 0 0; color: var(--muted); max-width: 62ch; }
.section-dark .section-lead { color: #CFE6E1; }

.features { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 12px 12px 22px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgba(10, 56, 52, .35); }
.feature-art { aspect-ratio: 1; border-radius: 16px; background: #F9F3E7; overflow: hidden; margin-bottom: 16px; }
.feature-art img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature-art img { transform: scale(1.26) rotate(-1.5deg); }
.feature h3 { padding-inline: 10px; font: 600 17px/1.3 var(--f-body); color: var(--teal-deep); }
.feature p { margin: 8px 0 0; padding-inline: 10px; font-size: 15px; color: var(--muted); }

/* Gentle entrance as sections scroll in (only when JS runs and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.option { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 var(--line); }
.option-tag { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.option h3 { font: 400 24px/1.2 var(--f-display); color: var(--teal-deep); }
.option-url { display: inline-block; margin: 12px 0 4px; padding: 6px 12px; border-radius: 10px; background: var(--mint-soft); color: var(--teal); font: 600 14px/1.3 ui-monospace, "Cascadia Mono", monospace; overflow-wrap: anywhere; }
.option p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }

.data-grid, .khata, .demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 16px 18px 16px 52px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230E4F4A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks b { color: var(--ink); font-weight: 600; }

.khata-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.khata-list li { padding: 16px 20px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }

.steps { list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 60px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.steps li::before { content: counter(step); position: absolute; left: 24px; top: 20px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 15px; }
.steps b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* Demo form */
.lead-form, .lead-done { background: var(--white); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 20px 50px -24px rgba(10, 56, 52, .3); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin: 0 0 14px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); font-size: 13.5px; }
input[type=text], input[type=tel], textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: 400 16px/1.4 var(--f-body); color: var(--ink); background: var(--white); }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(20, 97, 89, .18); }
[aria-invalid="true"] { border-color: #B3261E !important; }
.roles { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.roles legend { margin-bottom: 6px; }
.roles label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 15px; color: var(--muted); }
.consent input, .roles input { width: 18px; height: 18px; accent-color: var(--teal); margin-top: 3px; flex: none; }
.privacy { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.form-status { display: none; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #FBE9E7; color: #A4261D; font-weight: 600; font-size: 15px; }
.form-status.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-done h3 { font: 400 28px/1.2 var(--f-display); color: var(--teal-deep); }
.lead-done p { color: var(--muted); }

.footer { padding-block: 28px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14.5px; }
.footer p { margin: 0; }

/* Prices */
.price-switch { display: inline-flex; gap: 6px; margin-top: 26px; padding: 5px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.price-switch label { position: relative; }
.price-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.price-switch span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.price-switch b { font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--mint-soft); color: var(--teal-deep); }
.price-switch input:checked + span { background: var(--teal); color: #fff; }
.price-switch input:checked + span b { background: rgba(255, 255, 255, .22); color: #fff; }
.price-switch input:focus-visible + span { outline: 2.5px solid var(--teal); outline-offset: 2px; }
.price-block { display: none; }
#pricing[data-period="monthly"] .price-monthly, #pricing[data-period="yearly"] .price-yearly { display: block; }
.price-saving { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
#pricing[data-period="yearly"] .price-saving { color: var(--teal-2); font-weight: 600; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; align-items: start; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.price-card-lead { position: relative; border: 2px solid var(--teal); box-shadow: 0 18px 40px -30px rgba(14, 79, 74, .6); }
.price-badge { position: absolute; top: -13px; left: 22px; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.price-step { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--mint-soft); color: var(--teal-deep); font-size: 14.5px; font-weight: 600; }
.price-card h3 { font-family: var(--f-display); font-size: 25px; color: var(--teal-deep); margin: 0; }
.price-who { margin: 6px 0 18px; color: var(--muted); font-size: 15px; }
.price-main { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.price-main b { font-size: 34px; color: var(--teal); font-variant-numeric: tabular-nums; }
.price-main span { color: var(--muted); font-size: 15px; }
.price-alt { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.price-logins { margin: 16px 0 0; font-weight: 600; color: var(--ink); }
.price-plus { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--teal-2); }
.price-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.price-list li { padding-left: 24px; position: relative; }
.price-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 11px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.price-every { margin-top: 22px; padding: 22px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.price-every h3 { margin: 0 0 12px; font-size: 16px; color: var(--teal-deep); }
.price-hero { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--mint-soft); color: var(--teal-deep); }
.price-hero b { display: block; margin-bottom: 4px; }
.price-every .price-list { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 8px 24px; }

.price-notes { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted); max-width: 70ch; }
.price-notes b { color: var(--ink); font-weight: 600; }
.price-cta { margin: 28px 0 0; }

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-grid, .data-grid, .khata, .demo-grid { grid-template-columns: 1fr; }
  .hero-veil { background: linear-gradient(180deg, rgba(250, 247, 241, .92) 0%, rgba(250, 247, 241, .82) 60%, rgba(250, 247, 241, .55) 100%); }
  .hero-chips { justify-self: start; justify-items: start; }
}
@media (max-width: 760px) {
  .hero-grid { min-height: 0; }
  .hero-veil { display: none; }
  .hero-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 5; margin-top: 28px; border-radius: 24px; overflow: hidden; background-image: url("/assets/video/hero-tall.jpg?v=2"); }
  .hero-video { transform: none; }
  .hero-chips { position: absolute; right: 16px; bottom: 16px; }
  .hero-grid { position: relative; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px; background: var(--ivory); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 0; }
  .options, .steps, .price-grid { grid-template-columns: 1fr; }
  .price-every .price-list { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature, .feature-art img { transition: none; }
  .chip-a, .chip-b { animation: none; }
  .feature:hover, .feature:hover .feature-art img { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Privacy notice and terms */
.legal { padding-block: clamp(36px, 6vw, 72px); }
.narrow-text { width: min(760px, 100%); }
.legal h2 { margin: 34px 0 10px; font: 600 20px/1.3 var(--f-body); color: var(--teal-deep); }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.legal .updated { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.legal .lead { margin-top: 20px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--sand); font-weight: 600; }
.legal-note { margin-top: 36px; padding: 14px 16px; border-radius: 12px; background: var(--sand); color: var(--muted); font-size: 14.5px; }
