/* ClinQ marketing site - shared styles (brand tokens from product design system) */
:root {
  --primary: #0d9488;
  --primary-600: #0b7a70;
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --navy: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e5e7eb;
  --success: #059669;
  --warning: #d97706;
  --info: #2563eb;
  --purple: #7c3aed;
  --orange: #ea580c;
  --rose: #e11d48;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-2: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-3: 0 12px 32px rgba(15, 23, 42, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- SVG icon system ---------- */
.svgicon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.card .icon { color: var(--primary); }
.card .icon .svgicon { width: 24px; height: 24px; }
.contact-card .ic { color: var(--primary); }
.contact-card .ic .svgicon { width: 22px; height: 22px; }
.badge-float .dot { color: var(--primary); }
.badge-float .dot .svgicon { width: 17px; height: 17px; }
.footer-contact li .ic { color: rgba(255,255,255,.7); display: inline-flex; }
.footer-contact li .ic .svgicon { width: 16px; height: 16px; }
.module-block .m-icon { color: var(--primary); }
.module-block .m-icon .svgicon { width: 26px; height: 26px; }
.brand-logo { display: inline-flex; align-items: center; gap: 0; }
.brand-logo svg { width: auto; height: 28px; flex: 0 0 auto; margin-right: 9px; }
.h-ic { display: inline-flex; vertical-align: -4px; margin-right: 7px; color: var(--primary); }
.h-ic .svgicon { width: 21px; height: 21px; }
.module-block h3 .h-ic .svgicon { width: 22px; height: 22px; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--navy); background: var(--surface); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: #0e3b38; }
.brand span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--navy); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: all .15s; cursor: pointer; border: none; font-family: var(--font); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); box-shadow: var(--shadow-2); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-50); }
.btn-ghost { color: var(--text-2); padding: 12px 16px; }
.btn-ghost:hover { color: var(--primary); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-white { background: #fff; color: var(--primary-600); }
.btn-white:hover { box-shadow: var(--shadow-3); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--primary-50) 0%, #ffffff 100%); padding: 88px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; max-width: 820px; margin: 0 auto 20px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 19px; color: var(--text-2); max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--text-3); }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); padding: 18px 0; }
.trust-inner { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--text-2); }
.trust-inner span::before { content: "✓ "; color: var(--success); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 17px; }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-1); transition: all .15s; }
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card .icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; background: var(--primary-50); }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-2); }
.card .tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-50); padding: 3px 10px; border-radius: 999px; }

/* ---------- Problem / story ---------- */
.problem-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.problem-row h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; margin-bottom: 16px; }
.problem-row p { color: var(--text-2); margin-bottom: 14px; }
.check-list { list-style: none; margin-top: 8px; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--text-2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.check-list li strong { color: var(--navy); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-3); }
.price-card .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.price-card .plan-desc { font-size: 13.5px; color: var(--text-3); margin-bottom: 18px; min-height: 42px; }
.price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-size: 14px; font-weight: 500; color: var(--text-3); }
.price-card ul { list-style: none; margin: 20px 0 26px; flex: 1; }
.price-card li { font-size: 14px; color: var(--text-2); padding: 6px 0 6px 26px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.price-card .btn { width: 100%; text-align: center; }

/* ---------- Module detail rows ---------- */
.module-block { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 16px; }
.module-block .m-icon { width: 56px; height: 56px; border-radius: var(--radius); background: var(--primary-50); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.module-block h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.module-block h3 .pill { font-size: 11.5px; font-weight: 700; vertical-align: middle; margin-left: 8px; color: var(--purple); background: #f3e8ff; padding: 2px 10px; border-radius: 999px; }
.module-block p { font-size: 15px; color: var(--text-2); margin-bottom: 8px; }
.module-block .features { font-size: 13.5px; color: var(--text-3); }
.module-block .features strong { color: var(--text-2); font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat h3 { font-size: 38px; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; }
.stat p { font-size: 14px; color: var(--text-2); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, #134e4a 100%); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-2); max-width: 560px; margin: 0 auto; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: 15px; color: var(--navy); background: var(--surface); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }

/* ---------- Footer contact ---------- */
.footer-contact { list-style: none; margin-top: 14px; }
.footer-contact li { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 8px; font-size: 13.5px; line-height: 1.5; }
.footer-contact li span.ic { flex: 0 0 auto; opacity: .85; }
.footer-contact a { color: rgba(255,255,255,.78); }
.footer-contact a:hover { color: #fff; }

/* ---------- Contact details block ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-1); }
.contact-card .ic { width: 44px; height: 44px; border-radius: var(--radius); background: var(--primary-50); display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px; }
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: 14px; color: var(--text-2); display: block; line-height: 1.6; }
.contact-card a:hover { color: var(--primary); }
.contact-card .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-top: 10px; }
.office-tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--primary); background: var(--primary-50); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid .brand { color: #fff; margin-bottom: 10px; display: block; }
.footer-grid h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: rgba(255,255,255,.65); }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- Hero with photo (two-column) ---------- */
.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; text-align: left; }
.hero-split h1 { margin: 0 0 20px; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); display: block; }
.hero-photo .badge-float { position: absolute; bottom: 18px; left: -18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.hero-photo .badge-float .dot { width: 30px; height: 30px; border-radius: 8px; background: var(--primary-50); display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* ---------- Photo persona cards ---------- */
.card.photo-card { padding: 0; overflow: hidden; }
.card.photo-card .ph { aspect-ratio: 4/3; overflow: hidden; }
.card.photo-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.card.photo-card:hover .ph img { transform: scale(1.04); }
.card.photo-card .body { padding: 22px 24px 26px; }
.card.photo-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card.photo-card p { font-size: 14px; color: var(--text-2); }

/* ---------- Image banner ---------- */
.img-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--border); }
.img-banner .photo { min-height: 360px; background-size: cover; background-position: center; }
.img-banner .copy { padding: 48px; display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.img-banner .copy h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.2; }
.img-banner .copy p { color: var(--text-2); margin-bottom: 12px; }

/* ---------- Screenshots / browser frame ---------- */
.browser-frame { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); overflow: hidden; }
.browser-frame .chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
.browser-frame .chrome span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser-frame .chrome span:nth-child(1) { background: #fda4af; }
.browser-frame .chrome span:nth-child(2) { background: #fcd34d; }
.browser-frame .chrome span:nth-child(3) { background: #86efac; }
.browser-frame img { display: block; width: 100%; }
.hero-shot { max-width: 980px; margin: 56px auto -120px; }
.hero-shot + * { padding-top: 160px; }
.card .thumb { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: -12px -12px 16px; }
.card .thumb img { display: block; width: 100%; }

/* ---------- Case studies ---------- */
.scenario { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; margin-bottom: 28px; box-shadow: var(--shadow-1); }
.scenario .s-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.scenario h3 { font-size: 21px; font-weight: 700; }
.scenario .s-meta { font-size: 13.5px; color: var(--text-3); }
.scenario .s-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.scenario .s-result { background: var(--primary-50); border-radius: var(--radius); padding: 16px; text-align: center; }
.scenario .s-result strong { display: block; font-size: 24px; color: var(--primary-600); letter-spacing: -0.02em; }
.scenario .s-result span { font-size: 13px; color: var(--text-2); }
.scenario blockquote { border-left: 3px solid var(--primary); padding: 4px 0 4px 18px; margin-top: 18px; font-style: italic; color: var(--text-2); }
.scenario blockquote cite { display: block; font-style: normal; font-size: 13px; color: var(--text-3); margin-top: 6px; }
.disclaimer { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: var(--radius); padding: 14px 18px; font-size: 13.5px; max-width: 720px; margin: 0 auto 40px; text-align: center; }

/* ---------- Module detail pages ---------- */
.breadcrumb { font-size: 13.5px; color: var(--text-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--primary); }
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.module-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; }
.module-nav a { font-weight: 600; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-split .hero-actions { justify-content: center; }
  .hero-photo { max-width: 460px; margin: 0 auto; }
  .hero-photo .badge-float { left: 12px; }
  .img-banner { grid-template-columns: 1fr; }
  .img-banner .photo { min-height: 240px; }
}
@media (max-width: 960px) {
  .grid-4, .pricing-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .problem-row { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; gap: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-2); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .grid-3, .grid-4, .grid-2, .pricing-grid, .stats { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .module-block { grid-template-columns: 1fr; }
}
