/* Marketing site (landing, product, pricing, legal pages). CaseMerit: white paper, navy ink, blue links, Canada-red accent. */
:root {
  --paper: #f7f9fc; --paper-2: #edf2f9; --ink: #0b1f4d; --ink-2: #2d3b5c; --muted: #5f6b82; --line: #d8e0ec; --line-2: #e6ecf5;
  --accent: #d71920; --link: #1f5fbf;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.serif { font-family: var(--serif); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 6px; font-weight: 500; font-size: 15px; text-decoration: none; border: 1px solid var(--ink); transition: background .15s, color .15s; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #1f5fbf; border-color: #1f5fbf; }
.btn-line { color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.arrow { font-family: var(--sans); transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; height: 64px; gap: 36px; }
.word { font-family: var(--serif); font-size: 28px; letter-spacing: -.01em; text-decoration: none; line-height: 1; display: inline-flex; align-items: center; gap: 9px; }
.word i { color: var(--accent); font-style: normal; }
.top nav { display: flex; gap: 28px; font-size: 14.5px; color: var(--ink-2); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14.5px; }
.top .right a.in { text-decoration: none; color: var(--ink-2); }
.top .btn { padding: 9px 16px; font-size: 14px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }
.drawer { display: none; border-top: 1px solid var(--line); padding: 8px 28px 20px; }
.drawer a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.drawer .btn { margin-top: 16px; justify-content: center; border-bottom: 1px solid var(--ink); }

/* hero */
.hero { padding: 88px 0 0; }
.hero-text { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: end; }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .side { display: grid; gap: 24px; padding-bottom: 10px; }
.hero .side p { font-size: 17.5px; color: var(--ink-2); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { font-size: 13.5px; color: var(--muted); }
.frame { border: 1px solid #cfcabe; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 30px 60px -30px rgba(21, 23, 28, .28); }
.hero-shot { margin-top: 64px; margin-right: -120px; }
.hero-shot .frame { border-bottom: 0; border-radius: 10px 10px 0 0; }
.hero-band { border-bottom: 1px solid var(--line); overflow: hidden; }

/* programs */
.programs { padding: 44px 0; border-bottom: 1px solid var(--line); }
.programs .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.programs ul { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 32px; font-size: 15px; color: var(--ink-2); }
.programs li { padding: 3px 0; break-inside: avoid; }

/* feature rows */
.row { padding: 104px 0; border-bottom: 1px solid var(--line); }
.row .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.row.flip .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.row.flip .copy { order: 2; }
.row .num { font-family: var(--serif); font-size: 20px; color: var(--accent); margin-bottom: 18px; }
.row h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -.01em; margin-bottom: 20px; }
.row .copy > p { color: var(--ink-2); font-size: 16.5px; }
.facts { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: grid; grid-template-columns: 22px minmax(0, 1fr); }
.facts li::before { content: "—"; color: var(--muted); }
/* Zoomed crop of a 1440x900 screenshot: --x/--y/--w are the visible window in CSS px of the original. */
.shot-crop { --x: 252; --y: 64; --w: 780; --h: 520; aspect-ratio: var(--w) / var(--h); position: relative; }
.shot-crop img { position: absolute; max-width: none; width: calc(1440 / var(--w) * 100%); left: calc(var(--x) / var(--w) * -100%); top: calc(var(--y) / var(--h) * -100%); }
.photo-stack { position: relative; padding: 0 64px 56px 0; }
.photo-stack .photo { width: 100%; border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-stack .phone { position: absolute; right: 0; bottom: 0; width: 200px; }
.photo-stack .mini { position: absolute; right: 0; bottom: 0; width: 62%; }
.phone { border: 8px solid var(--ink); border-radius: 32px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -24px rgba(21, 23, 28, .55); aspect-ratio: 390 / 760; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* also */
.also { padding: 104px 0; border-bottom: 1px solid var(--line); }
.also-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; margin-bottom: 48px; }
.also-head h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.04; }
.also-head p { color: var(--ink-2); font-size: 16.5px; align-self: end; }
.also-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.also-grid div { padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.also-grid div:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.also-grid b { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.also-grid span { color: var(--muted); font-size: 14.5px; }

/* pricing */
.pricing { padding: 104px 0; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.p-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.p-head h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.04; }
.p-head p { color: var(--ink-2); margin-top: 10px; }
.cycle { display: inline-flex; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; }
.cycle button { background: none; border: 0; font: 500 14px var(--sans); padding: 9px 16px; cursor: pointer; color: var(--ink); }
.cycle button.on { background: var(--ink); color: var(--paper); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper); border-radius: 10px; overflow: hidden; }
.plan { padding: 32px 30px; display: flex; flex-direction: column; gap: 20px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.pick { background: #fff; box-shadow: inset 0 3px 0 var(--accent); }
.plan .name { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan h3 { font-family: var(--serif); font-size: 30px; }
.plan .note { font-size: 12.5px; color: var(--accent); font-weight: 500; }
.plan .for { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.plan .amt { font-family: var(--serif); font-size: 54px; line-height: 1; }
.plan .amt small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.plan .billed { font-size: 13px; color: var(--muted); margin-top: 6px; min-height: 20px; }
.plan .btn { justify-content: center; }
.plan ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; border-top: 1px solid var(--line); }
.plan li { padding: 9px 0; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 12px; }
.plan li .v { color: var(--ink); font-weight: 500; text-align: right; }
.plan li.off { color: #a3a6ad; }
.plan li.off .v { color: #b9bcc2; font-weight: 400; }
.p-foot { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* faq */
.faq { padding: 104px 0; border-bottom: 1px solid var(--line); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.faq h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.04; }
.qa { border-top: 1px solid var(--line); }
.qa div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
.qa b { font-weight: 600; font-size: 15.5px; }
.qa p { color: var(--ink-2); font-size: 15px; }

/* close */
.close { padding: 120px 0 112px; text-align: left; }
.close h2 { font-family: var(--serif); font-size: clamp(44px, 6vw, 80px); line-height: .98; letter-spacing: -.02em; max-width: 900px; }
.close h2 em { color: var(--accent); }
.close .ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.close-photo { width: 100%; margin-top: 64px; border-radius: 10px; aspect-ratio: 2.4 / 1; object-fit: cover; object-position: center 60%; }
/* footer */
.site-foot { background: var(--ink); color: #b9bcc4; font-size: 14.5px; }
.site-foot a { text-decoration: none; color: #d9dbe0; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 56px 0 48px; border-bottom: 1px solid #2a2d35; }
.foot-cta h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; color: #fff; max-width: 640px; }
.foot-cta h2 em { color: #fca5a5; }
/* Buttons in the dark footer: override the footer link colours/underline so text never disappears on hover. */
.site-foot .btn, .site-foot .btn:hover, .site-foot .btn:visited { text-decoration: none; }
.site-foot .foot-cta .btn-dark, .site-foot .foot-cta .btn-dark:visited { background: #fff; color: var(--ink); border-color: #fff; }
.site-foot .foot-cta .btn-dark:hover, .site-foot .foot-cta .btn-dark:focus-visible { background: #fca5a5; border-color: #fca5a5; color: var(--ink); }
.site-foot .foot-cta .btn-line, .site-foot .foot-cta .btn-line:visited { background: transparent; color: #fff; border-color: #50545e; }
.site-foot .foot-cta .btn-line:hover, .site-foot .foot-cta .btn-line:focus-visible { background: #fff; border-color: #fff; color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 52px 0 44px; }
.foot-brand .word { color: #fff; font-size: 28px; }
.foot-brand p { margin-top: 16px; max-width: 320px; line-height: 1.6; }
.foot-brand .mail { display: inline-block; margin-top: 16px; }
.foot-col h4 { margin: 0 0 14px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #8b8f99; font-weight: 600; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-bottom { border-top: 1px solid #2a2d35; padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; font-size: 13px; color: #8b8f99; }
.foot-bottom .legal { flex-basis: 100%; order: -1; display: flex; gap: 12px; align-items: flex-start; margin: 0 0 6px; padding: 14px 18px; font-size: 14px; line-height: 1.55; color: #e6e7ea; background: rgba(252, 165, 165, .08); border: 1px solid rgba(252, 165, 165, .35); border-left: 3px solid #f87171; border-radius: 8px; }
.foot-bottom .legal b { color: #fff; font-weight: 600; }
.legal-ic { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #f87171; color: var(--ink); font: 700 12px/1 Georgia, serif; font-style: italic; margin-top: 1px; }

/* nav active */
.top nav a.on { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.drawer a.on { font-weight: 600; }

/* inner page header */
.page-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero .label { margin-bottom: 18px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(42px, 5.6vw, 72px); line-height: 1; letter-spacing: -.02em; max-width: 920px; }
.page-hero h1 em { color: var(--accent); }
.page-hero p { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 680px; }
.page-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.jump { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.jump a { font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: #fff; }
.jump a:hover { border-color: var(--ink); }

/* home: explore cards */
.explore { padding: 96px 0; border-bottom: 1px solid var(--line); }
.explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.ex-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s; }
.ex-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.ex-card .ex-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.ex-card .ex-img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.ex-card .ex-body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.ex-card h3 { font-family: var(--serif); font-size: 28px; line-height: 1.05; }
.ex-card p { color: var(--ink-2); font-size: 15px; }
.ex-card .go { font-size: 14px; font-weight: 600; margin-top: 6px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: end; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.04; }
.sec-head p { color: var(--ink-2); font-size: 16.5px; }

/* prose (security, privacy, terms) */
.prose-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 64px 0 104px; }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 8px; font-size: 14px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); }
.prose { max-width: 720px; font-size: 16px; color: var(--ink-2); }
.prose h2 { font-family: var(--serif); font-size: 32px; color: var(--ink); margin: 44px 0 12px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .updated { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 8px; }
.feature-list div { padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.feature-list div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
.feature-list b { display: block; font-size: 15.5px; margin-bottom: 6px; color: var(--ink); }
.feature-list span { font-size: 15px; color: var(--ink-2); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; padding: 64px 0 104px; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info .ci b { display: block; color: var(--ink); margin-bottom: 4px; }
.contact-info .ci span { color: var(--ink-2); font-size: 15px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.form-card .f { display: grid; gap: 6px; margin-bottom: 16px; }
.form-card label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-card input, .form-card select, .form-card textarea { font: 400 15px var(--sans); color: var(--ink); background: #fff; border: 1px solid #d6d2c8; border-radius: 8px; padding: 11px 12px; width: 100%; }
.form-card textarea { min-height: 140px; resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 23, 28, .08); }
.form-card .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form-card .err { color: #b91c1c; font-size: 13px; }
.form-card [aria-invalid="true"] { border-color: #dc2626; }
.notice { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-size: 15px; }
.notice.ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.notice.bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

@media (max-width: 980px) {
  .hero-text, .row .wrap, .row.flip .wrap, .also-head, .faq .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .row.flip .copy { order: 0; }
  .hero-shot { margin-right: -28px; }
  .also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .also-grid div, .also-grid div:not(:nth-child(3n+1)) { padding: 20px 20px 22px 0; border-left: 0; }
  .also-grid div:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .programs .wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .explore-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .sec-head, .contact, .prose-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .top nav, .top .right { display: none; }
  .burger { display: block; }
  .drawer.open { display: block; padding: 8px 16px 20px; }
  .hero { padding-top: 52px; }
  .hero-shot { margin-top: 40px; margin-right: -16px; }
  .row, .also, .pricing, .faq { padding: 68px 0; }
  .close { padding: 76px 0; }
  .also-grid { grid-template-columns: minmax(0, 1fr); }
  .also-grid div, .also-grid div:nth-child(2n) { padding: 18px 0; border-left: 0; }
  .qa div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .photo-stack { padding: 0 28px 48px 0; }
  .photo-stack .phone { width: 128px; border-width: 5px; border-radius: 20px; }
  .photo-stack .mini { width: 72%; }
  .close-photo { margin-top: 40px; aspect-ratio: 3 / 2; }
  .hero .ctas .btn, .close .ctas .btn, .page-hero .ctas .btn, .foot-cta .btn { flex: 1 1 100%; justify-content: center; }
  .page-hero { padding: 52px 0 44px; }
  .explore { padding: 64px 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .feature-list div, .feature-list div:nth-child(2n) { padding: 18px 0; border-left: 0; }
  .form-card { padding: 22px 18px; }
  .form-card .two { grid-template-columns: minmax(0, 1fr); }
  .contact, .prose-wrap { padding: 44px 0 72px; }
}

/* CaseMerit wordmark */
.cm-word { font-family: Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -.025em; font-size: 22px; line-height: 1; white-space: nowrap; }
.cm-word b { font-weight: 800; }
.cm-dark b:first-child { color: #0b2a6e; }
.cm-dark b + b { color: #1f6fd6; }
.cm-light b:first-child { color: #ffffff; }
.cm-light b + b { color: #7fb2ff; }
