/* The business sites' own self-hosted fonts (served from /static/fonts). */
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/mukta-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/mukta-400-devanagari.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/mukta-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/mukta-700-devanagari.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Rozha One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/rozha-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rozha One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/rozha-400-devanagari.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
:root {
  --bg: #fffaf3; --fg: #1f1a17; --muted: #5c534c; --accent: #b4361e; --accent-fg: #fff;
  --font: "Mukta", "Noto Sans Devanagari", "Mangal", system-ui, sans-serif;
  --display: "Rozha One", "Mukta", serif; --heading: #6b2412; --line: #eadfd2; --soft: #f6ede3;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 18px; line-height: 1.6; }
.top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid #eadfd2; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; font-size: 20px; }
.langs { display: flex; gap: 4px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 10px;
  color: var(--fg); text-decoration: none; border-radius: 8px; }
.lang.active { background: #f1e3d3; font-weight: 700; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-size: 28px; line-height: 1.3; margin: 8px 0; }
.tagline { font-size: 20px; font-weight: 600; }
.steps li { margin-bottom: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 20px; border-radius: 10px; background: var(--accent); color: var(--accent-fg);
  text-decoration: none; font-weight: 700; }
.button.disabled { background: #cbbfb3; color: var(--fg); }
.muted { color: var(--muted); }
.dev-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.dev-grid iframe { border: 1px solid #cbbfb3; border-radius: 8px; background: #fff; }
.dev-grid figure { margin: 0; }
main:has(.dev-sample) { max-width: 1200px; }
.dev-list { list-style: none; padding: 0; }
.dev-list li { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eadfd2; }
.tag { display: inline-block; font-size: 14px; padding: 2px 8px; border-radius: 999px; background: #f1e3d3; }
button.button { border: 0; font: inherit; cursor: pointer; }
.score-total { font-size: 24px; }
.score-layout { display: grid; gap: 24px; }
.score-part h2 { display: flex; justify-content: space-between; gap: 12px; font-size: 22px; }
.score-items { list-style: none; padding: 0; }
.score-item { border: 1px solid #eadfd2; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; background: #fff; }
.score-item-head { display: flex; justify-content: space-between; gap: 12px; }
.score-item p { margin: 4px 0 8px; }
.status-pending, .status-not_applicable { opacity: .85; background: #fbf6ef; }
.score-shot img { border: 1px solid #eadfd2; border-radius: 12px; max-width: 100%; height: auto; }
main:has(.score-layout) { max-width: 1100px; }
@media (min-width: 900px) { .score-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.contact-section { margin-top: 40px; padding-top: 24px; border-top: 1px solid #eadfd2; }
.form { display: grid; gap: 8px; max-width: 560px; }
.form label { font-weight: 700; margin-top: 8px; }
.form input, .form textarea { width: 100%; min-height: 48px; font: inherit; padding: 10px 12px;
  border: 1.5px solid #cbbfb3; border-radius: 10px; background: #fff; color: var(--fg); }
.form .button { justify-self: start; margin-top: 12px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice-ok { background: #e7f3ec; border-left: 4px solid #2f7a4d; padding: 12px 16px; border-radius: 8px; }
.notice-error { background: #fbeaea; border-left: 4px solid #a3302a; padding: 12px 16px; border-radius: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.form select { min-height: 48px; font: inherit; padding: 8px 12px; border: 1.5px solid #cbbfb3; border-radius: 10px; background: #fff; }
.button.secondary { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.button.big { font-size: 20px; min-height: 64px; width: 100%; }
.choice { border: 1px solid #eadfd2; border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.choice legend { font-weight: 700; padding: 0 4px; }
.radio, .check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 400; }
.radio input, .check input { width: 22px; height: 22px; min-height: 0; }
.card { background: #fff; border: 1px solid #eadfd2; border-radius: 14px; padding: 16px; margin: 12px 0; display: grid; gap: 8px; }
.card.questions { border-color: #e2a24a; background: #fff7ea; }
.cards h2 { margin-top: 24px; }
.option-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.address { display: flex; align-items: center; gap: 6px; }
.field-error { color: #a3302a; font-weight: 700; margin: 0; }
.from-photo { color: #8a5a00; background: #fff3d6; border-radius: 8px; padding: 4px 8px; margin: 0; font-size: 15px; }
.secret-value { font-size: 20px; font-weight: 700; word-break: break-all; }
.secret-value.pin { font-size: 40px; letter-spacing: .2em; }
.pin-input { font-size: 28px; letter-spacing: .3em; max-width: 200px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photo-grid img { width: 100%; height: auto; border-radius: 10px; }
.status { font-size: 16px; vertical-align: middle; border-radius: 999px; padding: 4px 12px; font-family: inherit; }
.status-draft { background: #f1e3d3; }
.status-live { background: #e7f3ec; color: #1f5c38; }
.status-offline { background: #fbeaea; color: #8a2a24; }
.progress { background: #fff7ea; border-left: 4px solid #e2a24a; padding: 12px 16px; border-radius: 8px; }
.history { list-style: none; padding: 0; }
.history li { min-height: 44px; display: flex; align-items: center; }
.style-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.style-grid figure { margin: 0; min-width: 0; }
.style-grid iframe { border: 1px solid #eadfd2; border-radius: 10px; max-width: 100%; background: #fff; }
.score-big { font-size: 44px; line-height: 52px; margin: 8px 0; }
.good-list { padding-left: 20px; }
.good-list li { margin: 4px 0; }
.wait-notice p { margin: 4px 0; }
.inbox { list-style: none; padding: 0; margin: 0; }
.enquiry-item { border-top: 1px solid #eadfd2; padding: 8px 0; }
.enquiry-item p { margin: 4px 0; }
.enquiry-item .message { white-space: pre-line; overflow-wrap: anywhere; }
.tel { display: inline-flex; align-items: center; min-height: 44px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
/* Owner pages: tighter cards, every link a comfortable tap target. */
.card h2, .card h3, .card p, .card ul { margin: 0; }
.card.questions ul { padding-left: 20px; }
.text-link, .history a { display: inline-flex; align-items: center; min-height: 44px; }
.history a { width: 100%; }

/* Agent fix loop: before and after first, then each round. */
.before-after { display: flex; gap: 12px; margin: 8px 0 12px; }
.before-after .ba { flex: 1 1 0; min-width: 0; margin: 0; padding: 10px 12px; border-radius: 12px; background: #f3ece4; display: flex; flex-direction: column; align-items: flex-start; }
.before-after .ba-after { background: #e3f0e6; }
.ba-label { font-size: 16px; line-height: 24px; }
.ba-score { font-size: 30px; line-height: 40px; font-weight: 700; white-space: nowrap; }
.did-list, .round ul { padding-left: 20px; margin: 0; }
.did-list li, .round ul li { margin-bottom: 8px; }
.round .label { font-weight: 700; margin-top: 8px; }
.tool-chip { display: inline-block; font-family: ui-monospace, monospace; font-size: 14px; background: #f3ece4; border-radius: 6px; padding: 0 6px; }
details.judge summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.tool-call { border-top: 1px solid #eadfd2; padding-top: 8px; margin-top: 8px; }
.tool-call.rejected code { color: #9b2c2c; }
.tool-call pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; background: #faf6f1; padding: 8px; border-radius: 8px; margin: 4px 0; }
.answer-preview { margin: 8px 0 16px; padding: 12px 16px; border-left: 4px solid #2f6f43; background: #f3f8f4; white-space: pre-wrap; }
.question + .question { border-top: 1px solid #eadfd2; padding-top: 12px; margin-top: 12px; }

/* Sample label (also used on demo cards and the public panel). */
.sample-badge { display: inline-block; font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7a2e12; background: #f6e3d6; border-radius: 6px; padding: 1px 8px; }

/* Home page: calm, generous, the same fonts as the business sites. */
main:has(.home) { max-width: 1120px; padding: 0 16px; }
.home h1, .home h2 { font-family: var(--display); font-weight: 400; color: var(--heading); letter-spacing: .005em; }
.home h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; }
.home h2 { font-size: 30px; line-height: 1.25; margin: 0 0 20px; }
.home h3 { font-size: 20px; line-height: 1.35; margin: 0; display: flex; align-items: center; gap: 10px; }
.home .lead { font-size: 20px; line-height: 1.55; max-width: 34em; margin: 0 0 24px; }
.home-section { padding: 48px 0; border-top: 1px solid var(--line); }
.home-hero { display: grid; gap: 32px; padding: 32px 0 48px; align-items: center; }
.big-cta { min-height: 56px; font-size: 20px; padding: 0 28px; border-radius: 14px; }
.phone-figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.phone-frame { width: 270px; padding: 12px; border-radius: 40px; background: #2b211c; box-shadow: 0 24px 48px rgba(60, 30, 10, .18); }
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 28px; }
.phone-figure figcaption { font-size: 16px; color: var(--muted); text-align: center; max-width: 300px; }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.how-step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 8px; }
.how-step p { margin: 0; color: var(--muted); }
.how-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--soft); color: var(--accent); }
.stats { display: grid; gap: 12px; margin: 24px 0 0; }
.stat { background: var(--soft); border-radius: 14px; padding: 16px 20px; }
.stat dt { font-weight: 700; }
.stat dd { margin: 4px 0 0; }
.stat strong { font-size: 26px; color: var(--heading); }
.try-grid { display: grid; gap: 16px; margin: 16px 0; }
.try-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.try-card p { margin: 0; }
.try-lang { font-family: var(--display); font-size: 26px; color: var(--heading); }
.try-card .button, .text-link { gap: 8px; }
.try-card .button { justify-self: start; margin-top: 8px; }
.ba-card .before-after { max-width: 420px; }
.gallery { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.gallery-card a { display: flex; gap: 16px; align-items: center; min-height: 44px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--fg); text-decoration: none; }
.gallery-card img { width: 72px; height: 120px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.gallery-mono { width: 72px; height: 72px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 32px; font-family: var(--display); }
.gallery-text { display: grid; gap: 2px; justify-items: start; }
.demo-title { margin: 24px 0 4px !important; }
.two-col { display: grid; gap: 16px; }
.two-col ul { margin: 0; padding-left: 20px; }
.two-col li { margin-bottom: 6px; }
.home .contact-section { margin-top: 0; padding: 48px 0; border-top: 1px solid var(--line); }
.home-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 16px; }
.home-footer p { margin: 0 0 8px; }
.home-footer .text-link { color: var(--accent); }
@media (min-width: 720px) {
  .try-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .how { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .home-hero { grid-template-columns: 1.15fr .85fr; padding: 56px 0 64px; }
  .home h1 { font-size: 56px; }
  .how { grid-template-columns: repeat(4, 1fr); }
}

/* Start page: samples first, then one card per way to tell us. */
main:has(.start) { max-width: 820px; }
.start h2 { font-size: 24px; margin: 32px 0 8px; }
.options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 12px 0 24px; }
.option { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; }
.option > input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-head { display: flex; gap: 14px; align-items: center; min-height: 64px; padding: 14px 16px; cursor: pointer; }
.option-head .icon { color: var(--accent); flex: none; }
.option-head > span { display: grid; }
.option-head strong { font-size: 20px; }
.option-panel { display: none; padding: 0 16px 16px; }
.option > input:checked ~ .option-panel { display: grid; gap: 8px; }
.option:has(> input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.option > input:focus-visible + .option-head { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.option-panel input[type=file] { min-height: 48px; font: inherit; width: 100%; max-width: 100%; }
.option-panel textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid #cbbfb3; border-radius: 10px; }
.before-send { background: var(--soft); border-radius: 16px; padding: 16px; display: grid; gap: 8px; }
.before-send h3 { margin: 0; font-size: 20px; }
.before-send label[for] { font-weight: 700; }
.before-send select { min-height: 48px; font: inherit; padding: 8px 12px; border: 1.5px solid #cbbfb3; border-radius: 10px; background: #fff; max-width: 280px; }
.before-send .check { align-items: flex-start; }
.before-send .check input { margin-top: 4px; flex: none; }
.before-send .send { justify-self: start; margin-top: 8px; min-height: 52px; }
.intake:has(#opt-record:checked) .send { display: none; }

/* Web addresses and deleting. */
.domain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.domain-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: grid; gap: 4px; }
.domain-item p { margin: 0; }
.domain-name { font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.domain-item form { margin-top: 4px; }
.button.danger { background: #9b2420; color: #fff; border: 0; }
.danger-zone { border-color: #e6b8b3; }
.delete-warning { background: #fbeaea; border: 2px solid #9b2420; border-radius: 12px; padding: 12px 16px; margin: 12px 0 20px; }
.delete-warning p { margin: 0 0 6px; }
.delete-warning strong { color: #7d1c19; font-size: 20px; }
.delete-list { padding-left: 22px; }
.delete-list li { margin-bottom: 6px; }

/* Links: one style everywhere (brand colour, underline that thickens on hover and focus,
   a visible focus ring, never the browser's default blue or purple). */
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:visited { color: var(--accent); }
a:hover, a:focus-visible { text-decoration-thickness: 2.5px; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
a.button, a.button:visited, a.brand, a.lang, .gallery-card a { text-decoration: none; }
a.button:visited { color: var(--accent-fg); }
a.button.secondary, a.button.secondary:visited { color: var(--accent); }
a.brand, a.brand:visited, a.lang, a.lang:visited, .gallery-card a, .gallery-card a:visited { color: var(--fg); }

/* Owner page actions: one clear primary button, then tidy secondary actions. */
.primary-action { margin: 8px 0 4px; }
.primary-action .button { width: 100%; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-grid form, .action-grid .button { width: 100%; }
.action-grid .button { min-height: 48px; padding: 0 10px; text-align: center; line-height: 1.25; font-weight: 700; }
.live-actions { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
@media (min-width: 720px) {
  .primary-action .button { width: auto; }
  .action-grid { grid-template-columns: repeat(4, max-content); }
  .action-grid .button { padding: 0 18px; }
}

/* Home page: the three sample cards are the same height, buttons on one line. */
.try-card { grid-template-rows: auto 1fr auto; }
.try-card .button { margin-top: 12px; align-self: end; }

.how-to-fix { margin: 4px 0; }
.fix-label { font-weight: 700; }
