/* Shared component language for every individual app page, built on top of
   assets/base.css (the home page's token set: --bg/--bg2/--fg/--fg2/--fg3/--hair/
   --hair-soft/--link/--stage/--pill/--accent/--shadow/--mono/--max/--pad).
   First written for carnote.html; factored out here so every app page gets the
   identical treatment instead of a copy-pasted <style> block per page (which is
   exactly how the "flat wordmark" and ".back" cascade bugs happened). */

.back { padding-top: 20px; }
.back a { font-size: 14px; color: var(--fg3); transition: color .2s; } .back a:hover { color: var(--fg); }

/* Same composition as the home page's own hero (.top in index.html): a short back
   link, then nothing but a headline, one line under it, a quieter line under that,
   and the actions row -- in that order, with the same generous top padding, before
   anything else (an icon, a pill, an image) enters the page at all. */
.top { padding: clamp(84px, 11vh, 128px) 0 clamp(28px, 4vw, 48px); text-align: center; }
.top .hero-icon { display: block; width: 96px; height: 96px; margin: 0 auto clamp(20px, 2.6vw, 28px); border-radius: 22.37%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 6px 20px rgba(0, 0, 0, 0.08); }
[data-theme="dark"] .top .hero-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 20px rgba(0, 0, 0, 0.4); }
.top h1 { font-size: clamp(48px, 7vw, 88px); line-height: 1.03; letter-spacing: -0.047em; max-width: 13ch; margin: 0 auto; text-wrap: balance; }
.top h1 em { font-style: normal; color: var(--fg3); }
.top p { margin: 14px auto 0; max-width: 22em; font-size: clamp(21px, 2.5vw, 30px); line-height: 1.2; color: var(--fg2); letter-spacing: -0.02em; text-wrap: balance; }
.top p.why { margin: clamp(22px, 2.8vw, 32px) auto 0; max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--fg3); letter-spacing: -0.012em; }
.top p.why mark { background: color-mix(in srgb, var(--link) 14%, transparent); color: var(--link); font-weight: 600; padding: .06em .24em .1em; border-radius: 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.top .actions { margin-top: clamp(22px, 2.8vw, 32px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.top .id { display: inline-flex; align-items: center; gap: 10px; }
.top .id span { font-size: 15px; color: var(--fg2); }

.hero-stage { border-top: 1px solid var(--hair-soft); padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 5.2vw, 80px); }
.hero-stage .meta { text-align: center; font-size: 13px; color: var(--fg3); margin: 0 0 clamp(24px, 3vw, 40px); }
.hero-stage .stage { width: 100%; max-width: 980px; margin: 0 auto; border-radius: 20px; background: var(--stage); overflow: hidden; }
.hero-stage .stage img { display: block; width: 100%; height: auto; }
.hero-stage .stage picture, .hero-stage .stage img { width: 100%; }

.sec { border-top: 1px solid var(--hair-soft); padding-block: clamp(48px, 5.2vw, 80px); }
.sec.alt { background: var(--bg2); }
.sec h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.04em; text-align: center; margin-bottom: clamp(28px, 3.2vw, 48px); }
.sec h2.left { text-align: left; max-width: 18ch; margin-bottom: 14px; }
.sec .lead { text-align: center; color: var(--fg2); font-size: clamp(16px, 1.3vw, 18px); margin: 0 auto clamp(28px, 3.2vw, 44px); max-width: 58ch; }
.sec .lead + .feats, .sec .lead + .specs, .sec .lead + .steps { margin-top: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.steps > div { border-top: 1px solid var(--hair); padding-top: 18px; }
.steps .n { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .1em; color: var(--fg3); margin: 0 0 36px; }
.steps h3 { font-size: 21px; letter-spacing: -0.02em; margin: 0 0 8px; }
.steps p { font-size: 16.5px; line-height: 1.5; color: var(--fg2); margin: 0; }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(28px, 3.4vw, 56px); }
.feats > div { border-top: 1px solid var(--hair); padding-top: 16px; }
.feats b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.feats p { font-size: 15.5px; line-height: 1.5; color: var(--fg2); margin: 0; }
.feats code, .specs code, .plate code { font: 0.88em var(--mono); background: var(--hair-soft); border-radius: 5px; padding: 1px 6px; }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px clamp(24px, 3vw, 40px); margin-top: clamp(24px, 2.8vw, 36px); }
.specs b { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--fg3); margin-bottom: 5px; }
.specs span { font-size: 16px; line-height: 1.4; color: var(--fg2); }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(30px, 4vw, 64px); }
.split > div { flex: 1 1 340px; min-width: 0; }
.split p { font-size: 17px; line-height: 1.6; color: var(--fg2); margin: 0 0 14px; max-width: 56ch; } .split p:last-child { margin-bottom: 0; }
.diagram { background: var(--bg2); border-radius: 28px; padding: clamp(24px, 3vw, 32px); }
.diagram .day { font-size: 30px; font-weight: 600; margin: 0 0 18px; } .diagram .day span { font-size: 13px; font-weight: 400; color: var(--fg3); letter-spacing: .04em; margin-left: 6px; }
.diagram .rail { position: relative; padding-left: 26px; }
.diagram .rail::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--hair); }
.diagram .item { position: relative; padding-bottom: 20px; }
.diagram .item::before { content: ""; position: absolute; left: -25px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--hair); }
.diagram .item.now::before { background: var(--accent); }
.diagram .item b { display: block; font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.diagram .wave { display: flex; align-items: center; gap: 2px; height: 16px; margin: 6px 0; }
.diagram .wave i { flex: 1; background: var(--hair); border-radius: 1px; }
.diagram .item .meta { font: 11px var(--mono); letter-spacing: .08em; color: var(--fg3); margin: 0; }
.diagram .cap { font-size: 13px; color: var(--fg3); margin: 8px 0 0; }

.cn-frame { position: relative; border-radius: 22px; background: var(--bg2); overflow: hidden; height: clamp(520px, 58vw, 640px); }
.cn-top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 22px 28px; font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); z-index: 2; }
.cn-top b { color: var(--fg); font-weight: 600; margin-right: 8px; }
.cn-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 64px clamp(24px, 4vw, 56px) 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.cn-slide[data-on="true"] { opacity: 1; visibility: visible; }
.cn-copy { align-self: center; max-width: 420px; padding-bottom: 40px; }
.cn-copy h3 { font-size: clamp(28px, 4vw, 48px); line-height: 1.06; letter-spacing: -0.032em; margin: 0 0 16px; text-wrap: balance; }
.cn-copy p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--fg2); margin: 0; }
.cn-slide img { display: block; height: 100%; max-height: 100%; width: auto; max-width: 46%; object-fit: contain; object-position: bottom; margin-right: clamp(0px, 4vw, 64px); }
.cn-bar { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 28px; }
.cn-pill { display: flex; align-items: center; gap: 14px; padding: 0 28px; height: 64px; border-radius: 999px; background: var(--pill); }
.cn-dot { appearance: none; border: 0; background: none; padding: 10px 0; cursor: pointer; }
.cn-dot i { display: block; width: 11px; height: 11px; border-radius: 999px; background: var(--fg3); opacity: .55; overflow: hidden; position: relative; transition: width .3s ease; }
.cn-dot[aria-current="true"] i { width: 44px; opacity: 1; background: rgba(128,128,128,.35); }
.cn-dot[aria-current="true"] i::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(var(--p,0)); }
.cn-play { appearance: none; border: 0; width: 64px; height: 64px; border-radius: 50%; background: var(--pill); color: var(--fg); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cn-dot:focus-visible, .cn-play:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
@media (max-width: 720px) {
  .cn-frame { height: 640px; }
  .cn-slide { flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 64px; gap: 18px; text-align: center; }
  .cn-copy { align-self: auto; padding-bottom: 0; }
  .cn-slide img { max-width: 62%; height: auto; max-height: 340px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .cn-slide { transition: none; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tags span { font-size: 13px; border: 1px solid var(--hair); border-radius: 999px; padding: 5px 13px; color: var(--fg2); }

.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(18px, 2.2vw, 26px); }
.cards3 > div { background: var(--bg2); border-radius: 20px; padding: 22px 24px 24px; }
.cards3 .art { display: flex; align-items: center; justify-content: center; gap: 18px; height: 96px; margin-bottom: 16px; background: var(--stage); border-radius: 12px; }
.cards3 h3 { font-size: 18px; letter-spacing: -0.018em; margin: 0 0 8px; }
.cards3 p { font-size: 15.5px; line-height: 1.55; color: var(--fg2); margin: 0; }

.plate { background: #1d1d1f; color: #f5f5f7; border-radius: 28px; padding: clamp(40px, 5vw, 68px) clamp(24px, 5vw, 64px); }
.plate h2 { color: #fff; text-align: left; max-width: 22ch; margin-bottom: 0; }
.plate > p.lede2 { font-size: clamp(16px, 1.2vw, 17px); line-height: 1.6; color: rgba(245,245,247,.8); max-width: 64ch; margin: 18px 0 0; }
.plate .cols { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 48px); margin-top: clamp(26px, 3vw, 40px); }
.plate .cols > * { flex: 1 1 300px; min-width: 0; }
.plate ul, .plate ol { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 9px; color: rgba(245,245,247,.8); font-size: 15.5px; line-height: 1.5; }
.plate .label { font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #5fd4b4; margin: 0 0 12px; }
.plate .fine { font-size: 15.5px; line-height: 1.6; color: rgba(245,245,247,.8); margin: 0 0 12px; }
.plate b { color: #fff; font-weight: 600; }
.plate .final { font-size: 16px; line-height: 1.55; color: #fff; font-weight: 600; margin: 16px 0 0; }
.plate pre { margin: 0; padding: 16px 18px; border-radius: 10px; background: rgba(255,255,255,.07); color: #f5f5f7; font: 12.5px/1.7 var(--mono); overflow-x: auto; }
.plate a { color: #5fd4b4; }

.price { max-width: 560px; margin: clamp(26px, 3vw, 44px) auto 0; background: var(--bg2); border-radius: 20px; overflow: hidden; }
.price .tag { font-size: 12px; font-weight: 600; color: var(--fg3); padding: 14px 24px 0; }
.price .body { padding: 10px 32px 30px; text-align: center; }
.price .n { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.price .n + .n { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hair); }
.price p.d { color: var(--fg2); margin: 8px 0 0; font-size: 16px; line-height: 1.55; }
.price p.fine { font-size: 13px; color: var(--fg3); margin: 18px 0 0; }

.cta { background: var(--bg2); text-align: center; padding-block: clamp(56px, 6vw, 92px); }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 24ch; margin: 0 auto 14px; }
.cta .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 22px; font-size: 14px; }
.cta .links a { color: var(--fg3); transition: color .2s; } .cta .links a:hover { color: var(--fg); }

/* image galleries: a simple grid of screenshots with a heading + caption each */
.gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 2.6vw, 32px); }
.gal figure { margin: 0; }
.gal figure img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; height: auto; }
.gal figure h3 { font-size: 18px; letter-spacing: -0.018em; margin: 14px 0 4px; }
.gal figure p { font-size: 15px; color: var(--fg2); margin: 0; }
.gal figure .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

figure.shot { margin: 0; }
figure.shot img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; height: auto; }
figure.shot figcaption { font-size: 13px; color: var(--fg3); margin-top: 10px; }
figure.shot.center { text-align: center; }

.swatches-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.swatches-strip figure { margin: 0; text-align: center; }
.swatches-strip img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; }
.swatches-strip figcaption { font-size: 13px; color: var(--fg2); margin-top: 8px; }
.swatch-names { font-size: 13px; line-height: 1.7; color: var(--fg3); text-align: center; max-width: 860px; margin: 14px auto 0; }

.cols2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(14px, 1.8cqw, 22px); align-items: start; max-width: 980px; margin: clamp(28px, 3vw, 44px) auto 0; }
.cols2 img { border-radius: 10px; box-shadow: var(--shadow); width: 100%; }
.cols2 .stack { display: grid; gap: clamp(14px, 1.8vw, 22px); }

.measured { max-width: 760px; margin: clamp(26px, 3vw, 44px) auto 0; background: var(--bg2); border-radius: 20px; overflow: hidden; }
.measured table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.measured th { padding: 10px 22px; text-align: left; font-size: 12px; font-weight: 600; color: var(--fg3); border-bottom: 1px solid var(--hair); }
.measured th:last-child { text-align: right; }
.measured td { padding: 10px 22px; border-bottom: 1px solid var(--hair-soft); }
.measured td:nth-child(2) { color: var(--fg2); }
.measured td:last-child { font-weight: 600; text-align: right; }
.measured .foot { font-size: 14px; line-height: 1.55; color: var(--fg3); max-width: 760px; margin: 20px auto 0; }

.faq { max-width: 720px; margin: clamp(34px, 4vw, 56px) auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--hair-soft); }
.faq details:first-child { border-top: 1px solid var(--hair-soft); }
.faq summary { font-weight: 600; font-size: 16.5px; padding: 18px 30px 18px 2px; position: relative; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 15px; font-size: 22px; font-weight: 400; color: var(--fg3); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary p { padding: 0 2px 20px; color: var(--fg2); font-size: 15.5px; line-height: 1.55; margin: 0; max-width: 64ch; }
.faq details > p { padding: 0 2px 20px; color: var(--fg2); font-size: 15.5px; line-height: 1.55; margin: 0; max-width: 64ch; }

/* a single framed phone screenshot (or video), used inline beside copy */
.phone { border-radius: 38px; border: 1px solid var(--hair-soft); padding: 8px; background: var(--bg); box-shadow: var(--shadow); display: block; }
.phone .screen { aspect-ratio: 1320/2868; border-radius: 31px; overflow: hidden; background: var(--bg2); }
.phone .screen img, .phone .screen video { width: 100%; height: 100%; object-fit: cover; display: block; }

.phone-gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2vw, 26px); }
.phone-gal figure { margin: 0; }
.phone-gal figcaption { font-size: 13px; line-height: 1.45; color: var(--fg3); margin-top: 10px; }

/* a quoted phrase turning into a suggested reminder chip, used where copy describes
   that exact transformation but there is no screenshot of it */
.chip-diagram { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; padding: 20px 22px; background: var(--bg); border-radius: 14px; box-shadow: var(--shadow); }
.chip-diagram .said { font-size: 15px; font-style: italic; color: var(--fg2); }
.chip-diagram .arrow { color: var(--fg3); }
.chip-diagram .chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--link) 14%, transparent); color: var(--link); font-size: 13.5px; font-weight: 600; }
.chip-diagram .chip svg { width: 13px; height: 13px; }
