/* BriefDeed site styles. Every value comes from the BriefDeed design system. */
:root {
  --surface: #fbfaf7; --surface-soft: #f5f3ee; --surface-stage: #efece6;
  --surface-card: #ffffff; --surface-ink: #14211f; --surface-ink-raised: #1c2b28;
  --line: #e5e0d7; --line-strong: #cbc4b8; --line-control: #8c8477; --line-on-ink: #ffffff1f;
  --text: #1f1d1a; --text-secondary: #4c473f; --text-muted: #686256;
  --text-on-ink: #f5f3ee; --text-on-ink-secondary: #b8c4bf; --text-on-ink-muted: #8e9f99;
  --accent: #0d6b62; --accent-hover: #0a5750; --accent-soft: #eef7f4; --accent-line: #bfe0d9; --accent-on-ink: #6cc3b6;
  --action: #262420; --action-hover: #312e29; --on-action: #f8f6f2;
  --focus: #686256;
  --st-ok-text: #2b7240; --st-warn: #d09a33; --st-warn-text: #8a5a0d;
  --hair: #1f1d1a14; --hair-strong: #1f1d1a26; --fill: #1f1d1a0d; --fill-hover: #1f1d1a17; --fill-press: #1f1d1a21;
  --tint: #0d6b621a; --tint-hover: #0d6b6229;
  --float: 0 0 3px #1a171214, 0 6px 10px #1a17120a, 0 10px 16px #1a171205;
  --font-sans: "Inter", "Noto Sans Malayalam", "Noto Sans Tamil", "Noto Sans Kannada", system-ui, sans-serif;
  --font-display: "Source Serif 4", "Noto Serif Malayalam", Georgia, serif;
  --radius-xs: 4px; --radius-md: 8px; --radius-card: 12px; --radius-panel: 16px; --radius-pill: 9999px;
  --s-rows: 112px; --s-cards: 24px; --s-card: 32px;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1); --ease-fade: cubic-bezier(0.35, 0, 0.5, 1);
  --frame: 1176px; --rail: 48px;
}
@media (max-width: 820px) { :root { --s-rows: 64px; --s-cards: 16px; --s-card: 24px; --rail: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 15px/24px var(--font-sans); font-feature-settings: "cv11"; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-color: var(--accent-line); text-underline-offset: 3px; transition: color 120ms var(--ease-fade); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 1.5px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface-card); padding: 8px 12px; border-radius: var(--radius-md); }

/* Frame */
.wrap { max-width: var(--frame); margin: 0 auto; padding: 0 var(--rail); }
.section { padding: var(--s-rows) 0; }
[hidden] { display: none !important; }
.section:not(.band-soft) + .section:not(.band-soft) { padding-top: 0; }
.band-soft { background: var(--surface-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-soft + .section, .band-ink + .section { padding-top: var(--s-rows); }

/* Type */
.eyebrow { font-size: 13px; line-height: 20px; letter-spacing: 0.005em; color: var(--text-muted); }
.display-56 { font: 600 56px/64px var(--font-display); letter-spacing: -0.02em; }
.display-48 { font: 600 48px/56px var(--font-display); letter-spacing: -0.015em; }
.display-40 { font: 600 40px/48px var(--font-display); letter-spacing: -0.015em; }
.display-32 { font: 600 32px/40px var(--font-display); letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 28px; letter-spacing: -0.005em; color: var(--text-secondary); max-width: 640px; }
.reading { font-size: 17px; line-height: 28px; color: var(--text-secondary); }
.h3 { font-size: 18px; line-height: 28px; font-weight: 560; letter-spacing: -0.005em; color: var(--text); }
.small { font-size: 13px; line-height: 20px; letter-spacing: 0.005em; }
.caption { font-size: 12px; line-height: 16px; letter-spacing: 0.01em; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }
@media (max-width: 820px) {
  .display-56 { font-size: 40px; line-height: 48px; letter-spacing: -0.015em; }
  .display-48 { font-size: 36px; line-height: 44px; }
  .display-40 { font-size: 32px; line-height: 40px; letter-spacing: -0.01em; }
  .lead { font-size: 17px; line-height: 28px; }
}
.head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin-bottom: 48px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-md); font: 500 15px/24px var(--font-sans); text-decoration: none; cursor: pointer; transition: background-color 120ms var(--ease-fade), color 120ms var(--ease-fade); white-space: nowrap; }
.btn:active { transform: translateY(0.5px); }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn-secondary { background: var(--fill); color: var(--text); }
.btn-secondary:hover { background: var(--fill-hover); color: var(--text); }
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; line-height: 20px; gap: 6px; }
.link-arrow { font-weight: 500; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; height: 64px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.wordmark { font: 600 22px/28px var(--font-display); letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.wordmark:hover { color: var(--text); }
.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang select { appearance: none; height: 32px; padding: 0 28px 0 12px; border: 0; border-radius: var(--radius-pill); background: var(--fill); color: var(--text-secondary); font: 500 13px/20px var(--font-sans); cursor: pointer; }
.lang select:hover { background: var(--fill-hover); }
.lang::after { content: ""; position: absolute; right: 12px; top: 13px; width: 6px; height: 6px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: rotate(45deg); pointer-events: none; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle:hover { background: var(--fill); }
.nav-mobile { display: none; }
@media (max-width: 820px) {
  .nav .wrap { gap: 12px; }
  .nav-links, .nav-end .btn, .nav-end .lang { display: none; }
  .nav-end { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile[data-open="true"] { display: flex; flex-direction: column; gap: 4px; position: absolute; top: 64px; left: 0; right: 0; padding: 12px var(--rail) 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--float); }
  .nav-mobile a:not(.btn) { padding: 12px 0; color: var(--text); text-decoration: none; font-weight: 500; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-mobile .btn { margin-top: 16px; }
  .nav-mobile .lang { margin-top: 16px; align-self: flex-start; }
}

/* Hero */
.hero { background: radial-gradient(90% 70% at 50% 0%, #e3f1ee 0%, #e3f1ee00 72%), var(--surface-soft); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 96px; padding-bottom: 112px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; }
.hero-points { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.hero-points li { display: flex; gap: 12px; color: var(--text-secondary); }
.hero-points svg { flex: none; margin-top: 4px; color: var(--accent); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 64px; } .hero-copy { padding-top: 0; } }

/* Card */
.card { background: var(--surface-card); border-radius: var(--radius-card); padding: var(--s-card); box-shadow: var(--float); }

/* Form */
.check { display: flex; flex-direction: column; gap: 24px; }
.check-head { display: flex; flex-direction: column; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; line-height: 20px; font-weight: 500; }
.input { display: flex; align-items: center; height: 48px; border-radius: var(--radius-md); background: var(--fill); box-shadow: inset 0 0 0 1px var(--hair); transition: background-color 150ms var(--ease-fade), box-shadow 150ms var(--ease-fade); }
.input:hover { background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.input:focus-within { background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line-control), 0 0 0 1.5px var(--focus); }
.input .prefix { padding: 0 4px 0 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.input input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 14px 0 4px; font: 400 16px/24px var(--font-sans); color: var(--text); font-variant-numeric: tabular-nums; outline: none; }
.input.plain input { padding-left: 14px; }
.hint { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.error { font-size: 12px; line-height: 16px; color: #b23c31; }
.check .btn { width: 100%; }
.ref { font: 500 13px/20px "JetBrains Mono", ui-monospace, monospace; background: var(--accent-soft); color: #08463f; padding: 2px 8px; border-radius: var(--radius-xs); box-shadow: inset 0 0 0 1px var(--accent-line); }
.text-btn { align-self: center; border: 0; background: none; color: var(--text-muted); font: 500 13px/20px var(--font-sans); cursor: pointer; padding: 4px 8px; border-radius: var(--radius-md); }
.text-btn:hover { color: var(--text); background: var(--fill); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step-n { font: 400 28px/36px var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* Ruled list (services, inclusions) */
.ruled { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; grid-auto-rows: 1fr; border-top: 1px solid var(--line); }
.ruled > li { display: flex; border-bottom: 1px solid var(--line); }
.ruled > li > a, .ruled > li > div { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; color: inherit; text-decoration: none; }
.ruled .t { display: flex; flex-direction: column; gap: 4px; }
.ruled .name { font-size: 17px; line-height: 28px; font-weight: 560; letter-spacing: -0.005em; }
.ruled .desc { color: var(--text-secondary); }
.ruled .go { flex: none; color: var(--text-muted); transition: transform 200ms var(--ease-out), color 120ms var(--ease-fade); }
.ruled a:hover .go { color: var(--accent); transform: translateX(3px); }
.ruled a:hover .name { color: var(--accent); }
@media (max-width: 820px) { .ruled { grid-template-columns: 1fr; } }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.calc-inputs { display: flex; flex-direction: column; gap: 24px; }
.calc-result { display: flex; flex-direction: column; }
.calc-basis { font-size: 13px; line-height: 20px; color: var(--text-muted); padding-bottom: 16px; }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows > div:first-child { border-top: 1px solid var(--line); }
.rows dt { color: var(--text-secondary); }
.rows dd { margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.rows .total dt { color: var(--text); font-weight: 560; }
.rows .total dd { font: 500 32px/40px var(--font-display); letter-spacing: -0.02em; color: var(--accent); }
.rows .aside dt, .rows .aside dd { color: var(--text-muted); }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; gap: 40px; } }

/* Ink band */
.band-ink { background: var(--surface-ink); color: var(--text-on-ink); }
.band-ink .wrap { padding-top: var(--s-rows); padding-bottom: var(--s-rows); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.band-ink h2 { color: var(--text-on-ink); }
.band-ink .reading { color: var(--text-on-ink-secondary); }
.update { background: var(--surface-ink-raised); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.update-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--line-on-ink); }
.update-head b { font-weight: 560; color: var(--text-on-ink); }
.update-head span { font-size: 13px; line-height: 20px; color: var(--text-on-ink-muted); }
.update dl { display: flex; flex-direction: column; gap: 16px; }
.update dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.update dt { font-size: 13px; line-height: 24px; color: var(--text-on-ink-muted); }
.update dd { margin: 0; color: var(--text-on-ink); }
.update .next { color: var(--accent-on-ink); font-weight: 500; }
.badge-warn { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; margin-left: 8px; border-radius: var(--radius-xs); background: #ddb0552e; color: #e7c27a; font-size: 12px; line-height: 16px; font-weight: 500; vertical-align: 1px; }
.badge-warn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ddb055; }
.band-ink .caption { color: var(--text-on-ink-muted); margin-top: 8px; }
@media (max-width: 960px) { .band-ink .wrap { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 480px) { .update dl > div { grid-template-columns: 1fr; gap: 0; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; cursor: pointer; font-size: 17px; line-height: 28px; font-weight: 560; letter-spacing: -0.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--accent); }
.faq details > div { padding: 0 48px 24px 0; max-width: 720px; }
.faq details p { font-size: 17px; line-height: 28px; color: var(--text-secondary); }
.faq-group { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-bottom: 64px; }
.faq-group h2 { font: 600 28px/36px var(--font-display); letter-spacing: -0.005em; }
@media (max-width: 820px) { .faq-group { grid-template-columns: 1fr; gap: 16px; padding-bottom: 48px; } .faq details > div { padding-right: 0; } }

/* Tables */
.table-box { overflow-x: auto; border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--hair); background: var(--surface-card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }
th { text-align: left; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--text-muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-secondary); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 560; }
.col-us { background: var(--accent-soft); color: var(--text); }
th.col-us { color: #08463f; }
table.compare { min-width: 760px; }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-cards); }
.example { display: flex; flex-direction: column; gap: 16px; }
.example .price { font: 500 32px/40px var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .examples { grid-template-columns: 1fr; } }

/* Two lists */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.list-h { font-size: 13px; line-height: 20px; color: var(--text-muted); padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.ticks li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-secondary); }
.ticks li svg { flex: none; margin-top: 4px; }
.ticks.yes svg { color: var(--accent); }
.ticks.no svg { color: var(--text-muted); }
@media (max-width: 820px) { .two, .three { grid-template-columns: 1fr; gap: 40px; } }

/* Service detail */
.service { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.service:first-child { border-top: 1px solid var(--line); }
.service h3 { font: 600 24px/32px var(--font-display); letter-spacing: -0.01em; }
.service p { font-size: 17px; line-height: 28px; color: var(--text-secondary); }
.service .incl { margin-top: 8px; color: var(--text-muted); font-size: 15px; line-height: 24px; }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; gap: 8px; } }

/* Closing */
.closing { text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closing p { max-width: 560px; }

/* Blog */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { height: 32px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--fill); color: var(--text-secondary); font: 500 13px/20px var(--font-sans); cursor: pointer; transition: background-color 120ms var(--ease-fade); }
.chip:hover { background: var(--fill-hover); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--tint); color: #08463f; box-shadow: inset 0 0 0 1px var(--accent-line); }
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.guides li { border-bottom: 1px solid var(--line); }
.guides li[hidden] { display: none; }
.guides a, .guides .g { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 0; color: inherit; text-decoration: none; }
.guides .cat { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.guides .title { font-size: 17px; line-height: 28px; font-weight: 560; letter-spacing: -0.005em; color: var(--text); }
.guides a .title { color: var(--accent); }
.guides a:hover .title { color: var(--accent-hover); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.guides .sum { color: var(--text-secondary); }
@media (max-width: 820px) { .guides { grid-template-columns: 1fr; } }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: 64px; }
.feature .t { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

/* Article */
.article { max-width: 640px; margin: 0 auto; padding: 64px var(--rail) var(--s-rows); box-sizing: content-box; }
.article .back { font-size: 13px; line-height: 20px; font-weight: 500; text-decoration: none; }
.article header { display: flex; flex-direction: column; gap: 16px; padding: 32px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.article .body { display: flex; flex-direction: column; gap: 24px; }
.article .body p, .article .body li { font-size: 17px; line-height: 28px; color: var(--text-secondary); }
.article .body h2 { font: 600 28px/36px var(--font-display); letter-spacing: -0.005em; margin-top: 24px; }
.article .body h3 { font-size: 18px; line-height: 28px; font-weight: 560; margin-top: 8px; }
.article .body strong { color: var(--text); font-weight: 560; }
.article .body .table-box { margin: 8px 0; }
.next-step { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.links { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer .wrap { padding-top: 64px; padding-bottom: 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h2 { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--text-muted); margin-bottom: 12px; }
.footer li { padding: 4px 0; }
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .about { display: flex; flex-direction: column; gap: 12px; max-width: 280px; color: var(--text-secondary); }
.footer .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--text-muted); }
@media (max-width: 820px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .about { grid-column: 1 / -1; } }

/* Reveal: the one entrance per page */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal 600ms var(--ease-out) both; }
  @keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
