/* authored. journal: the one-page overview at /about. Same tokens and softer look as the app (tokens.css).
   The pictures are drawn here and animated by js/about.js: an element with data-at="ms" gets .on at that time
   while its figure is on screen. */
*, *::before, *::after { box-sizing: border-box; }
em, i, cite, dfn, address, var { font-style: normal; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 18px; }
h2 { font-size: clamp(30px, 4.2vw, 48px); color: var(--accent); max-width: 18ch; }
p { margin: 0 0 14px; }
figure { margin: 0; }

.wordmark { font: 500 18px/1 var(--sans); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.wordmark .dot, .dv-bar em, .lk-mark em { font-style: italic; }
.wordmark .product { font-weight: 400; opacity: 0.65; margin-left: 6px; }

.ab-wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.ab-sec { padding: clamp(64px, 10vw, 128px) 0; }
.ab-tint { background: var(--surface); }
.ab-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ab-split-rev > :first-child { order: 0; }
.ab-lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; }
.ab-note, .ab-cap, .ab-small { color: var(--muted); font-size: 15px; }
.ab-note { margin-top: 28px; max-width: 70ch; }
.ab-cap { margin-top: 28px; max-width: 64ch; }

/* Buttons and the bar */
.ab-btn { display: inline-flex; align-items: center; justify-content: center; font: 500 15px/1 var(--sans); padding: 13px 20px; border-radius: var(--radius); text-decoration: none; border: 1px solid transparent; transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.ab-btn:hover { transform: translateY(-1px); }
.ab-btn-light { background: var(--bar-ink); color: var(--bar); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.ab-btn-light:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); }
.ab-btn-ghost { color: var(--bar-ink); border-color: color-mix(in srgb, var(--bar-ink) 45%, transparent); }
.ab-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.ab-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 4vw, 48px); padding-top: calc(env(safe-area-inset-top, 0px) + 12px); background: var(--bar); color: var(--bar-ink); }
.ab-bar nav { display: flex; align-items: center; gap: 14px; }
.ab-link { font-size: 14px; text-decoration: none; opacity: 0.85; }
.ab-bar .ab-btn { padding: 10px 14px; font-size: 14px; }

/* Hero */
.ab-hero { background: var(--bar); color: var(--bar-ink); padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.ab-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.ab-hero-mark { font-size: clamp(56px, 8vw, 112px); letter-spacing: -0.045em; line-height: 0.95; margin: 0 0 28px; }
.hm-word, .hm-product { display: inline-block; animation: ab-rise 900ms var(--ease) both; }
.hm-product { display: block; color: #9AA3C7; font-weight: 400; animation-delay: 650ms; }
.hm-dot { display: inline-block; font-style: italic; animation: ab-dot 900ms cubic-bezier(0.3, 1.6, 0.5, 1) 420ms both; }
.ab-hero-line { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; margin-bottom: 12px; animation: ab-rise 900ms var(--ease) 900ms both; }
.ab-hero-sub { color: #C9CDE0; max-width: 46ch; animation: ab-rise 900ms var(--ease) 1100ms both; }
.ab-hero .ab-actions { animation: ab-rise 900ms var(--ease) 1300ms both; }
@keyframes ab-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ab-dot { from { opacity: 0; transform: translateY(-40px) scale(0.6); } to { opacity: 1; transform: none; } }

/* The animation states every figure shares */
.ab-fig [data-at] { opacity: 0; transform: translateY(8px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
.ab-fig [data-at].on { opacity: 1; transform: none; }

/* Hero figure: a phone */
.hero-fig { justify-self: center; width: min(100%, 360px); }
.hf-phone { position: relative; background: var(--card); color: var(--ink); border-radius: 36px; padding: 22px 20px 24px; min-height: 470px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(255, 255, 255, 0.06); }
.hf-top { display: flex; justify-content: space-between; align-items: center; font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 18px; }
.hf-rec { display: inline-flex; align-items: center; gap: 8px; color: #C2412D; }
.hf-rec i { width: 9px; height: 9px; border-radius: 50%; background: #C2412D; animation: ab-pulse 1.2s ease-in-out infinite; }
@keyframes ab-pulse { 50% { opacity: 0.25; } }
.hf-wave { display: flex; align-items: center; gap: 4px; height: 56px; margin-bottom: 14px; }
.hf-wave i { flex: 1; height: 20%; background: var(--accent); border-radius: 3px; animation: ab-wave 900ms ease-in-out infinite alternate; }
.hf-wave i:nth-child(3n) { animation-delay: -300ms; } .hf-wave i:nth-child(3n+1) { animation-delay: -600ms; } .hf-wave i:nth-child(4n) { animation-duration: 700ms; } .hf-wave i:nth-child(5n) { animation-duration: 1100ms; }
@keyframes ab-wave { from { height: 14%; } to { height: 100%; } }
.hf-words { font-size: 16px; line-height: 1.55; min-height: 7.5em; }
.hf-words[data-at]:not(.on), .hf-wave[data-at]:not(.on) { position: absolute; visibility: hidden; }
.hf-entry { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); }
.hf-entry[data-at]:not(.on) { position: absolute; visibility: hidden; }
.hf-meta { font: 400 12px/1.4 var(--mono); color: var(--muted); margin-bottom: 6px; }
.hf-title { font-size: 19px; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.hf-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.hf-chips span { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.hf-todo { display: flex; gap: 10px; align-items: center; font-size: 14px; margin: 0; }
.tick { position: relative; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--accent); border-radius: 5px; }
.ab-fig .tick[data-at] { opacity: 1; transform: none; }
.tick.on { background: var(--accent); }
.tick.on::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hf-filed { position: absolute; left: 20px; right: 20px; bottom: 22px; text-align: center; font-size: 13px; padding: 10px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); }

/* Ways in */
.kinds-fig { display: grid; gap: 14px; }
.kind { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.kind b { font-weight: 500; font-size: 18px; } .kind > span:last-child { color: var(--muted); font-size: 14px; grid-column: 2; }
.k-ico { grid-row: span 2; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; gap: 3px; }
.k-voice i { width: 4px; height: 30%; background: var(--accent); border-radius: 2px; animation: ab-wave 800ms ease-in-out infinite alternate; }
.k-voice i:nth-child(2) { animation-delay: -200ms; } .k-voice i:nth-child(3) { animation-delay: -500ms; } .k-voice i:nth-child(4) { animation-delay: -100ms; }
.k-type { flex-direction: column; align-items: flex-start; padding-left: 14px; gap: 5px; }
.k-type i { height: 3px; width: 26px; background: var(--accent); border-radius: 2px; transform-origin: left; animation: ab-write 2.4s ease-in-out infinite; }
.k-type i:nth-child(2) { animation-delay: 300ms; width: 20px; } .k-type i:nth-child(3) { animation-delay: 600ms; width: 14px; }
@keyframes ab-write { 0% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
.k-photo i { width: 30px; height: 22px; border: 2.5px solid var(--accent); border-radius: 6px; position: relative; }
.k-photo i::after { content: ''; position: absolute; left: 8px; top: 4px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); animation: ab-flash 2.4s ease-in-out infinite; }
@keyframes ab-flash { 0%, 80%, 100% { background: transparent; } 85% { background: var(--accent); } }

/* Steps */
.steps-fig { position: relative; margin-top: 40px; }
.st-line { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--line); }
.st-line i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 5.4s linear; }
.st-line i.on { width: 100%; opacity: 1; transform: none; }
.st-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.st-list li { display: flex; flex-direction: column; gap: 8px; padding: 0 0 20px; }
.st-n { width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font: 500 16px/1 var(--mono); color: #C2412D; box-shadow: var(--shadow); margin-bottom: 10px; transition: border-color 300ms, background 300ms; }
.st-list li.on .st-n { border-color: var(--accent); }
.st-list li.st-last.on .st-n { background: var(--accent); color: var(--accent-ink); }
.st-list b { font-weight: 500; font-size: 19px; } .st-list li > span:last-child { color: var(--ink-60); font-size: 15px; }

/* Sorted */
.sort-fig, .day-fig, .cal-fig, .ask-fig, .mail-fig { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: clamp(18px, 3vw, 28px); }
.so-title { font-size: 22px; font-weight: 500; color: var(--accent); margin-bottom: 14px; }
.so-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.so-tab { font-size: 14px; padding: 8px 14px; color: var(--muted); }
.ab-fig .so-tab[data-at] { opacity: 1; transform: none; }
.so-tab.on { background: var(--accent); color: var(--accent-ink); }
.so-view { min-height: 9.5em; }
.so-view[data-at]:not(.on) { position: absolute; visibility: hidden; }
.so-view p { font-size: 15px; margin-bottom: 8px; } .so-topics b { font-weight: 500; color: var(--accent); margin-right: 6px; }
.so-todo { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }

/* Day */
.dy-date { font-size: 20px; font-weight: 500; color: var(--accent); }
.dy-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.dy-entries, .dy-side { display: flex; flex-direction: column; gap: 10px; }
.dy-e { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); background: var(--card); }
.dy-e span { font: 400 12px/1.3 var(--mono); color: var(--muted); } .dy-e b { font-weight: 500; font-size: 15px; }
.dy-bin[data-at]:not(.on) { transform: translateX(30px) scale(0.96); }
.dy-box { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.dy-box b { font-weight: 500; color: var(--accent); }
.day-fig { position: relative; }
.dy-toast { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex; gap: 14px; align-items: center; white-space: nowrap; background: var(--encre); color: #fff; font-size: 13px; padding: 10px 12px 10px 16px; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.dy-toast b { font-weight: 500; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 6px; }
.dy-back { display: none; }
.day-fig:has(.dy-back.on) .dy-bin { opacity: 1; transform: none; }

/* Calendar */
.ca-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.ca-head b { font-weight: 500; font-size: 19px; color: var(--accent); }
.ca-find { min-width: 130px; padding: 8px 12px; border: 1.5px solid var(--accent); border-radius: var(--radius); font-size: 14px; display: inline-flex; align-items: center; }
.ab-fig .ca-find [data-at] { opacity: 1; transform: none; }
.caret { width: 1.5px; height: 1.1em; background: var(--ink); margin-left: 1px; animation: ab-pulse 1s steps(1) infinite; }
.ca-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ca-grid span { aspect-ratio: 1 / 0.9; display: flex; align-items: center; justify-content: center; font-size: 14px; border-radius: 10px; color: var(--ink-40); transition: background 400ms, color 400ms, box-shadow 400ms; }
.ca-grid .w { aspect-ratio: auto; font: 500 11px/1 var(--mono); color: var(--muted); }
.ca-grid .has { background: var(--surface-2); color: var(--ink); }
.ca-grid .today { background: var(--accent); color: var(--accent-ink); }
.ab-fig .ca-grid .hit[data-at] { opacity: 1; transform: none; }
.ca-grid .hit.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); font-weight: 600; }
.cal-fig:has(.hit.on) .ca-grid span:not(.hit):not(.w):not(.today) { opacity: 0.35; }
.ca-count { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* Ask */
.as-q { margin-left: auto; max-width: 80%; background: var(--accent); color: var(--accent-ink); padding: 14px 18px; border-radius: 20px 20px 6px 20px; font-size: 16px; }
.as-a { margin-top: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; }
.as-a p { min-height: 4.6em; margin-bottom: 10px; }
.ab-fig .as-a p[data-at] { opacity: 1; transform: none; }
.as-cites { display: flex; gap: 8px; flex-wrap: wrap; }
.as-cites span { font-size: 13px; padding: 4px 10px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 999px; }

/* Devices */
.dev-fig { display: flex; gap: clamp(20px, 5vw, 64px); align-items: flex-end; justify-content: center; margin-top: 40px; }
.dv-phone { width: 200px; height: 380px; flex: none; border: 2.5px solid var(--ink); border-radius: 34px; background: var(--card); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lift); }
.dv-bar { background: var(--bar); color: var(--bar-ink); font-size: 12px; padding: 14px 14px 10px; display: flex; justify-content: space-between; align-items: center; }
.dv-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.dv-body b { font-weight: 500; color: var(--accent); }
.dv-body i, .dv-day i { display: block; height: 34px; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--card); }
.dv-body i.s { height: 22px; width: 60%; }
.dv-tabs { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; padding: 10px 6px 14px; border-top: 1px solid var(--line); }
.dv-tabs span { width: 14px; height: 14px; border-radius: 4px; background: var(--line); }
.dv-tabs .rec { width: 40px; height: 40px; border-radius: 50%; background: var(--bar); position: relative; margin-top: -18px; box-shadow: 0 4px 12px rgba(20, 24, 43, 0.25); }
.dv-tabs .rec::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #C2412D; animation: ab-pulse 1.4s ease-in-out infinite; }
.dv-laptop { flex: 0 1 620px; min-width: 0; }
.dv-screen { border: 2.5px solid var(--ink); border-radius: 14px 14px 0 0; overflow: hidden; background: var(--card); aspect-ratio: 16 / 10; display: flex; flex-direction: column; }
.dv-add { background: var(--bar-ink); color: var(--bar); border-radius: 6px; padding: 4px 8px; font-size: 11px; }
.dv-cols { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; padding: 16px; }
.dv-day { display: flex; flex-direction: column; gap: 8px; overflow: hidden; } .dv-day b { font-weight: 500; font-size: 14px; color: var(--accent); }
.dv-month { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); background: radial-gradient(circle, var(--ink-40) 1.6px, transparent 2.2px) 0 0 / 14.28% 20% content-box, var(--card); padding: 14px; }
.dv-base { height: 14px; margin: 0 -2%; background: var(--surface-2); border: 2.5px solid var(--ink); border-top: 0; border-radius: 0 0 12px 12px; }

/* Messages */
.mail-fig { display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.ml { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
.ml b { font-weight: 500; grid-row: 1; } .ml > span:last-child { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.ml-t { grid-column: 2; grid-row: 1; font: 400 12px/1.6 var(--mono); color: var(--muted); }
.ml-push { border-left: 4px solid #C2412D; }

/* Recordings */
.rec-fig { margin-top: 40px; }
.rc-track { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.rc-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #9AA3C7 75%, #C2412D); transition: width 4.4s linear; }
.rc-track i.on { width: 100%; opacity: 1; transform: none; }
.rc-marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.rc-marks div { display: flex; flex-direction: column; gap: 6px; } .rc-marks b { font-weight: 500; color: var(--accent); }
.rc-marks span { font-size: 15px; color: var(--ink-60); }
.rc-end b { color: #C2412D; }

/* Lock */
.lock-fig { justify-self: center; }
.lk-phone { width: 260px; min-height: 420px; border: 2.5px solid var(--ink); border-radius: 40px; background: var(--card); box-shadow: var(--shadow-lift); padding: 40px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lk-mark { font-size: 15px; font-weight: 500; } .lk-mark span { color: var(--muted); font-weight: 400; }
.lk-ico { width: 52px; height: 52px; color: var(--accent); margin-top: 18px; }
.lk-shackle { transition: transform 500ms var(--ease); transform-origin: 33px 22px; }
.lock-fig:has(.lk-open.on) .lk-shackle { transform: translateY(-5px) rotate(28deg); }
.lk-h { font-size: 26px; font-weight: 500; margin: 0; }
.lk-dots { display: flex; gap: 14px; margin: 8px 0; }
.lk-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); }
.ab-fig .lk-dots i[data-at] { opacity: 1; transform: none; }
.lk-dots i.on { background: var(--accent); transform: scale(1.1); }
.lk-open { color: var(--ok); font-weight: 500; }

/* Start */
.ab-start { background: var(--bar); color: var(--bar-ink); padding: clamp(64px, 10vw, 120px) 0; }
.ab-start h2 { color: var(--bar-ink); }
.ab-url { font: 400 clamp(17px, 2vw, 22px)/1.3 var(--mono); color: #9AA3C7; }
.ab-steps { margin: 0; padding-left: 1.3em; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.5; }
.ab-steps li { margin-bottom: 14px; padding-left: 6px; }
.ab-foot { padding: 22px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ab-foot .ab-wrap { display: flex; justify-content: space-between; gap: 12px; }

/* Phone width */
@media (max-width: 820px) {
  .ab-split, .ab-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-split-rev > :first-child { order: 2; }
  .ab-hero-mark { font-size: clamp(52px, 17vw, 80px); }
  .st-line { left: 22px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .st-line i { width: 100%; height: 0; transition: height 5.4s linear; }
  .st-line i.on { height: 100%; }
  .st-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .st-list li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; }
  .st-list li .st-n { grid-row: span 2; margin: 0; }
  .rc-marks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dy-cols { grid-template-columns: minmax(0, 1fr); }
  .dev-fig { flex-direction: column; align-items: center; }
  .dv-laptop { width: 100%; flex: none; }
  .dv-bar { font-size: 10px; }
  /* Sign in stays in the bar: in the installed app it is the way back from this page. */
  .ab-bar nav { gap: 10px; }
  .ab-bar .ab-btn { padding: 9px 10px; font-size: 13px; }
  .ab-link { font-size: 13px; opacity: 1; white-space: nowrap; }
}

/* In the dark the hero phone and pictures keep their card surface; nothing else changes. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
