/* Warm ivory light mode. Dark mode continues to use the existing palette. */
:root[data-theme="light"] {
  --paper:#f5f0e6; --panel:#fffcf6; --soft:#eee7da; --field:#fffdf8;
  --ink:#2c3335; --muted:#696a61; --line:#ddd5c7; --forest:#eef1e6;
  --theme-track:#eae3d6; --theme-selected:#fffdf7; --theme-shadow:#51432d16;
}
:root[data-theme="light"] body.ai-theme {
  background:radial-gradient(ellipse at 8% 14%,#e8ecde60,transparent 38%),radial-gradient(ellipse at 94% 25%,#eee3d740,transparent 34%),var(--paper);
}
:root[data-theme="light"] body.ai-theme::before { background-image:linear-gradient(#8e79570a 1px,transparent 1px),linear-gradient(90deg,#8e79570a 1px,transparent 1px); }
:root[data-theme="light"] .brand-page .site-header,
:root[data-theme="light"] .nova-page .header { background:#f8f4ebf2; border-color:var(--line); }
:root[data-theme="light"] .brand-page .product-card { background:linear-gradient(145deg,#eef1e6,var(--panel) 65%); border-color:#d1d9c7; box-shadow:inset 0 1px #ffffff80,0 18px 45px -32px #64553726; }
:root[data-theme="light"] .brand-page .studio-card { background:linear-gradient(145deg,#f2ebe8,var(--panel) 65%); border-color:#ddd0d2; }
:root[data-theme="light"] .brand-page :is(.journeys article,.journeys article+article),
:root[data-theme="light"] .brand-page .partner-section,
:root[data-theme="light"] .studio-page .workspace-shell,
:root[data-theme="light"] .nova-page :is(.price-card,.price-card.recommended,.channel-steps li,dialog) { background:var(--panel); border-color:var(--line); }
:root[data-theme="light"] :is(.brand-page,.nova-page) :is(.core-function,.compact-demo,.studio-content-strip) { background:#fffdf6b3; border-color:var(--line); }
:root[data-theme="light"] .brand-page :is(.nova-scene,.studio-scene),
:root[data-theme="light"] .studio-page :is(.workspace-sidebar,.brief-preview,#brief-output),
:root[data-theme="light"] .nova-page :is(.audience-band,.channel-access,.review-ribbon) { background:var(--soft); border-color:var(--line); }
:root[data-theme="light"] .nova-page :is(.demo-section,.pricing-section) { background:linear-gradient(135deg,#eee9df,#f4ede3); }
:root[data-theme="light"] .nova-page :is(.closing-inner,.nova-studio-cross) { background:linear-gradient(120deg,#edf0e5,#f2e9e4); border-color:var(--line); }
:root[data-theme="light"] .nova-page .demo-controls>button { background:#fffcf670; border-color:var(--line); }
:root[data-theme="light"] .nova-page .demo-controls>button[aria-selected=true] { background:var(--panel); border-color:#9fbfb3; }
:root[data-theme="light"] .nova-page .demo-panel { background:var(--panel); border-color:var(--line); }
:root[data-theme="light"] .nova-page .chat-demo-panel { background:transparent; border:0; }
:root[data-theme="light"] :is(.nova-page,.studio-page) :is(input:not([type=checkbox]),textarea,select) { background:var(--field); color:var(--ink); border-color:#d6ccba; }
:root[data-theme="light"] .nova-page dialog::backdrop { background:#28251e80; }
:root[data-theme="light"] .nova-page .dialog-close { background:var(--soft); color:var(--ink); }
:root[data-theme="light"] :is(.intro-copy,.intro-top .eyebrow,.edition,.product-context,.product-footnote,.product-grid-note,.section-lead>p,.journeys p,.journey-flow,.partner-copy>p,.hero-lead,.section-heading>p,.scenario-copy p,.principles-intro>p,.principle-grid p,.process-list p,.faq-list p,.micro,.hero-note,.dialog-intro,.form-note,.service-copy p,.trial-options summary,.price-caption,.price-subtitle,.pricing-note,.footer-bottom,.brief-privacy,.contact-intro>p,.contact-details dt) { color:var(--muted); }
:root[data-theme="light"] .nova-page :is(form label,legend,.checkbox-grid label) { color:var(--ink); }
:root[data-theme="light"] .nova-page :is(input,textarea)::placeholder { color:#817a6c; }
:root[data-theme="light"] .brand-page .header-inner nav.is-open { background:var(--panel); border-color:var(--line); }
:root[data-theme="light"] .contact-section { background:transparent; border-color:var(--line); }

/* Direct entry points stay above both product cards at desktop and phone widths. */
.intro-actions { display:flex; flex-wrap:wrap; gap:12px; margin:25px 0 30px; position:relative; z-index:1; }
.intro-action { display:inline-flex; align-items:center; justify-content:space-between; min-width:240px; white-space:nowrap; gap:24px; padding:14px 23px; min-height:50px; border:1px solid transparent; border-radius:7px; font:600 14px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; text-decoration:none; transition:transform .15s,background .15s; }
.intro-action-nova { color:#fff; background:#28665f; border-color:#28665f; }
.intro-action-nova:hover { background:#20574f; }
.intro-action-studio { color:var(--violet); background:var(--panel); border-color:#c4b4cf; }
.intro-action:hover { transform:translateY(-1px); }
.intro-action:focus-visible { outline:3px solid var(--orange); outline-offset:4px; }
:root[data-theme="dark"] .intro-action-nova { background:#75e2e8; border-color:#75e2e8; color:#102a31; }
:root[data-theme="dark"] .intro-action-studio { border-color:#67577e; }

/* A short application: two required contact fields, selectable needs, optional detail. */
.nova-page .trial-needs { padding:0; margin:18px 0; border:0; min-width:0; }
.nova-page .trial-needs legend { padding:0; margin-bottom:10px; font-size:13px; font-weight:600; }
.nova-page .trial-needs legend>span { margin-left:7px; font-size:11px; font-weight:400; color:var(--muted); }
.nova-page .trial-needs-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.nova-page .trial-needs-grid label { display:flex; align-items:center; gap:9px; min-height:44px; margin:0; padding:10px 12px; border:1px solid var(--line); border-radius:6px; background:var(--field); font-size:13px; cursor:pointer; }
.nova-page .trial-needs-grid label:last-child { grid-column:1/-1; }
.nova-page .trial-needs-grid input { width:16px; height:16px; min-height:16px; margin:0; padding:0; flex:0 0 16px; accent-color:var(--cyan); }
.nova-page .trial-needs-grid label:has(input:checked) { border-color:var(--cyan); background:var(--forest); }
.nova-page .trial-needs-grid label:focus-within { outline:2px solid var(--cyan); outline-offset:2px; }
.nova-page #trial-needs-hint { margin:9px 0 0; font-size:11px; color:var(--muted); line-height:1.6; }
@media(max-width:520px) {
  .intro-actions { gap:9px; margin:20px 0 24px; }
  .intro-action { width:100%; min-width:0; min-height:48px; padding:12px 15px; justify-content:space-between; font-size:14px; }
}
@media(prefers-reduced-motion:reduce) { .intro-action { transition:none; }.intro-action:hover { transform:none; } }

/* Keep the default application short; detailed briefing remains optional. */
#trial-dialog { padding:30px; }
#trial-dialog .dialog-intro { margin-bottom:18px; }
#trial-form .trial-contact { gap:14px; }
#trial-form .trial-contact label { min-width:0; }
#trial-form .trial-needs { margin:18px 0; }
#trial-form .trial-extra { margin-top:15px; }
#trial-form .trial-consent { margin:14px 0; }
#trial-form .form-note { margin:12px 0 16px; }
@media(max-width:520px) { #trial-dialog { padding:28px 20px 22px; } }

/* Phone layout: full-width actions and readable, touch-sized application fields. */
@media(max-width:600px) {
  .intro-actions { gap:10px; margin:20px 0 24px; }
  .intro-action { width:100%; min-width:0; min-height:52px; padding:13px 16px; font-size:15px; }
  #trial-dialog {
    width:calc(100% - 24px); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px);
    margin:auto; padding:24px 16px 20px; overflow-x:hidden; overflow-y:auto;
    overscroll-behavior:contain; scroll-padding-block:16px;
  }
  #trial-dialog .dialog-close {
    position:sticky; top:0; right:auto; display:block; width:44px; height:44px;
    margin:0 0 -44px auto; z-index:3; font-size:24px; line-height:1;
  }
  #trial-dialog .dialog-eyebrow { padding-right:52px; font-size:10px; letter-spacing:1.4px; }
  #trial-dialog h2 { margin-right:48px; font-size:22px; line-height:1.4; }
  #trial-dialog .dialog-intro { font-size:13px; line-height:1.65; margin-bottom:20px; }
  #trial-form .form-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  #trial-form .form-grid label, #trial-form .trial-extra label { min-width:0; font-size:14px; line-height:1.6; }
  #trial-form input:not([type=checkbox]), #trial-form select, #trial-form textarea {
    min-width:0; max-width:100%; min-height:48px; padding:12px; font-size:16px; line-height:1.4;
  }
  #trial-form input:focus, #trial-form select:focus, #trial-form textarea:focus { scroll-margin-block:60px; }
  #trial-form .trial-needs legend { font-size:14px; }
  #trial-form .trial-needs-grid label { min-height:48px; padding:10px; gap:8px; font-size:14px; }
  #trial-form .trial-needs-grid input { width:18px; height:18px; flex-basis:18px; }
  #trial-form .trial-needs legend>span, #trial-form .optional { font-size:12px; }
  #trial-form #trial-needs-hint, #trial-form .form-note { font-size:12px; line-height:1.7; }
  #trial-form .trial-options summary { min-height:44px; padding:11px 0; font-size:14px; line-height:22px; }
  #trial-form .trial-options { margin:10px 0; }
  #trial-form .trial-consent { min-height:44px; gap:10px; align-items:flex-start; font-size:13px; line-height:1.7; }
  #trial-form .trial-consent input { width:18px; height:18px; margin-top:2px; }
  #trial-submit { min-height:52px; font-size:15px; }
  #trial-error, #trial-result>p { font-size:13px; }
  #trial-result .button { min-height:48px; }
}
/* Product pages: readable phone layouts without changing desktop composition. */
@media(max-width:620px) {
  .nova-page .section-heading h2, .nova-page .principles h2, .nova-page .faq-section h2,
  .studio-page .section-lead h2 { font-size:28px; line-height:1.4; text-wrap:balance; }
  .nova-page :is(.hero-lead,.section-heading>p,.scenario-copy p,.principle-grid p,.process-list p,.channel-steps p,.channel-access p,.promotion-items p,.faq-list p,.closing p,.price-caption),
  .studio-page :is(.studio-lead,.section-lead>p,.studio-capability-grid p,.advanced-grid p,.studio-start p,.studio-notes article p) { font-size:14px; line-height:1.85; }
  .capability-upgrade.upgrade-nova .hero-lead { font-size:14px; line-height:1.85; }
  .nova-page .core-function p { font-size:12px; line-height:1.75; }
  .nova-page .condition-tag { font-size:10px; }
  .nova-page .hero-note, .studio-page .studio-availability { font-size:12px; line-height:1.75; }
  .nova-page .hero-actions>.button, .studio-page .studio-intro .button {
    width:100%; min-height:52px; font-size:15px; justify-content:space-between; padding:13px 16px;
  }
  .nova-page .hero-demo-link, .studio-page .studio-intro .underlined-link {
    display:inline-flex; align-items:center; min-height:44px; font-size:13px; line-height:1.6;
  }
  .nova-page .scenario-visual.scenario-chat { grid-column:1 / -1; max-width:100%; }
  .nova-page .scenario-pair { grid-template-columns:minmax(0,1fr); gap:22px; }
  .nova-page .case-image { min-width:0; }
  .nova-page .chat-zoom-hint { font-size:11px; line-height:1.6; }
  .nova-page .demo-panel-footer { flex-direction:column; align-items:stretch; gap:10px; }
  .nova-page .chat-demo-panel .demo-panel-footer>span { font-size:12px; line-height:1.7; }
  .nova-page #replay-demo, .nova-page #compare-open { min-height:44px; font-size:14px; }
  .nova-page #compare-open { width:100%; }
  .nova-page .price-card .button, .nova-page .channel-access .button { min-height:48px; font-size:14px; }
  .nova-page .price-card li { font-size:13px; line-height:1.85; }
  .nova-page .price-extra { display:block; font-size:12px; line-height:1.8; }
  .nova-page .price-extra strong { display:block; text-align:left; margin-top:4px; white-space:normal; }
  .nova-page .pricing-note, .nova-page .channel-cooperation-note { font-size:12px; line-height:1.8; }
  .nova-page .faq-list summary { font-size:14px; line-height:1.7; min-height:48px; }
  .nova-page dialog:not(#trial-dialog) {
    max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); margin:auto;
    padding:24px 16px 20px; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain;
  }
  .nova-page dialog:not(#trial-dialog) .dialog-close {
    position:sticky; top:0; right:auto; display:block; width:44px; height:44px;
    margin:0 0 -44px auto; z-index:3; font-size:24px; line-height:1;
  }
  .nova-page dialog:not(#trial-dialog) .dialog-eyebrow { padding-right:52px; }
  .nova-page dialog:not(#trial-dialog) h2 { margin-right:52px; font-size:21px; line-height:1.5; }
  .nova-page dialog:not(#trial-dialog) .form-note { font-size:12px; line-height:1.8; }
  .nova-page .service-copy p { font-size:14px; }
  .nova-page #compare-dialog .table-scroll { overflow-x:visible; }
  .nova-page #compare-dialog table { min-width:0; width:100%; table-layout:fixed; font-size:13px; line-height:1.7; }
  .nova-page #compare-dialog th, .nova-page #compare-dialog td { padding:12px 6px; overflow-wrap:anywhere; }
  .nova-page #compare-dialog th { text-wrap:balance; }
  .nova-page #compare-dialog tbody th { font-size:12px; }
  .nova-page #compare-dialog thead th:first-child { width:34%; }
  .nova-page #compare-dialog thead th:not(:first-child) { width:33%; }

  .studio-page .studio-quick-facts { font-size:12px; gap:16px; flex-wrap:wrap; }
  .studio-page .studio-capability-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .studio-page .studio-capability-grid article { padding:22px; }
  .studio-page .studio-capability-grid .capability-label { font-size:12px; }
  .studio-page .studio-capability-grid h3 { font-size:21px; line-height:1.5; }
  .studio-page .studio-capability-grid small { font-size:12px; line-height:1.8; }
  .studio-page .studio-capability-grid .creation-entry { width:100%; min-height:48px; font-size:14px; padding:11px 14px; gap:8px; }
  .studio-page .advanced-grid a { display:inline-flex; align-items:center; gap:8px; min-height:44px; font-size:14px; }
  .studio-page .scene-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .studio-page .scene-tabs button { flex-direction:row; justify-content:center; min-width:0; min-height:48px; font-size:14px; padding:12px 6px; gap:8px; }
  .studio-page .workspace-top { align-items:flex-start; flex-wrap:wrap; gap:10px; }
  .studio-page .workspace-top h3 { font-size:22px; line-height:1.5; text-wrap:balance; }
  .studio-page .workspace-status { font-size:11px; }
  .studio-page .brief-fields { grid-template-columns:minmax(0,1fr); gap:16px; }
  .studio-page .brief-layout form>label, .studio-page .brief-fields label { min-width:0; font-size:14px; line-height:1.7; }
  .studio-page .brief-layout input, .studio-page .brief-layout textarea, .studio-page .brief-layout select {
    min-width:0; max-width:100%; min-height:48px; padding:12px; font-size:16px; line-height:1.5;
  }
  .studio-page .brief-layout form>.button { min-height:52px; font-size:15px; padding:13px 16px; }
  .studio-page .brief-privacy, .studio-page #brief-message { font-size:12px; line-height:1.8; }
  .studio-page .result-header { flex-wrap:wrap; }
  .studio-page .result-header>button { min-height:44px; font-size:14px; }
  .studio-page #brief-output { font-size:14px; line-height:1.85; padding:16px; }
}

/* Center the actual tab labels rather than stretching their text boxes. */
@media(max-width:800px) {
  .nova-page .demo-controls { width:100%; min-width:0; align-self:stretch; }
  .nova-page .demo-controls>button {
    display:flex; flex-direction:row; align-items:center; justify-content:center;
    min-height:68px; gap:8px; padding:12px 10px; text-align:center; border-color:var(--line);
  }
  .nova-page .demo-controls>button>span {
    flex:0 0 auto; align-self:auto; margin:0; padding:0; font-size:10px; line-height:1.4;
  }
  .nova-page .demo-controls strong {
    flex:0 0 auto; align-self:auto; font-size:14px; line-height:1.4; white-space:nowrap;
  }
}
/* Readable phone copy and consistent navigation across the public pages. */
@media(max-width:620px) {
  .upgrade-home .core-function p { font-size:12px; line-height:1.7; text-wrap:pretty; }
  .upgrade-home .nova-card .core-function>div { display:flex; flex-direction:column; flex:1; }
  .upgrade-home .nova-card .core-function p { flex:1; }
  .nova-page .nova-hero-functions .core-function>div { display:flex; flex-direction:column; flex:1; align-self:stretch; }
  .nova-page .nova-hero-functions .core-function p { flex:1; }
  .nova-page .nova-hero-functions .condition-tag { align-self:flex-start; }
  .upgrade-home .condition-tag { align-self:flex-start; font-size:10px; margin-top:8px; }
  .upgrade-home .compact-demo-top { font-size:10px; gap:10px; }
  .upgrade-home .compact-demo>p { font-size:11px; line-height:1.8; }
  .upgrade-home .compact-demo>p span { font-size:10px; }
  .upgrade-home .product-footnote { font-size:11px; line-height:1.8; }
  .upgrade-home .studio-content-strip>div>span, .upgrade-home .studio-content-strip small { font-size:10px; }
  .upgrade-home .product-grid-note { display:grid; gap:6px; font-size:11px; line-height:1.7; }
  .upgrade-home .product-grid-note span:last-child { max-width:none; text-align:left; }
  .site-footer, .nova-page .footer { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; }
  .site-footer .footer-nav, .nova-page .footer-links {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:4px 16px;
    align-items:start; justify-content:stretch;
  }
  .site-footer .footer-nav a, .nova-page .footer-links :is(a,button) {
    display:inline-flex; align-items:center; justify-content:flex-start; min-height:36px;
    margin:0; padding:0; font-size:12px; line-height:1.5; text-align:left;
  }
  .site-footer .footer-bottom, .nova-page .footer-bottom {
    display:flex; flex-wrap:wrap; width:100%; gap:8px 14px; margin-top:0; font-size:11px; line-height:1.7;
  }
  .nova-page .footer>div>p { font-size:12px; line-height:1.7; }
}
