/* Home page only. */
.home nav.top.bar { position: fixed; inset: 0 0 auto; z-index: 10; padding: 0; background: transparent; transition: background-color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.home nav.top.bar .inner { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.home nav.top.bar .logo { opacity: 0; transform: translateY(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.home.scrolled nav.top.bar { background: var(--bg); border-bottom-color: var(--line); }
.home.scrolled nav.top.bar .logo { opacity: 1; transform: none; pointer-events: auto; }

/* The big logo */
.mark { margin: 0; color: var(--fg); line-height: 0; font-size: 0; }
.mark svg { width: 100%; height: auto; overflow: visible; display: block; }
.mark .cutline { stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; fill: none; }
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero .mark { width: min(86vw, 1180px); margin: 0 auto; cursor: crosshair; will-change: transform, opacity; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 26px; margin: 0; font-size: 15px; }

.label { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 24px; }
.meta b { color: var(--fg); font-weight: 800; display: inline-block; min-width: 1.5em; transition: transform .25s var(--ease); }
.meta b.bump { transform: scale(1.35); }
.meta .why { margin-left: auto; color: var(--wordy); transition: opacity .3s; }

/* (01) The sentence that cuts itself */
.sentence { position: relative; font-size: clamp(30px, 5.2vw, 72px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 800; margin: 0; min-height: 2.3em; transition: opacity .6s var(--ease); }
.tok.marked { text-decoration: underline; text-decoration-color: var(--k, var(--wordy)); text-decoration-thickness: .06em; text-underline-offset: .12em; }
.tok.marked.trail { text-decoration: none; }
.sentence.fade { opacity: 0; }

/* (02) Try it */
.editor { position: relative; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--line); }
.editor textarea, .editor .backdrop, .editor .stage { font: 400 clamp(20px, 2.4vw, 28px)/1.5 "Rethink Sans", sans-serif; letter-spacing: -0.01em; padding: 22px 0; margin: 0; border: 0; width: 100%; white-space: pre-wrap; overflow-wrap: break-word; }
.editor textarea { position: relative; z-index: 1; background: transparent; color: var(--fg); min-height: 4.5em; resize: none; display: block; overflow: hidden; caret-color: var(--fg); }
.editor textarea:focus { border: 0; }
.editor .backdrop { position: absolute; inset: 0; color: transparent; pointer-events: none; }
.editor .backdrop span { text-decoration-line: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.editor .backdrop .wordy { text-decoration-color: var(--wordy); } .editor .backdrop .passive { text-decoration-color: var(--passive); }
.editor .backdrop .weak { text-decoration-color: var(--weak); } .editor .backdrop .adverb { text-decoration-color: var(--adverb); }
.editor .backdrop .hard { text-decoration: none; background: color-mix(in srgb, #ffd60a 28%, transparent); }
.editor .backdrop .very-hard { text-decoration: none; background: color-mix(in srgb, var(--proof) 18%, transparent); }
.editor .stage { position: absolute; inset: 0; z-index: 2; background: var(--bg); }
.try-meta .keys { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.k { display: inline-block; width: 14px; height: 3px; margin-right: -6px; vertical-align: middle; }
.k.wordy { background: var(--wordy); } .k.passive { background: var(--passive); } .k.weak { background: var(--weak); } .k.adverb { background: var(--adverb); } .k.hard { background: #ffd60a; height: 10px; opacity: .6; }
.try-meta .btn { margin-left: auto; }

/* (03) Spec rows */
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.01em; }
.rows dt { color: var(--muted); font-size: 15px; padding-top: .3em; }
.rows dd { margin: 0; }
@media (max-width: 700px) { .rows > div { grid-template-columns: 1fr; gap: 4px; } }

/* (04) Shelf-edge labels */
.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .shelf { grid-template-columns: 1fr; } }
.tag { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name name" "what what" "unit amt" "go amt"; gap: 4px 16px; border: 1px solid var(--fg); padding: 20px 22px 18px; text-decoration: none; color: var(--fg); min-height: 210px; align-content: start; transition: background-color .3s, color .3s; }
.tag:hover { background: var(--fg); color: var(--bg); }
.tag .name { grid-area: name; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.tag .what { grid-area: what; font-size: 15px; opacity: .7; margin-bottom: 24px; }
.tag .amt { grid-area: amt; font-weight: 800; font-size: clamp(72px, 10vw, 128px); line-height: .8; letter-spacing: -0.06em; align-self: end; }
.tag .unit { grid-area: unit; font-size: 13px; align-self: end; opacity: .7; }
.tag .go { grid-area: go; font-weight: 800; font-size: 15px; align-self: end; }
.tag[aria-disabled="true"] { pointer-events: none; }
.tag[aria-disabled="true"] .go { opacity: .5; }

/* Footer: the logo again, edge to edge */
footer.big { border: 0; padding: 120px 0 32px; margin: 0; }
.foot-mark { display: block; width: calc(100% - 48px); max-width: 1600px; margin: 0 auto 34px; cursor: crosshair; color: var(--fg); }
footer.big > .row { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; }
.home nav.top.bar .inner { width: 100%; }
.home section.wrap { padding-top: 96px; padding-bottom: 0; }
.price .after { margin: 16px 0 0; }
.price .after a { color: var(--fg); }
.home .sentence .pop { font-size: .5em; color: var(--k, var(--wordy)); letter-spacing: -0.02em; }
.hero-foot { transition: opacity .3s; }

/* (02) Where: Chrome and Mac, shown as tiny versions of where SHRPN lives */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .app-grid { grid-template-columns: 1fr; } }
.app { display: block; border: 1px solid var(--line); padding: 22px; text-decoration: none; color: var(--fg); transition: border-color .3s; }
.app:hover { border-color: var(--fg); }
.app h3 { font-size: 26px; margin: 20px 0 4px; letter-spacing: -0.02em; }
.app .muted { margin: 0 0 16px; font-size: 16px; }
.app .go { font-weight: 800; font-size: 15px; }
.mock { border: 1px solid var(--line); background: var(--soft); height: 170px; overflow: hidden; font-size: 15px; }
.mock .chrome, .mock .menubar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mock .chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock .chrome .url { margin-left: 10px; flex: 1; height: 18px; line-height: 18px; padding: 0 8px; font-size: 11px; color: var(--muted); background: var(--soft); border-radius: 9px; }
.mock .menubar { gap: 14px; font-size: 12px; color: var(--muted); }
.mock .menubar .mb-logo { height: 11px; margin-left: auto; }
.mock .page, .mock .window { padding: 18px 20px; }
.mock .window { margin: 16px 20px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.mock p { margin: 0 0 10px; }
.mock .u { text-decoration: underline 3px var(--wordy); text-underline-offset: 4px; }
.mock .ghost-line { height: 9px; background: var(--line); width: 80%; }
.mock .ghost-line.short { width: 50%; }
