/* Desktop presentation around the phone. Not part of the app. */
:root {
  --bg: #EEF0F4; --panel: #FFFFFF; --ink: #111318; --ink-2: #545A6B; --ink-3: #5F6577;
  --line: rgba(17, 19, 24, 0.09); --fill: rgba(116, 122, 138, 0.12); --navy: #102561; --tint: #2747B5;
  --teal: #06A898; --violet: #8C52FE; --coral: #EF7246; --saffron: #F2BC48;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.top { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: auto; }
.brand-name { margin: 0; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--navy); }
.brand-sub { font-size: 14px; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--line); }
.views { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--fill); }
.view { border: 0; background: none; height: 32px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.view.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.view[disabled] { cursor: default; }
.view .soon { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: rgba(242, 188, 72, 0.25); color: #7A4F00; }
.top-actions { justify-self: end; display: flex; gap: 10px; align-items: center; }
.seg { display: flex; padding: 3px; border-radius: 11px; background: var(--fill); }
.seg button { border: 0; background: none; height: 28px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-checked="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.ghost { border: 0; height: 34px; padding: 0 14px; border-radius: 11px; background: var(--panel); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.15s; }
.ghost:hover { background: #F7F8FA; }
.ghost.sm { height: 30px; font-size: 13px; }

.layout { height: calc(100% - 64px); display: grid; grid-template-columns: 280px 1fr 340px; grid-template-rows: minmax(0, 1fr); gap: 0; }
.layout > * { min-height: 0; }
.flows, .notes { overflow-y: auto; padding: 8px 20px 28px; scrollbar-width: thin; }
.flows-head h2 { margin: 6px 0 2px; font-size: 15px; }
.flows-head p { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); line-height: 18px; }
.flow-group { margin-bottom: 18px; }
.flow-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.flow-group h3 i { width: 8px; height: 8px; border-radius: 50%; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.flow-list button { width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 9px; font-size: 14px; line-height: 18px; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; transition: background-color 0.15s, color 0.15s; }
.flow-list button:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.flow-list button[aria-current="true"] { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.flow-list .n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; width: 16px; flex: none; font-weight: 500; }
.demo-box { margin-top: 10px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px var(--line); }
.demo-box h3 { margin: 0 0 2px; font-size: 13px; }
.demo-box p { margin: 0 0 10px; font-size: 12px; color: var(--ink-3); line-height: 16px; }
.demo-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; position: relative; overflow: hidden; }
.device-wrap { transform-origin: 50% 50%; }
.device {
  position: relative; width: 419px; height: 878px; border-radius: 68px; padding: 13px;
  background: linear-gradient(145deg, #3A3C42, #1B1C20 40%, #2C2E33 70%, #18191C);
  box-shadow: 0 0 0 1.5px #5B5E66 inset, 0 0 0 4px #0B0B0D inset, 0 50px 90px -30px rgba(16, 24, 56, 0.45), 0 20px 40px -20px rgba(16, 24, 56, 0.3);
}
.device:focus { outline: none; }
.btn-side { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2A2B30, #4A4C53); }
.btn-side.b1 { left: -3px; top: 150px; height: 32px; }
.btn-side.b2 { left: -3px; top: 210px; height: 62px; }
.btn-side.b3 { left: -3px; top: 286px; height: 62px; }
.btn-side.b4 { right: -3px; top: 240px; height: 96px; }
.screen { position: relative; width: 393px; height: 852px; border-radius: 55px; overflow: hidden; background: #000; isolation: isolate; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.island { position: absolute; z-index: 2; left: 50%; top: 11px; width: 125px; height: 36px; margin-left: -62.5px; border-radius: 20px; background: #000; pointer-events: none; }
.hint { margin: 18px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }

.notes { padding-top: 14px; }
.note-card { background: var(--panel); border-radius: 18px; padding: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.note-card .kicker { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.note-card .kicker i { width: 8px; height: 8px; border-radius: 50%; }
.note-card h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.02em; line-height: 25px; }
.note-card p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; }
.note-card h3 { margin: 16px 0 6px; font-size: 13px; color: var(--ink); }
.note-card ul { margin: 0; padding-left: 16px; display: grid; gap: 6px; font-size: 14px; line-height: 19px; color: var(--ink-2); }
.note-card .route { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font: 12px/16px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-3); word-break: break-all; }
.legend { margin-top: 14px; background: var(--panel); border-radius: 18px; padding: 16px 18px; }
.legend h3 { margin: 0 0 10px; font-size: 13px; }
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 13px; line-height: 18px; color: var(--ink-2); align-items: start; }
.legend li i { width: 14px; height: 14px; border-radius: 4px 9px 4px 9px; margin-top: 2px; }
.legend li b { color: var(--ink); font-weight: 600; }

.qr { border: 0; border-radius: 22px; padding: 24px; width: 340px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.35); }
.qr::backdrop { background: rgba(10, 14, 30, 0.35); backdrop-filter: blur(4px); }
.qr h2 { margin: 0 0 6px; font-size: 18px; }
.qr p { margin: 0 0 14px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.qr-code { display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; }
.qr-code img, .qr-code svg { width: 220px; height: 220px; }
.qr-url { font: 12px/16px ui-monospace, Menlo, monospace !important; word-break: break-all; text-align: center; }
.qr .ghost { width: 100%; }

@media (max-width: 1180px) { .layout { grid-template-columns: 240px 1fr; } .notes { display: none; } }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .flows { display: none; } .brand-sub { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; } }

/* Website view: a browser window */
.browser-wrap { transform-origin: 50% 0; }
.browser { width: var(--bw, 1440px); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 40px 90px -30px rgba(16, 24, 56, 0.4), 0 16px 32px -16px rgba(16, 24, 56, 0.24); }
.b-bar { height: 52px; display: grid; grid-template-columns: 1fr minmax(0, 520px) 1fr; align-items: center; gap: 14px; padding: 0 14px; background: #ECEDF1; border-bottom: 0.5px solid rgba(0, 0, 0, 0.1); }
.b-dots { display: flex; gap: 8px; }
.b-dots i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.b-dots i:nth-child(2) { background: #FEBC2E; } .b-dots i:nth-child(3) { background: #28C840; }
.b-url { grid-column: 2; justify-self: center; min-width: 0; max-width: 520px; width: 100%; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, 0.85); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 12px; }
.b-url b { color: var(--ink); font-weight: 600; }
.browser iframe { display: block; width: 100%; height: var(--bh, 900px); border: 0; background: #fff; }
.b-sizes button { font-size: 12px; padding: 0 10px; }
.layout.web-view { grid-template-columns: 260px 1fr; }
.layout.web-view .notes { display: none; }
@media (max-width: 1180px) { .layout.web-view { grid-template-columns: 220px 1fr; } }
@media (max-width: 900px) { .layout.web-view { grid-template-columns: 1fr; } }
.browser.narrow .b-url, .browser.narrow .b-open { display: none; }
.browser.narrow .b-bar { grid-template-columns: auto 1fr; }
.browser.narrow .b-sizes { justify-self: end; }

.wipe-card { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; justify-items: center; gap: 14px; padding: 30px 34px 22px; border-radius: 32px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.4); }
.wipe-card .wc-logo { width: 170px; }
.wipe-card span { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
/* Toolbar link sits like the buttons beside it */
.b-open { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; border-radius: 9px; font-size: 13px; line-height: 1; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.b-open:hover { background: #F7F8FA; }
.b-bar > * { align-self: center; }
.b-sizes { height: 34px; align-items: center; }
.b-open { grid-column: 3; justify-self: end; }
.b-dots { grid-column: 1; grid-row: 1; justify-self: start; }
.b-url { grid-row: 1; } .b-open { grid-row: 1; }
