@import url("./brand-blue.css");

/* Shared colors and component treatments for the storefront and guides. */
:root {
  color-scheme: light;
  --site-bg: #fff;
  --site-band: #fff;
  --site-card: #ffffff;
  --site-raised: #eeeeef;
  --site-field: #fafafa;
  --site-border: #dedee1;
  --site-control-border: #95959e;
  --site-text: #242428;
  --site-muted: #55555f;
  --site-link: var(--brand-blue);
  --site-accent: #944623;
  --site-good: #206248;
  --site-error: #9f3434;
  --site-radius: 20px;
  --site-font: system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.storefront, body.site-guide {
  background: var(--site-bg) !important;
  color: var(--site-text) !important;
  font-family: var(--site-font);
}

.storefront :is(a, button, input, textarea, summary):focus-visible,
.site-guide :focus-visible {
  outline: 2px solid var(--site-link) !important;
  outline-offset: 4px;
}

.storefront :is(.store-categories, #plans, .workflow-section, .white-section, .tutorial, .footer) {
  background: var(--site-band) !important;
  border-color: var(--site-border) !important;
  color: var(--site-text) !important;
}

.storefront :is(#plans, .tutorial, .footer) { background: var(--site-bg) !important; }
.storefront :is(#process, #tutorial, #guide, #codex-phone-product) > .wrap,
.storefront .wrap.contact,
.storefront .footer .wrap {
  width: min(var(--store-width), calc(100% - 2 * var(--store-gutter)));
}

.storefront :is(#process, #tutorial, #guide) {
  padding-block: clamp(40px, 6vw, 76px);
}

.storefront .store-categories :is(span, a) { color: var(--site-muted); }
.storefront .store-categories a {
  background: var(--site-card);
  border: 1px solid var(--site-border);
  color: var(--site-text);
}
.storefront .store-categories a:hover { background: var(--site-raised); color: var(--site-link); }
.storefront .section h2,
.storefront .section h3,
.storefront #plans .sec-title,
.storefront .footer :is(.brand-word, h2) { color: var(--site-text) !important; }

.storefront :is(.section-head p, .workflow-panel .flow-card p, .step p, .contact-card p),
.storefront .footer :is(.footer-copy, .legal, .copyright, .footer-links a) {
  color: var(--site-muted) !important;
  border-color: var(--site-border) !important;
}

.storefront .kicker,
.storefront .workflow-panel .flow-card .flow-icon { color: var(--site-accent) !important; }
.storefront #plans {
  --ink: var(--site-text);
  --ink-2: var(--site-muted);
  --ink-3: #62626c;
  --line-2: var(--site-border);
  --bg-3: var(--site-raised);
  --link: var(--site-link);
  --warn: var(--site-accent);
}
.storefront #plans :is(.sec-title span, .plan-tag, .unit, .plans-foot) { color: var(--site-muted); }
.storefront #plans :is(.sec-links .tlink, .plans-foot .tlink) { color: var(--site-link); }
.storefront #plans .plan {
  background: var(--site-card);
  border-color: var(--site-border);
  box-shadow: none;
}
.storefront #plans .plan:hover { border-color: var(--site-control-border); box-shadow: 0 12px 30px #15152514; }
.storefront #plans .plan .plan-media {
  background: radial-gradient(ellipse at 50% 42%, #f6faf8, #e8f0eb 55%, #e3ece7);
}
.storefront #plans .plan:nth-child(2) .plan-media { background: radial-gradient(ellipse, #f7f3ec, #ece5da 68%); }
.storefront #plans .plan:nth-child(3) .plan-media { background: radial-gradient(ellipse, #f3f7fa, var(--brand-blue-soft) 68%); }
.storefront #plans .plan:nth-child(4) .plan-media { background: radial-gradient(ellipse, #f7f4fa, #ebe6f0 68%); }
.storefront #plans .plan-price { color: var(--site-text); }
.storefront #plans .plan-eyebrow { color: var(--site-accent); }
.storefront #plans :is(.pt-ok, .pt-up) { color: var(--site-good); background: #e5f2eb; }
.storefront #plans .pt-warn { color: var(--site-accent); background: #f5e9df; }
.storefront #plans .plan-ctas .tlink { color: var(--site-text); background: var(--site-raised); }
.storefront #plans .plan-ctas .tlink:hover { background: #e1e1e4; }

.storefront :is(#codex-phone-product, .contact) { color: var(--site-text); }
.storefront .codex-phone-card,
.storefront :is(.workflow-panel, .steps, .contact-card) {
  background: var(--site-card) !important;
  color: var(--site-text) !important;
  border-color: var(--site-border) !important;
  box-shadow: none !important;
}
.storefront .contact-card { border: 1px solid var(--site-border); }
.storefront .codex-phone-card { max-width: none; border-radius: var(--site-radius); }
.storefront .codex-phone-card:hover { border-color: var(--site-control-border) !important; }
.storefront .codex-phone-card .codex-phone-icon { background: var(--site-raised); box-shadow: none; }
.storefront .codex-phone-kicker { color: var(--site-accent); }
.storefront .codex-phone-kicker::before { background: currentColor; }
.storefront :is(.codex-phone-caption, .codex-phone-status, .codex-phone-lead, .codex-phone-points span) {
  color: var(--site-muted);
}
.storefront .codex-phone-points i { background: #e5f2eb; color: var(--site-good); }
.storefront .codex-phone-action { border-color: var(--site-border); }
.storefront .workflow-panel { width: 100%; }
.storefront .workflow-panel .flow-card { background: transparent !important; border-color: var(--site-border) !important; }
.storefront .workflow-panel .flow-card::after { background: var(--site-border) !important; }
.storefront .tutorial video.video {
  background: #000 !important;
  border: 1px solid var(--site-border);
  box-shadow: none !important;
}
.storefront .steps .step { border-color: var(--site-border) !important; }
.storefront .step-no { background: var(--site-raised) !important; color: var(--site-accent) !important; }

.storefront #guide .compare { background: var(--site-card); border-color: var(--site-border) !important; }
.storefront #guide .compare :is(td, th) {
  border-color: var(--site-border) !important;
  color: var(--site-muted) !important;
  overflow-wrap: anywhere;
}
.storefront #guide .compare th { background: var(--site-raised) !important; color: var(--site-text) !important; }
.storefront #guide .compare td:nth-child(2) { color: var(--site-text) !important; }
.storefront #guide .compare-brand {
  background: var(--site-card) !important;
  border-color: var(--site-border) !important;
  color: var(--site-accent) !important;
}

.storefront #plans .btn-primary,
.storefront .codex-phone-action .button,
.storefront .contact-actions .button:not(.outline),
.storefront #activationView :is(.activate-query button, .activate-input-row .button, .activate-actions .button:not(.secondary)),
.storefront .plan-dialog:not(#claude-detail) .detail-actions :is(a, button) {
  border: 1px solid var(--site-text) !important;
  border-radius: 999px;
  background: var(--site-text) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.storefront #plans .btn-primary:hover,
.storefront .codex-phone-action .button:hover,
.storefront .contact-actions .button:not(.outline):hover,
.storefront #activationView :is(.activate-query button, .activate-input-row .button, .activate-actions .button:not(.secondary)):hover,
.storefront .plan-dialog:not(#claude-detail) .detail-actions :is(a, button):hover {
  background: #3c3c43 !important;
}
.storefront .contact-actions .button.outline,
.storefront #activationView .activate-actions .button.secondary {
  border: 1px solid var(--site-control-border) !important;
  border-radius: 999px;
  color: var(--site-text) !important;
  background: var(--site-raised) !important;
  box-shadow: none !important;
}
.storefront .footer .footer-links a:hover { color: var(--site-link) !important; }

/* Dialogs and activation states */
.storefront .plan-dialog,
.storefront .wechat-dialog {
  background: var(--site-card) !important;
  color: var(--site-text) !important;
  border: 1px solid var(--site-border) !important;
  box-shadow: 0 24px 80px #15152545 !important;
}
.storefront .plan-dialog::backdrop, .storefront .wechat-modal { background: #21212999 !important; }
.storefront :is(.plan-dialog .dialog-close, .wechat-close) {
  color: var(--site-text) !important;
  background: var(--site-raised) !important;
  border-color: var(--site-border) !important;
}
.storefront :is(.plan-dialog .detail-price small, .wechat-plan, .wechat-caption) { color: var(--site-muted) !important; }
.storefront :is(.wechat-plan strong, .wechat-dialog h3) { color: var(--site-text) !important; }
.storefront :is(.wechat-eyebrow, .wechat-instruction strong, .wechat-promises b) { color: var(--site-accent) !important; }
.storefront :is(.wechat-qr-panel, .wechat-instruction, .wechat-promises span, .toast) {
  background: var(--site-raised) !important;
  color: var(--site-text) !important;
  border-color: var(--site-border) !important;
}

.storefront #activationView.activate-view {
  background: var(--site-bg) !important;
  color: var(--site-text) !important;
}
.storefront #activationView .activate-wrap { width: min(var(--store-width), calc(100% - 2 * var(--store-gutter))); }
.storefront #activationView :is(.activate-card, .activate-subcard, .activate-product, .activate-status, .activate-manual) {
  background: var(--site-card) !important;
  border-color: var(--site-border) !important;
  color: var(--site-text) !important;
  box-shadow: none !important;
}
.storefront #activationView :is(.activate-products, .activate-product-group, .activate-card-head, .activate-step) {
  border-color: var(--site-border) !important;
}
.storefront #activationView :is(h2, h3, .activate-status strong, .activate-progress-title) { color: var(--site-text) !important; }
.storefront #activationView :is(.activate-heading p, .activate-card-desc, .activate-step p, .activate-field-note,
  .activate-subcard p, .activate-actions small, .activate-nav-note, .activate-group-label, .activate-consent,
  .activate-progress-message, .activate-progress-stage) { color: var(--site-muted) !important; }
.storefront #activationView :is(.activate-help, .activate-return, .activate-nav-contact, .activate-manual button, .activate-step a:not(.button), .activate-result a) {
  color: var(--site-link) !important;
}
.storefront #activationView .activate-product:not(:disabled):hover { border-color: var(--site-control-border) !important; }
.storefront #activationView .activate-product[aria-pressed="true"] {
  background: var(--brand-blue-tint) !important;
  border-color: var(--brand-blue-border) !important;
  color: var(--site-link) !important;
}
.storefront #activationView .activate-product:disabled { opacity: .8; }
.storefront #activationView :is(.activate-badge, .product-mark, .activate-step-no) {
  background: var(--site-raised) !important;
  border-color: var(--site-border) !important;
  color: var(--site-link) !important;
}
.storefront #activationView .product-available { background: #286449; color: #ffffff; }
.storefront #activationView :is(.product-unavailable, .activate-status:not([data-api-state="ready"]) span) { color: var(--site-error); }
.storefront #activationView .activate-status[data-api-state="ready"] span { color: var(--site-good); }
.storefront #activationView :is(.activate-input, .activate-query input, .activate-session) {
  background: var(--site-field) !important;
  border-color: var(--site-control-border) !important;
  color: var(--site-text) !important;
}
.storefront #activationView :is(input, textarea)::placeholder { color: #65656e; opacity: 1; }
.storefront #activationView .activate-step .activate-safe-note {
  background: #fcf1e6 !important;
  border-left-color: var(--site-accent) !important;
  color: #804322 !important;
}
.storefront #activationView .activate-consent input { accent-color: var(--site-link); }
.storefront #activationView .activate-result { background: var(--brand-blue-tint); color: var(--site-text) !important; }
.storefront #activationView .activate-result[data-kind="error"] { background: #faeeee; color: var(--site-error) !important; }
.storefront #activationView .activate-result[data-kind="success"] { background: #e8f5ee; color: var(--site-good) !important; }
.storefront #activationView :is(.activate-actions .button, .activate-query button, .activate-input-row .button):disabled {
  background: #eaeaec !important;
  border-color: var(--site-border) !important;
  color: #666671 !important;
}
.storefront #activationView .activate-progress {
  --progress-blue: var(--site-link);
  --progress-purple: var(--brand-blue-bright);
  --progress-tint: var(--brand-blue-tint);
  border-color: var(--site-border);
  background: radial-gradient(ellipse at 50% 0%, var(--progress-tint), transparent 65%), var(--site-card);
}
.storefront #activationView .activate-progress-icon { background: var(--site-raised); }
.storefront #activationView .activate-progress-check { background: var(--site-link); }
.storefront #activationView .activate-progress-stage::before { background-color: var(--site-control-border); }
.storefront #activationView .activate-progress-stage[aria-current="step"] { color: var(--site-link) !important; }
.storefront #activationView .activate-progress[data-state="failed"] .activate-progress-stage[aria-current="step"] { color: var(--site-error) !important; }

/* Long-form guides use the same palette while retaining their article layouts. */
html.site-guide-root {
  --ink: var(--site-text);
  --muted: var(--site-muted);
  --line: var(--site-border);
  --violet: var(--site-link);
  --green: var(--site-link);
  --pale: var(--brand-blue-tint);
  --paper: var(--site-card);
  --bg: var(--site-bg);
  --wash: var(--site-bg);
  font-family: var(--site-font);
}
.site-guide .top { background: transparent; border-color: var(--site-border); }
.site-guide :is(.brand, h1, h2, h3) { color: var(--site-text); }
.site-guide a { color: var(--site-link); }
.site-guide :is(.back, .crumb, .intro, .updated, .lead, .section-intro, .article p, .article li,
  .card p, .card li, .step span:last-child, .end p) { color: var(--site-muted); }
.site-guide .brand :is(.mark, .brand-mark) { background: transparent; vertical-align: middle; }
.site-guide .hero {
  background: radial-gradient(ellipse at 82% 25%, #e9edf3, transparent 64%), var(--site-band);
  border-color: var(--site-border);
}
.site-guide :is(.hero-art, .art, .orb)::before { border-color: #c8cfd9; box-shadow: none; }
.site-guide :is(.eyebrow, .label) { color: var(--site-accent); }
.site-guide .eyebrow::before { background: currentColor; }
.site-guide :is(.article, .flow, .section, .card, .end, .related) {
  background: var(--site-card);
  border-color: var(--site-border);
  color: var(--site-text);
  box-shadow: none;
}
.site-guide :is(.step, .chip, .floating, .float, .mini, .channel, .price, .callout, .note) {
  background: var(--site-raised);
  border-color: var(--site-border);
  color: var(--site-text);
  box-shadow: none;
}
.site-guide :is(.mini, .channel) p { color: var(--site-muted); }
.site-guide :is(.warning, .notice) { background: #fcf2e7; border-color: #e4c9b5; }
.site-guide :is(.num, .badge) { background: var(--brand-blue-tint); color: var(--site-link); }
.site-guide :is(.button, .btn) {
  border: 1px solid var(--site-text);
  border-radius: 999px;
  background: var(--site-text);
  color: #ffffff;
  box-shadow: none;
}
.site-guide :is(.button, .btn):hover { background: #3c3c43; }
.site-guide :is(.button, .btn).secondary,
.site-guide .end .button.secondary {
  border: 1px solid var(--site-control-border);
  background: var(--site-raised);
  color: var(--site-text);
}
.site-guide :is(.button, .btn).secondary:hover { background: #e1e1e4; }


/* Charcoal accents frame the softer page surfaces. */
.storefront .store-hero { background: radial-gradient(ellipse at 75% 42%, #272934, #202024 66%); }
.storefront #claude.clp { --cl-bg: #242428; }
.storefront .clp-chat { background: #1d1d21; border-color: #43434b; }
.storefront #claude-detail .detail-actions button { color: #19110e; }
.storefront .footer {
  --site-bg: #242428;
  --site-text: #f5f5f7;
  --site-muted: #c6c6cc;
  --site-border: #3e3e46;
  --site-link: var(--brand-blue-on-dark);
}
.storefront .codex-phone-card .codex-phone-icon {
  background: var(--site-text);
  color: #f5f5f7;
}
