/* Timeline TA — the website. Colours and type from the Nocturne design. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
	color-scheme: dark;
	--brand: #e4242f;
	--brand-hover: #f43642;
	--bg: #0c0d12;
	--panel: #101219;
	--panel-raised: #14161f;
	--text: #e9e9ed;
	--soft: #b2b6ca;
	--dim: #9397ab;
	--faint: #75798c;
	--ghost: #5c5f6d;
	--line: #24262f;
	--line-strong: #3f424d;
	--font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }

/* ------------------------------------------------------------ header */

.site-header { max-width: 1160px; margin: 0 auto; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.header-brand, .header-end { flex: 1 1 0; }
.header-end { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.header-link { color: var(--dim); font-size: 14px; white-space: nowrap; }
.header-link:hover { color: var(--text); }
/* Three buttons stop fitting beside each other on the narrowest phones; the login page links to sign-up. */
@media (max-width: 359px) { .header-end .header-signup { display: none; } }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand > img { width: 38px; height: 38px; }
.brand-name { display: flex; align-items: center; gap: 9px; }
.brand-name img { width: auto; height: 15px; }
.brand-name span { font-weight: 500; font-size: 15px; letter-spacing: .18em; color: var(--text); }
.pill-nav { display: flex; align-items: center; gap: 6px; padding: 5px; font-size: 14px; background: #15171f; border: 1px solid var(--line); border-radius: 999px; }
.pill-nav a { color: var(--dim); padding: 8px 16px; border-radius: 999px; }
.pill-nav a:hover { color: var(--text); background: #1d202b; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; }
.back-link:hover { color: var(--text); }

@media (max-width: 720px) {
	.header-brand, .header-end { flex: 1 1 auto; }
	.pill-nav { order: 3; flex-basis: 100%; justify-content: center; }
}

/* ----------------------------------------------------------- buttons */

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 24px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 500; font-size: 14px; cursor: pointer; }
.btn:hover { background: var(--brand-hover); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 16px; box-shadow: 0 10px 34px rgba(228, 36, 47, .3); }
.btn-md { gap: 9px; padding: 13px 26px; font-size: 15px; }
.btn-outline { gap: 8px; padding: 6px 16px; border: 1px solid var(--brand); background: transparent; color: var(--brand); font-size: 13px; }
.btn-outline:hover { background: rgba(228, 36, 47, .12); color: #ff6068; }
.btn-ghost { border: 1px solid var(--line-strong); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: #565a6c; background: #1d202b; color: var(--text); }

/* ---------------------------------------------------------- sections */

.wrap { max-width: 1080px; margin: 0 auto; padding: 64px 28px 0; }
.wrap-snug { padding-top: 52px; }
.wrap-narrow { max-width: 760px; }
.wrap-close { padding-top: 34px; }
.eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.section-title { margin-bottom: 30px; font-size: 26px; letter-spacing: -.02em; }
.section-lede { margin: -14px 0 26px; max-width: 60ch; color: var(--soft); text-wrap: pretty; }
.section-lede strong { color: var(--text); font-weight: 500; }
.subhead { margin-bottom: 18px; font-size: 18px; }
.small { color: var(--dim); font-size: 13.5px; line-height: 1.7; text-wrap: pretty; }
.divider { height: 1px; background: linear-gradient(to right, transparent, rgba(233, 233, 237, .14) 48px, rgba(233, 233, 237, .14) calc(100% - 48px), transparent); }

/* -------------------------------------------------------------- hero */

.hero { max-width: 1080px; margin: 0 auto; padding: 64px 28px 80px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { max-width: 14ch; margin-bottom: 26px; font-size: clamp(40px, 7.2vw, 82px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.lede { max-width: 46ch; margin-bottom: 34px; color: var(--soft); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.buy-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.price { display: inline-flex; align-items: baseline; gap: 8px; }
.price strong { font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.price span { color: var(--dim); font-size: 13.5px; }
.fineprint { margin-top: 22px; color: var(--faint); font-size: 12px; }

.tour { width: 100%; margin: 56px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 40px 90px rgba(0, 0, 0, .7); }
.tour-screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.tour-screen video { width: 100%; height: 100%; object-fit: contain; }
.tour-logo { position: absolute; right: 22px; bottom: clamp(52px, 12%, 74px); width: clamp(34px, 6vw, 62px); height: auto; pointer-events: none; filter: drop-shadow(0 14px 26px rgba(228, 36, 47, .26)); animation: tta-float 3.6s ease-in-out infinite; transition: opacity .3s; }
.tour.playing .tour-logo { opacity: 0; }
@keyframes tta-float { 0%, 100% { transform: translateY(-9px); } 50% { transform: translateY(9px); } }
.tour-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.tour-play { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--text); font-weight: 500; font-size: 13px; cursor: pointer; }
.tour-play i { color: var(--brand); font-size: 16px; }
.tour-play:hover { color: var(--brand); }

/* ---------------------------------------------------------- features */

.features-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: end; padding-bottom: 34px; }
.features-head h2 { font-size: 30px; letter-spacing: -.02em; }
.features-head p { max-width: 420px; color: var(--soft); text-wrap: pretty; }
/* The lines between the cards are the grid's gaps showing its background through. */
.features { display: grid; grid-template-columns: 1fr; gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.feature { padding: 36px 0; background: var(--bg); }
.feature i { display: block; margin-bottom: 22px; font-size: 26px; }
.feature h3 { margin-bottom: 12px; font-size: 16px; }
.feature p { color: var(--dim); font-size: 13.5px; line-height: 1.7; text-wrap: pretty; }
@media (min-width: 640px) {
	.features { grid-template-columns: repeat(2, 1fr); }
	.feature { padding: 36px 34px; }
	.feature:nth-child(2n + 1) { padding-left: 0; }
	.feature:nth-child(2n) { padding-right: 0; }
}
@media (min-width: 940px) {
	.features { grid-template-columns: repeat(3, 1fr); }
	.feature:nth-child(n) { padding: 36px 34px; }
	.feature:nth-child(3n + 1) { padding-left: 0; }
	.feature:nth-child(3n) { padding-right: 0; }
}

/* ------------------------------------------------------- local-first */

.local { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, var(--panel-raised), var(--panel)); }
.local > * { padding: 40px 38px; }
.local > * + * { border-top: 1px solid var(--line); }
@media (min-width: 760px) {
	.local { grid-template-columns: 1fr 1fr; }
	.local > * + * { border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 480px) { .local > * { padding: 30px 24px; } }
.local-intro { display: flex; gap: 26px; align-items: flex-start; }
.local-intro > i { flex: none; color: #cfd3e5; font-size: 40px; }
.local-intro .eyebrow { margin-bottom: 12px; font-size: 10.5px; }
.local-intro h2 { margin-bottom: 16px; font-size: 25px; letter-spacing: -.02em; }
.local-intro p { max-width: 360px; }
.points { display: flex; flex-direction: column; gap: 26px; }
.point { display: flex; gap: 18px; align-items: flex-start; }
.point-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 9px; font-size: 19px; }
.point strong { display: block; margin-bottom: 5px; font-weight: 600; font-size: 14px; }
.point p { color: var(--dim); font-size: 13px; }

/* ------------------------------------------------------------- steps */

.num { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; line-height: 1; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px 18px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.step .num { position: absolute; top: -11px; left: 22px; }
.step i { display: block; margin: 6px 0 18px; font-size: 22px; }
.step strong { display: block; margin-bottom: 7px; font-weight: 600; font-size: 14px; }
.step p { color: var(--dim); font-size: 12.5px; line-height: 1.6; }

/* --------------------------------------------------------------- faq */

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; font-weight: 500; font-size: 13.5px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: #151824; }
.faq summary i { color: var(--faint); font-size: 14px; transition: transform .2s; }
.faq details[open] summary i { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; color: var(--dim); font-size: 13px; line-height: 1.7; }
.faq a, .prose a, .hint a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.faq a:hover, .prose a:hover, .hint a:hover { color: var(--brand); }

/* ------------------------------------------------------------ footer */

.site-footer { max-width: 1080px; margin: 0 auto; padding: 72px 28px 48px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 24px; font-size: 13.5px; }
.footer-nav a:not(.btn) { color: var(--dim); }
.footer-nav a:not(.btn):hover { color: var(--text); }
.legal { color: var(--ghost); font-size: 11.5px; }
.legal-links { white-space: nowrap; }
.legal a { color: var(--dim); }
.legal a:hover { color: var(--text); }

.page-footer { max-width: 760px; margin: 0 auto; padding: 46px 28px 56px; text-align: center; color: var(--ghost); font-size: 12.5px; }
.page-footer p a { color: #d2cefd; }
.page-footer .legal { margin-top: 14px; }

/* ------------------------------------------------------ license page */

.intro { text-align: center; }
.intro.wrap { padding-top: 44px; }
.intro h1 { margin: 22px 0 16px; font-size: clamp(32px, 5vw, 52px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.intro h1:first-child { margin-top: 0; }
.intro p { max-width: 48ch; margin: 0 auto; color: var(--soft); font-size: 16px; text-wrap: pretty; }
.intro p a { text-decoration: underline; text-underline-offset: 3px; }
.notice.wrap { padding-top: 96px; padding-bottom: 40px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid #2c5a3a; border-radius: 999px; background: rgba(45, 120, 72, .14); color: #8fdca8; font-weight: 500; font-size: 12.5px; }
.badge-wait { border-color: #5c4a28; background: rgba(170, 125, 40, .14); color: #e9c47c; }

.card { padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--panel-raised), var(--panel)); }
@media (max-width: 480px) { .card { padding: 22px 18px; } }
.label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.card > .label { margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.input { padding: 12px 14px; border: 1px solid #2c2f3a; border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.input:focus { border-color: var(--brand); outline: none; }
.input[aria-invalid='true'] { border-color: #b5474d; }
.form-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.field + .field { margin-top: 16px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--soft); font-size: 13.5px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.link-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.narrow-card { max-width: 480px; }
.form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.form-links a { color: var(--soft); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.form-links a:hover { color: var(--brand); }
.notice-local { margin-bottom: 18px; padding: 12px 16px; border: 1px dashed #5c4a28; border-radius: 10px; background: rgba(170, 125, 40, .1); color: #e9c47c; font-size: 13.5px; }
.notice-local a { color: #ffd98f; text-decoration: underline; text-underline-offset: 3px; }
.card + .card { margin-top: 16px; }
.empty p + p { margin-top: 10px; }
.empty .btn { margin-top: 18px; }

/* ------------------------------------------------------ delete account */

.danger { border: 1px solid rgba(240, 97, 107, .22); border-radius: 14px; background: rgba(240, 97, 107, .03); }
.danger summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; color: #ffb3b6; font-weight: 500; font-size: 14px; list-style: none; cursor: pointer; }
.danger summary::-webkit-details-marker { display: none; }
.danger summary::after { content: 'Show'; color: var(--faint); font-weight: 400; font-size: 12px; }
.danger[open] summary::after { content: 'Hide'; }
.danger-body { padding: 0 20px 20px; }
.danger-body > p { color: var(--soft); font-size: 13.5px; }
.danger-body > p + p { margin-top: 8px; }
.danger-body > p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.danger-form { max-width: 360px; margin-top: 18px; }
.btn-danger { border: 1px solid rgba(240, 97, 107, .55); background: transparent; color: #ff8a8f; }
.btn-danger:hover { background: rgba(240, 97, 107, .12); color: #ffb3b6; }

.flash { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--soft); font-size: 12.5px; }
.notice-error { margin-bottom: 18px; padding: 12px 16px; border: 1px solid #6b2a2e; border-radius: 10px; background: rgba(180, 40, 50, .12); color: #ffb3b6; font-size: 13.5px; }
.hint { color: var(--faint); font-size: 12.5px; }
.hint-error { color: #ff8a8f; }
.sent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; padding: 14px 16px; border: 1px solid #2c5a3a; border-radius: 10px; background: rgba(45, 120, 72, .1); color: #b9e8c7; font-size: 13.5px; }
.sent i { margin-top: 3px; }

.code-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--bg); }
.code-box code { flex: 1 1 320px; min-width: 0; color: var(--text); font: 13px/1.6 var(--mono); word-break: break-all; }
.code-box .btn-outline { margin-left: auto; padding: 9px 18px; font-size: 13.5px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 22px; margin: 20px 0 0; }
.facts dt { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 0; color: var(--soft); font-size: 13.5px; overflow-wrap: anywhere; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.platform { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.platform > i { font-size: 22px; }
.platform strong { display: block; font-weight: 500; font-size: 14px; }
.platform small { color: var(--faint); font-size: 12px; }
.platform small a { color: var(--soft); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.platform small a:hover { color: var(--brand); }
.platform.soon { border-color: #1d1f28; background: #0e1016; opacity: .6; }

.howto { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.howto li { display: flex; align-items: flex-start; gap: 14px; color: var(--dim); font-size: 13.5px; }
.howto strong { color: #cfd3e5; font-weight: 500; }

/* ------------------------------------------------------ terms, refunds */

.prose h1 { margin-bottom: 22px; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.prose p, .prose li { color: var(--soft); font-size: 15px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 18px 0 0; padding-left: 1.2em; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tour-logo { animation: none; }
}
