/* Shared presentation for the TomatoCC portal and 365Zip product pages. */
:root {
  color-scheme: dark;
  --bg: #181a18;
  --surface: #20231f;
  --surface-soft: #252923;
  --ink: #f0f0e9;
  --muted: #adb3a7;
  --quiet: #8d9586;
  --line: #363c32;
  --accent: #f18b64;
  --accent-soft: #382b23;
  --nav-bg: rgba(24, 26, 24, .91);
  --shadow: 0 20px 50px -28px rgba(0, 0, 0, .3);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f6;
  --surface: #fffefa;
  --surface-soft: #f1f0e9;
  --ink: #272d25;
  --muted: #626b5b;
  --quiet: #707868;
  --line: #e2e5d9;
  --accent: #b74623;
  --accent-soft: #f9ebe0;
  --nav-bg: rgba(250, 249, 246, .92);
  --shadow: 0 20px 50px -28px rgba(47, 53, 34, .2);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 5px; }
::selection { color: var(--ink); background: var(--accent-soft); }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 650; text-wrap: balance; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; margin: 0; }
img, svg { display: block; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; }
.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; background: var(--surface); padding: 12px 18px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 23px; font-weight: 650; letter-spacing: -.8px; white-space: nowrap; }
.brand img { border-radius: 10px; }
.brand-dot { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
.section-nav { display: flex; gap: 32px; margin-left: auto; margin-right: 30px; color: var(--muted); font-size: 14px; }
.section-nav a:hover, .footer-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 19px; }
.lang-toggle { display: flex; gap: 13px; font-size: 12px; color: var(--quiet); }
.lang-toggle a[aria-current] { color: var(--ink); font-weight: 650; }
.theme-switcher { position: relative; }
.theme-trigger { display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; }
.theme-trigger .icon { width: 17px; height: 17px; }
.theme-icon--moon { display: none; }
html[data-theme="light"] .theme-icon--moon { display: block; }
html[data-theme="light"] .theme-icon--sun { display: none; }
.theme-menu { display: none; position: absolute; top: calc(100% + 10px); right: 0; min-width: 145px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.theme-switcher.open .theme-menu { display: block; }
.theme-option { display: block; padding: 7px 12px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.theme-option:hover { background: var(--surface-soft); }
.theme-option.active { color: var(--accent); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .09em; color: var(--accent); margin-bottom: 22px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: 0 0 auto; }
h1 { font-size: clamp(40px, 4.4vw, 59px); letter-spacing: -.045em; line-height: 1.22; margin-bottom: 26px; }
h2 { font-size: clamp(29px, 3.2vw, 40px); letter-spacing: -.035em; line-height: 1.35; }
h3 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 15px; }
.hero-lead { color: var(--muted); max-width: 460px; font-size: 16px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.button-primary, .button-outline { display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 12px 20px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 9px; font-size: 13px; font-weight: 550; transition: transform .2s, background .2s; }
.button-primary .icon, .button-outline .icon { width: 16px; height: 16px; }
.button-primary:hover, .button-outline:hover { transform: translateY(-2px); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button-outline:hover { background: var(--surface); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: 13px; font-weight: 550; }
.text-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover .icon { transform: translate(2px, -2px); }
.system-note { font-size: 11px; color: var(--quiet); margin-top: 15px; }
.section { padding-top: 110px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 36px; }
.section-heading > p { max-width: 315px; font-size: 14px; color: var(--muted); padding-bottom: 6px; }
.feature-icon { display: inline-flex; color: var(--accent); margin-bottom: 18px; }
.feature-list { display: grid; gap: 12px; margin-top: 24px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--muted); }
.feature-list .icon { width: 15px; height: 15px; margin-top: 3px; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { font-size: 10px; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 5px; }
.small-note { font-size: 12px; color: var(--quiet); line-height: 1.8; }
.paper-lines { display: grid; gap: 10px; margin-top: 17px; }
.paper-lines i { display: block; height: 5px; border-radius: 2px; background: #dbe1d1; }
.paper-lines i:nth-child(3n) { width: 70%; }
.paper-lines i:nth-child(4n) { width: 87%; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; background: #e3dfd3; border-radius: 50%; }
.window-dots i:first-child { background: #e9a28a; }
.faq-section { display: grid; grid-template-columns: 1fr 1.55fr; gap: 80px; }
.faq-section h2 { font-size: 29px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 14px; font-weight: 550; }
summary::-webkit-details-marker { display: none; }
summary > span { flex: 0 0 auto; color: var(--quiet); font-size: 20px; line-height: 1; transition: transform .2s; }
details[open] > summary > span { transform: rotate(45deg); }
.faq-list details p { font-size: 13px; color: var(--muted); margin-top: 15px; padding-right: 25px; line-height: 1.9; }
.closing { text-align: center; padding-block: 120px 95px; }
.closing > img { border-radius: 16px; margin: 0 auto 24px; }
.closing h2 { font-size: 37px; }
.closing > p { color: var(--muted); font-size: 12px; margin-top: 17px; }
.closing .button-primary { margin-top: 25px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 35px; display: flex; align-items: center; justify-content: space-between; gap: 28px; font-size: 11px; color: var(--quiet); }
.footer-brand { font-size: 15px; color: var(--ink); font-weight: 600; }
.footer-brand span { color: var(--quiet); margin-left: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer small { font-size: 10px; white-space: nowrap; }
@media (max-width: 1100px) {
  .shell { width: calc(100% - 64px); }
  .hero-actions { gap: 16px; }
  .button-primary, .button-outline { font-size: 12px; padding-inline: 16px; }
  .section-nav { margin-right: 15px; gap: 25px; }
  .faq-section { gap: 48px; }
  .site-footer { gap: 20px; flex-wrap: wrap; }
}
@media (max-width: 800px) {
  .shell { width: calc(100% - 40px); }
  .nav-inner { min-height: 66px; gap: 15px; }
  .brand { font-size: 21px; }
  .brand img { width: 30px; height: 30px; }
  .section-nav { gap: 17px; margin-right: 0; font-size: 12px; }
  .nav-actions { gap: 12px; }
  .section { padding-top: 75px; }
  .section-heading { gap: 30px; }
  .section-heading > p { max-width: 230px; font-size: 13px; }
  h2 { font-size: 29px; }
  .faq-section { grid-template-columns: 1fr; gap: 28px; }
  .faq-section .eyebrow { margin-bottom: 12px; }
  .closing { padding-block: 85px 65px; }
  .site-footer { flex-wrap: wrap; gap: 16px; }
  .footer-links { gap: 16px; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 85px; }
  .section-nav { display: none; }
  .nav-actions { margin-left: auto; gap: 18px; }
  h1 { font-size: 40px; }
  .hero-lead { font-size: 14px; line-height: 1.95; }
  .hero-actions { gap: 17px; margin-top: 25px; }
  .text-link { font-size: 12px; }
  .system-note { font-size: 10px; }
  .section { padding-top: 60px; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-heading > p { margin-top: 18px; max-width: 100%; }
  .eyebrow { font-size: 10px; margin-bottom: 15px; }
  h2 { font-size: 29px; }
  h3 { font-size: 20px; }
  .feature-list { margin-top: 20px; gap: 10px; }
  .feature-list li { font-size: 12px; }
  .faq-section { gap: 22px; }
  .faq-section h2 { font-size: 27px; }
  .faq-list summary { font-size: 13px; }
  .faq-list details p { font-size: 12px; }
  .closing { padding-block: 70px 50px; }
  .closing h2 { font-size: 28px; }
  .closing > p { font-size: 11px; }
  .site-footer { align-items: flex-start; padding-block: 24px; }
  .footer-links { width: 100%; order: 2; gap: 14px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
