/* Lawyer AI — site styles */
:root {
    --paper: #F3F8F5;
    --surface: #FFFFFF;
    --mint: #E2F1E9;
    --mint-2: #CFE8DB;
    --teal: #0E7C86;
    --teal-deep: #0A5A62;
    --teal-ink: #073F45;
    --ink: #14232B;
    --muted: #557079;
    --line: #D3E4DB;
    --brass: #E2A83A;
    --brass-deep: #B9821C;
    --danger: #C2412D;
    --ok: #1F7A4D;
    --on-teal: #FFFFFF;
    --link: var(--teal-deep);
    --figure-filter: drop-shadow(0 24px 30px rgba(10, 90, 98, .18));
    --tools-bg: #14232B;
    --panel-deep: #0A5A62;
    --check-filter: none;
    --sun: none;
    --moon: inline;
    --shadow-lg: 0 30px 60px -28px rgba(10, 90, 98, .45);
    --shadow-sm: 0 2px 0 rgba(20, 35, 43, .06);
    --r-xl: 34px;
    --r-lg: 22px;
    --r-md: 14px;
    --r-sm: 9px;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --font: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans", "PingFang SC", "Hiragino Sans", "Noto Sans Arabic", sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #0B1418;
        --surface: #12201F;
        --mint: #13282A;
        --mint-2: #1A3537;
        --teal: #2BB3BD;
        --teal-deep: #1F8F98;
        --teal-ink: #0A2C30;
        --ink: #E6F1EC;
        --muted: #8FAAB0;
        --line: #22393B;
        --brass: #F0BC55;
        --brass-deep: #D9A13A;
        --danger: #F07A64;
        --ok: #5CC690;
        --on-teal: #062124;
        --shadow-lg: 0 30px 60px -28px rgba(0, 0, 0, .7);
        --shadow-sm: 0 2px 0 rgba(0, 0, 0, .25);
        --link: var(--teal);
        --figure-filter: drop-shadow(0 0 1.5px rgba(243, 248, 245, .6)) drop-shadow(0 24px 30px rgba(0, 0, 0, .45));
        --tools-bg: var(--surface);
        --panel-deep: #0C4C53;
        --check-filter: brightness(1.6);
        --sun: inline;
        --moon: none;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --paper: #0B1418;
    --surface: #12201F;
    --mint: #13282A;
    --mint-2: #1A3537;
    --teal: #2BB3BD;
    --teal-deep: #1F8F98;
    --teal-ink: #0A2C30;
    --ink: #E6F1EC;
    --muted: #8FAAB0;
    --line: #22393B;
    --brass: #F0BC55;
    --brass-deep: #D9A13A;
    --danger: #F07A64;
    --ok: #5CC690;
    --on-teal: #062124;
    --shadow-lg: 0 30px 60px -28px rgba(0, 0, 0, .7);
    --shadow-sm: 0 2px 0 rgba(0, 0, 0, .25);
    --link: var(--teal);
    --figure-filter: drop-shadow(0 0 1.5px rgba(243, 248, 245, .6)) drop-shadow(0 24px 30px rgba(0, 0, 0, .45));
    --tools-bg: var(--surface);
    --panel-deep: #0C4C53;
    --check-filter: brightness(1.6);
    --sun: inline;
    --moon: none;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.6 var(--font);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; font-weight: 900; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
::selection { background: var(--brass); color: #14232B; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 36em; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.section-title { font-size: clamp(32px, 4.4vw, 54px); max-width: 16em; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 19px; max-width: 34em; }

/* Buttons */
.btn {
    --bg: var(--surface); --fg: var(--ink); --bd: var(--line);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px;
    border: 2px solid var(--bd); border-radius: 999px;
    background: var(--bg); color: var(--fg);
    font-weight: 800; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
    cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--primary { --bg: var(--teal); --fg: var(--on-teal); --bd: var(--teal); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 24px -14px var(--teal-deep); }
.btn--primary:hover { --bg: var(--teal-deep); --bd: var(--teal-deep); }
.btn--primary:active, .btn--brass:active, .btn--light:active { box-shadow: none; }
.btn--ghost { --bg: transparent; }
.btn--ghost:hover { --bd: var(--teal); }
.btn--brass { --bg: var(--brass); --fg: #14232B; --bd: var(--brass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 24px -14px var(--brass-deep); }
.btn--light { --bg: #FFFFFF; --fg: #0A5A62; --bd: #FFFFFF; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .45); }
.btn--danger { --bg: transparent; --fg: var(--danger); --bd: var(--danger); }
.btn--danger:hover { --bg: var(--danger); --fg: #FFFFFF; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 18px; }
.btn__mark {
    display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; margin-inline: -14px 4px;
    border-radius: 50%; background: color-mix(in srgb, var(--on-teal) 18%, transparent); font-size: 17px; font-weight: 900;
}
.btn--block { width: 100%; }
.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
    border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--mint); color: var(--ink); }
.theme-toggle__moon { display: var(--moon); }
.theme-toggle__sun { display: var(--sun); }
html:not(.js) .needs-js, html:not(.js) [data-theme-toggle] { display: none !important; }
.avatar {
    display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
    background: var(--teal); color: var(--on-teal); font-weight: 900; font-size: 14px; line-height: 1;
}
.account-btn { padding-inline: 4px 14px; }
.account-btn[aria-current] { --bd: var(--teal); }
.link-arrow { font-weight: 800; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 3px; text-underline-offset: 6px; }

.appstore {
    display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding-inline: 20px 26px;
    border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; line-height: 1.1;
    transition: transform .15s ease;
}
.appstore:hover { transform: translateY(-1px); }
.appstore span { display: grid; font-weight: 800; font-size: 17px; }
.appstore small { font-weight: 700; font-size: 11.5px; opacity: .72; }

.pro-mark {
    --s: 22px;
    display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s);
    border-radius: 50%; background: var(--brass); color: #14232B; vertical-align: middle;
}
.pro-mark svg { width: 68%; height: 68%; }
h3 > .pro-mark { --s: .92em; margin-inline-start: 4px; vertical-align: -.08em; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
}
.site-header__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -.01em; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.nav a:hover { color: var(--teal); }
.site-header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang summary {
    list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
    border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--mint); }
.lang__menu {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 40;
    display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 2px;
    margin: 0; padding: 8px; list-style: none; min-width: 280px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.chat__plan .lang__menu { top: auto; bottom: calc(100% + 8px); inset-inline-end: auto; inset-inline-start: 0; }
.lang__menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.lang__menu a:hover { background: var(--mint); }
.lang__menu a[aria-current] { background: var(--teal); color: var(--on-teal); }

.flash { margin: 16px auto; max-width: var(--wrap); padding: 12px 18px; border-radius: var(--r-sm); font-weight: 700; }
.flash--error { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.flash--ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }

/* Hero */
.hero { position: relative; overflow: clip; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 110px); }
.hero__in { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -.035em; line-height: .98; }
.hero .lead { margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.hero__proof { display: grid; justify-items: start; gap: 12px; margin-top: 30px; }
.flags { display: flex; flex: none; }
.flags span {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--surface); box-shadow: 0 0 0 3px var(--paper); font-size: 19px; line-height: 1;
}
.flags span + span { margin-inline-start: -9px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-weight: 700; font-size: 15px; }
.hero__facts strong { color: var(--ink); font-weight: 900; }

/* The lawyer leans in from behind the chat window: head and shoulders above it */
.hero__art { position: relative; isolation: isolate; width: 100%; max-width: 520px; justify-self: center; }
.hero__art::after {
    content: ""; position: absolute; z-index: -1; top: 1%; inset-inline-end: 2%; width: 46%; aspect-ratio: 1;
    border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 12px var(--paper), 0 0 0 14px var(--mint-2);
}
.hero__art::before { content: ""; display: block; padding-top: 33%; }
.hero__figure { position: absolute; top: 0; inset-inline-end: 4%; width: 40%; height: auto; filter: var(--figure-filter); }
[dir="rtl"] .hero__figure { transform: scaleX(-1); }
.demo {
    position: relative; z-index: 1;
    background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    padding: 16px 24px 26px; font-size: 15px; line-height: 1.5;
}
.demo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo__head b { font-weight: 900; font-size: 16px; letter-spacing: -.01em; }
.demo__mode { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--paper); color: var(--muted); font-weight: 800; font-size: 13px; white-space: nowrap; }
.demo__mode .tool-ico { --s: 26px; border-radius: 50%; }
.demo__msg { margin-top: 20px; text-wrap: pretty; }
.demo__msg--user { width: fit-content; max-width: 86%; margin-inline-start: auto; padding: 12px 18px; border-radius: 22px; border-end-end-radius: 6px; background: var(--teal); color: var(--on-teal); font-weight: 600; }
.demo__msg--ai { padding-inline-start: 18px; border-inline-start: 3px solid var(--brass); }
.demo__msg--ai p:first-child { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.demo__msg--ai p:first-child strong { font-weight: 900; }
.demo__msg--ai p + p { margin-top: 8px; color: var(--muted); }
.demo__msg ol { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; font-weight: 700; }
.demo__msg li { display: flex; align-items: center; gap: 12px; counter-increment: step; }
.demo__msg li::before {
    content: counter(step); flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px;
    border-radius: 50%; background: var(--teal); color: var(--on-teal); font-size: 12px; font-weight: 900;
}
.demo__cite { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--ink); font-weight: 800; font-size: 14px; }
.demo__cite i { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brass); color: #14232B; font-style: normal; font-weight: 900; }

/* Orchestrated hero moment */
@media (prefers-reduced-motion: no-preference) {
    .js .demo { animation: demo-in .7s cubic-bezier(.2, .8, .2, 1) .15s both; }
    .js .hero__figure { animation: figure-in .9s cubic-bezier(.2, .8, .2, 1) both; }
    .js .demo__msg--user { animation: pop .4s ease .7s both; }
    .js .demo [data-demo-a].is-waiting > * { visibility: hidden; }
    .js .demo [data-demo-a].is-waiting { min-height: 44px; position: relative; }
    .js .demo [data-demo-a].is-waiting::after {
        content: ""; position: absolute; inset-inline-start: 18px; top: 18px; width: 8px; height: 8px; border-radius: 50%;
        background: var(--muted); box-shadow: 14px 0 0 var(--muted), 28px 0 0 var(--muted); animation: blink 1s infinite;
    }
    .js .demo [data-demo-a] > .reveal { animation: pop .35s ease both; }
}
@keyframes demo-in { from { opacity: 0; transform: translateY(24px) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes figure-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; } }
[dir="rtl"] .js .hero__figure { animation-name: figure-in-rtl; }
@keyframes figure-in-rtl { from { opacity: 0; transform: scaleX(-1) translateY(30px); } to { opacity: 1; transform: scaleX(-1); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .35; } }

/* Features: asymmetric bento, each tile its own surface */
.features { padding-block: clamp(64px, 9vw, 120px); }
.features__grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 20px; margin-top: 48px; }
.feature { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 30px; border-radius: var(--r-xl); overflow: hidden; }
.feature h3 { font-size: clamp(24px, 2.4vw, 32px); }
.feature p { margin-top: 10px; color: var(--muted); max-width: 30em; }
.feature--big { grid-row: span 2; background: var(--teal); color: var(--on-teal); }
.feature--big p { color: color-mix(in srgb, var(--on-teal) 82%, transparent); }
.feature--big img { width: 78%; max-width: 420px; align-self: center; margin-block: -10px 10px; }
.feature--photo { background: var(--mint); flex-direction: row; align-items: center; }
.feature--photo img { width: 42%; max-width: 200px; flex: none; }
.feature--doc { background: var(--surface); border: 2px solid var(--line); flex-direction: row-reverse; align-items: center; }
.feature--doc img { width: 46%; max-width: 230px; flex: none; }

/* Tools: a binder sheet with index tabs on its edge */
.tools { padding-block: clamp(64px, 9vw, 120px); background: var(--tools-bg); color: #F3F8F5; }
.tools .section-lead { color: color-mix(in srgb, #F3F8F5 70%, transparent); }
.binder { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); margin-top: 48px; }
.binder__tabs { display: flex; flex-direction: column; gap: 6px; padding-block: 34px; }
.binder__tabs [role="tab"] {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 56px; margin-inline-end: 12px; padding-inline: 20px 16px;
    border: 0; border-start-start-radius: 16px; border-end-start-radius: 16px;
    background: color-mix(in srgb, #F3F8F5 7%, transparent); color: #F3F8F5;
    font: inherit; font-weight: 800; font-size: 17px; line-height: 1.2; text-align: start; cursor: pointer;
    transition: margin .2s ease, background-color .15s ease, color .15s ease;
}
.binder__tabs [role="tab"]:hover { margin-inline-end: 6px; background: color-mix(in srgb, #F3F8F5 13%, transparent); }
.binder__tabs [role="tab"][aria-selected="true"] { margin-inline-end: 0; background: var(--paper); color: var(--ink); }
.binder__tabs [role="tab"]:focus-visible { outline-color: var(--brass); outline-offset: -4px; }
.binder__tabs small { flex: none; font-size: 13px; font-weight: 800; color: var(--brass); }
.binder__tabs [aria-selected="true"] small { color: var(--muted); }
.binder__sheet {
    position: relative; min-width: 0; padding: clamp(28px, 4vw, 52px);
    border-radius: var(--r-xl); border-start-start-radius: 10px; background: var(--paper); color: var(--ink);
    container-type: inline-size;
}
.binder__page { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; }
.binder__page[hidden] { display: none; }
.binder__page h3 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.02em; }
.binder__page > p { margin-top: 14px; max-width: 32em; color: var(--muted); font-size: 18px; }
.binder__page .btn { margin-top: 30px; }
@container (min-width: 620px) {
    .binder__page { grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: auto auto auto 1fr; column-gap: 44px; }
    .binder__page > .doc { grid-column: 2; grid-row: 1 / -1; align-self: center; margin: 0; }
}
.sample { margin: 28px 0 0; padding: 0; }
.sample figcaption { font-weight: 800; font-size: 14px; color: var(--muted); }
.sample blockquote {
    width: fit-content; max-width: 30em; margin: 8px 0 0; padding: 12px 18px;
    border-radius: 18px; border-end-start-radius: 4px; background: var(--teal); color: var(--on-teal); font-weight: 700; font-size: 17px;
}
@media (prefers-reduced-motion: no-preference) {
    .binder__page:not([hidden]) { animation: pop .3s ease both; }
    .doc__fill--typing::after { animation: blink 1s steps(1) infinite; }
}

/* Tool previews: what each tool hands back */
.doc { position: relative; justify-self: stretch; max-width: 340px; margin-top: 34px; color: var(--ink); font-size: 13px; line-height: 1.4; }
.doc--paper {
    padding: 22px 20px 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
    box-shadow: 0 2px 0 var(--line), 0 26px 40px -26px rgba(20, 35, 43, .45); transform: rotate(var(--tilt, 1.5deg));
}
.ln { display: block; width: var(--w, 100%); height: 7px; margin-top: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 11%, transparent); }
.doc__title { margin: 16px 0 8px; text-align: center; font-weight: 900; font-size: 16px; }
.doc__fields { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center; color: var(--muted); font-weight: 800; font-size: 11.5px; }
.doc__fields .ln { margin: 0; }
.doc__steps { margin: 6px 0 0; padding-inline-start: 18px; color: var(--muted); font-weight: 800; font-size: 12px; }
.doc__steps li { margin-top: 4px; }
.doc__steps .ln { display: inline-block; margin: 0; vertical-align: middle; }
.doc__sign { width: 78px; height: 26px; color: var(--teal); }

.doc--answer { display: flex; align-items: flex-end; gap: 10px; }
.doc__avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brass); color: #14232B; font-weight: 900; font-size: 17px; }
.doc__bubble {
    flex: 1; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; border-end-start-radius: 6px;
    background: var(--surface); box-shadow: 0 26px 40px -26px rgba(20, 35, 43, .45);
}
.doc__verdict { margin-bottom: 4px; font-weight: 800; font-size: 14px; line-height: 1.35; }
.doc__cite { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--brass) 26%, transparent); font-weight: 800; font-size: 12px; }

.doc--statement { --tilt: -1.5deg; }
.doc__clip { position: absolute; top: -20px; inset-inline-start: 28px; width: 16px; height: 44px; color: var(--muted); }
.doc__fields--head { margin-inline-start: 36%; }
.doc__lead { font-weight: 700; }
.doc__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 18px; }

.doc--claim { --tilt: 1.2deg; padding-bottom: 58px; }
.doc__postage {
    position: absolute; top: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 44px; height: 52px;
    background: var(--brass); color: #14232B; outline: 2px dashed rgba(255, 255, 255, .85); outline-offset: -5px; transform: rotate(5deg);
}
.doc__postage svg { width: 24px; height: 24px; }
.doc__demand { margin-top: 12px; padding: 8px 10px; border-inline-start: 3px solid var(--danger); border-radius: 4px; background: color-mix(in srgb, var(--danger) 9%, transparent); font-weight: 800; }
.doc__stamp {
    position: absolute; bottom: 16px; inset-inline-end: 16px; padding: 4px 10px; border: 2.5px solid var(--danger); border-radius: 8px;
    color: var(--danger); font-weight: 900; font-size: 12px; transform: rotate(-7deg);
}

.doc--lawsuit { --tilt: -1deg; }
.doc__seal {
    position: absolute; top: -18px; inset-inline-end: -14px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: var(--teal); color: var(--on-teal); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--teal); transform: rotate(-8deg);
}
.doc__seal svg { width: 26px; height: 26px; }
.doc--lawsuit .doc__fields { margin-inline-end: 34px; }
.doc__ask { margin-top: 12px; font-weight: 800; }

.doc--check { --tilt: 1deg; }
.doc__found { display: inline-flex; align-items: center; gap: 6px; padding-block: 4px; padding-inline: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-weight: 900; font-size: 12px; }
.doc__found::before { content: "!"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: var(--surface); font-size: 12px; }
.doc__mark { display: block; margin: 8px -6px 0; padding: 0 6px 7px; border-radius: 4px; background: color-mix(in srgb, var(--danger) 14%, transparent); }
.doc__mark .ln { background: color-mix(in srgb, var(--danger) 45%, transparent); }
.doc__note {
    display: block; width: fit-content; margin-block: 6px 2px; margin-inline-start: auto; padding: 4px 10px; border-radius: 10px; border-start-end-radius: 2px;
    background: var(--danger); color: var(--surface); font-weight: 800; font-size: 12px; transform: rotate(-2deg);
}
.doc__note--missing { background: var(--brass); color: #14232B; transform: rotate(1.5deg); }
.doc__lens { position: absolute; bottom: -22px; inset-inline-start: -18px; width: 58px; height: 58px; color: var(--ink); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)); }

.doc--gen .doc__title { margin-top: 0; margin-bottom: 14px; }
.doc--gen > .ln:first-of-type { margin-top: 16px; }
.doc__fill { display: block; position: relative; width: var(--w); height: 16px; border-radius: 5px; background: color-mix(in srgb, var(--teal) 20%, transparent); box-shadow: inset 0 -2px 0 var(--teal); }
.doc__fill--typing::after { content: ""; position: absolute; top: -2px; inset-inline-end: -5px; width: 2px; height: 20px; border-radius: 1px; background: var(--teal); }
.doc__signs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.doc__signs span { display: flex; align-items: flex-end; height: 30px; border-bottom: 1.5px solid var(--muted); }

/* Regions */
.regions { padding-block: clamp(48px, 7vw, 96px); background: var(--mint); }
.regions__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.regions__list li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 15px; box-shadow: var(--shadow-sm); }
.regions__list span { font-size: 20px; line-height: 1; }

/* Pricing */
.pricing { padding-block: clamp(64px, 9vw, 120px); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 24px; border-radius: var(--r-lg); background: var(--surface); border: 2px solid var(--line); }
.plan h3 { font-size: 22px; }
.plan__price { margin-top: 10px; font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.plan__price span { margin-inline-start: 6px; font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.plan__note { color: var(--muted); font-size: 15px; min-height: 1.6em; }
.plan ul { flex: 1; margin: 18px 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; font-size: 15.5px; }
.plan li { position: relative; padding-inline-start: 28px; }
.plan li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%;
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan li.is-off { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.plan li.is-off::before { background: var(--line); }
.plan .btn, .plan form { width: 100%; }
.plan--featured { background: var(--teal-deep); border-color: var(--teal-deep); color: #FFFFFF; transform: translateY(-12px); box-shadow: var(--shadow-lg); }
.plan--featured .plan__price span, .plan--featured .plan__note { color: rgba(255, 255, 255, .78); }
.plan--featured li::before { background-color: var(--brass); }
.plan--featured .btn--primary { --bg: var(--brass); --fg: #14232B; --bd: var(--brass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 24px -14px var(--brass-deep); }
.plan__badge { position: absolute; top: -14px; inset-inline-start: 22px; padding: 5px 12px; border-radius: 999px; background: var(--brass); color: #14232B; font-weight: 900; font-size: 13px; }
.pricing__fine { margin-top: 28px; color: var(--muted); font-size: 14px; max-width: 60em; }

/* Memo: the honest small print, written on a legal pad */
.memo { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.memo__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.memo__sticker { margin-top: 30px; width: 170px; transform: rotate(6deg); }
.pad {
    --rule: 34px;
    position: relative; display: grid; gap: var(--rule);
    padding: calc(var(--rule) * 2) clamp(20px, 4vw, 44px) var(--rule) clamp(58px, 7vw, 90px);
    border-radius: 4px 4px 12px 12px; color: #2C3D47; font-size: 18px; line-height: var(--rule);
    background: #FCF1C4 linear-gradient(rgba(14, 124, 134, .2) 1px, transparent 1px) 0 27px / 100% var(--rule);
    box-shadow: 0 2px 0 #EADB9C, 0 5px 0 #FCF1C4, 0 7px 0 #EADB9C, 0 30px 50px -24px rgba(10, 44, 48, .45);
    transform: rotate(-1deg);
}
[dir="rtl"] .pad { transform: rotate(1deg); }
.pad::before { content: ""; position: absolute; inset: 0 0 auto; height: 22px; border-radius: 4px 4px 0 0; background: #14232B; }
.pad::after { content: ""; position: absolute; top: 22px; bottom: 0; inset-inline-start: clamp(40px, 5vw, 64px); width: 5px; border-inline: 1.5px solid rgba(217, 87, 63, .55); }
.pad strong { color: #14232B; font-weight: 900; }

/* Final CTA */
.final { padding-block: 0 clamp(64px, 9vw, 110px); }
.final__in { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(20px, 4vw, 56px); padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: var(--teal); color: #FFFFFF; }
.final__in img { align-self: end; width: clamp(180px, 26vw, 340px); margin-block: -80px calc(-1 * clamp(28px, 4vw, 48px)); }
.final h2 { font-size: clamp(30px, 4vw, 50px); }
.final p { margin: 14px 0 26px; font-size: 19px; color: rgba(255, 255, 255, .85); max-width: 30em; }

/* Footer */
.site-footer { padding-block: 64px 36px; background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1.6fr; gap: 36px; }
.site-footer__brand p { margin: 14px 0 20px; color: var(--muted); max-width: 22em; }
.site-footer h2 { font-size: 15px; font-weight: 900; letter-spacing: 0; margin-bottom: 14px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--teal); text-decoration: underline; }
.site-footer__langs div { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 22px; }
.site-footer__disclaimer { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; max-width: 70em; }
.site-footer__copy { margin-top: 10px; color: var(--muted); font-size: 13.5px; }

/* Inner pages */
.page-hero { padding-block: clamp(40px, 6vw, 72px) 0; }
.page-hero__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -.03em; }
.page-hero .lead { margin-top: 16px; }
.page-hero img { width: clamp(110px, 14vw, 170px); flex: none; }
.page-pricing .pricing { padding-top: 32px; }
.page-pricing .pricing .section-title { font-size: 0; height: 0; overflow: hidden; }
.page-pricing .pricing .section-lead { margin-top: 0; }
.compare { padding-block: 0 clamp(64px, 9vw, 110px); }
.table-scroll { margin-top: 32px; overflow-x: auto; border-radius: var(--r-lg); border: 2px solid var(--line); background: var(--surface); }
.compare table { width: 100%; min-width: 520px; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 900; background: var(--mint); }
.compare tbody th { font-weight: 700; }
.compare tr:last-child > * { border-bottom: 0; }
.compare td:last-child { font-weight: 800; color: var(--link); }

.legal { max-width: 820px; padding-block: clamp(40px, 6vw, 80px); }
.legal__head { padding-bottom: 28px; margin-bottom: 12px; border-bottom: 2px solid var(--line); }
.legal h1 { font-size: clamp(36px, 5vw, 56px); }
.legal__head .muted { margin-top: 10px; font-size: 15px; }
.legal__head .lead { margin-top: 18px; }
.legal section { padding-top: 28px; }
.legal h2 { font-size: 24px; }
.legal section p { margin-top: 10px; }
.legal__contact { margin-top: 40px; font-weight: 700; }

/* Auth */
.page-auth main { background: linear-gradient(var(--mint) 0 0) no-repeat right / 42% 100%; }
[dir="rtl"] .page-auth main { background-position: left; }
.auth { display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; min-height: calc(100vh - 72px); padding-block: 40px; }
.auth__card h1 { font-size: clamp(34px, 4vw, 46px); }
.auth__card > .muted { margin-top: 10px; }
.auth__art { display: grid; justify-items: center; gap: 18px; text-align: center; }
.auth__art img { width: min(360px, 100%); }
.auth__art p { font-weight: 800; font-size: 20px; max-width: 18em; }
.auth__switch { margin-top: 22px; color: var(--muted); }
.auth__switch a { font-weight: 800; }
.form { display: grid; gap: 16px; margin-top: 28px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 800; font-size: 15px; }
.field__row { display: flex; justify-content: space-between; gap: 12px; }
.field__row a { font-weight: 700; font-size: 14px; }
.field input {
    width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-md);
    border: 2px solid var(--line); background: var(--surface); font-size: 17px;
    transition: border-color .15s ease;
}
.field input:hover { border-color: var(--mint-2); }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__hint { color: var(--muted); font-size: 13.5px; }
.field__error { color: var(--danger); font-weight: 700; font-size: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.form .btn { margin-top: 6px; min-height: 54px; }
.btn--google { gap: 12px; margin-top: 28px; min-height: 54px; }
.btn--google svg { flex: none; }
.auth__note { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.auth__or { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__or + .form { margin-top: 18px; }
.field input.field__code { font-size: 28px; font-weight: 800; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.auth__resend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.auth__resend button { padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-weight: 800; cursor: pointer; }
.auth__resend button:hover { text-decoration: underline; }

/* Account & result */
.account { max-width: 1040px; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.account__wide { grid-column: 1 / -1; }
.account .flash { margin: 0; }
.account__head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; padding-bottom: 12px; }
.avatar--lg { width: 76px; height: 76px; font-size: 34px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--brass); }
.account__who { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.account__who h1 { margin-bottom: 4px; font-size: clamp(32px, 4.4vw, 48px); overflow-wrap: anywhere; }
.account__who p { font-weight: 700; overflow-wrap: anywhere; }
.account__who .muted { font-weight: 400; font-size: 15px; }
.account__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.plan-card {
    position: relative; overflow: hidden; display: grid; gap: 10px; justify-items: start;
    padding: clamp(24px, 4vw, 40px); padding-inline-end: clamp(24px, 28%, 300px);
    border-radius: var(--r-xl); background: var(--panel-deep); color: #FFFFFF;
}
.plan-card__art { position: absolute; inset-inline-end: clamp(20px, 6vw, 72px); bottom: -28px; width: clamp(130px, 17vw, 194px); transform: rotate(-6deg); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .28)); }
[dir="rtl"] .plan-card__art { transform: rotate(6deg); }
.plan-card__label { font-weight: 800; font-size: 15px; color: rgba(255, 255, 255, .72); }
.plan-card h2 { display: flex; align-items: center; gap: 4px; font-size: clamp(34px, 4.4vw, 50px); margin-bottom: 6px; }
.plan-card h2 .pro-mark { --s: 34px; margin-inline-start: 6px; }
.plan-card p { color: rgba(255, 255, 255, .86); }
.plan-card .plan-card__lead { color: #FFFFFF; font-weight: 800; font-size: 19px; }
.plan-card .btn { margin-top: 12px; }
.plan-card .plan-card__perks { max-width: 34em; margin-top: 2px; gap: 8px 22px; font-size: 15.5px; }
.meter { display: flex; gap: 6px; width: min(300px, 100%); }
.meter span { flex: 1; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.meter .is-on { background: var(--brass); }

.panel { padding: 26px 28px; border-radius: var(--r-lg); background: var(--surface); border: 2px solid var(--line); display: grid; gap: 12px; justify-items: start; }
.panel h2 { font-size: 22px; margin-bottom: 2px; }
.recent { width: 100%; margin: 0; padding: 0; list-style: none; }
.recent li + li { border-top: 1px solid var(--line); }
.recent a {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title date" "meta date"; column-gap: 14px;
    margin-inline: -12px; padding: 11px 12px; border-radius: 12px; color: var(--ink); text-decoration: none;
}
.recent a:hover { background: var(--mint); }
.recent__title { grid-area: title; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent__meta { grid-area: meta; color: var(--muted); font-size: 13.5px; }
.recent time { grid-area: date; align-self: center; color: var(--muted); font-weight: 700; font-size: 13.5px; }

.choice { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: 8px; padding: 0; font-weight: 800; font-size: 15px; }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.segmented label {
    position: relative; flex: 1 1 auto; display: grid; place-items: center; min-height: 40px; padding: 4px 12px; border-radius: 999px;
    color: var(--muted); font-weight: 800; font-size: 14.5px; line-height: 1.2; text-align: center; cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.segmented label:hover { color: var(--ink); }
.segmented input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.segmented label:has(:checked) { background: var(--teal); color: var(--on-teal); box-shadow: 0 2px 0 var(--teal-deep); }
.segmented label:has(:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.appearance { grid-row: span 2; }
.appearance__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 800; font-size: 15px; }
.appearance .lang summary { border: 2px solid var(--line); }
.appearance .lang summary span { display: inline; }
.appearance .lang__menu { inset-inline-end: 0; }

.danger { border: 2px dashed color-mix(in srgb, var(--danger) 40%, var(--line)); border-radius: var(--r-lg); }
.danger summary {
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 26px; color: var(--danger); font-weight: 800; cursor: pointer;
}
.danger summary:focus-visible { outline-offset: -2px; border-radius: var(--r-lg); }
.danger summary::-webkit-details-marker { display: none; }
.danger summary::after {
    content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px;
    border-inline-end: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .15s ease;
}
.danger[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.danger__body { display: grid; gap: 4px; padding: 0 26px 24px; }
.form--inline { grid-template-columns: 1fr auto; align-items: end; width: 100%; margin-top: 8px; }
.form--inline .btn { margin: 0; }
.result { display: grid; justify-items: center; text-align: center; gap: 16px; padding-block: clamp(48px, 8vw, 110px); }
.result h1 { font-size: clamp(34px, 4.5vw, 52px); }
.result img { width: 240px; }

/* Chat app */
.page-chat { overflow: hidden; }
.page-chat main { height: 100dvh; }
.page-chat .flash { position: fixed; inset-inline: 16px; top: 8px; z-index: 60; }
.chat { display: grid; grid-template-columns: 300px 1fr; height: 100dvh; }
.chat__side { display: flex; flex-direction: column; gap: 16px; padding: 18px 16px; background: var(--surface); border-inline-end: 1px solid var(--line); min-height: 0; }
.chat__side-top { display: flex; align-items: center; justify-content: space-between; }
.convos { flex: 1; min-height: 0; overflow-y: auto; margin-inline: -8px; padding-inline: 8px; }
.convos__title { font-size: 14px; font-weight: 800; color: var(--muted); letter-spacing: 0; margin: 4px 8px 8px; }
.convos ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.convo { position: relative; display: flex; align-items: center; border-radius: 12px; }
.convo a { flex: 1; min-width: 0; display: grid; padding: 9px 44px 9px 12px; padding-inline: 12px 44px; color: var(--ink); text-decoration: none; }
.convo__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 15px; }
.convo__meta { font-size: 12.5px; color: var(--muted); }
.convo:hover, .convo.is-active { background: var(--mint); }
.convo__del { position: absolute; inset-inline-end: 4px; width: 34px; height: 34px; opacity: 0; }
.convo:hover .convo__del, .convo__del:focus-visible, .convo.is-active .convo__del { opacity: 1; }
.convos__empty { padding: 8px 12px; color: var(--muted); font-size: 14.5px; }
.chat__plan { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-md); background: var(--mint); font-size: 14.5px; }
.chat__scrim { display: none; }

.chat__main { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; min-height: 0; }
.chat__bar { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 clamp(16px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.chat__title { font-size: 17px; font-weight: 800; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__bar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; flex: none; }

.thread { overflow-y: auto; padding: 28px clamp(16px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
.thread > * { width: 100%; max-width: 820px; margin-inline: auto; }
.thread__empty { margin-block: auto; display: grid; justify-items: center; text-align: center; gap: 10px; padding-block: 20px; }
.thread__empty img { width: 190px; }
.thread__empty h2 { font-size: clamp(26px, 3vw, 34px); }
.prompts { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; width: 100%; max-width: 560px; }
.prompts button { width: 100%; padding: 14px 18px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface); text-align: start; font-weight: 700; cursor: pointer; }
.prompts button:hover { border-color: var(--teal); }

.msg { display: grid; gap: 6px; }
.msg__who { font-size: 13px; font-weight: 800; color: var(--muted); }
.msg__body { padding: 14px 18px; border-radius: 20px; overflow-wrap: anywhere; }
.msg--user { justify-items: end; }
.msg--user .msg__body { max-width: min(640px, 92%); background: var(--teal); color: var(--on-teal); border-end-end-radius: 6px; white-space: pre-wrap; }
.msg--assistant .msg__body { background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 6px; }
.msg--assistant .msg__body > * + * { margin-top: .7em; }
.msg__body h3, .msg__body h4 { font-size: 18px; letter-spacing: 0; line-height: 1.3; }
.msg__body ul, .msg__body ol { margin-block: .5em 0; padding-inline-start: 1.4em; }
.msg__body li + li { margin-top: .25em; }
.msg__body code { padding: .1em .35em; border-radius: 6px; background: var(--mint); font-size: .92em; }
.msg__body blockquote { margin-inline: 0; padding-inline-start: 14px; border-inline-start: 3px solid var(--brass); color: var(--muted); }
.msg__body hr { border: 0; border-top: 1px solid var(--line); }
.msg__body a { word-break: break-all; }
.msg__files { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; min-height: 32px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--mint); font-size: 13.5px; font-weight: 700; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.file-chip button:hover { background: var(--surface); color: var(--ink); }
.msg__tools { display: flex; gap: 4px; }
.msg__tools button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.msg__tools button:hover { background: var(--mint); color: var(--ink); }
.doc-card { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
.doc-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); }
.doc-card__title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.doc-card__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-card__actions button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.doc-card__actions button:last-child { border-color: var(--teal); background: var(--teal); color: var(--on-teal); }
.doc-card__actions button:hover { filter: brightness(1.05); }
.doc-card__page { max-height: 520px; overflow: auto; padding: 18px 20px; background: var(--surface); font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.55; }
.doc-card__page > * + * { margin-top: .7em; }
.doc-card__page h3 { text-align: center; }
.msg--error .msg__body { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); color: var(--danger); font-weight: 700; }
.typing { display: inline-flex; gap: 5px; padding-block: 6px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

.composer { padding: 10px clamp(12px, 4vw, 40px) max(12px, env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.composer > * { width: 100%; max-width: 820px; margin-inline: auto; }
.composer__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.composer__opts { position: relative; }
.pick { position: relative; }
.pick__btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px; max-width: 260px; padding-inline: 14px 10px;
    border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
    font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.pick__btn > [data-pick-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__btn:has(.tool-ico) { padding-inline-start: 5px; }
.pick__btn::after {
    content: ""; flex: none; width: 14px; height: 14px; transition: transform .15s ease;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 14l5-5 5 5' fill='none' stroke='%23557079' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pick__btn:hover, .pick__btn[aria-expanded="true"] { border-color: var(--teal); }
.pick__btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.pick__btn:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 28%, transparent); }
.pick__btn:disabled { cursor: default; border-color: transparent; background: var(--mint); }
.pick__btn:disabled::after { display: none; }
.pick__menu {
    position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0; z-index: 40;
    display: grid; gap: 2px; width: max-content; min-width: 240px; max-width: min(340px, calc(100vw - 24px));
    margin: 0; padding: 6px; list-style: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.pick__menu[hidden] { display: none; }
.pick__menu--scroll { max-height: min(360px, 52dvh); overflow-y: auto; overscroll-behavior: contain; }
.pick__menu [role="option"] {
    display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; padding-inline-end: 36px;
    position: relative; border-radius: 9px; font-weight: 700; font-size: 15px; cursor: pointer; outline: none;
}
.pick__menu [role="option"]:hover, .pick__menu [role="option"]:focus { background: var(--mint); }
.pick__menu [role="option"]:focus-visible { box-shadow: inset 0 0 0 2px var(--teal); }
.pick__menu [aria-selected="true"] { color: var(--link); background: color-mix(in srgb, var(--teal) 11%, transparent); }
.pick__menu [aria-selected="true"]::after {
    content: ""; position: absolute; inset-inline-end: 12px; width: 16px; height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230E7C86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: var(--check-filter);
}
.pick__menu [data-locked] { color: var(--muted); }
.pick__menu .pro-mark { margin-inline-start: auto; }
.pick__menu [data-locked]:hover .pro-mark, .pick__menu [data-locked]:focus .pro-mark { background: var(--brass-deep); color: #FFFFFF; }
.pick__menu--tools { min-width: 290px; }
.pick__menu--tools [role="option"] { gap: 12px; padding-inline-start: 8px; }
.pick__menu--tools [data-locked] { padding-inline-end: 9px; }
.pick__text { display: grid; flex: 1; min-width: 0; }
.pick__text small { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.35; }

/* Tool icons: the same paper, stamp and seal motifs as the home page previews */
.tool-ico {
    --s: 34px;
    display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s);
    border-radius: 10px; background: var(--mint-2); color: var(--ink); font-size: calc(var(--s) * .5); font-weight: 900; line-height: 1;
}
.tool-ico svg { width: 56%; height: 56%; }
.tool-ico--general { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--link); }
.tool-ico--statement { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.tool-ico--claim { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.tool-ico--lawsuit { background: var(--teal); color: var(--on-teal); }
.tool-ico--documentCheck { background: color-mix(in srgb, var(--brass) 24%, transparent); color: var(--brass-deep); }
.pick__btn .tool-ico { --s: 24px; border-radius: 999px; }
.composer__files { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 auto; padding: 0; list-style: none; }
.composer__box { display: flex; align-items: flex-end; gap: 6px; padding: 6px; border-radius: 24px; background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow-lg); transition: border-color .15s ease; }
.composer__box:focus-within { border-color: var(--teal); }
.composer__box textarea { flex: 1; min-height: 44px; max-height: 220px; padding: 10px 6px; border: 0; background: transparent; resize: none; font-size: 16.5px; line-height: 1.5; }
.composer__box textarea:focus { outline: none; }
.composer__attach { cursor: pointer; position: relative; }
.composer__attach:has(:focus-visible) { box-shadow: 0 0 0 2px var(--teal); }
.composer__attach.is-locked::after {
    content: ""; position: absolute; inset-inline-end: 4px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 11V8a4 4 0 018 0v3M6 11h12v9H6z' fill='none' stroke='%2314232B' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.send { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--teal); color: var(--on-teal); cursor: pointer; transition: background-color .15s ease, opacity .15s ease; }
.send:hover { background: var(--teal-deep); }
.send:disabled { opacity: .45; cursor: default; }
.composer__note { font-size: 12.5px; text-align: center; }

.paywall {
    width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: auto;
    border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.paywall:focus-visible { outline: none; }
.paywall::backdrop { background: rgba(7, 32, 36, .6); backdrop-filter: blur(3px); }
.paywall__head {
    position: relative; display: grid; gap: 10px; padding: 30px 28px 26px; padding-inline-end: 132px;
    background: var(--panel-deep); color: #FFFFFF;
}
.paywall__head h2 { font-size: 30px; }
.paywall__head p { color: rgba(255, 255, 255, .86); font-size: 16px; }
.paywall__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; }
.paywall__close .icon-btn { color: rgba(255, 255, 255, .8); }
.paywall__close .icon-btn:hover { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.paywall__close .icon-btn:focus-visible { outline-color: #FFFFFF; }
.paywall__seal { position: absolute; inset-inline-end: 18px; bottom: -30px; width: 108px; transform: rotate(8deg); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25)); }
[dir="rtl"] .paywall__seal { transform: rotate(-8deg); }
.paywall__perks, .plan-card__perks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; }
.paywall__perks li, .plan-card__perks li { position: relative; padding-inline-start: 22px; }
.paywall__perks li::before, .plan-card__perks li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%;
    background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2314232B' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.paywall__body { display: grid; gap: 16px; padding: 28px; }
.paywall__plans { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.plan-opt {
    position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "radio name price" "radio note price";
    align-items: center; column-gap: 12px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r-md);
    cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.plan-opt:hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); }
.plan-opt:has(:checked) { border-color: var(--teal); background: var(--mint); }
.plan-opt:has(:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 28%, transparent); }
.plan-opt input {
    grid-area: radio; appearance: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--line); border-radius: 50%;
    background: var(--surface); transition: border-width .15s ease, border-color .15s ease; cursor: pointer;
}
.plan-opt input:checked { border: 7px solid var(--teal); }
.plan-opt input:focus-visible { outline: none; }
.plan-opt__name { grid-area: name; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 900; font-size: 17px; }
.plan-opt__note { grid-area: note; color: var(--muted); font-size: 13.5px; }
.plan-opt__price { grid-area: price; font-weight: 900; font-size: 20px; letter-spacing: -.02em; }
.plan-opt__badge { padding: 2px 9px 3px; border-radius: 999px; background: var(--brass); color: #14232B; font-size: 12px; font-weight: 900; }
.paywall__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; color: var(--muted); font-size: 14px; text-align: center; }
.paywall__foot a { font-weight: 800; }
@media (prefers-reduced-motion: no-preference) {
    .paywall[open] { animation: pop .25s ease both; }
}
@media (max-width: 420px) {
    .paywall__head { padding: 26px 20px 22px; padding-inline-end: 20px; }
    .paywall__seal { display: none; }
    .paywall__perks { grid-template-columns: 1fr; }
    .paywall__body { padding: 20px; }
}

/* Utilities & responsive */
.hide-lg { display: none; }

@media (max-width: 1080px) {
    .plans { grid-template-columns: repeat(2, 1fr); }
    .plan--featured { transform: none; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav { display: none; }
    .hero__in, .memo__in, .auth { grid-template-columns: 1fr; }
    .memo__sticker { width: 110px; margin-top: 20px; }
    .binder { grid-template-columns: 1fr; }
    .binder__tabs { flex-direction: row; flex-wrap: wrap; gap: 8px; padding-block: 0 18px; }
    .binder__tabs [role="tab"], .binder__tabs [role="tab"]:hover { min-height: 46px; margin: 0; padding-inline: 16px; border-radius: 999px; font-size: 15.5px; }
    .binder__tabs [role="tab"][aria-selected="true"] { background: var(--teal); color: var(--on-teal); }
    .binder__tabs [aria-selected="true"] small { color: inherit; opacity: .8; }
    .binder__sheet { border-start-start-radius: var(--r-xl); }
    .features__grid { grid-template-columns: 1fr; }
    .feature--big { grid-row: auto; }
    .page-auth main { background: none; }
    .auth { min-height: 0; }
    .auth__art { display: none; }

    .hide-lg { display: inline-grid; }
    .chat { grid-template-columns: 1fr; }
    .chat__side {
        position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 50; width: min(320px, 86vw);
        transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow-lg);
    }
    [dir="rtl"] .chat__side { transform: translateX(105%); }
    .chat.is-side-open .chat__side { transform: none; }
    .chat.is-side-open .chat__scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(7, 32, 36, .45); }
    .account { grid-template-columns: 1fr; }
    .appearance { grid-row: auto; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .hide-sm { display: none; }
    .site-header__in { gap: 10px; min-height: 64px; }
    .brand { font-size: 18px; }
    .lang summary span { display: none; }
    .lang__menu { min-width: 240px; inset-inline-end: -90px; }
    .demo { font-size: 14px; }
    .demo { padding-inline: 18px; }
    .pad { --rule: 30px; font-size: 16px; background-position: 0 23px; transform: none; }
    [dir="rtl"] .pad { transform: none; }
    .plans { grid-template-columns: 1fr; }
    .feature, .feature--photo, .feature--doc { flex-direction: column; align-items: flex-start; padding: 24px; }
    .feature--photo img, .feature--doc img { width: 56%; }
    .final__in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .final__in img { align-self: center; margin-block: -64px 0; width: 200px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__langs div { grid-template-columns: repeat(2, auto); }
    .page-hero img { display: none; }
    .form--inline { grid-template-columns: 1fr; }
    .account-btn { padding: 4px; min-width: 40px; }
    .account-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .account__actions { width: 100%; }
    .account__actions > * { flex: 1; }
    .account__actions .btn { width: 100%; }
    .plan-card { padding-inline-end: 24px; }
    .plan-card__art { top: 14px; bottom: auto; inset-inline-end: 14px; width: 78px; }
    .plan-card__perks { grid-template-columns: 1fr; }
    .plan-card .meter { width: 60%; }
    .avatar--lg { width: 60px; height: 60px; font-size: 27px; }
    .panel { padding: 22px; }
    .segmented label { padding-inline: 8px; font-size: 13.5px; }
    .danger summary { padding-inline: 20px; }
    .danger__body { padding-inline: 20px; }
    .pick { position: static; }
    .pick__btn { max-width: 46vw; }
    .pick__menu { inset-inline: 0; width: auto; max-width: none; }
    .sample blockquote { font-size: 16px; }
    .binder__sheet { padding: 26px 22px; }
    .binder__page > p { font-size: 17px; }
}

@media (max-width: 430px) {
    .site-header__in { gap: 8px; }
    .site-header .brand { font-size: 16px; }
    .site-header .lang { display: none; }
    .site-header__actions { gap: 6px; }
    .site-header .btn--primary { padding-inline: 12px; font-size: 14px; }
}

@media (max-width: 359px) {
    .site-header .theme-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.checkout { display: grid; justify-items: center; text-align: center; gap: 16px; padding-block: clamp(40px, 6vw, 80px); }
.checkout h1 { font-size: clamp(30px, 4vw, 44px); }
.checkout__frame { width: 100%; max-width: 560px; min-height: 560px; }
.checkout__note { color: var(--muted); font-size: 14px; }
