/* LocalHub site. Colors, type and radii come from the app's index.html and tabs/custom.js.
   Dark only for now: every color is a variable here, so a light set can be added later. */

@font-face { font-family: Inter; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e;
  --label: #ffffff; --label-2: rgba(235, 235, 245, .8); --on-wall: rgba(255, 255, 255, .94);
  --sep: rgba(84, 84, 88, .6); --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .32);
  --blue: #0a84ff; --green: #30d158; --orange: #ff9f0a; --red: #ff453a; --indigo: #5e5ce6;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --metal-ink: #05060a;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --lift: 0 24px 70px rgba(0, 0, 0, .55);
  --ring: 0 0 0 .5px var(--sep);
  --gap: 22px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--label); font: 17px/1.35 var(--font); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.page { width: 100%; max-width: calc(1040px + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* Hero: the title is the brand. Everything sits in its final place from the start. */
.hero { position: relative; isolation: isolate; text-align: center; }
.hero-body { display: flex; flex-direction: column; align-items: center; padding-top: clamp(52px, 11vh, 124px); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--sep); font-size: 13px; font-weight: 600; letter-spacing: -0.006em; color: var(--label-2); }
.wordmark { margin-top: clamp(14px, 2.6vh, 26px); font: 600 clamp(46px, min(15.6vw, 26vh), 168px)/1.06 var(--display); letter-spacing: -0.05em; white-space: nowrap; }
.word { display: inline-block; }
.tile { display: inline-block; width: .86em; height: .86em; max-width: none; margin: 0 .045em 0 .1em; vertical-align: -.08em; overflow: visible; }
.lede { margin-top: clamp(12px, 2vh, 22px); max-width: 30em; font-size: clamp(18px, 2vw, 23px); line-height: 1.3; letter-spacing: -0.022em; color: var(--label-2); text-wrap: balance; }
.get { display: flex; flex-direction: column; align-items: center; margin-top: clamp(22px, 3.4vh, 34px); }
.download { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px 0 22px; border-radius: 27px; background: linear-gradient(0deg, #e4e7ec 0%, #b4bac2 28%, #8d949e 40%, #d3d7dd 52%, #f1f3f6 82%, #ffffff 100%); color: var(--metal-ink); font: 600 17px/1 var(--font); letter-spacing: -0.015em; text-decoration: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 14px 34px -8px rgba(255, 255, 255, .24); transition: transform .2s var(--ease), box-shadow .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.download > svg, .download > span { position: relative; z-index: 1; }
.download::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1.5px 0 #fff, inset 0 4px 5px rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(255, 255, 255, .7), inset 0 -5px 8px rgba(255, 255, 255, .4); }
.metal { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s var(--ease); }
.metal.on { opacity: 1; }
.download:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 16px 42px -8px rgba(255, 255, 255, .36); }
.download:active { transform: scale(.97); }
.download:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.platform { margin-top: 14px; max-width: 34em; font-size: 14px; line-height: 1.35; letter-spacing: -0.008em; color: var(--label-2); text-wrap: balance; }
.platform b { font-weight: 600; color: var(--label); }
.not-yet { display: none; width: fit-content; max-width: 100%; margin-top: 12px; padding: 9px 15px; border-radius: 18px; background: var(--surface); box-shadow: var(--ring); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.not-yet:target { display: block; scroll-margin-top: 20px; }

/* The opening, driven by assets/js/hero.js. Only opacity and transform, so the layout never moves. */
.reveal { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; display: block; background: var(--bg); }
.intro { overflow: hidden; }
.intro .tile, .intro .word, .intro .arrive, .intro .demo, .intro .wall, .intro .features, .intro .steps, .intro .closing, .intro .foot { opacity: 0; animation: hero-failsafe 0s linear 7s forwards; }
.intro .word-l { transform: translateX(.2em); }
.intro .word-r { transform: translateX(-.2em); }
.intro .arrive, .intro .demo { transform: translateY(14px); }
.intro-move .tile { opacity: 1; animation: none; }
.intro-words .word { opacity: 1; transform: none; animation: none; transition: opacity .45s var(--ease), transform .7s var(--ease); }
.intro-rest .arrive, .intro-rest .demo, .intro-rest .wall, .intro-rest .features, .intro-rest .steps, .intro-rest .closing, .intro-rest .foot { opacity: 1; transform: none; animation: none; transition: opacity .5s var(--ease), transform .7s var(--ease); }
@keyframes hero-failsafe { to { opacity: 1; transform: none; } }

/* Three steps, linking to the setup guide */
.steps { padding-top: clamp(56px, 8vw, 90px); }
.steps h2 { font-size: clamp(25px, 3.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; }
.steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; align-items: baseline; counter-increment: step; padding-top: 12px; box-shadow: 0 -.5px 0 var(--sep); }
.steps li::before { content: counter(step); color: var(--label-2); font: 500 14px/1 var(--mono); }
.steps h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { grid-column: 2; color: var(--label-2); font-size: 15px; line-height: 1.4; letter-spacing: -0.012em; text-wrap: pretty; }
.steps a { display: inline-block; margin-top: 18px; padding-block: 10px; font-weight: 500; color: var(--label); text-decoration: underline 1px rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.steps a:hover { text-decoration-color: currentColor; }
.steps a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 719px) { .steps ol { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* Closing download */
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(70px, 10vw, 120px) 8px; }
.for-phone { display: none; }
.coming { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.018em; text-wrap: balance; }
.on-pc { margin-top: 6px; font-size: 15px; letter-spacing: -0.012em; color: var(--label-2); text-wrap: balance; }
/* Desktop and Mobile side by side: both pictures stand on one line, their captions start on another. */
.both { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 22px clamp(20px, 3.4vw, 40px); width: 100%; }
.both figure { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 22px; min-width: 0; margin: 0; }
.both h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: -0.006em; color: var(--label-2); }
.both figcaption { display: flex; flex-direction: column; align-items: center; }
.both-phone .coming { font-size: 17px; }
.window, .phone { align-self: end; box-shadow: var(--ring), 0 24px 70px -20px rgba(255, 255, 255, .13); }
.window { overflow: hidden; border-radius: 12px; background: var(--surface); }
.window-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; font-size: 13px; font-weight: 500; letter-spacing: -0.006em; }
.window-bar svg { margin-left: auto; color: var(--label-2); }
.window > img { display: block; width: 100%; height: auto; }
.phone { padding: 7px; border-radius: 34px; background: var(--surface); }
.phone-screen { display: grid; place-items: center; overflow: hidden; aspect-ratio: 390 / 844; border-radius: 27px; background: #0b0b0c; }
.phone-screen > img:not(.phone-mark) { display: block; width: 100%; height: auto; }
.phone-mark { opacity: .9; }
.closing h2 { margin: 0 0 clamp(26px, 4vw, 44px); font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.035em; }

/* The real app, one screen per function, with the chrome ribbons passing behind its window. */
.demo { position: relative; isolation: isolate; margin-top: clamp(40px, 7vh, 72px); }
.demo-title { margin: 0 0 22px; font-size: clamp(28px, 4.4vw, 46px); letter-spacing: -0.035em; text-align: center; text-wrap: balance; }
/* Radio inputs drive the tabs, so the tour works with no script and arrow keys move through it. */
.tour { position: relative; }
.tour-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.tour-tabs label { padding: 8px 15px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--label-2); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.tour-tabs label:hover { color: var(--label); }
#tour-search:checked ~ .tour-tabs label[for="tour-search"],
#tour-home:checked ~ .tour-tabs label[for="tour-home"],
#tour-files:checked ~ .tour-tabs label[for="tour-files"],
#tour-calendar:checked ~ .tour-tabs label[for="tour-calendar"],
#tour-assistant:checked ~ .tour-tabs label[for="tour-assistant"],
#tour-browser:checked ~ .tour-tabs label[for="tour-browser"],
#tour-look:checked ~ .tour-tabs label[for="tour-look"] { background: var(--surface-2); color: var(--label); }
#tour-search:focus-visible ~ .tour-tabs label[for="tour-search"],
#tour-home:focus-visible ~ .tour-tabs label[for="tour-home"],
#tour-files:focus-visible ~ .tour-tabs label[for="tour-files"],
#tour-calendar:focus-visible ~ .tour-tabs label[for="tour-calendar"],
#tour-assistant:focus-visible ~ .tour-tabs label[for="tour-assistant"],
#tour-browser:focus-visible ~ .tour-tabs label[for="tour-browser"],
#tour-look:focus-visible ~ .tour-tabs label[for="tour-look"] { outline: 3px solid var(--blue); outline-offset: 2px; }
.tour-panel { display: none; margin: 0; }
#tour-search:checked ~ .tour-panels .tour-search,
#tour-home:checked ~ .tour-panels .tour-home,
#tour-files:checked ~ .tour-panels .tour-files,
#tour-calendar:checked ~ .tour-panels .tour-calendar,
#tour-assistant:checked ~ .tour-panels .tour-assistant,
#tour-browser:checked ~ .tour-panels .tour-browser,
#tour-look:checked ~ .tour-panels .tour-look { display: block; }
.tour-panel figcaption { max-width: 56ch; min-height: 3em; margin: 16px auto 18px; color: var(--label-2); text-align: center; text-wrap: balance; }
.tour-panels { --w: min(100%, 80vw); position: relative; }
.tour-panel img { width: var(--w); height: auto; margin-inline: auto; border-radius: 20px; background: var(--surface); box-shadow: var(--ring), var(--lift); }
/* The browser window is wider than the other screens: even margins keep the page from jumping between tabs. */
.tour-browser { padding-bottom: calc(var(--w) * .0301); }
.tour-browser img { margin-top: calc(18px + var(--w) * .0301); }
.ribbons { position: absolute; z-index: -1; top: 0; bottom: -56px; left: 50%; width: 100vw; margin-left: -50vw; background: url("shots/ribbons.webp") center / cover no-repeat; pointer-events: none; }
.gl .ribbons { background-image: none; }
.ribbons canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .9s var(--ease); }
.ribbons canvas.on { opacity: 1; }
@media (max-width: 719px) {
  .tour-panels { --w: 100%; }
  .ribbons { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .tour-panel { animation: tour-in .35s var(--ease); }
  @keyframes tour-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* The curved row of screens, driven by assets/js/wall.js. Only transforms move, and only while it is on screen. */
.wall { margin-top: clamp(84px, 11vw, 136px); }
.wall-title { margin-bottom: clamp(4px, 1vw, 12px); font-size: clamp(28px, 4.4vw, 46px); letter-spacing: -0.035em; text-align: center; text-wrap: balance; }
.wall-band { --fade: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent); position: relative; overflow: hidden; height: clamp(240px, 30vw, 470px); container-type: size; -webkit-mask-image: var(--fade); mask-image: var(--fade); }
.wall-band::before { content: ""; position: absolute; inset: 0; background: url("shots/wall/still.webp") center / auto 100% no-repeat; }
/* Goes once the live row has faded in over it, so the two never sit on top of each other. */
.wall-live::before { opacity: 0; visibility: hidden; transition: opacity .5s linear .3s, visibility 0s linear .8s; }
.wall-stage { display: none; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.wall-on .wall-stage { display: block; }
.wall-stage.on { opacity: 1; }
.wall-tile { position: absolute; left: calc(50% - var(--a) * var(--h) / 2); top: calc(50% - var(--h) / 2); width: calc(var(--a) * var(--h)); height: var(--h); transform-style: preserve-3d; animation: wall-orbit linear infinite; }
.wall-tile i { position: absolute; top: 0; left: calc((var(--a) - var(--share)) * var(--h) / 2); width: calc(var(--share) * var(--h) + 1px); height: var(--h); background: var(--surface) var(--img) no-repeat; background-size: calc(var(--a) * var(--h)) var(--h); background-position: calc(var(--k) * var(--share) * var(--h) * -1) 0; }
.wall-tile i:first-child { border-radius: calc(var(--h) * .05) 0 0 calc(var(--h) * .05); }
.wall-tile i:last-child { width: calc(var(--share) * var(--h)); border-radius: 0 calc(var(--h) * .05) calc(var(--h) * .05) 0; }

/* Features: the ink-orbit look in the page's dark colours. Square cards, corner brackets, a hatched ground, live diagrams. */
.features { --line: #2a2a2c; --line-strong: #3a3a3c; --bracket: #545458; --raise: #232325; --house-door: #232325; margin-top: clamp(70px, 9vw, 110px); padding-block: clamp(20px, 3vw, 30px); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 10px); }
.ink { padding: clamp(32px, 6vw, 64px) clamp(14px, 3.2vw, 34px) clamp(22px, 4vw, 44px); background: #0e0e0f; box-shadow: 0 0 0 1px var(--line); }
.ink-head { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: clamp(26px, 4.5vw, 48px); text-align: center; }
.ink-tag { padding: 4px 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--label-2); }
.ink-head h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 600; letter-spacing: -0.035em; }
.ink-head h2 span { color: #8e8e93; white-space: nowrap; }
.ink-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.8vw, 30px); }
.ink-wide { grid-column: 1 / -1; }
.ink-frame { position: relative; display: flex; flex-direction: column; }
/* The four corner brackets, drawn with one layer. */
.ink-frame::before { --b: var(--bracket); content: ""; position: absolute; inset: -6px; pointer-events: none; background:
  linear-gradient(var(--b) 0 0) 0 0 / 12px 1.5px, linear-gradient(var(--b) 0 0) 0 0 / 1.5px 12px,
  linear-gradient(var(--b) 0 0) 100% 0 / 12px 1.5px, linear-gradient(var(--b) 0 0) 100% 0 / 1.5px 12px,
  linear-gradient(var(--b) 0 0) 0 100% / 12px 1.5px, linear-gradient(var(--b) 0 0) 0 100% / 1.5px 12px,
  linear-gradient(var(--b) 0 0) 100% 100% / 12px 1.5px, linear-gradient(var(--b) 0 0) 100% 100% / 1.5px 12px; background-repeat: no-repeat; transition: inset .35s var(--ease); }
.ink-frame:hover::before { --b: #aeaeb2; inset: -9px; }
.ink-card { flex: 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: clamp(16px, 2vw, 22px); background: linear-gradient(180deg, var(--raise), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
.ink-card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.ink-card p { color: var(--label-2); font-size: 15px; line-height: 1.4; letter-spacing: -0.012em; text-wrap: pretty; }
.ink-card h3 + p { margin-top: 4px; }
.ink-text { margin-top: auto; }
.ink-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 34px; }
kbd { display: inline-block; padding: .05em .34em .08em; border-radius: .26em; background: var(--fill-2); box-shadow: inset 0 0 0 .5px var(--sep); font: 600 .78em/1.2 var(--mono); letter-spacing: -0.02em; vertical-align: .08em; }

/* The flow: result kinds orbit the bar, pass through LocalHub, come out as one list. */
.ink-flow { overflow: hidden; }
.flow { display: flex; align-items: center; justify-content: center; }
.orbit { --rx: 150px; --ry: 92px; --t: 44s; position: relative; flex: 0 0 auto; width: 370px; height: 244px; }
.orbit::before, .orbit::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(2 * var(--rx)); height: calc(2 * var(--ry)); border: 1px dashed var(--line-strong); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit::after { width: calc(1.3 * var(--rx)); height: calc(1.3 * var(--ry)); border-color: var(--line); }
.orbit-bar { position: absolute; z-index: 1; left: 50%; top: 50%; display: flex; align-items: center; gap: 7px; padding: 8px 10px 8px 12px; border-radius: 19px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong), 0 8px 22px rgba(0, 0, 0, .4); transform: translate(-50%, -50%); }
.ink-card .orbit-bar { color: var(--label); font-size: 14px; font-weight: 500; white-space: nowrap; }
.orbit-bar kbd { font-size: 11px; color: var(--label-2); }
.orbit-chip { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translateX(calc(var(--x) * var(--rx))); }
.orbit-chip b { position: absolute; display: flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 12px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 12.5px; font-weight: 600; letter-spacing: -0.006em; white-space: nowrap; transform: translateY(calc(var(--y) * var(--ry))) translate(-50%, -50%); }
.orbit-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.motion .orbit-chip { animation: orbit-x calc(var(--t) / 2) cubic-bezier(.37, 0, .63, 1) calc(var(--i) / 7 * var(--t) * -1) infinite alternate paused; }
.motion .orbit-chip b { animation: orbit-y calc(var(--t) / 2) cubic-bezier(.37, 0, .63, 1) calc((var(--i) / 7 + .25) * var(--t) * -1) infinite alternate paused; }
.motion .ink-on .orbit-chip, .motion .ink-on .orbit-chip b { animation-play-state: running; }
@keyframes orbit-x { from { transform: translateX(calc(var(--rx) * -1)); } to { transform: translateX(var(--rx)); } }
@keyframes orbit-y { from { opacity: .66; transform: translateY(calc(var(--ry) * -1)) scale(.9) translate(-50%, -50%); } to { opacity: 1; transform: translateY(var(--ry)) scale(1.04) translate(-50%, -50%); } }
.flow-link { position: relative; flex: 0 0 56px; height: 120px; }
.flow-link svg { position: absolute; left: 0; top: 0; width: 56px; height: 120px; overflow: visible; }
.flow-link path, .tool-line { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.flow-link .dash { stroke-dasharray: 3 4; }
.motion .flow-link .dash { animation: ink-dash 1.2s linear infinite paused; }
.ink-on .flow-link .dash { animation-play-state: running; }
@keyframes ink-dash { to { stroke-dashoffset: -14; } }
.pkt { fill: var(--label); }
.ink-card .flow-chip { position: relative; z-index: 0; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 12px; border-radius: 6px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-strong), 0 6px 14px rgba(0, 0, 0, .3); color: var(--label); font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.flow-chip::before { content: ""; position: absolute; inset: -5px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.motion .flow-chip::before { animation: ink-pulse 2.4s ease-in-out infinite paused; }
.ink-on .flow-chip::before { animation-play-state: running; }
@keyframes ink-pulse { 50% { opacity: .35; } }
.flow-rays { position: absolute; z-index: -1; left: 50%; top: 50%; width: 640px; max-width: none; height: 400px; transform: translate(-50%, -50%); pointer-events: none; }
.flow-chev { color: #8e8e93; }
.stack { position: relative; flex: 0 0 auto; width: 236px; height: 148px; margin-right: 22px; }
.sheet { position: absolute; inset: 0; display: block; padding: 11px 12px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sheet-back1 { opacity: .7; transform: translate(11px, -9px); }
.sheet-back2 { opacity: .4; transform: translate(22px, -18px); }
.sheet-front { background: linear-gradient(180deg, #2c2c2e, var(--raise)); }
.ink-card .sheet p { color: var(--label); font: 500 13px/1.2 var(--mono); }
.sheet p::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--blue); }
.sheet ul, .mini ul { margin-top: 8px; box-shadow: 0 -1px 0 var(--line-strong); }
.sheet li, .mini li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 0 0; font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; }
.sheet li span, .mini li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet em, .mini em { flex: none; font-size: 12px; font-style: normal; font-weight: 500; color: var(--label-2); }
.sheet-new { animation: sheet-in .7s var(--ease) both; }
@keyframes sheet-in { from { opacity: 0; transform: translate(14px, -10px) rotate(3deg); } }

/* The assistant's tools. */
.tools { width: 100%; height: auto; max-width: 440px; margin-inline: auto; overflow: visible; }
.tools .node { fill: var(--raise); stroke: var(--line-strong); transition: stroke .3s; }
.tool { color: #aeaeb2; cursor: default; transition: color .3s; }
.tool text { fill: #aeaeb2; font: 500 var(--tool-text, 9px) var(--font); transition: fill .3s; }
.tool.on, .tool:hover { color: var(--label); }
.tool.on .node { stroke: var(--label); }
.tool.on text { fill: var(--label); }
.tool-line { transition: stroke .3s; }
.tool-line.on { stroke: var(--label); }
.tools-status { fill: #aeaeb2; font: 500 calc(var(--tool-text, 9px) - 1px) var(--mono); }

/* The small search bar. */
.mini { min-height: 172px; }
.mini-bar { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 13px; border-radius: 21px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--label-2); }
.mini-bar:focus-within { box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 0 3px var(--blue); }
.mini input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--label); font: 16px/1.2 var(--font); letter-spacing: -0.012em; }
.mini input::placeholder { color: var(--label-2); opacity: 1; }
.mini ul { margin-top: 12px; padding-inline: 4px; box-shadow: none; }
.mini li { padding: 6px 0; box-shadow: 0 .5px 0 var(--sep); font-size: 15px; }
.mini li:last-child { box-shadow: none; }

/* The app's inset grouped list, with hairlines that start under the text. */
.ink-local { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 12px 34px; }
.ink-local .ink-text { margin-top: 0; }
.list div { padding: 9px 0; box-shadow: 0 .5px 0 var(--sep); }
.list div:last-child { box-shadow: none; padding-bottom: 0; }
.list div:first-child { padding-top: 0; }
.list dt { font-size: 13px; font-weight: 600; letter-spacing: -0.006em; color: var(--label-2); }
.list dd { margin-top: 2px; font-weight: 500; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 44px max(36px, env(safe-area-inset-bottom)); font-size: 13px; letter-spacing: -0.006em; color: var(--on-wall); }
.foot-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--label); }
.foot-name img { border-radius: 5px; }
.foot a { color: var(--label); text-decoration: underline 1px rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.foot a:hover { text-decoration-color: currentColor; }
.foot a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* Under this the flow gets narrower, then stands on end, and the cards stack. */
@media (max-width: 1039px) {
  .orbit { --rx: 118px; --ry: 84px; width: 300px; height: 214px; }
  .flow-link { flex-basis: 40px; }
  .flow-link svg { left: -8px; }
  .stack { width: 196px; }
}
@media (max-width: 919px) {
  .flow { flex-direction: column; }
  .orbit { --rx: 150px; --ry: 92px; width: 370px; height: 244px; }
  .flow-link { flex: 0 0 44px; width: 96px; height: 44px; }
  .flow-link svg { left: 20px; top: -38px; transform: rotate(90deg) scale(.8); }
  .flow-rays { width: 400px; height: 250px; }
  .stack { width: 236px; margin-top: 18px; }
}
@media (max-width: 859px) and (min-width: 720px) { .tools { --tool-text: 11px; } }
@media (max-width: 719px) {
  .ink-bento, .ink-copy, .ink-local { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 539px) { .tools { --tool-text: 12px; } }

/* Where an installer is no use: the phone's own lines take the button's place. */
@media (max-width: 639px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  .for-pc, .get .download, .both .download { display: none; }
  .for-phone { display: block; }
  .both-phone { order: -1; }
  .both { grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); }
}

/* Phone */
@media (max-width: 639px) {
  .download { width: min(100%, 340px); }
  .tour-tabs label { padding: 7px 12px; font-size: 14px; }
  .tour-panel img { border-radius: 12px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .both { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 44px; }
  .both figure { grid-row: auto; grid-template-rows: none; }
  .phone { justify-self: center; width: min(60vw, 240px); }
}
@media (max-width: 439px) {
  .orbit { --rx: 104px; --ry: 86px; width: 100%; max-width: 300px; height: 226px; }
  .orbit-chip b { font-size: 12px; }
  .ink-card .orbit-bar { font-size: 13px; }
  .orbit-bar kbd { display: none; }
  .stack { width: calc(100% - 26px); max-width: 236px; }
}
@media (max-width: 359px) {
  .orbit { --rx: 80px; }
  .tools { --tool-text: 14px; }
}

/* ----- LocalHub TV ----- */
.tv { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(64px, 9vw, 110px); }
.tv-tag { font-size: 14px; font-weight: 600; letter-spacing: -0.006em; color: var(--label-2); }
.tv h2 { margin: 8px 0 0; font-size: clamp(28px, 4.6vw, 46px); letter-spacing: -0.035em; text-wrap: balance; }
.tv-lede { max-width: 36em; margin-top: 12px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.4; letter-spacing: -0.015em; color: var(--label-2); text-wrap: pretty; }
.tv-set { width: min(100%, 880px); margin: clamp(26px, 4vw, 44px) 0 0; }
.tv-screen { padding: clamp(5px, .9vw, 9px); border-radius: clamp(8px, 1.4vw, 14px); background: #0b0b0c; box-shadow: var(--ring), 0 30px 90px -24px rgba(255, 255, 255, .14); }
.tv-screen img { display: block; width: 100%; height: auto; border-radius: clamp(3px, .5vw, 6px); }
.tv-stand { display: block; width: 26%; height: clamp(8px, 1.3vw, 14px); margin: 0 auto; border-radius: 0 0 10px 10px; background: linear-gradient(#1c1c1e, #0e0e0f); box-shadow: var(--ring); }
.tv-get { display: flex; flex-direction: column; align-items: center; margin-top: clamp(24px, 3.4vw, 34px); }
.tv-get .platform { text-align: center; }