/* echatgpt.org — site design (Nov 2026) */
:root {
    --bg: #f7f6f2;
    --bg-2: #efede7;
    --surface: #ffffff;
    --line: #e7e4dc;
    --line-2: #d8d4ca;
    --text: #161615;
    --text-2: #3d3c39;
    --muted: #615f58;
    --acc: #0c9466;
    --acc-hover: #0a7f58;
    --acc-soft: #e1f2e9;
    --acc-ink: #076443;
    --ink: #161615;
    --on-ink: #ffffff;
    --code-bg: #1e2023;
    --code-line: #2c2f33;
    --danger: #c0392b;
    --danger-soft: #fbeceb;
    --shadow-sm: 0 1px 2px rgba(30, 28, 20, .05);
    --shadow: 0 1px 2px rgba(30, 28, 20, .04), 0 10px 30px -12px rgba(30, 28, 20, .14);
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Hiragino Sans", "Malgun Gothic", sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --head-h: 60px;
    --appbar-h: 0px;
    --col: 760px;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0f1010;
    --bg-2: #1a1c1b;
    --surface: #1b1d1c;
    --line: #282b2a;
    --line-2: #383c3a;
    --text: #ecebe7;
    --text-2: #cbcac4;
    --muted: #9a9892;
    --acc: #2ec48c;
    --acc-hover: #46d39f;
    --acc-soft: #15291f;
    --acc-ink: #84e4bf;
    --ink: #ecebe7;
    --on-ink: #111211;
    --code-bg: #151718;
    --code-line: #262a2c;
    --danger: #f07167;
    --danger-soft: #2a1716;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.ec {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--font);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
:where(.ec) a { color: inherit; }
:where(.ec) img { max-width: 100%; }
:where(.ec) button { font: inherit; color: inherit; cursor: pointer; }
:where(.ec) :is(h1, h2, h3, h4) { margin: 0; font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
.ec [hidden] { display: none !important; }
.ec ::selection { background: var(--acc-soft); color: var(--acc-ink); }
.i { width: 18px; height: 18px; flex: none; display: block; }
.ec-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.ec-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
    background: var(--ink); color: var(--on-ink); text-decoration: none;
    font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ec-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.ec-btn--acc { background: var(--acc); color: #fff; }
.ec-btn--acc:hover { background: var(--acc-hover); }
.ec-btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.ec-btn--ghost:hover { background: var(--surface); }
.ec-btn--big { height: 52px; padding: 0 28px; font-size: 16px; }
.ec-iconbtn {
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    border: 0; background: transparent; color: var(--text-2);
    transition: background-color .15s ease, color .15s ease;
}
.ec-iconbtn:hover { background: var(--bg-2); color: var(--text); }

/* ---------- App banner (mobile) ---------- */
.ec-appbar {
    display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 14px 0 6px;
    background: var(--surface); border-bottom: 1px solid var(--line);
}
.ec-appbar__x { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; border-radius: 8px; flex: none; }
.ec-appbar__x .i { width: 16px; height: 16px; }
.ec-appbar__icon { width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.ec-appbar__txt { flex: 1; min-width: 0; line-height: 1.3; }
.ec-appbar__txt b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-appbar__txt small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-stars { color: #e8a317; letter-spacing: 1px; }
.ec-appbar .ec-btn { height: 32px; padding: 0 16px; font-size: 13.5px; }

/* ---------- Header ---------- */
.ec-top {
    position: sticky; top: 0; z-index: 40; height: var(--head-h);
    background: transparent; border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background-color .2s ease;
}
.ec-top.is-scrolled, .ec-chatting .ec-top {
    background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom-color: var(--line);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
}
.ec-top__in { max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 16px 0 20px; display: flex; align-items: center; gap: 4px; }
.ec-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.03em; color: var(--text); margin-right: auto; }
.ec-logo b { color: var(--acc); font-weight: 700; }
.ec-mark { width: 30px; height: 30px; color: var(--acc); flex: none; display: block; }
.ec-nav { display: flex; gap: 2px; margin-right: 10px; }
.ec-nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: color .15s ease, background-color .15s ease; }
.ec-nav a:hover { color: var(--text); background: var(--bg-2); }
.ec-nav a.on { color: var(--text); }
.ec-theme .i-sun { display: none; }
[data-theme="dark"] .ec-theme .i-sun { display: block; }
[data-theme="dark"] .ec-theme .i-moon { display: none; }

.ec-lang { position: relative; }
.ec-lang > summary {
    list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px;
    border-radius: 12px; color: var(--text-2); font-size: 13.5px; font-weight: 600; cursor: pointer; user-select: none;
}
.ec-lang > summary::-webkit-details-marker { display: none; }
.ec-lang > summary:hover, .ec-lang[open] > summary { background: var(--bg-2); color: var(--text); }
.ec-lang__menu {
    position: absolute; right: 0; top: calc(100% + 8px); width: 340px; padding: 8px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    animation: ec-pop .16s ease-out;
}
.ec-lang__menu a { padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; color: var(--text-2); }
.ec-lang__menu a:hover { background: var(--bg-2); color: var(--text); }
.ec-lang__menu a.on { background: var(--acc-soft); color: var(--acc-ink); font-weight: 600; }
@keyframes ec-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ---------- Chat app ---------- */
.ec-app {
    position: relative; display: flex; flex-direction: column; isolation: isolate;
    height: calc(100vh - var(--head-h) - var(--appbar-h));
    height: calc(100svh - var(--head-h) - var(--appbar-h));
    min-height: 420px;
}
.ec-app::before {
    content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--head-h)); height: 680px; z-index: -1; pointer-events: none;
    background: radial-gradient(1100px 600px at 50% 0%, color-mix(in srgb, var(--acc) 14%, transparent), color-mix(in srgb, var(--acc) 10%, transparent) 22%, color-mix(in srgb, var(--acc) 6%, transparent) 42%, color-mix(in srgb, var(--acc) 2.5%, transparent) 58%, transparent 72%);
    opacity: 0; transition: opacity .5s ease;
}
.ec-app.is-empty::before { opacity: 1; }
.ec-app.is-empty { height: auto; min-height: 0; padding: clamp(56px, 13vh, 140px) 0 clamp(48px, 9vh, 96px); }
.ec-chatpage .ec-app.is-empty { min-height: calc(100svh - var(--head-h) - var(--appbar-h)); justify-content: center; padding-top: 32px; padding-bottom: 8vh; }

.ec-col { width: 100%; max-width: calc(var(--col) + 32px); margin: 0 auto; padding: 0 16px; }

.ec-welcome { display: none; text-align: center; margin-bottom: 30px; }
.ec-app.is-empty .ec-welcome { display: block; animation: ec-rise .5s ease-out both; }
.ec-h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; }
.ec-h1 em { font-style: normal; color: var(--acc); }
.ec-welcome p { max-width: 600px; margin: 16px auto 0; color: var(--muted); font-size: 17.5px; line-height: 1.55; text-wrap: balance; }
@keyframes ec-rise { from { opacity: 0; transform: translateY(8px); } }

.ec-thread { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(transparent, #000 20px); mask-image: linear-gradient(transparent, #000 28px); }
.ec-app.is-empty .ec-thread { display: none; }
.ec-thread__in { max-width: calc(var(--col) + 40px); margin: 0 auto; padding: 32px 20px 12px; }

.ec-composer-wrap { position: relative; z-index: 1; }
.ec-app:not(.is-empty) .ec-composer-wrap { margin-top: -24px; padding-top: 24px; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 24px); }
.ec-composer {
    position: relative; display: flex; align-items: flex-end; gap: 8px;
    padding: 8px 8px 8px 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 26px;
    box-shadow: var(--shadow); transition: border-color .15s ease, box-shadow .15s ease;
}
.ec-composer:focus-within { border-color: color-mix(in srgb, var(--acc) 55%, var(--line-2)); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--acc) 14%, transparent); }
.ec-composer textarea {
    flex: 1; min-width: 0; min-height: 40px; max-height: 220px; padding: 9px 0; margin: 0; resize: none; border: 0; outline: 0;
    background: transparent; color: var(--text); font: 400 16px/1.45 var(--font);
}
.ec-composer textarea::placeholder { color: var(--muted); }
.ec-send {
    width: 40px; height: 40px; border-radius: 50%; border: 0; flex: none; display: grid; place-items: center;
    background: var(--ink); color: var(--on-ink); transition: background-color .15s ease, transform .15s ease;
}
.ec-send:not(:disabled):hover { transform: scale(1.05); }
.ec-send:disabled { background: var(--line-2); color: var(--muted); cursor: default; }
.ec-send .i { width: 19px; height: 19px; stroke-width: 2.4; }
.ec-send.is-busy, .ec-send.is-busy:disabled { background: var(--ink); color: var(--on-ink); }
.ec-send.is-busy .i { display: none; }
.ec-send.is-busy::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: currentColor; }

.ec-note { margin: 10px auto calc(12px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; color: var(--muted); text-wrap: balance; }
.ec-note__left { white-space: nowrap; }
.ec-note__left:not(:empty)::before { content: " · "; }
.ec-app.is-empty .ec-note { margin-bottom: 0; }

.ec-sugg { display: none; margin-top: 22px; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-app.is-empty .ec-sugg { display: grid; animation: ec-rise .5s .08s ease-out both; }
.ec-sugg button {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; min-width: 0;
    background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--line); border-radius: 16px;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.ec-sugg button:hover { background: var(--surface); border-color: var(--line-2); transform: translateY(-1px); }
.ec-sugg__ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); flex: none; }
.ec-sugg__tx { min-width: 0; }
.ec-sugg__t { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.ec-sugg__d { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Messages */
.ec-m { margin: 0 0 28px; animation: ec-rise .3s ease-out both; }
.ec-m--user { display: flex; justify-content: flex-end; }
.ec-m--user .ec-b {
    max-width: min(82%, 620px); padding: 10px 16px; border-radius: 22px 22px 6px 22px;
    background: var(--bg-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.55;
}
[data-theme="dark"] .ec-m--user .ec-b { background: #262927; }
.ec-m--ai { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.ec-m--ai > div { min-width: 0; }
.ec-m--ai .ec-mark { width: 30px; height: 30px; margin-top: 1px; }
.ec-acts { display: flex; gap: 2px; margin-top: 8px; margin-left: -8px; }
.ec-acts button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; }
.ec-acts button:hover { background: var(--bg-2); color: var(--text); }
.ec-acts .i { width: 15px; height: 15px; }
@media (hover: hover) {
    .ec-m--ai:not(:last-child) .ec-acts { opacity: 0; transition: opacity .15s ease; }
    .ec-m--ai:hover .ec-acts { opacity: 1; }
}

.ec-dots { display: inline-flex; gap: 5px; padding: 12px 0; }
.ec-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ec-dot 1.2s ease-in-out infinite; }
.ec-dots i:nth-child(2) { animation-delay: .15s; }
.ec-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ec-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.ec-err { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-size: 14.5px; }
.ec-err button { margin-left: auto; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font-weight: 600; font-size: 13.5px; }

.ec-limit { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ec-limit h3 { font-size: 17px; margin-bottom: 6px; }
.ec-limit p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

/* Markdown */
.ec-md { font-size: 15.5px; line-height: 1.7; color: var(--text); overflow-wrap: break-word; min-width: 0; }
.ec-md > :first-child { margin-top: 0; }
.ec-md > :last-child { margin-bottom: 0; }
.ec-md p { margin: 0 0 .85em; }
.ec-md :is(h3, h4, h5) { margin: 1.4em 0 .5em; line-height: 1.3; letter-spacing: -.015em; font-weight: 650; }
.ec-md h3 { font-size: 1.22em; }
.ec-md h4 { font-size: 1.08em; }
.ec-md h5 { font-size: 1em; }
.ec-md :is(ul, ol) { margin: 0 0 .9em; padding-left: 1.4em; }
.ec-md li { margin: .3em 0; padding-left: .2em; }
.ec-md li::marker { color: var(--muted); }
.ec-md li > :is(ul, ol) { margin: .3em 0 0; }
.ec-md strong { font-weight: 650; }
.ec-md a { color: var(--acc); text-underline-offset: 2px; }
.ec-md hr { border: 0; border-top: 1px solid var(--line); margin: 1.4em 0; }
.ec-md blockquote { margin: 0 0 .9em; padding: 2px 0 2px 14px; border-left: 3px solid var(--line-2); color: var(--text-2); }
.ec-table code { overflow-wrap: break-word; }
.ec-md code { font-family: var(--mono); font-size: .87em; padding: .12em .38em; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.ec-table { margin: 0 0 1em; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ec-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.ec-table :is(th, td) { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 120px; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.ec-table :is(th, td) + :is(th, td) { border-left: 1px solid var(--line); }
.ec-table tr:last-child td { border-bottom: 0; }
.ec-table th { background: color-mix(in srgb, var(--text) 7%, var(--surface)); border-bottom-color: var(--line-2); font-weight: 600; color: var(--text); }
.ec-table td:first-child { font-weight: 500; color: var(--text); }
.ec-code { margin: 0 0 1em; border-radius: 14px; overflow: hidden; background: var(--code-bg); color: #e6e6e3; border: 1px solid var(--code-line); }
.ec-code__h { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 6px 0 14px; font-size: 12.5px; color: #a9abae; border-bottom: 1px solid var(--code-line); font-family: var(--mono); }
.ec-code__h button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #c3c5c8; font: 500 12.5px var(--font); }
.ec-code__h button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ec-code__h .i { width: 14px; height: 14px; }
.ec-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13.5px/1.65 var(--mono); tab-size: 4; }
.ec-code pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }
.ec-code .t-c { color: #8b949e; font-style: italic; }
.ec-code .t-s { color: #a5d6a7; }
.ec-code .t-n { color: #f5b971; }
.ec-code .t-k { color: #c49cff; }
.ec-caret::after { content: ""; display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -2px; border-radius: 2px; background: var(--acc); animation: ec-blink 1s steps(2) infinite; }
@keyframes ec-blink { 50% { opacity: 0; } }

/* ---------- Store buttons ---------- */
.ec-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.ec-store {
    display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 14px; border-radius: 14px;
    background: #111; color: #fff; text-decoration: none; border: 1px solid #2f2f2f;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ec-store:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.ec-store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.ec-store span { display: flex; flex-direction: column; line-height: 1.1; }
.ec-store small { font-size: 11px; opacity: .8; }
.ec-store b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Ads ---------- */
.ec-ad { display: flex; justify-content: center; max-width: 100%; height: 0; overflow: hidden; margin: 0 auto; }
.ec-ad:has(ins[data-ad-status="filled"]) { height: auto; padding: 24px 0; }

/* ---------- Sections ---------- */
.ec-sec { padding: 80px 0 0; }
.ec-band { padding-bottom: 80px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ec-eyebrow { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.ec-h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
.ec-center { text-align: center; }
.ec-head { max-width: var(--col); margin: 0 auto 40px; }
.ec-steps__cta { max-width: var(--col); margin: 0 auto; padding-left: 64px; }

.ec-sec--about { padding: 0 0 80px; }
.ec-about { max-width: var(--col); margin: 80px auto 0; }
.ec-about__text { margin: 0; font-size: clamp(18px, 1.8vw, 20px); line-height: 1.7; font-weight: 400; letter-spacing: -.01em; color: var(--text-2); text-wrap: pretty; }
.ec-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 auto; }

.ec-feat { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ec-feat__ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); margin-bottom: 16px; }
.ec-feat__ic .i { width: 21px; height: 21px; }
.ec-feat b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.ec-feat div > span { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 4px; text-wrap: pretty; }
[data-theme="dark"] .ec-feat__ic, [data-theme="dark"] .ec-sugg__ic { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 22%, transparent); }

.ec-steps { position: relative; max-width: var(--col); margin: 0 auto 44px; padding: 0; list-style: none; counter-reset: st; }
.ec-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-bottom: 32px; }
.ec-step:last-child { padding-bottom: 0; }
.ec-step::before {
    counter-increment: st; content: counter(st); width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--acc-ink);
    background: var(--acc-soft); box-shadow: 0 0 0 6px var(--surface); position: relative; z-index: 1;
}
.ec-step:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 46px; bottom: 6px; width: 1px; background: var(--line-2); }
.ec-step h3 { font-size: 18px; line-height: 1.35; margin: 8px 0 6px; text-wrap: pretty; }
.ec-step p { margin: 0; color: color-mix(in srgb, var(--text-2) 84%, var(--surface)); font-size: 15.5px; line-height: 1.65; }

.ec-promo {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center;
    padding: 0 56px; border-radius: 32px; color: #f3f2ee; background: #0f1412;
}
.ec-promo::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(520px 340px at 82% 30%, rgba(46, 196, 140, .32), transparent 70%);
}
.ec-promo > * { position: relative; }
.ec-promo > div:first-child { align-self: center; padding: 64px 0; }
.ec-promo .ec-eyebrow { color: #6fe0b4; }
.ec-promo .ec-h2 { color: #fff; }
.ec-promo > div:first-child p { color: #b7bdb9; font-size: 17px; margin: 14px 0 28px; max-width: 440px; }
.ec-promo__sep { width: 1px; height: 14px; margin: 0 6px; background: #3a423e; }
.ec-promo__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: #9aa29e; }
.ec-promo__phonewrap { display: flex; justify-content: center; padding: 48px 0; }
.ec-phone {
    width: 244px; height: 470px; flex: none; padding: 11px; border-radius: 42px;
    background: #222926; box-shadow: inset 0 0 0 2px #333c37, 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.ec-phone__scr { height: 100%; border-radius: 32px; background: #f7f6f2; padding: 36px 12px 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ec-phone__in { margin-top: auto; display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 5px 0 14px; border-radius: 19px; background: #fff; border: 1px solid #e0ddd4; color: #8b8981; font-size: 11.5px; }
.ec-phone__in span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-phone__in i { width: 28px; height: 28px; border-radius: 50%; background: #161615; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 14px; line-height: 1; }
.ec-phone__hd { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: #161615; font-weight: 700; font-size: 14px; }
.ec-phone__hd img { width: 26px; height: 26px; border-radius: 7px; }
.ec-phone__b { max-width: 84%; padding: 8px 11px; border-radius: 15px; font-size: 11.5px; line-height: 1.42; }
.ec-phone__b--u { align-self: flex-end; background: #e6e3db; color: #161615; border-bottom-right-radius: 5px; }
.ec-phone__b--a { align-self: flex-start; max-width: 90%; background: #fff; color: #3d3c39; border: 1px solid #e7e4dc; border-bottom-left-radius: 5px; padding: 10px 12px; }
.ec-phone__b--a p { margin: 0 0 6px; }
.ec-phone__b--a p:last-child { margin: 0; }
.ec-phone__b--a b { color: #076443; font-weight: 600; }

.ec-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.ec-faq__side { position: sticky; top: calc(var(--head-h) + 32px); }
.ec-faq__side p { color: var(--muted); margin: 16px 0 22px; }
.ec-q { border-bottom: 1px solid var(--line); }
.ec-q:first-child { border-top: 1px solid var(--line); }
.ec-q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; }
.ec-q summary::-webkit-details-marker { display: none; }
.ec-q summary h3 { flex: 1; min-width: 0; font-size: 17.5px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }
.ec-q summary::after {
    content: ""; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line-2);
    background: linear-gradient(currentColor, currentColor) center/12px 1.6px no-repeat, linear-gradient(currentColor, currentColor) center/1.6px 12px no-repeat;
    color: var(--text-2); transition: transform .2s ease;
}
.ec-q[open] summary::after { transform: rotate(45deg); }
.ec-q__a { padding: 0 52px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.ec-prose, .ec-share { max-width: calc(var(--col) + 48px); }
.ec-prose__body { margin-top: 32px; color: var(--text-2); font-size: 17px; line-height: 1.8; }
.ec-prose__body p { margin: 0 0 1.1em; }

.ec-share { text-align: center; }
.ec-share h3 { font-size: 24px; letter-spacing: -.02em; }
.ec-share p { color: var(--muted); margin: 10px auto 26px; max-width: 600px; text-wrap: balance; }
.ec-share__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ec-share__btn {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2);
    background: var(--surface); border: 1px solid var(--line); text-decoration: none;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ec-share__btn svg { width: 20px; height: 20px; fill: currentColor; }
.ec-share__btn svg.i { fill: none; }
.ec-share__btn:hover { transform: translateY(-2px); color: #fff; background: var(--c); border-color: var(--c); }
.ec-share__copy { height: 48px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: var(--acc); color: #fff; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; transition: background-color .15s ease; }
.ec-share__copy:hover { background: var(--acc-hover); }
.ec-share__copy[data-share-native] { background: transparent; color: var(--text); border-color: var(--line-2); }
.ec-share__copy[data-share-native]:hover { background: var(--surface); }
.ec-share__copy .i { width: 17px; height: 17px; }
.ec-share__copy.is-done { background: var(--acc-ink); }

.ec-langs { text-align: center; padding: 64px 0 80px; }
.ec-langs h3 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 18px; }
.ec-langs__grid { display: grid; grid-template-columns: repeat(5, auto); justify-content: center; gap: 8px; margin: 0 auto; }
.ec-langs__grid a {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 10px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 14px; color: var(--text-2);
    transition: border-color .15s ease, color .15s ease;
}
.ec-langs__grid a:hover { border-color: var(--line-2); color: var(--text); }
.ec-langs__grid a.on { border-color: var(--acc); color: var(--acc-ink); background: var(--acc-soft); }
.ec-langs__grid span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-langs__grid img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }

/* ---------- Footer ---------- */
.ec-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.ec-foot__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.ec-foot__brand { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.ec-foot__brand .ec-mark { width: 24px; height: 24px; }
.ec-foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.ec-foot nav a { display: inline-block; padding: 6px 0; text-decoration: none; color: var(--muted); }
.ec-foot nav a:hover { color: var(--text); }
.ec-foot__more { margin: 22px 0 0; }
.ec-foot__more a { color: var(--text-2); text-decoration: none; }
.ec-foot__more a:hover { text-decoration: underline; }
.ec-foot__disc { margin: 10px 0 0; font-size: 13px; line-height: 1.6; max-width: 820px; }
.ec-chatpage .ec-langs { padding: 56px 0 64px; }

/* ---------- Legal / text pages ---------- */
.ec-page { max-width: 820px; margin: 48px auto 96px; padding: 56px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-sm); color: var(--text-2); font-size: 16px; line-height: 1.75; }
.ec-page h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -.03em; color: var(--text); margin-bottom: 10px; }
.ec-page :is(h2, h3) { font-size: 20px; color: var(--text); margin: 36px 0 10px; letter-spacing: -.015em; }
.ec-page :is(h2, h3) strong { font-weight: inherit; }
.ec-page p { margin: 0 0 1em; }
.ec-page :is(ul, ol) { padding-left: 1.3em; }
.ec-page a { color: var(--acc); }
.ec-page address { font-style: normal; margin: 0 0 1em; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.ec-page__meta { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.ec-page__meta .text-dark { color: var(--text-2); font-weight: 600; }

.ec-hero { text-align: center; padding: 120px 0 140px; }
.ec-hero .ec-mark { width: 56px; height: 56px; margin: 0 auto 24px; }
.ec-hero p { color: var(--muted); font-size: 18px; margin: 16px auto 32px; max-width: 520px; }
.ec-code404 { display: block; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--acc); margin-bottom: 14px; }

/* ---------- Toast ---------- */
.ec-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
    padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 500; box-shadow: var(--shadow);
    transition: opacity .2s ease, transform .2s ease;
}
.ec-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .ec-nav { display: none; }
    .ec-faq { grid-template-columns: 1fr; gap: 36px; }
    .ec-faq__side { position: static; }
    .ec-feats { grid-template-columns: 1fr; max-width: 520px; gap: 10px; }
    .ec-feat { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; text-align: left; }
    .ec-feat__ic { margin: 0; }
    .ec-feat div > span { margin-top: 2px; }
    .ec-promo { grid-template-columns: 1fr; gap: 0; padding: 0 32px; }
    .ec-promo > div:first-child { padding-top: 44px; }
    .ec-promo__phonewrap { display: none; }
    .ec-promo > div:first-child { padding-bottom: 40px; }
}
@media (max-width: 720px) {
    :root { --head-h: 56px; }
    .ec-wrap { padding: 0 16px; }
    .ec-top__in { padding: 0 8px 0 14px; gap: 0; }
    .ec-logo { font-size: 17px; }
    .ec-mark { width: 28px; height: 28px; }
    .ec-lang > summary { padding: 0 9px; }
    .ec-lang > summary .ec-lang__code { display: none; }
    .ec-lang__menu { position: fixed; left: 12px; right: 12px; top: calc(var(--head-h) + var(--appbar-h) + 6px); width: auto; }
    .ec-app.is-empty { padding: 44px 0 32px; }
    .ec-chatpage .ec-app.is-empty { padding-top: 24px; }
    .ec-col { padding: 0 16px; }
    .ec-welcome { margin-bottom: 24px; padding: 0 6px; }
    .ec-h1 { font-size: clamp(32px, 9vw, 40px); }
    .ec-welcome p { font-size: 16px; margin-top: 12px; }
    .ec-sugg { max-width: none; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 18px; padding: 0 16px 4px; scroll-padding: 0 16px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
    .ec-sugg::-webkit-scrollbar { display: none; }
    .ec-sugg button { scroll-snap-align: start; }
    .ec-composer { border-radius: 24px; padding-left: 16px; }
    .ec-thread__in { padding: 20px 16px 8px; }
    .ec-m--ai { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .ec-m--ai > .ec-mark { display: none; }
    .ec-m--user .ec-b { max-width: 88%; }
    .ec-code pre { font-size: 13px; }
    .ec-note__left { display: block; }
    .ec-note__left:not(:empty)::before { content: none; }
    .ec-sec { padding-top: 56px; }
    .ec-sec--about { padding-top: 0; }
    .ec-band, .ec-sec--about { padding-bottom: 48px; }
    .ec-steps { margin-bottom: 32px; }
    .ec-acts button { height: 36px; padding: 0 10px; }
    .ec-chatting #ec-appbar { display: none; }
    body.ec-chatting { --appbar-h: 0px; }
    .ec-langs { padding: 48px 0 56px; }
    .ec-steps__cta { padding-left: 50px; }
    .ec-about { margin-top: 48px; }
    .ec-about__text { font-size: 17px; }
    .ec-head { margin-bottom: 36px; }
    .ec-promo { border-radius: 24px; padding: 0 22px; }
    .ec-promo > div:first-child { padding-top: 34px; }
    .ec-store { height: 48px; padding: 0 16px 0 12px; }
    .ec-step { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
    .ec-step::before { width: 34px; height: 34px; font-size: 14px; }
    .ec-step:not(:last-child)::after { left: 16.5px; top: 40px; }
    .ec-step h3 { margin-top: 5px; font-size: 17px; }
    .ec-q summary h3 { font-size: 16.5px; }
    .ec-q__a { padding-right: 0; font-size: 15.5px; }
    .ec-prose__body { font-size: 16px; line-height: 1.75; margin-top: 22px; }
    .ec-langs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .ec-langs__grid a { min-width: 0; height: 44px; padding: 0 6px 0 8px; gap: 6px; font-size: 13px; }
    .ec-langs__grid img { width: 16px; height: 16px; }
    .ec-page { margin: 20px 0 64px; padding: 32px 22px; border-radius: 22px; }
    .ec-hero { padding: 80px 0 100px; }
    .ec-foot__row { flex-direction: column; align-items: flex-start; }
    .ec-foot nav a { padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
