/* Duo SGI — corporate site. Palette C · V3 Plum mist (duo-brand/export/tokens.json). */

@font-face { font-family: 'Figtree'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/figtree-600.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/figtree-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }

:root {
  --paper: #FFFFFF;
  --surface: #F5F0F8;        /* plum mist */
  --surface-2: #F9F6FB;
  --card: #FFFFFF;
  --text: #231829;
  --muted: #665A6F;
  --line: #ECE5F0;
  --line-strong: #E0D6E7;
  --plum: #52235F;
  --plum-hover: #622E71;
  --plum-deep: #3A2140;
  --plum-ink: #76398A;
  --apricot: #EE8F52;
  --apricot-ink: #A4501B;
  --go: #24694E;
  --go-wash: #E1F2EA;
  --btn-bg: #52235F;
  --btn-text: #FFFFFF;
  --btn-hover: #622E71;
  --mark-ink: #52235F;
  --mark-rise: #EE8F52;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --shadow: 0 1px 2px rgba(35, 24, 41, 0.04), 0 8px 24px -12px rgba(58, 33, 64, 0.12);
  --shadow-hover: 0 1px 2px rgba(35, 24, 41, 0.05), 0 18px 40px -18px rgba(58, 33, 64, 0.24);
  --band-bg: #3A2140;
  --band-text: #F6F0F8;
  --band-muted: #CDBCD6;

  --font-display: 'Figtree', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.32, 0.64, 1);
  --gutter: 40px;
  --max: 1160px;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #140F17;
    --surface: #1A141E;
    --surface-2: #17111A;
    --card: #1C1520;
    --text: #F6F0F8;
    --muted: #AE9FB6;
    --line: #2E2434;
    --line-strong: #3A2E40;
    --plum: #C9A2DB;
    --plum-ink: #D9B8E8;
    --apricot: #F29D66;
    --apricot-ink: #F4A775;
    --go: #5CC795;
    --go-wash: #12291F;
    --btn-bg: #E6D3EE;
    --btn-text: #3A1A45;
    --btn-hover: #F1E4F6;
    --mark-ink: #F6F0F8;
    --mark-rise: #F29D66;
    --nav-bg: rgba(20, 15, 23, 0.72);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --band-bg: #251C2A;
    --band-text: #F6F0F8;
    --band-muted: #AE9FB6;
  }
}
:root[data-theme="dark"] {
  --paper: #140F17; --surface: #1A141E; --surface-2: #17111A; --card: #1C1520;
  --text: #F6F0F8; --muted: #AE9FB6; --line: #2E2434; --line-strong: #3A2E40;
  --plum: #C9A2DB; --plum-ink: #D9B8E8; --apricot: #F29D66; --apricot-ink: #F4A775;
  --go: #5CC795; --go-wash: #12291F; --btn-bg: #E6D3EE; --btn-text: #3A1A45; --btn-hover: #F1E4F6;
  --mark-ink: #F6F0F8; --mark-rise: #F29D66; --nav-bg: rgba(20, 15, 23, 0.72);
  --shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5); --shadow-hover: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --band-bg: #251C2A; --band-text: #F6F0F8; --band-muted: #AE9FB6;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--text); }
p { margin: 0; }
::selection { background: var(--apricot); color: #231829; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -48px; padding: 8px 14px; background: var(--btn-bg); color: var(--btn-text); border-radius: 10px; z-index: 100; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Mark ---------- */
.mark .ink { fill: var(--mark-ink); }
.mark .rise { fill: var(--mark-rise); }
.mark--sm { width: 17px; height: auto; display: block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out);
}
.nav--scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 0; font-family: var(--font-display); line-height: 1; }
.wordmark .mark { margin-right: 9px; }
.wordmark__name { font-weight: 700; font-size: 21px; letter-spacing: -0.025em; color: var(--text); }
.wordmark__desc { font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--muted); margin-left: 6px; }
.nav__links { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.nav__links a { padding: 8px 12px; border-radius: 999px; color: var(--muted); transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links .nav__out { color: var(--text); font-weight: 600; }
.arrow { display: inline-block; margin-left: 4px; font-size: .92em; transition: transform .25s var(--ease-out); }
a:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--apricot-ink);
  margin-bottom: 20px;
}

/* ---------- Hero ---------- */
.hero { padding: 104px 0 120px; position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(46px, 6.2vw, 86px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  max-width: 11ch;
}
.lede { margin-top: 28px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); max-width: 33em; }
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px;
  border-radius: 999px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 6px 18px -8px rgba(58, 33, 64, 0.45); }
.btn--primary:hover { background: var(--btn-hover); }
.btn--quiet { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--quiet:hover { background: var(--surface); }

.hero__art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 460px; justify-self: end; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.orbit--1 { inset: 0; background: radial-gradient(closest-side, var(--surface) 0%, var(--surface) 62%, transparent 100%); border-color: var(--line); }
.orbit--2 { inset: 14%; border-color: var(--line-strong); opacity: .7; }
.orbit--3 { inset: 28%; border-style: dashed; border-color: var(--line-strong); opacity: .55; animation: spin 90s linear infinite; }
.mark--hero { position: relative; width: 34%; height: auto; overflow: visible; }
.mark--hero .ink, .mark--hero .rise { transform-box: fill-box; }
.js .mark--hero .ink { animation: settle-ink 1.4s var(--spring) .15s both; }
.js .mark--hero .rise { animation: settle-rise 1.4s var(--spring) .15s both; }
@keyframes settle-ink { from { transform: translate(4px, -12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes settle-rise { from { transform: translate(-4px, 12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: 128px 0; border-top: 1px solid var(--line); }
.section--mist { background: var(--surface-2); }
.section__head { max-width: 760px; margin-bottom: 64px; }
.section h2, .band h2 {
  font-weight: 700;
  font-size: clamp(32px, 3.9vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* Products */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  box-shadow: var(--shadow);
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out), border-color .35s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--line-strong); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.tile {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 12px -6px rgba(58, 33, 64, 0.35);
}
.tile svg { width: 20px; height: auto; overflow: visible; }
.tile--practice { background: linear-gradient(180deg, #622E71, #3A1A45); }
.tile--daily { background: linear-gradient(180deg, #F29C63, #E8844A); }
.tile--hands { background: linear-gradient(180deg, var(--card), var(--surface)); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tile--hands .ink { fill: var(--mark-ink); }
.tile--hands .rise { fill: var(--mark-rise); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.chip--live { color: var(--go); background: var(--go-wash); box-shadow: none; }
.chip--live .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.chip--soon { color: var(--plum-ink); }

.card h3 { font-weight: 700; font-size: 25px; letter-spacing: -0.025em; line-height: 1.15; }
.card__lede { margin-top: 8px; font-size: 16.5px; color: var(--text); line-height: 1.5; }
.card__body { margin-top: 14px; font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.card__list { list-style: none; margin: 18px 0 0; padding: 0; font-size: 15px; color: var(--muted); }
.card__list li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card__list li:last-child { border-bottom: 1px solid var(--line); }
.card__list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--apricot); flex: none; }
.card__link { margin-top: auto; padding-top: 28px; font-size: 15px; font-weight: 600; color: var(--plum); align-self: flex-start; }
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card__link--muted { color: var(--muted); font-weight: 400; }
.card__link--muted:hover { text-decoration: none; }

/* Approach */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.principles li { padding: 32px 32px 8px 0; }
.principles li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.principles__n { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--apricot-ink); letter-spacing: 0.02em; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.principles h3 { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.principles p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 30em; }

/* Band */
.band { background: var(--band-bg); color: var(--band-text); padding: 128px 0; position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; right: -180px; bottom: -260px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(238, 143, 82, 0.20), rgba(238, 143, 82, 0) 70%);
  pointer-events: none;
}
.band__inner { position: relative; z-index: 1; max-width: 860px; }
.band h2 { color: var(--band-text); font-size: clamp(34px, 4.4vw, 60px); }
.band h2 em { font-style: normal; color: #F4A775; }
.eyebrow--onplum { color: #F4A775; }
.band__body { margin-top: 28px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--band-muted); max-width: 36em; }
.band__sig { margin-top: 40px; font-size: 14.5px; color: var(--band-muted); display: flex; align-items: center; gap: 12px; }
.band__sig::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.wordmark--footer .wordmark__name, .wordmark--footer .wordmark__desc { font-size: 18px; }
.footer__links { display: flex; gap: 24px; font-size: 14.5px; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__legal { margin-left: auto; font-size: 14px; color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .mark--hero .ink, .js .mark--hero .rise, .orbit--3 { animation: none; }
  .card, .card:hover { transition: none; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero { padding: 80px 0 96px; }
  .hero__grid { gap: 40px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .card:last-child { grid-column: 1 / -1; }
  .section, .band { padding: 104px 0; }
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { order: -1; justify-self: start; max-width: 200px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles li, .principles li + li { padding: 28px 0; border-left: 0; }
  .principles li + li { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --radius: 18px; }
  body { font-size: 16px; }
  .nav__inner { height: 56px; }
  .nav__links a:not(.nav__out) { display: none; }
  .nav__links .nav__out { padding-right: 0; }
  .nav__links .nav__out:hover { background: none; }
  .hero { padding: 40px 0 72px; }
  .hero__art { max-width: 148px; margin-bottom: 4px; }
  .hero h1 { font-size: clamp(42px, 12vw, 54px); }
  .lede { margin-top: 20px; }
  .actions { margin-top: 32px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 24px 22px 22px; }
  .section, .band { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__legal { margin-left: 0; }
}
