@layer legacy {
/* For Teams page styles. Global look: src/styles/system.css. */

/* For Teams extends Gramium's existing palette and typography. */
.teams-main { width: min(100% - 48px, 1120px); max-width: 1120px; margin: 0 auto; padding: 0; }
.teams-main h1, .teams-main h2, .teams-main h3 { margin: 0; color: var(--ink); letter-spacing: -.035em; }
.teams-main p { margin: 0; }
.teams-main h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 750; }
.teams-main a, .teams-main button { -webkit-tap-highlight-color: transparent; }
.teams-main [id] { scroll-margin-top: 104px; }
.teams-hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 64px; padding: 72px 0 48px; }
.teams-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.75rem); line-height: 1.08; font-weight: 780; }
.teams-hero h1 span, .teams-brief h1 span { color: var(--accent); }
.teams-hero-promise { margin-top: 24px !important; color: var(--ink-soft); font-size: .96rem; }
.teams-hero-description { max-width: 440px; margin-top: 20px !important; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; }
.teams-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.teams-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #0f0f11; font-family: var(--font); font-size: .95rem; font-weight: 750; line-height: 1.4; text-align: center; cursor: pointer; }
.teams-button:hover { background: #76c5ff; border-color: #76c5ff; color: #0f0f11; }
.teams-button svg, .teams-text-link svg, .teams-news-entry svg { flex-shrink: 0; width: 20px; height: 20px; }
.teams-text-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; color: var(--accent); font-family: var(--font); font-size: .95rem; font-weight: 650; cursor: pointer; }
.teams-page-outline { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-surface); padding: 32px; }
.teams-page-outline > p { color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.teams-page-outline ol { margin: 12px 0 0; padding: 0; list-style: none; }
.teams-page-outline li { display: flex; align-items: center; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.teams-page-outline li:last-child { border: 0; padding-bottom: 8px; }
.teams-page-outline li > span { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--accent); font-family: var(--mono); font-size: 1.1rem; }
.teams-page-outline strong, .teams-page-outline small { display: block; }
.teams-page-outline strong { font-size: 1rem; line-height: 1.4; }
.teams-page-outline small { margin-top: 6px; color: var(--ink-soft); font-size: .9rem; }
.teams-news-entry { display: flex; align-items: center; gap: 26px; width: 100%; padding: 20px 24px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-surface); text-align: left; }
.teams-news-entry time { flex-shrink: 0; padding-right: 26px; border-right: 1px solid var(--line-strong); color: var(--muted); font: .72rem/1.5 var(--mono); text-transform: uppercase; }
.teams-news-entry strong { display: block; font-size: .98rem; font-weight: 650; line-height: 1.45; }
.teams-news-entry p { margin: 5px 0 0; color: var(--ink-soft); font-size: .87rem; line-height: 1.5; }
.teams-news-entry a { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; min-height: 44px; color: var(--accent); font-size: .84rem; font-weight: 650; }
.home-discovery-core > .teams-news-entry { margin: 16px 0 24px; }
.teams-deliverables { padding-top: 60px; }
.teams-step-list { list-style: none; padding: 0; margin: 22px 0 0; }
.teams-step-list li { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.teams-step-list li > span { color: var(--accent); font-size: 1.75rem; font-family: var(--mono); }
.teams-step-list h3 { font-size: 1.05rem; line-height: 1.5; letter-spacing: -.01em; }
.teams-step-list p { margin-top: 5px; color: var(--ink-soft); font-size: .98rem; }
.teams-offer { padding-top: 60px; }
.teams-pricing { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; }
.teams-pricing article { padding: 0 56px 12px 0; }
.teams-pricing article + article { border-left: 1px solid var(--line-strong); padding: 0 0 12px 56px; }
.teams-pricing h3 { font: .76rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.teams-price { margin-top: 10px !important; font-size: 3rem; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); }
.teams-price-period { margin-top: 7px !important; color: var(--ink-soft); font-size: .95rem; }
.teams-plan-intro { margin-top: 22px !important; color: var(--ink-soft); font-size: .95rem; }
.teams-pricing ul { padding: 0; margin: 20px 0 0; list-style: none; }
.teams-pricing li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.teams-pricing li:last-child { border: 0; }
.teams-offer-note { padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; line-height: 1.65; }
.teams-review { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 50px 0 64px; margin-top: 44px; border-top: 1px solid var(--line); }
.teams-review-intro > p { margin-top: 20px; color: var(--ink-soft); }
.teams-review-detail { max-width: 350px; font-size: .9rem; }
.teams-review-intro > a { margin-top: 16px; font-size: .83rem; overflow-wrap: anywhere; }
.teams-form { display: grid; gap: 17px; }
.teams-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: .85rem; font-weight: 500; }
.teams-form input, .teams-form textarea { display: block; width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg-surface); color: var(--ink); padding: 11px 13px; font: .95rem/1.5 var(--font); box-shadow: none; }
.teams-form textarea { resize: vertical; min-height: 112px; }
.teams-form input::placeholder, .teams-form textarea::placeholder { color: var(--muted); opacity: 1; }
.teams-form input:focus-visible, .teams-form textarea:focus-visible, .teams-main a:focus-visible, .teams-main button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.teams-form > small { margin-top: -11px; color: var(--muted); font-size: .75rem; }
.teams-form-privacy { color: var(--muted); font-size: .78rem; line-height: 1.7; }
.teams-form-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.teams-draft { margin-top: 26px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 22px; background: var(--bg-surface); }
.teams-draft[hidden] { display: none; }
.teams-draft h3 { font-size: 1.1rem; letter-spacing: -.01em; }
.teams-draft > p { margin-top: 12px; color: var(--muted); font-size: .85rem; }
.teams-draft pre { margin: 18px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-soft); font: .8rem/1.7 var(--mono); }
.teams-draft .teams-actions { gap: 14px; }
.teams-draft .teams-button { padding: 10px 14px; }
.teams-noscript { margin-top: 20px !important; color: var(--ink-soft); }
.no-js .teams-form { display: none; }
.teams-site-header .header-inner { grid-template-columns: auto 1fr auto; max-width: 1120px; }
.teams-site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.teams-site-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100% - 48px, 1120px); margin: auto; }
.teams-site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; color: var(--ink-soft); font-size: .85rem; }
.teams-brief { max-width: 920px; margin: auto; padding: 42px 0 64px; }
.teams-brief header { padding: 42px 0 40px; border-bottom: 1px solid var(--line); }
.teams-brief-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; color: var(--muted); font: .76rem/1.5 var(--mono); }
.teams-brief h1 { font-size: clamp(3rem, 6vw, 4.8rem); font-weight: 780; line-height: 1.05; }
.teams-brief-lead { max-width: 740px; margin: 26px 0 20px !important; color: var(--ink-soft); font-size: 1.2rem; line-height: 1.7; }
.teams-brief-body { max-width: 740px; }
.teams-brief-body section { margin-top: 38px; }
.teams-brief-body h2 { font-size: 1.6rem; }
.teams-brief-body p, .teams-brief-body ul { margin-top: 18px; color: var(--ink-soft); line-height: 1.85; }
.teams-brief-body li { margin-top: 8px; padding-left: 5px; }
.teams-brief-offer { display: flex; align-items: center; gap: 32px; padding: 32px; margin-top: 44px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-surface); }
.teams-brief-offer > div > span { color: var(--accent); font: .78rem/1.5 var(--mono); }
.teams-brief-offer h2 { font-size: 1.9rem; margin-top: 12px; }
.teams-brief-offer p { margin-top: 12px; color: var(--ink-soft); font-size: .95rem; }
.teams-brief-offer > a { flex-shrink: 0; }
.teams-brief-offer-price { font-weight: 700; }
.teams-brief-offer-price span { font-weight: 400; }
.teams-article-disclosure { margin-top: 22px !important; color: var(--muted); font-size: .8rem; }
@media (max-width: 980px) {
  .teams-site-header .header-inner { grid-template-columns: 1fr auto; }
  .teams-hero { gap: 32px; padding-top: 48px; }
  .teams-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3rem); }
  .teams-page-outline { padding: 24px; }
  .teams-page-outline li { gap: 16px; }
  .teams-news-entry { flex-wrap: wrap; gap: 10px 20px; }
  .teams-news-entry a { margin-left: 0; }
  .teams-review { gap: 32px; }
}
@media (max-width: 680px) {
  .teams-main { width: calc(100% - 36px); }
  .teams-hero { grid-template-columns: 1fr; padding: 36px 0 28px; gap: 30px; }
  .teams-hero h1 { font-size: clamp(2.1rem, 7.8vw, 3.2rem); }
  .teams-hero-promise { font-size: .9rem; margin-top: 20px !important; }
  .teams-hero-description { font-size: 1rem; margin-top: 16px !important; }
  .teams-actions { gap: 16px; margin-top: 22px; }
  .teams-page-outline { padding: 20px; }
  .teams-page-outline li { padding: 18px 0; }
  .teams-page-outline small { font-size: .85rem; }
  .teams-news-entry { display: grid; gap: 9px; padding: 18px; }
  .teams-news-entry time { padding-right: 0; border: 0; }
  .teams-news-entry a { font-size: .85rem; }
  .teams-deliverables, .teams-offer { padding-top: 40px; }
  .teams-step-list li { grid-template-columns: 36px 1fr; gap: 16px; padding: 22px 0; }
  .teams-step-list li > span { font-size: 1.3rem; }
  .teams-step-list h3 { font-size: 1rem; }
  .teams-step-list p { font-size: .9rem; }
  .teams-pricing { grid-template-columns: 1fr; gap: 26px; }
  .teams-pricing article { padding: 0; }
  .teams-pricing article + article { padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .teams-offer-note { margin-top: 20px !important; }
  .teams-review { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; padding: 36px 0 48px; }
  .teams-review-intro h2 br { display: none; }
  .teams-review-detail { max-width: none; }
  .teams-site-footer > div { width: calc(100% - 36px); align-items: flex-start; flex-direction: column; }
  .teams-site-footer nav { gap: 20px; }
  .teams-brief { padding-top: 24px; }
  .teams-brief header { padding-top: 30px; }
  .teams-brief h1 { font-size: 3.2rem; }
  .teams-brief-lead { font-size: 1.05rem; }
  .teams-brief-offer { flex-direction: column; align-items: flex-start; padding: 24px; gap: 24px; }
  .teams-draft { padding: 18px; }
}
}
