/* The Case Diary marketing site — teal + amber, matching the app. */

:root {
  --primary: #017276;
  --primary-dark: #0b4a4d;
  --primary-50: #e6f2f2;
  --accent: #d9962b;
  --accent-soft: #fbf0d9;
  --ink: #142522;
  --muted: #566a66;
  --bg: #f3f7f6;
  --surface: #ffffff;
  --line: #dbe5e3;
  --dark: #0a2a2b;
  --success: #1e8a5f;
  --success-bg: #e2f3ec;
  --warning: #c25f1c;
  --warning-bg: #fbeadc;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(20, 37, 34, 0.05), 0 8px 24px rgba(20, 37, 34, 0.07);
  --shadow-lg: 0 24px 60px rgba(10, 42, 43, 0.28);
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 12px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(1, 114, 118, 0.28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-gold { background: var(--accent); color: var(--dark); box-shadow: 0 8px 22px rgba(217, 150, 43, 0.35); }
.btn-gold:hover { background: #d6a23a; color: var(--dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.06); color: #f3f7f6; border-color: rgba(243, 247, 246, 0.3); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(243, 247, 246, 0.55); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 247, 246, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(219, 229, 227, 0.8);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #f3f7f6;
  background:
    radial-gradient(900px 480px at 82% -8%, rgba(217, 150, 43, 0.24), transparent 62%),
    radial-gradient(700px 420px at 4% 108%, rgba(1, 114, 118, 0.55), transparent 65%),
    linear-gradient(150deg, #0b4a4d 0%, #06595c 55%, #017276 135%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; padding: 84px 24px 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8a5a0a; }
.hero .eyebrow, .sec-wrap .eyebrow { color: var(--accent); }
.hero .eyebrow { background: rgba(217, 150, 43, 0.12); border: 1px solid rgba(217, 150, 43, 0.35); padding: 7px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 700; margin: 22px 0 20px; letter-spacing: -0.025em; }
.hero h1 .accent { color: #f6c15d; }
.hero .lead { font-size: 18.5px; color: rgba(243, 247, 246, 0.9); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: 14px; color: rgba(243, 247, 246, 0.86); }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .icon { width: 17px; height: 17px; color: var(--accent); }
.devanagari { font-family: "Noto Sans Devanagari", var(--font-body); }

/* Phone mockup (an illustration of the app, not a screenshot) */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 304px; background: #06201f; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  transform: rotate(2deg);
}
.phone::before { content: ""; position: absolute; top: 19px; left: 50%; width: 86px; height: 24px; margin-left: -43px; background: #06201f; border-radius: 14px; z-index: 3; }
.screen { background: var(--bg); border-radius: 36px; padding: 46px 16px 0; height: 596px; overflow: hidden; position: relative; color: var(--ink); }
.screen .hello { display: flex; justify-content: space-between; align-items: center; }
.screen .hello b { font-family: var(--font-head); font-size: 17px; display: block; letter-spacing: -0.01em; }
.screen .hello small { color: var(--muted); font-size: 11.5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.stat strong { font-family: var(--font-head); font-size: 19px; color: var(--primary); display: block; line-height: 1.2; }
.stat strong.warn { color: var(--warning); }
.stat span { font-size: 10.5px; color: var(--muted); }
.screen h6 { font-family: var(--font-head); font-size: 13.5px; margin: 0 0 8px; }
.mini-case { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; margin-bottom: 8px; display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; }
.mini-case b { font-family: var(--font-head); font-size: 12.5px; display: block; line-height: 1.3; }
.mini-case small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.mini-case em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--primary); display: block; margin-top: 3px; }
.chip { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip-active { background: var(--success-bg); color: var(--success); }
.chip-warn { background: var(--warning-bg); color: var(--warning); }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 9px 6px 14px; font-size: 9.5px; color: var(--muted); text-align: center; }
.tabbar .icon { width: 19px; height: 19px; margin: 0 auto 2px; }
.tabbar .on { color: var(--primary); font-weight: 600; }
.float-card {
  position: absolute; left: -96px; bottom: 54px; width: 214px; background: #fff; color: var(--ink);
  border-radius: 18px; padding: 15px 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: rotate(-3deg);
}
.float-card .row { display: flex; justify-content: space-between; font-size: 12px; padding: 3px 0; }
.float-card .row b { font-family: var(--font-head); }
.float-card .title { font-family: var(--font-head); font-weight: 600; font-size: 12.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; color: var(--primary); }
.float-card .title .icon { width: 16px; height: 16px; }
.bar { height: 7px; border-radius: 99px; background: var(--line); margin: 9px 0 7px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--success), #35b585); border-radius: 99px; }
.caption-illus { text-align: center; margin-top: 18px; font-size: 12px; color: rgba(243, 247, 246, 0.5); position: absolute; bottom: -34px; left: 0; right: 0; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17.5px; }
.bg-white { background: var(--surface); border-block: 1px solid var(--line); }

.value-strip { padding: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.value-strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; padding-block: 22px; font-size: 14.5px; color: var(--muted); }
.value-strip span { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.value-strip .icon { width: 19px; height: 19px; color: var(--primary); }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.feature-grid .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c5d6d3; }
.ico-badge { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.ico-badge.gold { background: var(--accent-soft); color: #8a5a0a; }
.card h3 { font-size: 18.5px; margin-bottom: 8px; font-weight: 600; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Spotlight rows */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.spot + .spot { margin-top: 96px; }
.spot.flip .spot-copy { order: 2; }
.spot-copy .eyebrow { margin-bottom: 14px; }
.spot-copy h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin-bottom: 16px; }
.spot-copy > p { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.ticks .icon { width: 20px; height: 20px; color: var(--success); margin-top: 3px; stroke-width: 2.4; }
.spot-visual { background: linear-gradient(145deg, var(--primary-50), var(--accent-soft)); border-radius: var(--radius-lg); padding: 40px 32px; border: 1px solid var(--line); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; max-width: 420px; margin: 0 auto; }
.panel + .panel { margin-top: 14px; }
.panel h5 { font-family: var(--font-head); font-size: 14px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.fee-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.fee-row div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.fee-row b { display: block; font-family: var(--font-head); font-size: 15px; }
.fee-row span { font-size: 11px; color: var(--muted); }
.txn { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.txn .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.txn .dot .icon { width: 15px; height: 15px; }
.txn .dot.in { background: var(--success-bg); color: var(--success); }
.txn .dot.out { background: #e6eeec; color: #8a8078; }
.txn small { display: block; color: var(--muted); font-size: 12px; }
.txn b { margin-left: auto; font-family: var(--font-head); }
.pill-row { display: flex; gap: 8px; margin: 12px 0 4px; }
.pill { font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.on { background: var(--primary-50); color: var(--primary); border-color: #bcdcdc; }
.linkbox { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 11px 14px; font-size: 12.5px; color: var(--primary); word-break: break-all; margin: 12px 0; }
.mock-btn { display: block; text-align: center; background: var(--primary); color: #fff; border-radius: 11px; padding: 11px; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; }
.member { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.member:first-of-type { border-top: 0; }
.member small { display: block; color: var(--muted); font-size: 12px; }
.role { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: #8a5a0a; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-head); font-weight: 700; font-size: 15px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; margin-bottom: 18px;
}

/* Roadmap */
.road-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.road { background: var(--surface); border: 1px dashed #d6c8b8; border-radius: var(--radius); padding: 24px; }
.road .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.road .ico-badge { margin: 0; width: 42px; height: 42px; border-radius: 12px; }
.status { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: #8a5a0a; }
.road h3 { font-size: 17px; margin-bottom: 6px; font-weight: 600; }
.road p { color: var(--muted); font-size: 14.5px; }
.fineprint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

/* Security */
.sec-wrap { background: var(--dark); color: #f3f7f6; border-radius: var(--radius-lg); padding: 64px 56px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; position: relative; overflow: hidden; }
.sec-wrap::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 150, 43, 0.22), transparent 70%); }
.sec-wrap h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 14px 0 14px; }
.sec-wrap > div:first-child p { color: rgba(243, 247, 246, 0.72); }
.sec-list { display: grid; gap: 22px; position: relative; z-index: 1; }
.sec-item { display: flex; gap: 16px; }
.sec-item .ico-badge { background: rgba(217, 150, 43, 0.14); color: var(--accent); margin: 0; flex: none; }
.sec-item h3 { font-size: 16.5px; margin-bottom: 3px; font-weight: 600; }
.sec-item p { color: rgba(243, 247, 246, 0.68); font-size: 14.5px; }

/* Pricing */
.billing-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-top: 28px; }
.billing-toggle button { font-family: var(--font-head); font-weight: 600; font-size: 14px; border: 0; background: none; padding: 9px 22px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.billing-toggle button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.save-tag { font-size: 11px; background: var(--accent-soft); color: #8a5a0a; padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.billing-toggle button[aria-pressed="true"] .save-tag { background: rgba(255, 255, 255, 0.2); color: #fff; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 34px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 18px 50px rgba(1, 114, 118, 0.14); }
.plan .badge { position: absolute; top: -14px; right: 28px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; padding: 6px 14px; border-radius: 999px; }
.plan h3 { font-size: 20px; font-weight: 600; }
.plan .desc { color: var(--muted); font-size: 14.5px; margin: 6px 0 22px; }
.price { font-family: var(--font-head); font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-sub { color: var(--muted); font-size: 13.5px; margin: 8px 0 26px; min-height: 22px; }
.plan .ticks { margin-bottom: 30px; flex: 1; }
.plan .ticks li { font-size: 15px; }
.plan .ticks .no { color: #9fb4b0; }
.plan .ticks .no svg { color: #9fb4b0; }
.addon-note { max-width: 860px; margin: 28px auto 0; background: var(--accent-soft); border: 1px solid #f1d9a0; border-radius: var(--radius); padding: 18px 22px; font-size: 14.5px; display: flex; gap: 14px; align-items: flex-start; color: #5d4408; }
.addon-note .icon { color: #8a5a0a; margin-top: 2px; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; }
.faq details[open] { border-color: #c5d6d3; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600; font-size: 16.5px; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--primary); line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); font-size: 15.5px; max-width: 700px; }

/* CTA band */
.cta-band { padding: 0 0 96px; }
.cta-inner { background: linear-gradient(135deg, var(--primary) 0%, #4a1022 100%); color: #fff; border-radius: var(--radius-lg); padding: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-inner::before { content: ""; position: absolute; left: 50%; top: -160px; width: 520px; height: 520px; margin-left: -260px; background: radial-gradient(circle, rgba(217, 150, 43, 0.3), transparent 68%); }
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.cta-inner p { color: rgba(255, 255, 255, 0.8); font-size: 17.5px; max-width: 560px; margin: 0 auto 30px; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(243, 247, 246, 0.7); padding: 64px 0 32px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #f3f7f6; }
.site-footer h4 { color: #f3f7f6; font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(243, 247, 246, 0.7); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.foot-about { margin: 16px 0 0; max-width: 300px; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(243, 247, 246, 0.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13.5px; }

/* Reveal on scroll (only when JS is running and motion is OK) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Legal / content pages */
.page-head { background: linear-gradient(180deg, #0b3638, #0a2a2b); color: #f3f7f6; padding: 64px 0 56px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); }
.page-head p { color: rgba(243, 247, 246, 0.7); margin-top: 10px; }
.legal { max-width: 780px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: #463d39; font-size: 16px; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.draft-note { background: var(--warning-bg); border: 1px solid #f0c9a8; color: #7a3d0c; border-radius: 12px; padding: 14px 18px; font-size: 14.5px; margin-bottom: 8px; }

/* Share-link landing */
.share-card { width: calc(100% - 32px); max-width: 520px; margin: 56px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 36px; text-align: center; box-shadow: var(--shadow); }
.share-card .ico-badge { margin: 0 auto 20px; width: 60px; height: 60px; border-radius: 18px; }
.share-card h1 { font-size: 24px; margin-bottom: 10px; }
.share-card .case { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--primary); margin: 18px 0 4px; }
.share-card .meta { color: var(--muted); font-size: 14.5px; }
.share-card .btn { margin-top: 26px; }
.share-card .small { margin-top: 18px; font-size: 13px; color: var(--muted); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; word-break: break-all; margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 72px; padding: 56px 24px 96px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .feature-grid, .road-grid, .steps { grid-template-columns: 1fr 1fr; }
  .spot { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .spot.flip .spot-copy { order: 0; }
  .sec-wrap { grid-template-columns: 1fr; padding: 48px 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 640px) {
  section { padding: 72px 0; }
  .feature-grid, .road-grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .phone { transform: none; width: 288px; }
  .screen { height: 560px; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 24px; }
  .spot-visual { padding: 24px 14px; }
  .panel { padding: 16px; }
  .plan { padding: 30px 26px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Grid children must be allowed to shrink below their content's natural width,
   otherwise one long word/URL stretches the whole page sideways on phones. */
.hero-grid > *, .spot > *, .foot-grid > *, .sec-wrap > * { min-width: 0; }
html, body { overflow-x: clip; }

/* ---- Brand lockup: gavel mark + "thecasediary.in" wordmark ---- */
.brand img { width: auto; height: 28px; }
.brand .wm { font-family: "Montserrat", var(--font-head); font-weight: 300; letter-spacing: -0.03em; font-size: 21px; line-height: 1; color: var(--primary); }
.brand .wm b { font-weight: 700; color: var(--primary); }
.site-footer .brand .wm, .site-footer .brand .wm b { color: #f3f7f6; }
.hero-wordmark { display: none; }
.hero .eyebrow, .sec-wrap .eyebrow, .hero-note .icon { color: #f6c15d; }

@media (max-width: 520px) {
  .brand { gap: 7px; }
  .brand img { height: 22px; }
  .brand .wm { font-size: 17px; white-space: nowrap; }
  .nav-cta .btn { padding: 9px 12px; font-size: 13.5px; white-space: nowrap; }
  .nav-cta { gap: 6px; }
}

/* legal pages */
.legal .updated { margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--primary-50); color: var(--primary-dark); font-weight: 600; }
.legal .ph { background: #fff4cc; border-radius: 4px; padding: 0 4px; font-weight: 600; color: #6b4b00; }
.legal .callout { background: var(--primary-50); border: 1px solid #bcdcdc; border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.legal .callout.warn { background: var(--warning-bg); border-color: #f0c9a8; }
.legal p, .legal li { color: #2f403d; }
@media (max-width: 600px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 4px 0; } .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; } }
