/* SalesDot feature tour. Colors follow apps/mobile/src/ui/tokens.ts and packages/shared/src/brand.ts.
   CSP on salesdot.net allows only same-origin styles and scripts: no inline style attributes or scripts. */
:root{
  color-scheme:light;
  --ink:#0b1c38;--body:#263b55;--muted:#526078;--faint:#617087;
  --mint:#48b79b;--mint-text:#18735e;--ring:#29836e;--accent:#ddf2ec;
  --bg:#f8fafc;--surface:#fff;--subtle:#f0f4f7;--wash:#eaf0f5;--line:#dee5ec;
  --rise:#c0262d;--fall:#1f5bc6;--warn:#7a4a1f;--warn-bg:#fff4e5;
  --ease:cubic-bezier(.2,.8,.2,1);--spring:cubic-bezier(.34,1.56,.64,1);
  --header:76px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;color:var(--ink);background:var(--surface);font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Pretendard","Malgun Gothic",sans-serif;font-size:16px;line-height:1.65;word-break:keep-all;-webkit-font-smoothing:antialiased}
h1,h2,h3,p,ol,ul,dl,dd{margin:0}ol,ul{padding:0;list-style:none}
h1,h2{letter-spacing:-.055em;font-weight:760;line-height:1.18}
h2{font-size:clamp(30px,4vw,46px)}
a{color:inherit;text-underline-offset:5px}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible{outline:3px solid var(--ring);outline-offset:4px;border-radius:6px}
small{display:block}
svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{width:min(1180px,calc(100% - 96px));margin-inline:auto}
.skip{position:absolute;top:-80px;left:20px;background:#fff;padding:12px;z-index:50}.skip:focus{top:10px}

/* Header */
.site-header{height:var(--header);display:flex;align-items:center;justify-content:space-between;width:min(1320px,calc(100% - 96px));margin:auto;border-bottom:1px solid var(--line)}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-size:23px;letter-spacing:-1px;font-weight:780}
.site-header nav{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:600}
.site-header nav a{text-decoration:none;min-height:44px;display:flex;align-items:center}
.site-header nav a[aria-current=page]{color:var(--mint-text)}
.site-header .nav-cta{border:1px solid var(--ink);padding:8px 18px;border-radius:8px}

/* Buttons */
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 24px;border-radius:10px;border:1px solid transparent;text-decoration:none;font-size:15px;font-weight:680;transition:transform .2s var(--ease),background-color .2s,box-shadow .2s}
.button:hover{transform:translateY(-2px)}
.button:active{transform:translateY(0) scale(.98)}
.primary{background:var(--ink);color:#fff;box-shadow:0 8px 20px #0b1c3824}.primary:hover{background:#193459}
.outline{border-color:var(--ink);color:var(--ink)}
.mint{background:var(--mint);color:var(--ink)}.mint:hover{background:#5fc6ab}
.ghost{border-color:#ffffff59;color:#fff}

/* Reveal: hidden only when JS runs, so the page reads fully without it */
.js .reveal{opacity:0;transform:translateY(22px);transition:opacity .7s var(--ease),transform .7s var(--ease);transition-delay:calc(var(--i,0) * 80ms)}
.js .reveal.is-in{opacity:1;transform:none}

/* Hero */
.hero{display:grid;grid-template-columns:1.02fr 1fr;align-items:center;gap:40px;padding-block:72px 64px;min-height:620px}
.kicker{display:flex;align-items:center;gap:9px;color:var(--mint-text);font-size:14px;font-weight:680;margin-bottom:24px}
.kicker-dot{width:8px;height:8px;border-radius:50%;background:var(--mint);box-shadow:0 0 0 0 #48b79b66;animation:ping 2.4s var(--ease) infinite}
h1{font-size:clamp(38px,5vw,64px)}
.hero-lead{color:var(--muted);font-size:18px;line-height:1.8;margin-top:24px;max-width:33em;letter-spacing:-.02em}
.hero-note{font-size:12px;color:var(--faint);margin-top:18px}
.flow{position:relative;aspect-ratio:480/520;width:100%;max-width:500px;justify-self:center;background:radial-gradient(ellipse at 50% 50%,#e9f6f1 0%,#f6fafb 52%,#fff 74%)}
.flow-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.flow-lines path{stroke:#9cc8b9;stroke-width:2;stroke-dasharray:1;stroke-dashoffset:0}
.js .flow-lines path{stroke-dashoffset:1;transition:stroke-dashoffset 2.2s var(--ease) .3s}
.js .flow.is-in .flow-lines path{stroke-dashoffset:0}
.flow-runner{fill:var(--mint);stroke:#48b79b40;stroke-width:12;opacity:0;transition:opacity .6s}
.flow.is-running .flow-runner{opacity:1}
.flow-node{position:absolute;display:flex;gap:11px;align-items:center;width:max-content;max-width:min(250px,58%);padding:13px 15px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 30px #0b1c380d;transform:translate(-50%,-50%)}
.flow-node strong{display:block;font-size:13.5px;line-height:1.45;letter-spacing:-.02em}
.flow-node small{font-size:11px;color:var(--muted)}
.node-step{flex-shrink:0;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--accent);color:var(--mint-text);font-size:12px;font-weight:760}
.node-1{left:25%;top:13.5%}.node-2{left:68.75%;top:38.5%}.node-3{left:29%;top:61.5%}.node-4{left:73%;top:86.5%}
.js .flow-node{opacity:0;translate:0 14px;transition:opacity .6s var(--ease),translate .6s var(--ease)}
.js .flow.is-in .flow-node{opacity:1;translate:0 0}
.flow.is-in .node-2{transition-delay:.55s}.flow.is-in .node-3{transition-delay:1.1s}.flow.is-in .node-4{transition-delay:1.65s}
.flow.is-in .node-4 .node-step{background:var(--mint);color:var(--ink)}

/* Day strip */
.day{padding:8px 0 96px}
.day-list{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid var(--line);position:relative}
.day-list li{padding:28px 24px 0 0;position:relative}
.day-list li::before{content:"";position:absolute;top:-5px;left:0;width:9px;height:9px;border-radius:50%;background:var(--mint)}
.day-time{display:block;font-size:12px;font-weight:700;color:var(--mint-text);margin-bottom:6px}
.day-list strong{display:block;font-size:17px;letter-spacing:-.03em}
.day-list p{font-size:14px;color:var(--muted);margin-top:6px;line-height:1.7}

/* Tour */
.tour{background:var(--bg);padding:96px 0 40px;border-top:1px solid var(--line)}
.tour-head{margin-bottom:40px}
.section-kicker{color:var(--mint-text);font-size:14px;font-weight:680;margin-bottom:14px}
.section-kicker.light{color:var(--mint)}
.tour-sub{color:var(--muted);font-size:15px;margin-top:14px}
.chapters{position:sticky;top:0;z-index:20;background:#f8fafcde;-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-block:1px solid var(--line)}
.chapters-track{display:flex;gap:6px;width:min(1180px,calc(100% - 96px));margin:auto;overflow-x:auto;scrollbar-width:none;padding:10px 0}
.chapters-track::-webkit-scrollbar{display:none}
.chapters a{flex-shrink:0;display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;border-radius:999px;text-decoration:none;font-size:14px;font-weight:620;color:var(--muted);transition:background-color .25s,color .25s}
.chapters a span{font-size:11px;font-weight:700;color:var(--faint);font-variant-numeric:tabular-nums}
.chapters a:hover{color:var(--ink)}
.chapters a[aria-current=true]{background:var(--ink);color:#fff}.chapters a[aria-current=true] span{color:var(--mint)}
.chapters-progress{position:absolute;left:0;bottom:-1px;height:2px;width:100%;background:var(--mint);transform-origin:left;transform:scaleX(var(--progress,0));transition:transform .5s var(--ease)}

.step{display:grid;grid-template-columns:minmax(0,1fr) 372px;grid-template-areas:"head screen" "beats screen";column-gap:clamp(48px,8vw,120px);padding-block:120px 40px;border-bottom:1px solid var(--line)}
.step:last-of-type{border-bottom:0}
.step-head{grid-area:head;max-width:520px}
.step-no{font-size:13px;font-weight:700;color:var(--mint-text);letter-spacing:.02em;margin-bottom:14px}
.step-head h3{font-size:clamp(28px,3.4vw,40px);letter-spacing:-.05em;line-height:1.22;font-weight:760}
.step-head p{color:var(--muted);font-size:16.5px;line-height:1.85;margin-top:18px}
.step-screen{grid-area:screen;position:sticky;top:max(76px,calc(50svh - 300px));align-self:start}
.beats{grid-area:beats;max-width:520px;padding-top:40px;padding-bottom:16vh}
.beats li{min-height:46vh;display:flex;align-items:center}
.beats li:first-child{min-height:30vh;align-items:flex-start}
.beat{display:flex;gap:16px;align-items:flex-start;width:100%;text-align:left;background:none;border:0;border-left:2px solid var(--line);padding:6px 0 6px 20px;opacity:.42;transition:opacity .4s var(--ease),border-color .4s}
.beat strong{display:block;font-size:20px;letter-spacing:-.035em;line-height:1.35}
.beat small{font-size:15px;color:var(--muted);line-height:1.8;margin-top:8px}
.beat-no{flex-shrink:0;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid var(--line);font-size:12px;font-weight:700;color:var(--faint);background:var(--surface);transition:background-color .3s,color .3s,border-color .3s}
.beat:hover{opacity:.75}
.beat[aria-current=step]{opacity:1;border-left-color:var(--mint)}
.beat[aria-current=step] .beat-no{background:var(--ink);border-color:var(--ink);color:#fff}

/* Device */
.device{position:relative;display:flex;flex-direction:column;width:100%;max-width:372px;height:min(640px,calc(100svh - 88px));min-height:520px;margin-inline:auto;background:var(--bg);border:9px solid var(--ink);border-radius:42px;box-shadow:0 40px 80px -30px #0b1c3866,0 0 0 1px #0b1c3814;overflow:hidden;isolation:isolate}
.device::before{content:"";position:absolute;top:9px;left:50%;width:92px;height:24px;margin-left:-46px;border-radius:14px;background:var(--ink);z-index:3}
.js .step .device{opacity:0;transform:translateY(40px) scale(.97);transition:opacity .8s var(--ease),transform .9s var(--ease)}
.js .step.is-seen .device{opacity:1;transform:none}
.app-head{display:flex;align-items:center;justify-content:space-between;padding:46px 20px 8px}
.app-head strong{font-size:25px;letter-spacing:-.04em}
.app-icons{display:flex;gap:14px;color:var(--body)}.app-icons svg{width:21px;height:21px}
.app-tabs{display:flex;gap:4px;padding:0 16px 10px;border-bottom:1px solid var(--line)}
.app-tabs span{font-size:13px;font-weight:650;color:var(--faint);padding:6px 11px;border-radius:999px;transition:background-color .35s,color .35s}
.app-tabs span.on,.app-tabs span.is-on{background:var(--ink);color:#fff}
.app-tabs.inline{padding:0 0 10px;margin-bottom:12px}
.panes{position:relative;flex:1;min-height:0}
.pane{padding:14px 16px 18px}
.js .pane{position:absolute;inset:0;overflow:hidden;opacity:0;visibility:hidden;transform:translateY(14px);transition:opacity .45s var(--ease),transform .55s var(--ease),visibility 0s .45s}
.js .pane.is-on,.js .pane.show-all{opacity:1;visibility:visible;transform:none;transition:opacity .45s var(--ease),transform .55s var(--ease),visibility 0s}
.js .device [data-on-beats]:not(.pane):not(.is-on){display:none}
.js .device [data-on-beats].is-on:not(.pane){animation:rise .5s var(--ease) both}
.js .pane.is-on .stagger,.js .pane.show-all .stagger{animation:rise .55s var(--ease) both;animation-delay:calc(var(--i,0) * 70ms)}
.app-nav{display:flex;justify-content:space-around;align-items:center;padding:8px 8px 14px;background:var(--surface);border-top:1px solid var(--line)}
.app-nav span{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px;font-weight:650;color:var(--faint);min-width:44px}
.app-nav svg{width:20px;height:20px}
.app-nav .on{color:var(--ink)}
.app-nav .agent{width:44px;height:44px;border-radius:50%;background:var(--ink);color:var(--mint);justify-content:center}

/* App atoms */
.pane-meta{font-size:12px;color:var(--muted);margin-bottom:10px}
.pane-label{font-size:13px;font-weight:700;margin:4px 0 8px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.pane-label small{font-size:11px;font-weight:500;color:var(--faint)}
.pane-fine{font-size:11.5px;color:var(--muted);line-height:1.6;margin:8px 0 14px}
.pane-fine.center{text-align:center;margin:18px 22px}
.chip-row{display:flex;gap:6px;overflow:hidden;margin-bottom:12px}
.chip-row.wrap-row{flex-wrap:wrap}
.chip{flex-shrink:0;display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:620;padding:5px 11px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--body)}
.chip.on{background:var(--accent);border-color:#bfe3d7;color:var(--ink)}
.tag{display:inline-block;margin-top:7px;font-size:11px;font-weight:650;color:var(--mint-text);background:var(--accent);border-radius:6px;padding:2px 8px}
.issue{display:flex;gap:11px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 13px;margin-bottom:8px}
.issue small{font-size:11px;color:var(--muted)}
.issue strong{display:block;font-size:13.5px;line-height:1.45;letter-spacing:-.02em}
.issue.ref{background:var(--subtle)}
.grade{flex-shrink:0;display:grid;place-items:center;min-width:28px;height:24px;padding:0 6px;border-radius:7px;font-size:11px;font-weight:760}
.grade.a{background:var(--ink);color:#fff}.grade.b{background:var(--accent);color:var(--ink)}.grade.c{background:var(--wash);color:var(--muted);font-size:10px}

/* 담기 chips and switches */
.pick{min-height:36px;padding:6px 12px 6px 9px;cursor:pointer;transition:background-color .3s,border-color .3s,transform .2s var(--spring)}
.pick svg{width:14px;height:14px;transition:transform .35s var(--spring)}
.pick em{font-style:normal;font-size:11px;color:var(--mint-text);font-weight:700;margin-left:2px}
.pick:hover{border-color:var(--mint)}
.pick:active{transform:scale(.94)}
.pick[aria-pressed=true]{background:var(--subtle);color:var(--faint);border-style:dashed}
.pick[aria-pressed=true] svg{transform:rotate(45deg) scale(0);width:0}
.pick[aria-pressed=true] em{color:var(--faint)}
.kw-list li{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:6px 6px 6px 13px;margin-bottom:6px;font-size:13px;font-weight:650}
.kw-list li>span{flex:1}
.kw-list small{font-size:11px;color:var(--muted);font-weight:500}
.kw-list li.added{animation:pop-in .5s var(--spring) both;border-color:#bfe3d7}
.switch{position:relative;width:44px;height:44px;border:0;background:none;flex-shrink:0}
.switch::before{content:"";position:absolute;left:4px;top:12px;width:36px;height:20px;border-radius:999px;background:var(--disabled,#bac7d4);transition:background-color .3s}
.switch::after{content:"";position:absolute;left:7px;top:15px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0b1c3833;transition:transform .35s var(--spring)}
.switch[aria-checked=true]::before{background:var(--mint)}
.switch[aria-checked=true]::after{transform:translateX(16px)}
.kw-hint{display:flex;gap:6px;align-items:center;font-size:11.5px;color:var(--mint-text);font-weight:600;margin:6px 0 10px}
.kw-hint svg{width:14px;height:14px}
.brief-card{background:var(--ink);color:#fff;border-radius:14px;padding:13px 15px}
.brief-card small{font-size:11px;color:var(--mint)}
.brief-card strong{display:block;font-size:15px;margin:2px 0 4px}
.brief-card span{font-size:11.5px;color:#c7d2df;line-height:1.55;display:block}

/* Issue map */
.theme{display:flex;flex-direction:column;gap:7px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:11px 13px;margin-bottom:7px}
.theme>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.theme strong{font-size:13px}.theme small{font-size:11px;color:var(--muted);white-space:nowrap}
.theme.muted strong{color:var(--faint)}
.bar{display:block;height:5px;border-radius:9px;background:var(--wash);overflow:hidden}
.bar i{display:block;height:100%;width:100%;background:var(--mint);border-radius:9px;transform-origin:left;transform:scaleX(var(--w,0))}
.w-80{--w:.8}.w-40{--w:.4}.w-30{--w:.3}.w-15{--w:.15}.w-0{--w:0}
.js .bar i{transform:scaleX(0);transition:transform 1s var(--ease) .25s}
.js .pane.is-on .bar i{transform:scaleX(var(--w,0))}
.graph{display:block;width:100%;height:auto;max-height:200px;margin:4px 0 8px;overflow:visible}
.graph .edges path{stroke:#9cc8b9;stroke-width:1.6;stroke-dasharray:1;stroke-dashoffset:0}
.js .graph .edges path{stroke-dashoffset:1;transition:stroke-dashoffset .9s var(--ease)}
.js .pane.is-on .graph .edges path{stroke-dashoffset:0}
.js .pane.is-on .graph .edges path:nth-child(2){transition-delay:.12s}.js .pane.is-on .graph .edges path:nth-child(3){transition-delay:.24s}.js .pane.is-on .graph .edges path:nth-child(4){transition-delay:.36s}.js .pane.is-on .graph .edges path:nth-child(5){transition-delay:.48s}
.graph .core{fill:var(--ink);stroke:none}
.graph .core-t{fill:#fff;stroke:none;font-size:10.5px;font-weight:700;text-anchor:middle}
.graph .nodes circle{fill:var(--surface);stroke:var(--mint);stroke-width:2}
.graph .nodes text{fill:var(--body);stroke:none;font-size:10.5px;font-weight:650;text-anchor:middle}
.graph .nodes .hot circle{fill:var(--mint);stroke:#fff;stroke-width:3}
.graph .nodes .hot text{fill:var(--ink);font-weight:760}
.graph .nodes .dim circle{stroke:var(--line)}
.graph .nodes g{transform-box:fill-box;transform-origin:center}
.js .pane.is-on .graph .nodes g{animation:pop-in .5s var(--spring) both}
.js .pane.is-on .graph .nodes g:nth-child(2){animation-delay:.1s}.js .pane.is-on .graph .nodes g:nth-child(3){animation-delay:.2s}.js .pane.is-on .graph .nodes g:nth-child(4){animation-delay:.3s}.js .pane.is-on .graph .nodes g:nth-child(5){animation-delay:.4s}
.graph .hot circle{animation:none}
.step[data-beat="3"] .graph .hot circle{animation:halo 2.2s var(--ease) infinite}
.term-sheet{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;box-shadow:0 -8px 24px #0b1c380f}
.term-sheet small{font-size:11px;color:var(--mint-text);font-weight:650}
.term-sheet strong{display:block;font-size:13.5px;margin:2px 0 8px}
.term-sheet .chip-row{margin-bottom:8px}
.term-sheet p{font-size:11.5px;color:var(--muted)}

/* Company */
.search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:9px 12px;font-size:14px;font-weight:600;margin-bottom:12px}
.search svg{width:17px;height:17px;color:var(--faint)}
.caret{display:inline-block;width:1.5px;height:16px;background:var(--mint-text);margin-left:-6px;animation:blink 1s steps(1) infinite}
.co-head{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:10px}
.co-title{display:flex;justify-content:space-between;align-items:center}
.co-title strong{font-size:17px;letter-spacing:-.03em}
.co-head>small{font-size:11px;color:var(--muted);margin-top:1px}
.star{width:44px;height:44px;margin:-10px -12px -10px 0;border:0;background:none;display:grid;place-items:center;color:var(--faint);position:relative}
.star svg{width:21px;height:21px;transition:transform .4s var(--spring),fill .25s,color .25s}
.star[aria-pressed=true]{color:#d39b1c}.star[aria-pressed=true] svg{fill:#f0c04a;transform:scale(1.18)}
.star.burst::after{content:"";position:absolute;inset:8px;border-radius:50%;border:2px solid #f0c04a;animation:burst .55s var(--ease) forwards}
.quote{display:flex;align-items:baseline;gap:8px;margin-top:9px;padding-top:9px;border-top:1px dashed var(--line);flex-wrap:wrap}
.quote span{font-size:11px;color:var(--muted)}.quote strong{font-size:16px;font-variant-numeric:tabular-nums}
.quote em{font-style:normal;font-size:12px;font-weight:650}.rise{color:var(--rise)}
.co-facts{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}
.fact{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:8px 11px}
.fact small{font-size:10.5px;color:var(--muted)}.fact strong{font-size:14px;font-variant-numeric:tabular-nums}
.filings li{display:flex;gap:10px;font-size:12.5px;font-weight:600;padding:8px 0;border-bottom:1px solid var(--line);line-height:1.45}
.filings span{flex-shrink:0;font-size:11px;color:var(--faint);font-variant-numeric:tabular-nums;padding-top:1px}
.memo{background:#fffdf5;border:1px solid #efe4bf;border-radius:14px;padding:11px 13px;margin-bottom:10px}
.memo-head{display:flex;align-items:center;gap:6px;margin-bottom:5px}
.memo-head svg{width:16px;height:16px;color:var(--warn)}.memo-head strong{font-size:13px}.memo-head small{font-size:10.5px;color:var(--muted);margin-left:auto}
.memo p{font-size:12.5px;line-height:1.65;color:var(--body);min-height:3.3em}
.actionbar{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:4px}
.actionbar span{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10.5px;font-weight:650;color:var(--body);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:7px 2px}
.actionbar svg{width:17px;height:17px}
.watch li{display:flex;gap:11px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:11px 13px;margin-bottom:7px}
.watch strong{font-size:13.5px}.watch small{font-size:11px;color:var(--muted)}
.dot{flex-shrink:0;width:8px;height:8px;border-radius:50%;background:var(--line)}
.dot.new{background:var(--mint);box-shadow:0 0 0 0 #48b79b66;animation:ping 2.4s var(--ease) infinite}

/* Deals */
.deal-stack{position:relative;margin:4px 0 14px}
.sheet{position:absolute;inset:0;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.sheet.s1{transform:translate(0,10px) scale(.95);opacity:.7}.sheet.s2{transform:translate(0,5px) scale(.975);opacity:.85}
.js .step.is-seen .sheet.s1{animation:merge-1 1.1s var(--ease) .3s both}
.js .step.is-seen .sheet.s2{animation:merge-2 1.1s var(--ease) .2s both}
.deal{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:13px 14px;box-shadow:0 10px 24px #0b1c380d}
.deal-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.deal-kind{font-size:11px;font-weight:700;color:var(--mint-text);background:var(--accent);border-radius:6px;padding:2px 8px}
.deal-top small{font-size:11px;color:var(--muted)}
.deal>strong{display:block;font-size:14.5px;letter-spacing:-.025em;line-height:1.45}
.deal dl{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:10px 0 9px}
.deal dt{font-size:10px;color:var(--faint)}.deal dd{font-size:11.5px;font-weight:650;line-height:1.4}
.deal p{font-size:12px;color:var(--muted);line-height:1.65;border-top:1px dashed var(--line);padding-top:8px}
.deal.small{margin-bottom:12px;box-shadow:none}
.note-line{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.6;background:var(--warn-bg);color:var(--warn);border-radius:12px;padding:10px 12px}
.note-line svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}
.linked{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.linked small{font-size:11px;font-weight:700;color:var(--mint-text);width:100%}

/* Contacts / outreach */
.sheet-head{padding:46px 18px 12px;background:var(--surface);border-bottom:1px solid var(--line)}
.sheet-head small{font-size:11px;color:var(--mint-text);font-weight:650}
.sheet-head strong{display:block;font-size:16px;letter-spacing:-.03em;line-height:1.4;margin-top:2px}
.sheet-foot{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:10px 14px 16px;background:var(--surface);border-top:1px solid var(--line)}
.sheet-foot span{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:650;color:var(--body);border:1px solid var(--line);border-radius:10px;padding:9px 4px}
.sheet-foot svg{width:15px;height:15px}
.person{display:flex;align-items:center;gap:11px;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:10px 12px;margin-bottom:7px}
.person>div{flex:1;min-width:0}
.person strong{font-size:13.5px}.person small{font-size:11px;color:var(--muted)}
.avatar{flex-shrink:0;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;font-size:14px;font-weight:650}
.avatar.mint{background:#d9efe6;color:#24574c}.avatar.blue{background:#dee9f4;color:#395d7a}.avatar.lilac{background:#e8e6f5;color:#60598b}.avatar.sand{background:#f4ecdc;color:#6b5328}
.fit{font-size:10.5px;font-weight:700;border-radius:6px;padding:3px 7px;background:var(--wash);color:var(--muted);white-space:nowrap}
.fit.hi{background:var(--accent);color:var(--mint-text)}
.colleague{display:flex;gap:10px;align-items:center;margin-top:12px;padding:12px 13px;border-radius:13px;border:1px dashed #a9d5c6;background:#f4fbf8}
.colleague>div{flex:1}
.colleague small{font-size:11px;color:var(--mint-text);font-weight:650}
.colleague strong{display:block;font-size:13.5px}.colleague b{color:var(--mint-text)}
.colleague p{font-size:11px;color:var(--muted);margin-top:2px}
.mini-btn{flex-shrink:0;min-height:40px;padding:0 13px;border-radius:10px;border:1px solid var(--ink);background:var(--surface);font-size:12px;font-weight:700;transition:background-color .25s,color .25s,transform .2s var(--spring)}
.mini-btn:active{transform:scale(.95)}
.mini-btn.solid{background:var(--ink);color:#fff}
.mini-btn.done{background:var(--accent);border-color:var(--accent);color:var(--mint-text)}
.outreach{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 14px 30px #0b1c380f}
.out-top strong{display:block;font-size:14.5px}.out-top small{font-size:11px;color:var(--muted)}
.channels{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:var(--subtle);border-radius:11px;padding:3px;margin:12px 0}
.channels button{min-height:40px;border:0;border-radius:9px;background:none;font-size:12px;font-weight:650;color:var(--muted);transition:background-color .25s,color .25s,box-shadow .25s}
.channels button[aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:0 2px 6px #0b1c3814}
.out-text{font-size:13px;line-height:1.75;color:var(--body);min-height:9.5em;white-space:pre-line}
.out-text.typing::after{content:"";display:inline-block;width:1.5px;height:14px;margin-left:2px;background:var(--mint-text);vertical-align:-2px;animation:blink 1s steps(1) infinite}
.out-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.out-foot span{font-size:10.5px;color:var(--faint)}

/* Membership */
.import-row{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}
.import-row span{font-size:11.5px;font-weight:650;text-align:center;padding:9px 4px;border-radius:10px;border:1px dashed var(--input,#a5b4c4);color:var(--body)}
.field{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:9px 13px}
.field small{font-size:10.5px;color:var(--muted)}.field span{font-size:14px;font-weight:600}
.code{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:6px 0 14px}
.code span{height:48px;border-radius:11px;border:1.5px solid var(--line);background:var(--surface);display:grid;place-items:center;font-size:21px;font-weight:700;font-variant-numeric:tabular-nums;transition:border-color .2s}
.code span.filled{border-color:var(--mint);animation:pop-in .35s var(--spring) both}
.code span.cursor{border-color:var(--ink)}
.ok-line{display:flex;gap:7px;align-items:flex-start;font-size:12px;font-weight:650;color:var(--mint-text);line-height:1.55;opacity:0;transform:translateY(6px);transition:opacity .4s var(--ease),transform .4s var(--ease)}
.ok-line.show{opacity:1;transform:none}
.ok-line svg{width:16px;height:16px;flex-shrink:0;margin-top:1px}
.org{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:11px 13px;margin-bottom:10px}
.org small{font-size:11px;color:var(--muted);width:100%}.org strong{font-size:15px}
.badge{font-size:10.5px;font-weight:700;border-radius:6px;padding:3px 8px;background:var(--wash);color:var(--muted)}
.badge.ok{background:var(--accent);color:var(--mint-text)}
.badge.status{background:var(--warn-bg);color:var(--warn);transition:background-color .4s,color .4s}
.badge.status.approved{background:var(--accent);color:var(--mint-text);animation:pop-in .45s var(--spring)}
.org-tree{position:relative;padding-left:4px}
.org-node{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:7px;font-size:13px}
.org-node.child{margin-left:22px;position:relative}
.org-node.child::before{content:"";position:absolute;left:-15px;top:-12px;width:12px;height:32px;border-left:1.5px solid var(--line);border-bottom:1.5px solid var(--line);border-bottom-left-radius:8px}

/* Sign-in */
.device.auth{background:var(--surface);justify-content:center;padding:0 20px}
.auth-brand{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:30px}
.auth-brand strong{font-size:26px;letter-spacing:-1px}
.auth-brand small{font-size:13px;color:var(--muted)}
.auth-buttons{display:flex;flex-direction:column;gap:9px}
.auth-btn{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-size:14px;font-weight:650;width:100%}
.auth-btn svg{width:19px;height:19px}
.auth-btn svg.g{stroke:none}.auth-btn svg.g path:nth-child(1){fill:#4285f4}.auth-btn svg.g path:nth-child(2){fill:#34a853}.auth-btn svg.g path:nth-child(3){fill:#fbbc05}.auth-btn svg.g path:nth-child(4){fill:#ea4335}
.auth-btn.dark{background:#000;color:#fff;border-color:#000}
.auth-btn svg.apple{stroke:none;fill:#fff}
.auth-btn em{font-style:normal;font-size:10px;font-weight:700;color:var(--ink);background:var(--mint);border-radius:5px;padding:2px 6px;margin-left:4px}
button.auth-btn{border-color:var(--ink);transition:transform .2s var(--spring)}
button.auth-btn:active{transform:scale(.98)}
button.auth-btn.pending svg{animation:key-turn .9s var(--ease) infinite}
button.auth-btn.pending::after{content:"";position:absolute;inset:-4px;border-radius:15px;border:2px solid var(--mint);animation:halo-box 1.2s var(--ease) infinite}
button.auth-btn.verified{background:var(--accent);border-color:var(--accent);color:var(--mint-text)}

/* Principles + CTA */
.principles{padding:120px 0 110px}
.principles-head{margin-bottom:44px}
.principle-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.principle{background:var(--bg);border:1px solid var(--line);border-radius:18px;padding:26px 22px;transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .35s}
.principle:hover{transform:translateY(-4px);box-shadow:0 18px 36px #0b1c3812;border-color:#c7d5df}
.principle h3{font-size:17px;letter-spacing:-.03em;margin:16px 0 8px}
.principle p{font-size:14px;color:var(--muted);line-height:1.75}
.p-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--ink);color:var(--mint)}
.p-icon svg{width:22px;height:22px}
.cta{background:var(--ink);color:#fff;padding:96px 0;position:relative;overflow:clip}
.cta::before{content:"";position:absolute;right:-120px;top:-160px;width:520px;height:520px;border-radius:50%;border:56px solid #ffffff0a}
.cta::after{content:"";position:absolute;right:120px;top:40px;width:56px;height:56px;border-radius:50%;background:var(--mint);opacity:.9}
.cta-inner{position:relative;display:grid;grid-template-columns:1.2fr 1fr;gap:60px;align-items:end}
.cta-inner h2{color:#fff}
.cta-inner>div>p{color:#c7d2df;margin-top:20px;line-height:1.85;max-width:32em}
.cta-actions{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.cta-fine{font-size:12px;color:#9fb0c3}

/* Footer */
.footer{padding:44px 0 56px;font-size:13px;color:var(--muted)}
.footer-top{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding-bottom:22px;border-bottom:1px solid var(--line);margin-bottom:20px}
.footer-top .brand{font-size:19px;color:var(--ink)}
.footer-top nav{display:flex;gap:18px;flex-wrap:wrap;margin-left:auto}
.footer-top nav a{text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.company p{line-height:1.9}

/* Keyframes */
@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes pop-in{0%{opacity:0;transform:scale(.6)}100%{opacity:1;transform:none}}
@keyframes ping{0%{box-shadow:0 0 0 0 #48b79b73}80%,100%{box-shadow:0 0 0 9px #48b79b00}}
@keyframes halo{0%{stroke-width:3;r:9}50%{stroke-width:6;r:11}100%{stroke-width:3;r:9}}
@keyframes halo-box{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(1.06)}}
@keyframes blink{50%{opacity:0}}
@keyframes burst{from{opacity:1;transform:scale(.6)}to{opacity:0;transform:scale(1.6)}}
@keyframes key-turn{0%,100%{transform:rotate(0)}50%{transform:rotate(-24deg)}}
@keyframes merge-1{0%{transform:translate(-18px,64px) rotate(-5deg);opacity:1}100%{transform:translate(0,10px) scale(.95);opacity:.7}}
@keyframes merge-2{0%{transform:translate(20px,34px) rotate(4deg);opacity:1}100%{transform:translate(0,5px) scale(.975);opacity:.85}}

/* Tablet and phone: one column; screens sit between the heading and the steps */
@media (max-width:1020px){
  .step{grid-template-columns:1fr;grid-template-areas:"head" "screen" "beats";padding-block:80px 64px}
  .step-head,.beats{max-width:none}
  .step-screen{position:relative;top:auto;margin-top:36px}
  .device{height:600px}
  .beats{padding:24px 0 0;display:grid;gap:8px}
  .beats li,.beats li:first-child{min-height:0}
  .beat{border:1px solid var(--line);border-radius:14px;padding:14px;opacity:.7;background:var(--surface)}
  .beat strong{font-size:16px}.beat small{font-size:14px;margin-top:4px}
  .beat[aria-current=step]{border-color:var(--ink);box-shadow:0 8px 20px #0b1c3810}
  .hero{grid-template-columns:1fr;min-height:0;padding-block:48px 40px}
  .day-list{grid-template-columns:1fr 1fr;row-gap:32px}
  .principle-grid{grid-template-columns:1fr 1fr}
  .cta-inner{grid-template-columns:1fr;gap:32px}
}
@media (max-width:720px){
  .wrap,.site-header,.chapters-track{width:calc(100% - 32px)}
  .site-header{height:64px}
  .site-header nav{gap:4px}
  .site-header nav a:not(.nav-cta):not([aria-current]){display:none}
  .site-header nav a[aria-current]{padding:0 8px;font-size:13px}
  .site-header .nav-cta{padding:6px 12px;font-size:13px}
  .brand{font-size:20px}.brand img{width:28px;height:28px}
  .hero-lead{font-size:16px}
  .actions .button{flex:1 1 auto}
  .flow{aspect-ratio:auto;max-width:none;display:grid;gap:10px;padding:18px 0 4px;background:none}
  .flow-lines,.flow-runner{display:none}
  .flow-node{position:relative;left:auto;top:auto;transform:none;max-width:none;width:auto}
  .flow-node:not(:last-child)::after{content:"";position:absolute;left:27px;bottom:-11px;width:2px;height:10px;background:var(--mint)}
  .day{padding-bottom:64px}
  .day-list{grid-template-columns:1fr;row-gap:22px;border-top:0;border-left:1px solid var(--line);margin-left:4px}
  .day-list li{padding:0 0 0 22px}
  .day-list li::before{top:7px;left:-5px}
  .tour{padding-top:72px}
  .chapters a{min-height:44px;padding:0 12px;font-size:13px}
  .step{padding-block:64px 52px}
  .device{height:580px;min-height:0;border-width:8px;border-radius:36px}
  .principles{padding:80px 0}
  .principle-grid{grid-template-columns:1fr}
  .cta{padding:72px 0}
  .cta::after{right:24px;top:24px;width:36px;height:36px}
  .cta-actions .button{width:100%}
  .footer-top nav{margin-left:0}
}
@media (max-width:360px){.device{height:600px}.deal dl{grid-template-columns:1fr 1fr}}

/* Reduced motion: final states, no movement. JS also adds .reduce-motion and skips typing and auto demos. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;animation-delay:0s!important;transition-duration:.001ms!important;transition-delay:0s!important}
  .flow-runner{display:none}
}
.reduce-motion{scroll-behavior:auto}
.reduce-motion *,.reduce-motion *::before,.reduce-motion *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;animation-delay:0s!important;transition-duration:.001ms!important;transition-delay:0s!important}
.reduce-motion .flow-runner,.reduce-motion .caret{display:none}

/* Shared pieces for /guide/ (same tokens and motion as the tour). */
.person .badge{margin-left:auto;flex-shrink:0}
.field small{display:block}
.group-card{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:baseline;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:10px 13px;margin-bottom:7px}
.group-card strong{font-size:14px;letter-spacing:-.02em;transition:color .3s}
.group-card span{font-size:13px;font-weight:700;color:var(--mint-text)}
.group-card small{grid-column:1/-1;font-size:11px;color:var(--muted)}
.pick-chip{min-height:36px;cursor:pointer;transition:background-color .3s,border-color .3s,transform .2s var(--spring)}
.pick-chip:active{transform:scale(.94)}
.pick-chip[aria-pressed=true]{background:var(--accent);border-color:#bfe3d7;color:var(--ink)}
.pick-chip[aria-pressed=true]::before{content:"✓";font-size:11px;color:var(--mint-text);margin-right:2px}
.mini-btn{width:100%;min-height:44px;margin:6px 0 8px;border:0;border-radius:12px;background:var(--ink);color:#fff;font-size:13px;font-weight:700;cursor:pointer;transition:background-color .3s,transform .2s var(--spring)}
.mini-btn:active{transform:scale(.97)}
.mini-btn.done{background:var(--mint);color:var(--ink);animation:pop-in .45s var(--spring)}
.faq{padding:110px 0 100px}
.faq-list{display:grid;gap:12px;max-width:860px}
.faq-list details{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:0 22px;transition:border-color .3s,box-shadow .3s}
.faq-list details[open]{border-color:#bfe3d7;box-shadow:0 12px 30px -24px #0b1c3866}
.faq-list summary{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:17px;font-weight:700;letter-spacing:-.03em;cursor:pointer;list-style:none}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";font-size:22px;font-weight:400;color:var(--mint-text);transition:transform .35s var(--spring)}
.faq-list details[open] summary::after{transform:rotate(45deg)}
.faq-list details p{color:var(--muted);font-size:15px;line-height:1.8;padding:0 0 20px;max-width:46em}

/* Phones: every page in the menu, on a second row that scrolls sideways. */
@media (max-width:720px){
  .site-header{height:auto;flex-wrap:wrap;row-gap:2px;padding:10px 0 4px;position:relative}
  .site-header nav{order:3;width:100%;gap:18px;overflow-x:auto;scrollbar-width:none}
  .site-header nav::-webkit-scrollbar{display:none}
  .site-header nav a:not(.nav-cta):not([aria-current]){display:flex}
  .site-header nav a,.site-header nav a[aria-current]{padding:0;font-size:13.5px;white-space:nowrap}
  .site-header nav a[aria-current]{box-shadow:inset 0 -2px 0 var(--mint)}
  .site-header .nav-cta{position:absolute;top:12px;right:0;min-height:36px;padding:6px 12px;font-size:13px}
  .faq{padding:72px 0}
  .faq-list summary{font-size:15.5px}
}
