/* ==========================================================================
   YTech ERP — public design system
   Loaded only by the public pages (landing, login, free trial, password
   reset). Every selector is prefixed `yt-` so nothing here can reach the
   authenticated dashboard. See docs/ytech-public-design-system.md.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand — sampled from the official YTech mark (sky top → deep base). */
    --yt-sky: #6ec6f0;          /* mark top; highlights on dark only        */
    --yt-brand: #0d89c1;        /* mark midpoint; lines, nodes, focus      */
    --yt-ocean: #0b6fa4;        /* links on light (5.0:1 on paper)         */
    --yt-deep: #035a8c;         /* primary actions (white text 7.4:1)      */
    --yt-deep-hover: #024a75;
    --yt-deep-press: #013d61;
    --yt-sky-wash: #e3f2fa;     /* selected / focus halo tint              */

    /* Neutrals — ledger paper and ink. */
    --yt-ink: #0b2236;          /* text + dark surfaces (14.7:1 on paper)  */
    --yt-ink-2: #12304a;        /* raised surface on ink                   */
    --yt-ink-3: #1b3f5c;
    --yt-paper: #f6f4ef;        /* page background                         */
    --yt-paper-2: #eeebe3;      /* footer, inset areas                     */
    --yt-surface: #ffffff;      /* sheets, forms, product frames           */
    --yt-line: #ddd8cc;         /* hairlines on paper                      */
    --yt-line-strong: #c4bdac;  /* input borders, emphasised rules         */
    --yt-line-ink: rgba(255, 255, 255, .14);
    --yt-text: var(--yt-ink);
    --yt-muted: #4a5a69;        /* 6.5:1 on paper                          */
    --yt-subtle: #5e6b77;       /* 4.9:1 on paper — captions, hints        */
    --yt-on-ink: #f6f4ef;
    --yt-on-ink-muted: #a9bccb; /* 8.3:1 on ink                            */

    /* Signal colours. */
    --yt-amber: #c98a1b;        /* markers only, never body text           */
    --yt-amber-text: #9a5b00;
    --yt-success: #1d6b45;
    --yt-success-wash: #e4f1e9;
    --yt-warning: #9a5b00;
    --yt-warning-wash: #fbf0dc;
    --yt-error: #b42318;
    --yt-error-wash: #fbe9e7;
    --yt-focus: #0d89c1;

    /* Type. */
    --yt-font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
    --yt-font-body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --yt-font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --yt-fs-display: clamp(2.5rem, .9rem + 4.6vw, 5rem);
    --yt-fs-h1: clamp(2.125rem, 1.4rem + 2.9vw, 3.5rem);
    --yt-fs-h2: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
    --yt-fs-h3: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
    --yt-fs-h4: 1.1875rem;
    --yt-fs-h5: 1.0625rem;
    --yt-fs-h6: .9375rem;
    --yt-fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
    --yt-fs-body: 1rem;
    --yt-fs-small: .875rem;
    --yt-fs-caption: .8125rem;
    --yt-fs-price: clamp(3.5rem, 2.4rem + 4.4vw, 6rem);

    --yt-lh-tight: 1.08;
    --yt-lh-heading: 1.18;
    --yt-lh-body: 1.6;

    /* Space — 4px base. */
    --yt-s-1: 4px;
    --yt-s-2: 8px;
    --yt-s-3: 12px;
    --yt-s-4: 16px;
    --yt-s-5: 24px;
    --yt-s-6: 32px;
    --yt-s-7: 48px;
    --yt-s-8: 64px;
    --yt-s-9: 96px;
    --yt-s-10: 128px;
    --yt-section: clamp(72px, 5rem + 5vw, 144px);

    /* Layout. */
    --yt-container: 1280px;
    --yt-container-wide: 1440px;
    --yt-gutter: clamp(16px, 2vw, 32px);
    --yt-page-pad: clamp(16px, 4vw, 48px);
    --yt-header-h: 72px;

    /* Surfaces. Restrained radii: the mark is built from straight strokes
       and full circles, so we keep corners small and save roundness for
       nodes. */
    --yt-r-1: 4px;
    --yt-r-2: 6px;
    --yt-r-3: 10px;
    --yt-shadow-1: 0 1px 2px rgba(11, 34, 54, .06);
    --yt-shadow-frame: 0 1px 0 rgba(11, 34, 54, .04), 0 28px 56px -28px rgba(11, 34, 54, .32);
    --yt-shadow-pop: 0 18px 40px -12px rgba(11, 34, 54, .28);

    /* Motion. */
    --yt-ease: cubic-bezier(.2, .7, .2, 1);
    --yt-dur-1: 120ms;
    --yt-dur-2: 220ms;
    --yt-dur-3: 480ms;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
.yt-page *,
.yt-page *::before,
.yt-page *::after { box-sizing: border-box; }

html.yt-html { scroll-behavior: smooth; scroll-padding-top: calc(var(--yt-header-h) + 16px); -webkit-text-size-adjust: 100%; }

body.yt-page {
    margin: 0;
    background: var(--yt-paper);
    color: var(--yt-text);
    font-family: var(--yt-font-body);
    font-size: var(--yt-fs-body);
    line-height: var(--yt-lh-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern";
    overflow-x: hidden;
}
/* Arabic needs more vertical room for ascenders/descenders and dots. */
.yt-page:lang(ar) { --yt-lh-body: 1.8; --yt-lh-heading: 1.4; --yt-lh-tight: 1.3; }

:where(.yt-page) :where(img, svg) { display: block; max-width: 100%; }
:where(.yt-page) img { height: auto; }
:where(.yt-page) :where(svg[aria-hidden="true"]) { width: 1.125em; height: 1.125em; flex: none; }
:where(.yt-page) :where(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    font-family: var(--yt-font-display);
    font-weight: 600;
    line-height: var(--yt-lh-heading);
    color: inherit;
    text-wrap: balance;
}
:where(.yt-page) p { margin: 0; text-wrap: pretty; }
:where(.yt-page) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.yt-page) a { color: inherit; text-decoration: none; }
:where(.yt-page) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.yt-page) button { cursor: pointer; }
.yt-page :focus-visible { outline: 2px solid var(--yt-focus); outline-offset: 3px; border-radius: 2px; }
.yt-page ::selection { background: var(--yt-sky-wash); color: var(--yt-ink); }

.yt-num { font-variant-numeric: tabular-nums lining-nums; }
.yt-mono { font-family: var(--yt-font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.yt-ltr { direction: ltr; unicode-bidi: isolate; }
.yt-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.yt-skip {
    position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
    background: var(--yt-ink); color: var(--yt-on-ink); padding: 10px 16px; border-radius: var(--yt-r-2);
}
.yt-skip:focus { top: 12px; }

/* Directional glyphs flip in RTL so arrows always point "forward". */
[dir="rtl"] .yt-flip { transform: scaleX(-1); }

/* --------------------------------------------------------------------------
   3. Typography roles
   -------------------------------------------------------------------------- */
.yt-display { font-size: var(--yt-fs-display); line-height: var(--yt-lh-tight); letter-spacing: -.025em; font-weight: 600; }
.yt-h1 { font-size: var(--yt-fs-h1); letter-spacing: -.02em; }
.yt-h2 { font-size: var(--yt-fs-h2); letter-spacing: -.015em; }
.yt-h3 { font-size: var(--yt-fs-h3); letter-spacing: -.01em; }
.yt-h4 { font-size: var(--yt-fs-h4); }
.yt-h5 { font-size: var(--yt-fs-h5); }
.yt-h6 { font-size: var(--yt-fs-h6); }
/* Never track Arabic: letter-spacing breaks joined letterforms. */
.yt-page:lang(ar) :is(.yt-display, .yt-h1, .yt-h2, .yt-h3) { letter-spacing: 0; }
.yt-page:lang(ar) .yt-display { font-weight: 600; }

.yt-lead { font-size: var(--yt-fs-lead); color: var(--yt-muted); max-width: 38em; }
.yt-small { font-size: var(--yt-fs-small); }
.yt-caption { font-size: var(--yt-fs-caption); color: var(--yt-subtle); }

/* Eyebrow: a ring-and-rule mark taken from the logo's terminals. */
.yt-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--yt-font-mono); font-size: .78rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .08em; color: var(--yt-ocean);
}
.yt-page:lang(ar) .yt-eyebrow { font-family: var(--yt-font-body); font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.yt-eyebrow::before {
    content: ""; width: 9px; height: 9px; flex: none;
    border: 2px solid currentColor; border-radius: 50%;
    box-shadow: 0 0 0 0 transparent;
}
.yt-eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; order: -1; display: none; }
.yt-on-ink .yt-eyebrow { color: var(--yt-sky); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.yt-container { width: 100%; max-width: calc(var(--yt-container) + 2 * var(--yt-page-pad)); margin-inline: auto; padding-inline: var(--yt-page-pad); }
.yt-container--wide { max-width: calc(var(--yt-container-wide) + 2 * var(--yt-page-pad)); }
.yt-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--yt-gutter); }

.yt-section { padding-block: var(--yt-section); position: relative; }
.yt-surface-paper { background: var(--yt-paper); }
.yt-surface-white { background: var(--yt-surface); }
.yt-surface-ink { background: var(--yt-ink); color: var(--yt-on-ink); }
.yt-on-ink .yt-lead, .yt-on-ink .yt-muted { color: var(--yt-on-ink-muted); }

/* Section header: title on the start side, lead pushed to the end. */
.yt-head { display: grid; gap: var(--yt-s-5); margin-bottom: clamp(40px, 5vw, 72px); }
.yt-head__title { display: grid; gap: var(--yt-s-4); }
@media (min-width: 960px) {
    .yt-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--yt-gutter); align-items: end; }
    .yt-head__title { grid-column: 1 / span 7; }
    .yt-head__lead { grid-column: 9 / span 4; }
}

/* Ledger texture: faint ruled grid, used behind product frames only. */
.yt-ledger {
    background-image:
        linear-gradient(to right, rgba(11, 34, 54, .055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11, 34, 54, .055) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: center top;
}
.yt-on-ink.yt-ledger, .yt-on-ink .yt-ledger {
    background-image:
        linear-gradient(to right, rgba(110, 198, 240, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(110, 198, 240, .07) 1px, transparent 1px);
}

/* --------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */

/* 5.1 Brand lockup — official mark + product name set in type.
   The mark image is never recoloured, cropped or filtered. */
.yt-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--yt-ink); min-height: 44px; }
.yt-brand__mark { width: auto; height: 34px; flex: none; }
.yt-brand__name { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--yt-font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1; direction: ltr; }
.yt-brand__product {
    font-family: var(--yt-font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em;
    color: var(--yt-ocean); padding-inline-start: 8px; border-inline-start: 1px solid var(--yt-line-strong);
}
.yt-brand--lg .yt-brand__mark { height: 44px; }
.yt-brand--lg .yt-brand__name { font-size: 1.5rem; }

/* 5.2 Buttons */
.yt-btn {
    --_bg: transparent; --_fg: var(--yt-ink); --_bd: transparent;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px; border-radius: var(--yt-r-2);
    background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
    font-family: var(--yt-font-body); font-size: .975rem; font-weight: 600; line-height: 1.2; text-align: center;
    transition: background-color var(--yt-dur-2) var(--yt-ease), border-color var(--yt-dur-2) var(--yt-ease), color var(--yt-dur-2) var(--yt-ease), transform var(--yt-dur-1) var(--yt-ease);
    -webkit-tap-highlight-color: transparent;
    text-decoration: none; white-space: nowrap;
}
.yt-btn:active { transform: translateY(1px); }
.yt-btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--yt-dur-2) var(--yt-ease); }
.yt-btn:hover .yt-btn__arrow { transform: translateX(3px); }
[dir="rtl"] .yt-btn:hover .yt-btn__arrow { transform: scaleX(-1) translateX(3px); }

.yt-btn--primary { --_bg: var(--yt-deep); --_fg: #fff; --_bd: var(--yt-deep); }
.yt-btn--primary:hover { --_bg: var(--yt-deep-hover); --_bd: var(--yt-deep-hover); }
.yt-btn--primary:active { --_bg: var(--yt-deep-press); }
.yt-btn--secondary { --_bg: transparent; --_fg: var(--yt-ink); --_bd: var(--yt-line-strong); }
.yt-btn--secondary:hover { --_bd: var(--yt-ink); --_bg: rgba(11, 34, 54, .03); }
.yt-btn--paper { --_bg: var(--yt-paper); --_fg: var(--yt-ink); --_bd: var(--yt-paper); }
.yt-btn--paper:hover { --_bg: #fff; --_bd: #fff; }
.yt-btn--ghost-ink { --_fg: var(--yt-on-ink); --_bd: var(--yt-line-ink); }
.yt-btn--ghost-ink:hover { --_bd: var(--yt-on-ink); }
.yt-btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.yt-btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.yt-btn--block { width: 100%; }
.yt-btn[disabled], .yt-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.yt-btn.is-loading { color: transparent !important; pointer-events: none; }
.yt-btn.is-loading::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
    border: 2px solid currentColor; border-color: var(--_fg) var(--_fg) var(--_fg) transparent; border-radius: 50%;
    animation: yt-spin .7s linear infinite;
}
.yt-btn.is-loading .yt-btn__label-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--_fg); padding-inline-start: 28px; }
@keyframes yt-spin { to { transform: rotate(360deg); } }

/* Text link with an underline that draws in. */
.yt-link {
    color: var(--yt-ocean); font-weight: 600;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
    transition: background-size var(--yt-dur-2) var(--yt-ease);
}
[dir="rtl"] .yt-link { background-position: 100% 100%; }
.yt-link:hover { background-size: 100% 1px; }
.yt-on-ink .yt-link { color: var(--yt-sky); }

/* 5.3 Language switch — a single toggle to the other language. */
.yt-lang {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
    border-radius: var(--yt-r-2); color: var(--yt-muted); font-size: .9rem; font-weight: 500;
    border: 1px solid transparent; transition: border-color var(--yt-dur-2) var(--yt-ease), color var(--yt-dur-2);
}
.yt-lang:hover { color: var(--yt-ink); border-color: var(--yt-line); }
.yt-lang svg { width: 17px; height: 17px; }
.yt-lang[lang="ar"] { font-family: var(--yt-font-body); }

/* 5.4 Header + navigation */
.yt-header {
    position: sticky; top: 0; z-index: 50; background: var(--yt-paper);
    border-bottom: 1px solid transparent; transition: border-color var(--yt-dur-2) var(--yt-ease);
}
.yt-header.is-scrolled { border-bottom-color: var(--yt-line); }
.yt-header__bar { display: flex; align-items: center; gap: var(--yt-s-5); height: var(--yt-header-h); }
.yt-nav { display: none; margin-inline-start: var(--yt-s-5); }
.yt-nav__list { display: flex; gap: 4px; }
.yt-nav__link {
    position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
    font-size: .95rem; font-weight: 500; color: var(--yt-muted); border-radius: var(--yt-r-1);
    transition: color var(--yt-dur-2) var(--yt-ease);
}
.yt-nav__link::after {
    content: ""; position: absolute; inset-inline: 12px; bottom: 6px; height: 2px; background: var(--yt-brand);
    transform: scaleX(0); transform-origin: var(--_origin, left); transition: transform var(--yt-dur-2) var(--yt-ease);
}
[dir="rtl"] .yt-nav__link::after { --_origin: right; }
.yt-nav__link:hover, .yt-nav__link[aria-current="true"] { color: var(--yt-ink); }
.yt-nav__link:hover::after, .yt-nav__link[aria-current="true"]::after { transform: scaleX(1); }
.yt-header__actions { display: flex; align-items: center; gap: var(--yt-s-2); margin-inline-start: auto; }
.yt-header__login { display: none; }
.yt-header__cta { display: none; }
.yt-menu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px;
    border: 1px solid var(--yt-line-strong); border-radius: var(--yt-r-2); background: transparent; font-weight: 600; font-size: .9rem;
}
.yt-menu-btn svg { width: 20px; height: 20px; }
@media (min-width: 1080px) {
    .yt-nav { display: block; }
    .yt-header__login, .yt-header__cta { display: inline-flex; }
    .yt-menu-btn { display: none; }
}
@media (min-width: 640px) and (max-width: 1079px) {
    .yt-header__cta { display: inline-flex; }
}

/* Mobile drawer: full sheet under the header, large targets. */
.yt-drawer {
    position: fixed; inset: var(--yt-header-h) 0 0 0; z-index: 49; background: var(--yt-paper);
    display: flex; flex-direction: column; padding: var(--yt-s-5) var(--yt-page-pad) calc(var(--yt-s-5) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--yt-line); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--yt-dur-2) var(--yt-ease), transform var(--yt-dur-2) var(--yt-ease), visibility 0s linear var(--yt-dur-2);
}
.yt-drawer.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.yt-drawer__list { display: grid; border-top: 1px solid var(--yt-line); }
.yt-drawer__link {
    display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--yt-line);
    font-family: var(--yt-font-display); font-size: 1.375rem; font-weight: 500;
}
.yt-drawer__link svg { width: 20px; height: 20px; color: var(--yt-subtle); }
.yt-drawer__actions { display: grid; gap: var(--yt-s-3); margin-top: auto; padding-top: var(--yt-s-6); }
@media (min-width: 1080px) { .yt-drawer { display: none; } }
body.yt-lock { overflow: hidden; }

/* 5.5 Ring node — the logo terminal, used as a list/flow marker. */
.yt-node {
    --_c: var(--yt-brand);
    width: 14px; height: 14px; flex: none; border-radius: 50%;
    border: 2px solid var(--_c); background: var(--yt-surface);
}
.yt-node--fill { background: var(--_c); box-shadow: inset 0 0 0 3px var(--yt-surface); }
.yt-on-ink .yt-node { --_c: var(--yt-sky); background: var(--yt-ink); }
.yt-on-ink .yt-node--fill { background: var(--yt-sky); box-shadow: inset 0 0 0 3px var(--yt-ink); }

/* Flow: nodes joined by a rule — "this leads to that". */
.yt-flow { display: flex; flex-wrap: wrap; row-gap: var(--yt-s-4); }
.yt-flow__step { position: relative; flex: 1 1 0; min-width: 64px; display: grid; gap: 10px; padding-inline-end: var(--yt-s-3); }
.yt-flow__step::before {
    content: ""; position: absolute; top: 6px; inset-inline-start: 14px; inset-inline-end: 0; height: 2px; background: currentColor; opacity: .28;
}
.yt-flow__step:last-child::before { display: none; }
.yt-flow__label { font-size: .9rem; font-weight: 500; }

/* Tag: square status marker, not a pill. */
.yt-tag {
    --_c: var(--yt-subtle);
    display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--_c); white-space: nowrap;
}
.yt-tag::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: currentColor; }
.yt-tag--ok { --_c: var(--yt-success); }
.yt-tag--warn { --_c: var(--yt-amber-text); }
.yt-tag--err { --_c: var(--yt-error); }
.yt-tag--info { --_c: var(--yt-ocean); }

/* 5.6 Product frame + sheet (compact data table used in previews). */
.yt-frame {
    background: var(--yt-surface); border: 1px solid var(--yt-line); border-radius: var(--yt-r-3);
    box-shadow: var(--yt-shadow-frame); overflow: hidden; color: var(--yt-ink);
}
.yt-frame__bar {
    display: flex; align-items: center; gap: var(--yt-s-3); min-height: 48px; padding: 0 var(--yt-s-4);
    border-bottom: 1px solid var(--yt-line); background: #fbfaf7; font-size: .85rem; color: var(--yt-subtle);
}
.yt-frame__crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.yt-frame__crumbs span + span::before { content: "/"; margin-inline-end: 8px; color: var(--yt-line-strong); }
.yt-frame__crumbs strong { color: var(--yt-ink); font-weight: 600; }

.yt-sheet { width: 100%; border-collapse: collapse; font-size: .85rem; }
.yt-sheet th {
    text-align: start; font-weight: 500; font-size: .75rem; color: var(--yt-subtle);
    padding: 10px 12px; border-bottom: 1px solid var(--yt-line); white-space: nowrap;
}
.yt-page:lang(en) .yt-sheet th { text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; }
.yt-sheet td { padding: 11px 12px; border-bottom: 1px solid #efece5; vertical-align: middle; }
.yt-sheet tr:last-child td { border-bottom: 0; }
.yt-sheet .is-num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yt-sheet .is-code { font-family: var(--yt-font-mono); font-size: .8rem; color: var(--yt-ocean); white-space: nowrap; }
.yt-sheet td.is-zero { color: var(--yt-error); font-weight: 600; }

/* 5.7 Forms */
.yt-form { display: grid; gap: var(--yt-s-5); }
.yt-field { display: grid; gap: 8px; align-content: start; }
.yt-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--yt-ink); }
.yt-label__meta { font-size: .78rem; font-weight: 500; color: var(--yt-subtle); }
.yt-label__req { color: var(--yt-error); margin-inline-start: 2px; }
.yt-hint { font-size: .8125rem; color: var(--yt-subtle); line-height: 1.5; }
.yt-input, .yt-select {
    width: 100%; min-height: 48px; padding: 0 14px;
    background: var(--yt-surface); border: 1px solid var(--yt-line-strong); border-radius: var(--yt-r-2);
    font-size: 1rem; color: var(--yt-ink); line-height: 1.4;
    transition: border-color var(--yt-dur-1) var(--yt-ease), box-shadow var(--yt-dur-1) var(--yt-ease);
    -webkit-appearance: none; appearance: none;
}
.yt-input::placeholder { color: #8b949c; opacity: 1; }
.yt-input:hover, .yt-select:hover { border-color: var(--yt-muted); }
.yt-input:focus, .yt-select:focus { outline: none; border-color: var(--yt-deep); box-shadow: 0 0 0 3px var(--yt-sky-wash); }
.yt-input[disabled] { background: var(--yt-paper); color: var(--yt-subtle); cursor: not-allowed; }
.yt-input[dir="ltr"] { text-align: left; }
[dir="rtl"] .yt-input[dir="ltr"] { text-align: right; }
.yt-select {
    padding-inline-end: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234a5a69' stroke-width='1.6'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: 18px; background-position: right 14px center;
}
[dir="rtl"] .yt-select { background-position: left 14px center; }

.yt-field.is-invalid .yt-input, .yt-field.is-invalid .yt-select, .yt-input.is-invalid { border-color: var(--yt-error); }
.yt-field.is-invalid .yt-input:focus { box-shadow: 0 0 0 3px var(--yt-error-wash); }
.yt-field.is-valid .yt-input { border-color: var(--yt-success); }
.yt-error-msg { display: flex; gap: 6px; align-items: flex-start; font-size: .8125rem; font-weight: 500; color: var(--yt-error); line-height: 1.5; }
.yt-error-msg svg { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.yt-error-msg[hidden] { display: none; }

/* Password with visibility toggle. */
.yt-password { position: relative; }
.yt-password .yt-input { padding-inline-end: 52px; }
.yt-password__toggle {
    position: absolute; inset-block: 4px; inset-inline-end: 4px; width: 44px; display: grid; place-items: center;
    border: 0; background: transparent; color: var(--yt-subtle); border-radius: var(--yt-r-1);
}
.yt-password__toggle:hover { color: var(--yt-ink); }
.yt-password__toggle svg { width: 20px; height: 20px; }
.yt-password__toggle .is-hide { display: none; }
.yt-password__toggle[aria-pressed="true"] .is-show { display: none; }
.yt-password__toggle[aria-pressed="true"] .is-hide { display: block; }

/* Checkbox + radio. */
.yt-check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .925rem; line-height: 1.5; min-height: 24px; }
.yt-check input {
    -webkit-appearance: none; appearance: none; flex: none; margin: 1px 0 0; width: 20px; height: 20px;
    border: 1.5px solid var(--yt-line-strong); border-radius: var(--yt-r-1); background: var(--yt-surface);
    display: grid; place-items: center; cursor: pointer;
    transition: background-color var(--yt-dur-1), border-color var(--yt-dur-1);
}
.yt-check input:hover { border-color: var(--yt-muted); }
.yt-check input:checked {
    background: var(--yt-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10.5 3.2 3L15 7'/%3E%3C/svg%3E") center / 16px no-repeat;
    border-color: var(--yt-deep);
}
.yt-check input[type="radio"] { border-radius: 50%; }
.yt-check input[type="radio"]:checked { background: var(--yt-surface); box-shadow: inset 0 0 0 5px var(--yt-deep); }
.yt-check input:focus-visible { outline: 2px solid var(--yt-focus); outline-offset: 2px; }
.yt-check.is-invalid input { border-color: var(--yt-error); }

/* Switch (uses a checkbox with role="switch"). */
.yt-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: .925rem; min-height: 44px; }
.yt-switch input {
    -webkit-appearance: none; appearance: none; margin: 0; flex: none; position: relative; width: 42px; height: 24px; border-radius: 12px;
    background: var(--yt-line-strong); cursor: pointer; transition: background-color var(--yt-dur-2) var(--yt-ease);
}
.yt-switch input::after {
    content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform var(--yt-dur-2) var(--yt-ease);
}
.yt-switch input:checked { background: var(--yt-deep); }
.yt-switch input:checked::after { transform: translateX(18px); }
[dir="rtl"] .yt-switch input:checked::after { transform: translateX(-18px); }

/* File drop. */
.yt-file { position: relative; }
.yt-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.yt-file__zone {
    display: flex; align-items: center; gap: var(--yt-s-4); min-height: 76px; padding: 14px 16px;
    border: 1.5px dashed var(--yt-line-strong); border-radius: var(--yt-r-2); background: var(--yt-surface);
    transition: border-color var(--yt-dur-1), background-color var(--yt-dur-1);
}
.yt-file:hover .yt-file__zone, .yt-file input:focus-visible + .yt-file__zone, .yt-file.is-drag .yt-file__zone { border-color: var(--yt-deep); background: #fbfdff; }
.yt-file input:focus-visible + .yt-file__zone { outline: 2px solid var(--yt-focus); outline-offset: 2px; }
.yt-file__thumb { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: var(--yt-r-1); background: var(--yt-paper); color: var(--yt-subtle); overflow: hidden; }
.yt-file__thumb img { width: 100%; height: 100%; object-fit: contain; }
.yt-file__thumb svg { width: 22px; height: 22px; }
.yt-file__text { display: grid; gap: 2px; min-width: 0; }
.yt-file__name { font-weight: 600; font-size: .925rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-file__remove { position: relative; z-index: 2; margin-inline-start: auto; border: 0; background: none; color: var(--yt-error); font-weight: 600; font-size: .85rem; min-height: 40px; padding: 0 8px; }
.yt-file.is-invalid .yt-file__zone { border-color: var(--yt-error); }

/* 5.8 Alerts + dialog */
.yt-alert {
    --_c: var(--yt-ocean); --_bg: var(--yt-sky-wash);
    display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px;
    background: var(--_bg); border-inline-start: 3px solid var(--_c); border-radius: var(--yt-r-1); font-size: .9rem; line-height: 1.6;
}
.yt-alert svg { width: 20px; height: 20px; color: var(--_c); margin-top: 1px; }
.yt-alert__title { font-weight: 700; color: var(--yt-ink); }
.yt-alert__body { grid-column: 2; color: var(--yt-muted); }
.yt-alert__body ul { list-style: disc; padding-inline-start: 18px; display: grid; gap: 2px; }
.yt-alert--error { --_c: var(--yt-error); --_bg: var(--yt-error-wash); }
.yt-alert[tabindex="-1"]:focus { outline: none; box-shadow: 0 0 0 2px var(--yt-error-wash), 0 0 0 3px var(--yt-error); }
.yt-alert--success { --_c: var(--yt-success); --_bg: var(--yt-success-wash); }
.yt-alert--warn { --_c: var(--yt-warning); --_bg: var(--yt-warning-wash); }

.yt-dialog {
    width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--yt-r-3);
    background: var(--yt-surface); color: var(--yt-ink); box-shadow: var(--yt-shadow-pop);
}
.yt-dialog::backdrop { background: rgba(11, 34, 54, .55); }
.yt-dialog[open] { animation: yt-pop var(--yt-dur-2) var(--yt-ease); }
.yt-dialog__body { padding: 32px 28px 28px; display: grid; gap: 14px; }
.yt-dialog__mark { display: flex; align-items: center; gap: 12px; color: var(--yt-success); font-weight: 700; font-size: .9rem; }
.yt-dialog__mark .yt-node { --_c: var(--yt-success); width: 18px; height: 18px; }
.yt-dialog__actions { display: flex; justify-content: flex-end; padding-top: 8px; }
@keyframes yt-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* 5.9 Disclosure (FAQ + module index share the marker). */
.yt-disclosure__icon { position: relative; width: 22px; height: 22px; flex: none; border: 1.5px solid currentColor; border-radius: 50%; opacity: .7; }
.yt-disclosure__icon::before, .yt-disclosure__icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 1.5px; background: currentColor; transition: transform var(--yt-dur-2) var(--yt-ease); }
.yt-disclosure__icon::after { transform: rotate(90deg); }
details[open] > summary .yt-disclosure__icon::after { transform: rotate(0deg); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* 5.10 Reveal motion (only when JS is on and motion is allowed). */
@media (prefers-reduced-motion: no-preference) {
    .yt-js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--yt-dur-3) var(--yt-ease), transform var(--yt-dur-3) var(--yt-ease); transition-delay: var(--yt-delay, 0ms); }
    .yt-js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html.yt-html { scroll-behavior: auto; }
    .yt-page *, .yt-page *::before, .yt-page *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ==========================================================================
   6. Landing page
   ========================================================================== */

/* 6.1 Hero */
.yt-hero { padding-top: clamp(28px, 4vw, 56px); }
.yt-masthead {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
    padding-block: 12px; border-top: 2px solid var(--yt-ink); border-bottom: 1px solid var(--yt-line);
    font-family: var(--yt-font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--yt-muted);
}
.yt-page:lang(ar) .yt-masthead { font-family: var(--yt-font-body); font-size: .875rem; letter-spacing: 0; text-transform: none; }
.yt-hero__grid { display: grid; gap: var(--yt-s-6); padding-block: clamp(32px, 5vw, 72px) clamp(40px, 5vw, 64px); }
.yt-hero__title { max-width: 16ch; }
.yt-page:lang(ar) .yt-hero__title { max-width: none; }
.yt-hero__title span { display: block; }
.yt-hero__title .is-second { color: var(--yt-deep); font-weight: 400; }
.yt-hero__side { display: grid; gap: var(--yt-s-5); align-content: end; }
.yt-hero__actions { display: flex; flex-wrap: wrap; gap: var(--yt-s-3); }
.yt-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--yt-line); }
.yt-facts li { padding: 14px 0 0; padding-inline-end: 12px; display: grid; gap: 4px; align-content: start; }
.yt-facts li + li { padding-inline-start: 14px; border-inline-start: 1px solid var(--yt-line); }
.yt-facts strong { font-family: var(--yt-font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.yt-facts span { font-size: .8125rem; color: var(--yt-subtle); line-height: 1.45; }
@media (min-width: 1200px) {
    .yt-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--yt-gutter); align-items: end; }
    .yt-hero__headline { grid-column: 1 / span 7; }
    .yt-hero__side { grid-column: 8 / span 5; }
}
@media (max-width: 520px) {
    .yt-facts { grid-template-columns: 1fr; }
    .yt-facts li { grid-template-columns: 7.5rem 1fr; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--yt-line); }
    .yt-facts li + li { padding-inline-start: 0; border-inline-start: 0; }
    .yt-hero__actions .yt-btn { width: 100%; }
}

/* Product stage under the hero copy. */
.yt-stage { position: relative; padding-block: clamp(32px, 4vw, 56px) 0; }
.yt-stage::before { content: ""; position: absolute; inset: 0 0 35% 0; z-index: 0; }
.yt-stage > * { position: relative; z-index: 1; }
.yt-stage__note { margin-top: 12px; text-align: end; }

.yt-invoice { display: grid; }
.yt-invoice__main { padding: clamp(18px, 2.4vw, 32px); display: grid; gap: var(--yt-s-5); min-width: 0; }
.yt-invoice__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
.yt-invoice__no { font-family: var(--yt-font-mono); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; color: var(--yt-ink); direction: ltr; }
.yt-invoice__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; padding-block: 14px; border-block: 1px solid var(--yt-line); }
.yt-invoice__meta dt { font-size: .75rem; color: var(--yt-subtle); }
.yt-invoice__meta dd { margin: 2px 0 0; font-weight: 600; font-size: .9rem; }
.yt-invoice__totals { display: grid; gap: 6px; justify-self: end; width: min(100%, 340px); font-size: .9rem; }
.yt-invoice__totals div { display: flex; justify-content: space-between; gap: 16px; }
.yt-invoice__totals dt { color: var(--yt-muted); }
.yt-invoice__totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }
.yt-invoice__totals .is-total { padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--yt-ink); font-weight: 700; font-size: 1rem; }
.yt-invoice__totals .is-total dd { font-weight: 700; }
.yt-invoice__totals .is-due dd { color: var(--yt-amber-text); font-weight: 700; }

.yt-trail { background: #fbfaf7; border-top: 1px solid var(--yt-line); padding: clamp(18px, 2.4vw, 28px); }
.yt-trail__title { font-size: .78rem; font-weight: 600; color: var(--yt-subtle); margin-bottom: 18px; }
.yt-page:lang(en) .yt-trail__title { text-transform: uppercase; letter-spacing: .08em; font-family: var(--yt-font-mono); font-weight: 500; }
.yt-trail ol { display: grid; }
.yt-trail li { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding-bottom: 20px; }
.yt-trail li:last-child { padding-bottom: 0; }
.yt-trail li::before { content: ""; position: absolute; inset-inline-start: 6px; top: 16px; bottom: 0; width: 2px; background: var(--yt-line-strong); }
.yt-trail li:last-child::before { display: none; }
.yt-trail .yt-node { margin-top: 3px; position: relative; z-index: 1; }
.yt-trail li.is-current .yt-node { --_c: var(--yt-deep); }
.yt-trail__doc { font-weight: 600; font-size: .9rem; line-height: 1.4; }
.yt-trail__ref { font-family: var(--yt-font-mono); font-size: .78rem; color: var(--yt-ocean); }
.yt-page:lang(ar) .yt-trail__ref { font-family: var(--yt-font-body); }
.yt-trail__note { font-size: .78rem; color: var(--yt-subtle); }
.yt-trail li.is-current .yt-trail__doc { color: var(--yt-deep); }
@media (min-width: 900px) {
    .yt-invoice { grid-template-columns: minmax(0, 1fr) 300px; }
    .yt-trail { border-top: 0; border-inline-start: 1px solid var(--yt-line); }
}
@media (max-width: 640px) {
    .yt-invoice__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .yt-invoice__meta div:last-child { grid-column: 1 / -1; }
    .yt-invoice .yt-sheet .is-price { display: none; }
    .yt-frame__bar .yt-tag { display: none; }
}

/* 6.2 Problems — comparison ledger */
.yt-problems__title { max-width: 22ch; }
.yt-compare { border-top: 2px solid var(--yt-ink); counter-reset: yt-row; }
.yt-compare__head { display: none; }
.yt-compare__row { display: grid; gap: 10px; padding-block: 22px; border-bottom: 1px solid var(--yt-line); counter-increment: yt-row; }
.yt-compare__no { font-family: var(--yt-font-mono); font-size: .8rem; color: var(--yt-subtle); }
.yt-compare__no::before { content: counter(yt-row, decimal-leading-zero); }
.yt-compare__before { color: var(--yt-subtle); font-size: .975rem; }
.yt-compare__after { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 1.05rem; color: var(--yt-ink); }
.yt-compare__after .yt-node { margin-top: .45em; }
@media (min-width: 900px) {
    .yt-compare__head, .yt-compare__row { display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--yt-gutter); align-items: baseline; }
    .yt-compare__head { padding-block: 12px; border-bottom: 1px solid var(--yt-line); font-size: .8rem; font-weight: 600; color: var(--yt-subtle); }
    .yt-compare__head span:first-child { grid-column: 2; }
    .yt-compare__head .is-after { color: var(--yt-ocean); }
    .yt-compare__row { padding-block: 26px; transition: background-color var(--yt-dur-2) var(--yt-ease); }
    .yt-compare__row:hover { background: linear-gradient(to right, transparent, rgba(227, 242, 250, .55), transparent); }
}

/* 6.3 Industries — dark band with tabbed explorer */
.yt-industries .yt-head__lead { color: var(--yt-on-ink-muted); }
.yt-ind { display: grid; gap: var(--yt-s-6); }
.yt-ind__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.yt-ind__tab {
    position: relative; display: grid; gap: 4px; text-align: start; padding: 14px 16px; min-height: 64px;
    background: transparent; border: 1px solid var(--yt-line-ink); border-radius: var(--yt-r-2); color: var(--yt-on-ink-muted);
    transition: border-color var(--yt-dur-2) var(--yt-ease), background-color var(--yt-dur-2) var(--yt-ease), color var(--yt-dur-2);
}
.yt-ind__tab:hover { color: var(--yt-on-ink); border-color: rgba(255, 255, 255, .32); }
.yt-ind__tab[aria-selected="true"] { color: var(--yt-on-ink); background: var(--yt-ink-2); border-color: var(--yt-sky); }
.yt-ind__no { font-family: var(--yt-font-mono); font-size: .75rem; color: var(--yt-sky); }
.yt-ind__name { font-family: var(--yt-font-display); font-weight: 500; font-size: 1.02rem; line-height: 1.35; }
.yt-ind__tab-pitch { display: none; font-size: .85rem; line-height: 1.5; color: var(--yt-on-ink-muted); }
.yt-ind__tabs > :last-child:nth-child(odd) { grid-column: 1 / -1; }

.yt-ind__panel { display: grid; gap: var(--yt-s-6); }
.yt-ind__panel[hidden] { display: none; }
.yt-ind__pitch { font-family: var(--yt-font-display); font-size: var(--yt-fs-h3); font-weight: 500; line-height: var(--yt-lh-heading); color: var(--yt-on-ink); max-width: 28ch; }
.yt-ind__body { color: var(--yt-on-ink-muted); max-width: 52ch; }
.yt-ind__label { font-size: .75rem; font-weight: 600; color: var(--yt-sky); margin-bottom: 14px; }
.yt-page:lang(en) .yt-ind__label { font-family: var(--yt-font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.yt-ind .yt-flow { color: var(--yt-sky); }
.yt-ind .yt-flow__label { color: var(--yt-on-ink); }
.yt-ind__mods { columns: 2; column-gap: var(--yt-gutter); }
.yt-ind__mods li { break-inside: avoid; display: flex; gap: 10px; align-items: baseline; padding-block: 7px; border-bottom: 1px solid var(--yt-line-ink); font-size: .925rem; }
.yt-ind__mods li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--yt-sky); transform: translateY(-2px); }
.yt-ind__preview .yt-frame { box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); border-color: transparent; }
.yt-ind__preview-note svg { width: 16px; height: 16px; flex: none; }
.yt-ind__preview-note { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--yt-line); font-size: .8rem; color: var(--yt-muted); background: #fbfaf7; }
.yt-ind__cta { justify-self: start; }
@media (min-width: 1000px) {
    .yt-ind { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--yt-gutter); align-items: start; }
    .yt-ind__tabs { grid-column: 1 / span 4; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--yt-line-ink); }
    .yt-ind__tabs > :last-child:nth-child(odd) { grid-column: auto; }
    .yt-ind__tab { border: 0; border-bottom: 1px solid var(--yt-line-ink); border-radius: 0; padding: 20px 4px; padding-inline-start: 20px; background: transparent; }
    .yt-ind__tab::before { content: ""; position: absolute; inset-block: -1px; inset-inline-start: 0; width: 3px; background: var(--yt-sky); transform: scaleY(0); transition: transform var(--yt-dur-2) var(--yt-ease); }
    .yt-ind__tab[aria-selected="true"] { background: transparent; }
    .yt-ind__tab[aria-selected="true"]::before { transform: scaleY(1); }
    .yt-ind__tab[aria-selected="true"] .yt-ind__tab-pitch { display: block; }
    .yt-ind__panels { grid-column: 6 / span 7; }
    .yt-ind__panel { grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: var(--yt-gutter); row-gap: var(--yt-s-6); }
    .yt-ind__panel > * { grid-column: 1 / -1; }
    .yt-ind__mods-wrap { grid-column: 1 / span 3 !important; }
    .yt-ind__preview { grid-column: 4 / span 4 !important; }
    .yt-ind__mods { columns: 1; }
}
@media (prefers-reduced-motion: no-preference) {
    .yt-js .yt-ind__panel:not([hidden]) { animation: yt-fade var(--yt-dur-3) var(--yt-ease); }
}
@keyframes yt-fade { from { opacity: 0; transform: translateY(6px); } }

/* 6.4 Module index — table of contents with disclosure */
.yt-index { border-top: 2px solid var(--yt-ink); }
.yt-index__item { border-bottom: 1px solid var(--yt-line); }
.yt-index__summary {
    display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
    padding-block: 20px; min-height: 64px;
}
.yt-index__summary:hover .yt-index__name { color: var(--yt-deep); }
.yt-index__no { font-family: var(--yt-font-mono); font-size: .8rem; color: var(--yt-subtle); }
.yt-index__name { font-family: var(--yt-font-display); font-size: clamp(1.15rem, 1rem + .9vw, 1.65rem); font-weight: 500; line-height: 1.3; transition: color var(--yt-dur-2); }
.yt-index__summary-text { display: none; color: var(--yt-subtle); font-size: .925rem; }
.yt-index__count { font-family: var(--yt-font-mono); font-size: .78rem; color: var(--yt-subtle); white-space: nowrap; }
.yt-page:lang(ar) .yt-index__count { font-family: var(--yt-font-body); font-size: .85rem; }
.yt-index__body { padding: 0 0 28px; padding-inline-start: calc(2.5rem + 12px); }
.yt-index__mods { columns: 1; column-gap: var(--yt-gutter); }
.yt-index__mods li { break-inside: avoid; padding-block: 9px; border-top: 1px solid var(--yt-line); font-size: .95rem; display: flex; gap: 10px; align-items: baseline; }
.yt-index__mods li::before { content: ""; width: 6px; height: 6px; background: var(--yt-brand); flex: none; transform: translateY(-2px); }
.yt-index__item[open] .yt-index__summary { padding-bottom: 16px; }
@media (min-width: 640px) { .yt-index__mods { columns: 2; } }
@media (min-width: 1000px) {
    .yt-index__summary { grid-template-columns: 3.5rem minmax(0, 4fr) minmax(0, 5fr) 7rem auto; gap: var(--yt-gutter); }
    .yt-index__summary-text { display: block; }
    .yt-index__body { padding-inline-start: calc(3.5rem + var(--yt-gutter)); }
    .yt-index__mods { columns: 3; }
}

/* 6.5 Showcase — editorial figure grid */
.yt-figs { display: grid; gap: clamp(28px, 3vw, 40px) var(--yt-gutter); align-items: start; }
.yt-fig { margin: 0; display: grid; gap: 14px; align-content: start; min-width: 0; }
.yt-fig figcaption { display: flex; gap: 10px; align-items: baseline; font-size: .875rem; color: var(--yt-muted); }
.yt-fig figcaption b { font-family: var(--yt-font-mono); font-weight: 500; font-size: .78rem; color: var(--yt-ocean); white-space: nowrap; }
.yt-page:lang(ar) .yt-fig figcaption b { font-family: var(--yt-font-body); font-weight: 700; font-size: .85rem; }
.yt-fig .yt-frame { box-shadow: var(--yt-shadow-1); }
@media (min-width: 1000px) {
    .yt-figs { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .yt-fig--dash { grid-column: 1 / span 8; }
    .yt-fig--acct { grid-column: 9 / span 4; }
    .yt-fig--inv { grid-column: 1 / span 5; }
    .yt-fig--crm { grid-column: 6 / span 7; }
}
.yt-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--yt-line); }
.yt-kpis div { padding: 16px; display: grid; gap: 2px; }
.yt-kpis div:nth-child(odd) { border-inline-end: 1px solid var(--yt-line); }
.yt-kpis div:nth-child(-n+2) { border-bottom: 1px solid var(--yt-line); }
.yt-kpis dt { font-size: .75rem; color: var(--yt-subtle); }
.yt-kpis dd { margin: 0; font-family: var(--yt-font-display); font-weight: 600; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.yt-kpis dd small { font-family: var(--yt-font-body); font-size: .75rem; font-weight: 500; color: var(--yt-subtle); margin-inline-start: 4px; }
@media (min-width: 700px) {
    .yt-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .yt-kpis div { border-bottom: 0 !important; border-inline-end: 1px solid var(--yt-line); }
    .yt-kpis div:last-child { border-inline-end: 0; }
}
.yt-fig__sub { padding: 12px 16px 4px; font-size: .78rem; font-weight: 600; color: var(--yt-subtle); }
.yt-fig__item { padding: 14px 16px; border-bottom: 1px solid var(--yt-line); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.yt-fig__item strong { font-weight: 600; }
.yt-ledger-total td { border-top: 1px solid var(--yt-ink) !important; font-weight: 700; }
.yt-balanced svg { width: 16px; height: 16px; }
.yt-balanced { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--yt-line); font-size: .8rem; color: var(--yt-success); font-weight: 600; }
.yt-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--yt-line); }
.yt-board__col { background: #fbfaf7; padding: 12px; display: grid; gap: 8px; align-content: start; min-height: 150px; }
.yt-board__head { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 600; color: var(--yt-subtle); padding-bottom: 4px; }
.yt-board__card { background: var(--yt-surface); border: 1px solid var(--yt-line); border-radius: var(--yt-r-1); padding: 10px 12px; font-size: .82rem; line-height: 1.45; }
.yt-board__col.is-won .yt-board__card { border-inline-start: 3px solid var(--yt-success); }
@media (min-width: 700px) { .yt-board { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 6.6 Steps — node track */
.yt-track { display: grid; gap: 0; counter-reset: yt-step; }
.yt-track__step { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 0 18px; padding-bottom: 32px; counter-increment: yt-step; }
.yt-track__step:last-child { padding-bottom: 0; }
.yt-track__step::before { content: ""; position: absolute; inset-inline-start: 13px; top: 28px; bottom: 0; width: 2px; background: var(--yt-line-strong); }
.yt-track__step:last-child::before { display: none; }
.yt-track__node {
    position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--yt-brand); background: var(--yt-paper);
    display: grid; place-items: center; font-family: var(--yt-font-mono); font-size: .75rem; font-weight: 500; color: var(--yt-deep);
}
.yt-track__node::before { content: counter(yt-step); }
.yt-track__step:last-child .yt-track__node { background: var(--yt-deep); border-color: var(--yt-deep); color: #fff; }
.yt-track__title { font-size: var(--yt-fs-h4); margin-bottom: 6px; padding-top: 1px; }
.yt-track__body { color: var(--yt-muted); font-size: .95rem; max-width: 34ch; }
@media (min-width: 900px) {
    .yt-track { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--yt-gutter); }
    .yt-track__step { grid-template-columns: 1fr; gap: 20px; padding-bottom: 0; }
    .yt-track__step::before { inset-inline-start: 28px; inset-inline-end: calc(-1 * var(--yt-gutter)); top: 13px; bottom: auto; width: auto; height: 2px; }
    @media (prefers-reduced-motion: no-preference) {
        .yt-js .yt-track__step::before { transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--yt-ease); transition-delay: calc(var(--i, 0) * 160ms + 200ms); }
        [dir="rtl"].yt-js .yt-track__step::before, .yt-js [dir="rtl"] .yt-track__step::before { transform-origin: right; }
        .yt-js .yt-track.is-in .yt-track__step::before { transform: scaleX(1); }
    }
}

/* 6.7 Pricing — single price sheet */
.yt-price { display: grid; gap: var(--yt-s-6); }
.yt-price__sheet { background: var(--yt-surface); border: 1px solid var(--yt-line); border-top: 3px solid var(--yt-deep); border-radius: var(--yt-r-1) var(--yt-r-1) var(--yt-r-3) var(--yt-r-3); padding: clamp(20px, 3vw, 40px); display: grid; gap: var(--yt-s-6); align-content: start; }
.yt-seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.yt-seg legend { font-size: .85rem; font-weight: 600; color: var(--yt-muted); margin-bottom: 10px; padding: 0; }
.yt-seg__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--yt-line-strong); border-radius: var(--yt-r-2); overflow: hidden; }
.yt-seg__opt { position: relative; }
.yt-seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.yt-seg__opt span {
    display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; font-weight: 600; font-size: .925rem; color: var(--yt-muted);
    border-inline-end: 1px solid var(--yt-line-strong); transition: background-color var(--yt-dur-2), color var(--yt-dur-2); text-align: center;
}
.yt-seg__opt:nth-child(2n) span { border-inline-end: 0; }
.yt-seg__opt:nth-child(-n+2) span { border-bottom: 1px solid var(--yt-line-strong); }
.yt-seg__opt input:hover + span { color: var(--yt-ink); background: var(--yt-paper); }
.yt-seg__opt input:checked + span { background: var(--yt-ink); color: var(--yt-on-ink); }
.yt-seg__opt input:focus-visible + span { outline: 2px solid var(--yt-focus); outline-offset: -4px; }
@media (min-width: 560px) {
    .yt-seg__opts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .yt-seg__opt span { border-bottom: 0 !important; border-inline-end: 1px solid var(--yt-line-strong) !important; }
    .yt-seg__opt:last-child span { border-inline-end: 0 !important; }
}
.yt-price__panel[hidden] { display: none; }
.yt-price__figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.yt-price__amount { font-family: var(--yt-font-display); font-size: var(--yt-fs-price); font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; direction: ltr; }
.yt-price__unit { display: grid; gap: 2px; }
.yt-price__currency { font-weight: 700; font-size: 1.1rem; }
.yt-price__per { color: var(--yt-subtle); font-size: .9rem; }
.yt-price__billing { margin-top: 14px; display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--yt-muted); }
.yt-price__pending { display: grid; gap: 10px; padding: 4px 0; }
.yt-price__pending h3 { font-size: var(--yt-fs-h3); }
.yt-price__pending p { color: var(--yt-muted); max-width: 46ch; }
.yt-price__pending .yt-btn { justify-self: start; margin-top: 8px; }

.yt-estimator { display: grid; gap: 14px; padding-top: var(--yt-s-5); border-top: 1px dashed var(--yt-line-strong); }
.yt-estimator__row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.yt-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--yt-line-strong); border-radius: var(--yt-r-2); overflow: hidden; background: var(--yt-surface); }
.yt-stepper button { width: 48px; min-height: 48px; border: 0; background: transparent; font-size: 1.25rem; color: var(--yt-ink); }
.yt-stepper button:hover { background: var(--yt-paper); }
.yt-stepper input { width: 72px; border: 0; border-inline: 1px solid var(--yt-line-strong); text-align: center; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; background: transparent; }
.yt-stepper input::-webkit-outer-spin-button, .yt-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.yt-stepper input:focus { outline: 2px solid var(--yt-focus); outline-offset: -2px; }
.yt-estimate { display: grid; gap: 2px; text-align: end; }
.yt-estimate__label { font-size: .8rem; color: var(--yt-subtle); }
.yt-estimate__value { font-family: var(--yt-font-display); font-weight: 600; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.yt-estimate__value span { font-size: .95rem; font-weight: 500; color: var(--yt-muted); margin-inline-start: 6px; }

.yt-price__terms { display: grid; gap: var(--yt-s-6); align-content: start; }
.yt-terms h3 { font-size: var(--yt-fs-h5); margin-bottom: 14px; }
.yt-terms ul { display: grid; border-top: 1px solid var(--yt-line); }
.yt-terms li { display: flex; gap: 12px; align-items: flex-start; padding-block: 12px; border-bottom: 1px solid var(--yt-line); font-size: .95rem; }
.yt-terms li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--yt-success); }
.yt-terms--quoted li svg { color: var(--yt-amber-text); }
@media (min-width: 1000px) {
    .yt-price { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--yt-gutter); align-items: start; }
    .yt-price__sheet { grid-column: 1 / span 7; }
    .yt-price__terms { grid-column: 9 / span 4; }
}

/* 6.8 FAQ */
.yt-faq { display: grid; gap: var(--yt-s-6); }
.yt-faq__list { border-top: 2px solid var(--yt-ink); }
.yt-faq__item { border-bottom: 1px solid var(--yt-line); }
.yt-faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; min-height: 64px; font-family: var(--yt-font-display); font-weight: 500; font-size: 1.1rem; line-height: 1.45; }
.yt-faq__q:hover { color: var(--yt-deep); }
.yt-faq__a { padding-bottom: 24px; color: var(--yt-muted); max-width: 62ch; }
@media (min-width: 1000px) {
    .yt-faq { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--yt-gutter); }
    .yt-faq__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--yt-header-h) + 32px); align-self: start; }
    .yt-faq__list { grid-column: 6 / span 7; }
}

/* 6.9 Closing CTA */
.yt-close { overflow: hidden; }
.yt-close__grid { display: grid; gap: var(--yt-s-6); }
.yt-close__title { font-size: var(--yt-fs-h1); max-width: 18ch; }
.yt-close__body { color: var(--yt-on-ink-muted); font-size: var(--yt-fs-lead); max-width: 40ch; }
.yt-close__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.yt-close__rule { display: flex; align-items: center; gap: 0; color: var(--yt-sky); margin-bottom: var(--yt-s-5); }
.yt-close__rule i { display: block; height: 2px; flex: 1; background: currentColor; opacity: .35; }
.yt-close__rule .yt-node { --_c: var(--yt-sky); }
@media (min-width: 1000px) {
    .yt-close__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--yt-gutter); align-items: end; }
    .yt-close__main { grid-column: 1 / span 8; }
    .yt-close__side { grid-column: 9 / span 4; display: grid; gap: var(--yt-s-5); }
}

/* 6.10 Footer */
.yt-footer { background: var(--yt-paper-2); border-top: 1px solid var(--yt-line); padding-block: clamp(48px, 6vw, 80px) 28px; font-size: .925rem; }
.yt-footer__grid { display: grid; gap: var(--yt-s-6) var(--yt-gutter); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yt-footer__about { grid-column: 1 / -1; display: grid; gap: var(--yt-s-4); align-content: start; }
.yt-footer__about p { color: var(--yt-muted); max-width: 36ch; }
.yt-footer h2 { font-family: var(--yt-font-body); font-size: .8rem; font-weight: 700; color: var(--yt-subtle); margin-bottom: 12px; }
.yt-page:lang(en) .yt-footer h2 { text-transform: uppercase; letter-spacing: .08em; font-family: var(--yt-font-mono); font-weight: 500; }
.yt-footer__links { display: grid; gap: 2px; }
.yt-footer__links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--yt-ink); }
.yt-footer__links a:hover { color: var(--yt-ocean); }
.yt-footer__social { display: flex; gap: 8px; }
.yt-footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--yt-line-strong); border-radius: 50%; color: var(--yt-muted); }
.yt-footer__social a:hover { color: var(--yt-ink); border-color: var(--yt-ink); }
.yt-footer__social svg { width: 16px; height: 16px; }
.yt-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--yt-line-strong); color: var(--yt-subtle); font-size: .85rem; }
@media (min-width: 900px) {
    .yt-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .yt-footer__about { grid-column: 1 / span 4; padding-inline-end: var(--yt-gutter); }
    .yt-footer__col:nth-of-type(2) { grid-column: 5 / span 2; }
    .yt-footer__col:nth-of-type(3) { grid-column: 7 / span 2; }
    .yt-footer__col:nth-of-type(4) { grid-column: 9 / span 2; }
    .yt-footer__col:nth-of-type(5) { grid-column: 11 / span 2; }
}
@media (min-width: 900px) and (max-width: 1199px) {
    .yt-footer__about { grid-column: 1 / -1; }
    .yt-footer__col:nth-of-type(2) { grid-column: 1 / span 3; }
    .yt-footer__col:nth-of-type(3) { grid-column: 4 / span 3; }
    .yt-footer__col:nth-of-type(4) { grid-column: 7 / span 3; }
    .yt-footer__col:nth-of-type(5) { grid-column: 10 / span 3; }
}

/* ==========================================================================
   7. Authentication pages (login, forgot, reset)
   ========================================================================== */
.yt-auth { min-height: 100vh; min-height: 100dvh; display: grid; }
.yt-auth__main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 20px var(--yt-page-pad) 24px; background: var(--yt-paper); }
.yt-auth__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yt-auth__body { flex: 1; display: flex; align-items: center; padding-block: clamp(32px, 6vh, 72px); }
.yt-auth__card { width: 100%; max-width: 420px; margin-inline: auto; display: grid; gap: var(--yt-s-6); }
.yt-auth__head { display: grid; gap: 10px; }
.yt-auth__head h1 { font-size: var(--yt-fs-h2); }
.yt-auth__head p { color: var(--yt-muted); }
.yt-auth__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.yt-auth__alt { padding-top: var(--yt-s-5); border-top: 1px solid var(--yt-line); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .95rem; color: var(--yt-muted); }
.yt-auth__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; font-size: .825rem; color: var(--yt-subtle); }
.yt-auth__foot nav { display: flex; gap: 16px; }
.yt-auth__foot a:hover { color: var(--yt-ink); }
.yt-auth__back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: .9rem; color: var(--yt-muted); }
.yt-auth__back:hover { color: var(--yt-ink); }
.yt-auth__back svg { width: 16px; height: 16px; }

/* Brand panel: module bus diagram on ink. */
.yt-auth__panel { display: none; }
@media (min-width: 1000px) {
    .yt-auth { grid-template-columns: minmax(480px, 5fr) 7fr; }
    .yt-auth__panel { display: flex; flex-direction: column; justify-content: space-between; gap: var(--yt-s-7); padding: clamp(40px, 5vw, 72px); position: sticky; top: 0; height: 100vh; height: 100dvh; }
}
.yt-auth__panel-title { font-family: var(--yt-font-display); font-weight: 600; line-height: var(--yt-lh-heading); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem); max-width: 16ch; color: var(--yt-on-ink); text-wrap: balance; }
.yt-auth__panel-body { color: var(--yt-on-ink-muted); max-width: 44ch; margin-top: var(--yt-s-4); }
.yt-auth__panel-foot { display: flex; justify-content: space-between; gap: 16px; font-size: .8rem; color: var(--yt-on-ink-muted); }

.yt-bus { --_line: rgba(110, 198, 240, .45); --_gap: 14px; display: grid; grid-template-columns: auto 56px auto; align-items: center; max-width: 560px; }
.yt-bus__mods { display: grid; gap: var(--_gap); }
.yt-bus__mod { position: relative; display: flex; align-items: center; }
.yt-bus__mod span { padding: 10px 14px; border: 1px solid var(--yt-line-ink); border-radius: var(--yt-r-2); background: var(--yt-ink-2); font-size: .9rem; font-weight: 500; color: var(--yt-on-ink); white-space: nowrap; }
.yt-bus__mod::after { content: ""; flex: 1; min-width: 32px; height: 2px; background: var(--_line); }
/* Vertical bus: each row draws the segment down to the next row's centre. */
.yt-bus__mod:not(:last-child)::before { content: ""; position: absolute; inset-inline-end: 0; top: 50%; width: 2px; height: calc(100% + var(--_gap)); background: var(--_line); }
.yt-bus__spine { height: 2px; background: var(--yt-sky); }
.yt-bus__core { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--yt-sky); border-radius: var(--yt-r-2); color: var(--yt-on-ink); font-family: var(--yt-font-display); font-weight: 500; white-space: nowrap; }
.yt-bus__core .yt-node { --_c: var(--yt-sky); }
@media (prefers-reduced-motion: no-preference) {
    .yt-bus__core .yt-node--fill { animation: yt-pulse 2.6s var(--yt-ease) infinite; }
}
@keyframes yt-pulse { 50% { box-shadow: inset 0 0 0 3px var(--yt-ink), 0 0 0 6px rgba(110, 198, 240, .14); } }

/* ==========================================================================
   8. Free trial wizard
   ========================================================================== */
.yt-trial { min-height: 100vh; display: flex; flex-direction: column; }
.yt-trial__header { border-bottom: 1px solid var(--yt-line); background: var(--yt-paper); }
.yt-trial__header .yt-container { display: flex; align-items: center; gap: 16px; min-height: var(--yt-header-h); }
.yt-trial__header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
@media (max-width: 419px) { .yt-trial__header-actions .yt-btn { display: none; } }
.yt-trial__main { flex: 1; padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 96px); }
.yt-trial__layout { display: grid; gap: var(--yt-s-7); }
.yt-trial__intro { display: grid; gap: 12px; margin-bottom: var(--yt-s-6); }
.yt-trial__intro h1 { font-size: var(--yt-fs-h1); }
.yt-trial__intro p { color: var(--yt-muted); max-width: 62ch; }

.yt-wizard { background: var(--yt-surface); border: 1px solid var(--yt-line); border-radius: var(--yt-r-3); box-shadow: var(--yt-shadow-1); }
.yt-wizard__progress { padding: 20px clamp(18px, 3vw, 32px); border-bottom: 1px solid var(--yt-line); }
.yt-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.yt-steps__item { position: relative; display: grid; gap: 8px; justify-items: start; }
.yt-steps__item::before { content: ""; position: absolute; top: 13px; inset-inline-start: 28px; inset-inline-end: 0; height: 2px; background: var(--yt-line); }
.yt-steps__item:last-child::before { display: none; }
.yt-steps__item.is-done::before { background: var(--yt-brand); }
.yt-steps__btn { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 0; background: none; padding: 0; text-align: start; color: var(--yt-subtle); font-size: .85rem; font-weight: 600; position: relative; z-index: 1; }
.yt-steps__btn[disabled] { cursor: default; }
.yt-steps__dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--yt-line-strong); background: var(--yt-surface); display: grid; place-items: center; font-family: var(--yt-font-mono); font-size: .75rem; color: var(--yt-subtle); transition: all var(--yt-dur-2) var(--yt-ease); }
.yt-steps__dot svg { width: 14px; height: 14px; display: none; }
.yt-steps__item.is-current .yt-steps__btn { color: var(--yt-ink); }
.yt-steps__item.is-current .yt-steps__dot { border-color: var(--yt-deep); background: var(--yt-deep); color: #fff; box-shadow: 0 0 0 4px var(--yt-sky-wash); }
.yt-steps__item.is-done .yt-steps__btn { color: var(--yt-ink); }
.yt-steps__item.is-done .yt-steps__dot { border-color: var(--yt-brand); color: var(--yt-brand); }
.yt-steps__item.is-done .yt-steps__dot b { display: none; }
.yt-steps__item.is-done .yt-steps__dot svg { display: block; }
.yt-steps__item.has-error .yt-steps__dot { border-color: var(--yt-error); color: var(--yt-error); }
.yt-steps__mobile { display: none; font-size: .85rem; color: var(--yt-subtle); margin-top: 12px; }
@media (max-width: 599px) {
    .yt-steps__label { display: none; }
    .yt-steps__mobile { display: block; }
    .yt-steps__mobile strong { color: var(--yt-ink); }
}

.yt-wizard__step { padding: clamp(20px, 3vw, 36px) clamp(18px, 3vw, 32px); display: grid; gap: var(--yt-s-6); border: 0; margin: 0; min-width: 0; }
.yt-js .yt-wizard__step[data-inactive] { display: none; }
.yt-wizard__step-head { display: grid; gap: 6px; }
.yt-wizard__step-head h2 { font-size: var(--yt-fs-h3); }
.yt-wizard__step-head p { color: var(--yt-muted); font-size: .95rem; }
.yt-wizard__step-head legend { padding: 0; }
.yt-fields { display: grid; gap: 20px var(--yt-gutter); }
.yt-fields > .is-full { grid-column: 1 / -1; }
@media (min-width: 640px) { .yt-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .yt-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.yt-subhead { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 700; color: var(--yt-subtle); padding-top: 8px; }
.yt-subhead::after { content: ""; flex: 1; height: 1px; background: var(--yt-line); }
.yt-page:lang(en) .yt-subhead { text-transform: uppercase; letter-spacing: .08em; font-family: var(--yt-font-mono); font-weight: 500; }
.yt-address { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border: 1px dashed var(--yt-line-strong); border-radius: var(--yt-r-2); background: var(--yt-paper); color: var(--yt-muted); font-size: .95rem; }
.yt-address.is-filled { color: var(--yt-ink); border-style: solid; background: #fbfaf7; }
.yt-tax { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--yt-line); border-radius: var(--yt-r-2); background: #fbfaf7; }
.yt-tax[hidden] { display: none; }
.yt-tax__types { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.yt-wizard__nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 20px clamp(18px, 3vw, 32px); border-top: 1px solid var(--yt-line); background: #fbfaf7; border-radius: 0 0 var(--yt-r-3) var(--yt-r-3); }
.yt-wizard__nav .yt-btn--primary { margin-inline-start: auto; }
.yt-wizard__nav [hidden] { display: none; }
.yt-js .yt-wizard:not(.is-enhanced) [data-submit] { display: none; }
.yt-no-js-only { display: none; }
html:not(.yt-js) .yt-no-js-only { display: block; }
html:not(.yt-js) .yt-js-only { display: none !important; }

.yt-review { display: grid; gap: var(--yt-s-5); }
.yt-review__group { border: 1px solid var(--yt-line); border-radius: var(--yt-r-2); }
.yt-review__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--yt-line); background: #fbfaf7; border-radius: var(--yt-r-2) var(--yt-r-2) 0 0; }
.yt-review__head h3 { font-size: var(--yt-fs-h6); }
.yt-review__edit { border: 0; background: none; color: var(--yt-ocean); font-weight: 600; font-size: .875rem; min-height: 36px; padding: 0 4px; }
.yt-review__edit:hover { text-decoration: underline; }
.yt-review dl { margin: 0; display: grid; }
.yt-review dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 10px 16px; border-bottom: 1px solid #efece5; font-size: .9rem; }
.yt-review dl div:last-child { border-bottom: 0; }
.yt-review dt { color: var(--yt-subtle); }
.yt-review dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.yt-consent { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--yt-line); border-radius: var(--yt-r-2); }

.yt-trial__aside { display: grid; gap: var(--yt-s-5); align-content: start; }
.yt-aside-card { padding: 24px; border-top: 2px solid var(--yt-ink); display: grid; gap: 16px; }
.yt-aside-card h2 { font-size: var(--yt-fs-h5); }
.yt-aside-card ol { display: grid; gap: 14px; counter-reset: yt-a; }
.yt-aside-card li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: .925rem; color: var(--yt-muted); counter-increment: yt-a; }
.yt-aside-card li::before { content: counter(yt-a); width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--yt-brand); display: grid; place-items: center; font-family: var(--yt-font-mono); font-size: .72rem; color: var(--yt-deep); }
@media (min-width: 1100px) {
    .yt-trial__layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--yt-gutter); align-items: start; }
    .yt-trial__form { grid-column: 1 / span 8; }
    .yt-trial__aside { grid-column: 10 / span 3; position: sticky; top: 32px; }
}

/* Legal page chrome (rebranded header only; policy text untouched). */
.yt-legal-brand { display: inline-flex; align-items: center; gap: 10px; }
.yt-legal-brand img { height: 32px; width: auto; }
