/* Semantic palettes cover the complete site, including forms and order cards. */
html[data-theme=light]{--bg:#f5faf7;--surface:#fff;--surface2:#eaf4ee;--ink:#14392d;--muted:#506b5c;--line:#789783;--accent:#087443;--accent2:#b7edc9;--accentwash:#e5f4eb;--night:#0b241b;--hero:#edf6f0;--on-accent:#fff;--shadow:0 24px 70px #173e2912}
html[data-theme=midnight]{--bg:#091726;--surface:#12293d;--surface2:#1b354d;--ink:#edf6ff;--muted:#abc0d3;--line:#6c91ad;--accent:#a2d8f8;--accent2:#c6e9ff;--accentwash:#203f58;--night:#05101e;--hero:#10283d;--on-accent:#092137;--shadow:0 24px 70px #0005}
html[data-theme=plum]{--bg:#1c142d;--surface:#2c2042;--surface2:#392b52;--ink:#fbf3ff;--muted:#c6b7d5;--line:#a084b9;--accent:#f3d878;--accent2:#eadbff;--accentwash:#483557;--night:#130c22;--hero:#302142;--on-accent:#2b1b36;--shadow:0 24px 70px #0005}
html[data-theme] .header,html[data-theme] .footer{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] .button:not(.secondary){background:var(--accent);color:var(--on-accent);border-color:transparent}
html[data-theme] .ys-public{--ys-green:var(--accent);--ys-mint:var(--accent2);--ys-dark:var(--ink);--ys-border:var(--line);--ys-wash:var(--surface2);--sales-a:#061b16;--sales-b:#16462e;--sales-glow:#1c684655;--sales-text:#f2fff7;--sales-muted:#c4dacc;--sales-bright:#a9efbb;--sales-panel:#163c2b;--sales-panel-deep:#0b261b;--sales-line:#4c795e;--sales-on-bright:#092318}
html[data-theme=midnight] .ys-public{--sales-a:#041021;--sales-b:#183f62;--sales-glow:#306eac55;--sales-text:#f0f7ff;--sales-muted:#bdd5eb;--sales-bright:#a4d9ff;--sales-panel:#153450;--sales-panel-deep:#092039;--sales-line:#477394;--sales-on-bright:#071c32}
html[data-theme=plum] .ys-public{--sales-a:#180e2c;--sales-b:#4b2966;--sales-glow:#9d57bb44;--sales-text:#fff5ff;--sales-muted:#ddc6e9;--sales-bright:#f3d878;--sales-panel:#3c2453;--sales-panel-deep:#251333;--sales-line:#8a619a;--sales-on-bright:#2b1935}
html[data-theme] .ys-future .ys-hero{color:var(--sales-text)}
html[data-theme] .ys-future .ys-hero::before{background:radial-gradient(ellipse at 22% 42%,var(--sales-glow),transparent 55%),linear-gradient(125deg,var(--sales-a),var(--sales-b))}
html[data-theme] .ys-future .ys-hero h1{color:var(--sales-text)}
html[data-theme] .ys-future .ys-hero h1 em,html[data-theme] .ys-future .ys-hero .ys-kicker,html[data-theme] .ys-future .ys-hero-meta span::before{color:var(--sales-bright)}
html[data-theme] .ys-future .ys-hero .ys-lead,html[data-theme] .ys-future .ys-hero-meta{color:var(--sales-muted)}
html[data-theme] .ys-future .ys-hero .button{background:var(--sales-bright);color:var(--sales-on-bright);box-shadow:0 0 0 5px color-mix(in srgb,var(--sales-bright) 8%,transparent)}
html[data-theme] .ys-future .ys-hero .ys-text-link{color:var(--sales-text);border-color:var(--sales-line)}
html[data-theme] .ys-number-studio{background:linear-gradient(145deg,var(--sales-panel),var(--sales-panel-deep));color:var(--sales-text);border-color:var(--sales-line)}
html[data-theme] .ys-studio-label,html[data-theme] .ys-line-identity strong,html[data-theme] .ys-call-path svg,html[data-theme] .ys-mini-addons svg{color:var(--sales-bright)}
html[data-theme] .ys-line-identity strong span{color:var(--sales-text)}
html[data-theme] .ys-line-identity>span,html[data-theme] .ys-line-identity p,html[data-theme] .ys-mini-addons>span,html[data-theme] .ys-studio-foot{color:var(--sales-muted)}
html[data-theme] .ys-studio-label,html[data-theme] .ys-call-path,html[data-theme] .ys-mini-addons>div>span{border-color:var(--sales-line)}
html[data-theme] .ys-mini-addons>div>span,html[data-theme] .ys-studio-foot{background:var(--sales-panel-deep)}
html[data-theme] .ys-path-dot{background:var(--sales-bright);box-shadow:12px 0 var(--sales-line),-12px 0 var(--sales-line)}
html[data-theme] .ys-device-frame{border-color:var(--accent)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button{transition:none}}

html[data-theme] .ys-pricing #sip{border-block-start-color:color-mix(in srgb,var(--accent) 45%,#6a7ad8)}

/* Shared responsive identity: a single rule owns size and proportions. */
html[data-theme] .header .brand-logo{width:auto;height:clamp(42px,5vw,56px);aspect-ratio:auto;object-fit:contain;max-width:100%}
html[data-theme] .footer .brand-logo{width:auto;height:48px;aspect-ratio:auto;max-width:100%;object-fit:contain}
html[data-theme=light]{--landline-tone:#087443;--landline-wash:#e2f3e9;--sip-tone:#315f9e;--sip-wash:#e8f0fc;--addon-tone:#825912;--addon-wash:#fff2db;--gateway-tone:#7552a5;--gateway-wash:#eee9fb}
html[data-theme=midnight]{--landline-tone:#a2d8f8;--landline-wash:#203f58;--sip-tone:#bebfff;--sip-wash:#2d345b;--addon-tone:#f4d68a;--addon-wash:#433e2b;--gateway-tone:#a5e3d2;--gateway-wash:#1b453f}
html[data-theme=plum]{--landline-tone:#f3d878;--landline-wash:#483b34;--sip-tone:#cfc0ff;--sip-wash:#3c2f60;--addon-tone:#ffb8d8;--addon-wash:#512e49;--gateway-tone:#a5e3d2;--gateway-wash:#2b4447}
html[data-theme] .ys-choice-icon{background:var(--landline-wash);color:var(--landline-tone)}
html[data-theme] .ys-choice-sip .ys-choice-icon{background:var(--sip-wash);color:var(--sip-tone)}
html[data-theme] .ys-choice-addons .ys-choice-icon{background:var(--addon-wash);color:var(--addon-tone)}
html[data-theme] .ys-choice-gateways .ys-choice-icon{background:var(--gateway-wash);color:var(--gateway-tone)}
html[data-theme] .ys-service-nav .ys-service-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--landline-wash);color:var(--landline-tone);margin-block-end:14px}
.ys-service-symbol svg{width:25px;height:25px}
html[data-theme] .ys-service-nav a[href="#sip"] .ys-service-symbol{background:var(--sip-wash);color:var(--sip-tone)}
html[data-theme] .ys-service-nav a[href="#addons"] .ys-service-symbol{background:var(--addon-wash);color:var(--addon-tone)}
html[data-theme] .ys-service-nav a[href="#gateways"] .ys-service-symbol{background:var(--gateway-wash);color:var(--gateway-tone)}
.ys-addon-symbol{display:grid;place-items:center;flex:none;color:var(--accent);width:28px;height:28px}
.ys-addon-symbol svg{width:23px;height:23px}
.ys-addon-option{flex-wrap:wrap}
.ys-addon-option .ys-addon-copy{flex:1 1 100px}
html[data-theme] :is(input,textarea,select){color:var(--ink);background-color:var(--surface);border-color:var(--line)}
html[data-theme] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html[data-theme] .marquee-strip{background:var(--surface2);color:var(--ink)}
html[data-theme] .service-strip i{color:var(--accent)}
html[data-theme] :is(.form-card,.number-card,.auth-summary){color:var(--ink);background-color:var(--surface);border-color:var(--line)}
html[data-theme] .theme-options button:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
@media(max-width:700px){.header .nav{padding-block:8px}.header .brand-logo{max-width:calc(100vw - 142px)}.ys-addon-option{padding:12px;gap:8px}}
@media(prefers-contrast:more){html[data-theme] :is(.button,.ys-addon-option,.ys-service-nav a,.ys-choice){border:2px solid currentColor}}

/* Signup remains explicit on small screens; signed-in service actions use the same slot. */
@media(max-width:700px){.header .nav-actions{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%}.header .nav-actions>[data-account-cta]{display:inline-flex;justify-content:center;min-width:0;padding-inline:8px;font-size:14px;white-space:normal;text-align:center;line-height:1.4}.header .nav-actions .login-link{justify-content:center;padding-inline:8px;font-size:14px;white-space:normal;text-align:center;line-height:1.4}.header .nav-actions .language{min-width:40px;min-height:44px}.header .nav-actions .profile-name{max-width:90px}.header .nav-actions .profile-menu summary{font-size:14px;padding-inline:5px}}
.ys-signup-intro{font-size:16px;line-height:1.9;max-width:44rem;color:var(--muted);margin-block:16px 24px}

/* Shared account entry uses semantic theme tokens on every public page. */
.auth-create-account{display:grid;gap:12px;margin-block-start:24px;padding-block-start:24px;border-top:1px solid var(--line)}
.auth-create-account h3{font-size:20px;color:var(--ink)}
.auth-create-account p{font-size:15px;color:var(--muted)}
.auth-create-account .button{width:100%;gap:12px;color:var(--ink);border-color:var(--accent)}
.auth-service-icons{display:flex;gap:18px;align-items:center;margin-block-start:36px;color:var(--accent)}
.auth-service-icons svg{width:48px;height:48px;padding:10px;box-sizing:content-box;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
@media(max-width:700px){.auth-create-account h3{font-size:18px}.auth-service-icons{gap:12px;margin-block-start:20px}.auth-service-icons svg{width:30px;height:30px;padding:9px}.auth-grid .form-card{padding:24px 20px}}

.sip-icon svg{width:24px;height:24px}

/* Service families share semantic colors across all three palettes. */
html[data-theme] :is(#landlines,.ys-choice-landlines){--card-tone:var(--landline-tone);--card-wash:var(--landline-wash)}
html[data-theme] :is(#sip,.ys-choice-sip){--card-tone:var(--sip-tone);--card-wash:var(--sip-wash)}
html[data-theme] :is(#addons,.ys-choice-addons){--card-tone:var(--addon-tone);--card-wash:var(--addon-wash)}
html[data-theme] :is(#gateways,.ys-choice-gateways){--card-tone:var(--gateway-tone);--card-wash:var(--gateway-wash)}
html[data-theme] .ys-public :is(.plan-card,.content-card,.ys-service-card,.ys-addon-grid article,.ys-choice){border:1px solid var(--line);border-block-start:5px solid var(--card-tone,var(--accent));background:var(--surface);color:var(--ink)}
html[data-theme] .ys-public :is(.plan-top,.ys-choice-icon){color:var(--card-tone,var(--accent))}
html[data-theme] .ys-public :is(.plan-card,.content-card,.ys-service-card,.ys-addon-grid article,.ys-choice):hover{border-color:var(--card-tone,var(--accent));box-shadow:0 6px 18px color-mix(in srgb,var(--card-tone,var(--accent)) 12%,transparent)}
html[data-theme] .ys-service-nav a[href="#landlines"]{--card-tone:var(--landline-tone);--card-wash:var(--landline-wash)}
html[data-theme] .ys-service-nav a[href="#sip"]{--card-tone:var(--sip-tone);--card-wash:var(--sip-wash)}
html[data-theme] .ys-service-nav a[href="#addons"]{--card-tone:var(--addon-tone);--card-wash:var(--addon-wash)}
html[data-theme] .ys-service-nav a[href="#gateways"]{--card-tone:var(--gateway-tone);--card-wash:var(--gateway-wash)}
html[data-theme] .ys-service-nav a{background:var(--card-wash);color:var(--card-tone);border-color:var(--card-tone)}
html[data-theme] .ys-public .plan-card.recommended{border:2px solid var(--card-tone,var(--accent));border-block-start-width:5px}
