/* YexAPI site styles: original design */
:root {
  --ink: #0E1A2B; --ink-2: #1E2D45; --text: #1B2433; --muted: #5B6677; --line: #E3E7EE;
  --bg: #FFFFFF; --bg-soft: #F5F7FA; --accent: #FF6B4A; --accent-ink: #D9472A; --ok: #12A594;
  --radius: 14px; --shadow: 0 1px 2px rgba(14,26,43,.06), 0 8px 24px rgba(14,26,43,.06);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --text:#E6EAF0; --muted:#9AA6B6; --line:#243247; --bg:#0B1320; --bg-soft:#101B2C; --ink:#0B1320; --ink-2:#14223A; --accent-ink:#FF8A6E; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--accent-ink); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); border: 1px solid var(--line); padding: .05em .35em; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; } .section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 54px); } h2 { font-size: clamp(26px, 3.2vw, 36px); } h3 { font-size: 19px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.sub { color: var(--muted); max-width: 680px; margin: 0 0 36px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover { background: #F2552F; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--bg); } .btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.note { font-size: 14px; color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); } .brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; flex: 1; } .nav a { color: var(--muted); font-weight: 500; font-size: 15px; } .nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; } .nav-cta .login { color: var(--text); font-weight: 500; font-size: 15px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--text); font-size: 15px; }
@media (max-width: 820px) {
  .nav, .nav-cta { display: none; } .menu-btn { display: block; }
  .site-header.open .wrap { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; }
  .site-header.open .nav, .site-header.open .nav-cta { display: flex; flex-direction: column; width: 100%; gap: 12px; }
}

/* hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-art figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-art figure:first-child { grid-column: span 2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--bg); }

/* cards */
.grid { display: grid; gap: 20px; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 6px 0 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }
.model-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .model-card { grid-template-columns: 1fr; } }
.model-card .tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; background: var(--bg-soft); }
.tier .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tier .price { font-size: 24px; font-weight: 700; color: var(--text); }
.tier .was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.mono { font-family: var(--mono); }

/* code */
.code { border-radius: var(--radius); overflow: hidden; border: 1px solid #1E2D45; background: #0E1A2B; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 4px; padding: 10px 10px 0; background: #0B1422; border-bottom: 1px solid #1E2D45; }
.tab { background: none; border: 0; color: #9AA6B6; font: 600 13px/1 inherit; padding: 10px 14px; border-radius: 8px 8px 0 0; cursor: pointer; }
.tab[aria-selected="true"] { color: #fff; background: #0E1A2B; box-shadow: inset 0 2px 0 var(--accent); }
.panel { display: none; position: relative; } .panel.active { display: block; }
.panel pre { margin: 0; padding: 20px; overflow-x: auto; color: #E6EAF0; font: 13.5px/1.65 var(--mono); }
.copy { position: absolute; top: 10px; right: 10px; background: #1E2D45; color: #E6EAF0; border: 0; border-radius: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.copy:hover { background: #2A3B57; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
td .was { text-decoration: line-through; color: var(--muted); }
td.save { color: var(--ok); font-weight: 700; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* gallery */
.gallery figure { margin: 0; } .gallery img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; } .gallery figcaption b { color: var(--text); display: block; }

/* model header */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; } .crumbs a { color: var(--muted); }
.idbox { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; background: var(--bg-soft); font-family: var(--mono); font-size: 14px; }
.idbox button { border: 0; background: var(--ink-2); color: #fff; border-radius: 7px; padding: 5px 10px; font-size: 12px; cursor: pointer; }

/* cta */
.cta { text-align: center; } .cta .btns { justify-content: center; } .cta .sub { margin-left: auto; margin-right: auto; }

/* legal */
.legal { max-width: 780px; padding: 56px 24px 80px; } .legal h1 { font-size: 38px; } .legal h2 { font-size: 22px; margin-top: 36px; } .legal p, .legal li { color: var(--text); } .legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin: 0 0 8px; } .site-footer a { color: var(--text); }
.foot-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot-note a { color: var(--muted); text-decoration: underline; }

/* embedded in the console's home iframe */
html.embedded .site-header, html.embedded .site-footer { display: none; }
.panel pre code { background: none; border: 0; padding: 0; border-radius: 0; color: inherit; font-size: inherit; }
