/* sideora.com: the landing page, privacy and terms. Sideora's own colours and type (the app's panel.css), light and
   dark with the system. No web fonts, no third-party requests. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --bg-3: #eceef2;
  --fg: #14171c;
  --fg-2: #4a5261;
  --fg-3: #7b8494;
  --line: #e4e7ec;
  --accent: #2f5fe0;
  --accent-2: #4b77f0;
  --accent-soft: #eaf0ff;
  --ok: #18794e;
  --danger: #c4321f;
  --shadow: 0 30px 80px -20px rgb(16 24 40 / 35%), 0 12px 24px -12px rgb(16 24 40 / 25%);
  --radius: 14px;
  --max: 1160px;
  --text: 680px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --bg-2: #171a1f;
    --bg-3: #20242b;
    --fg: #eceef1;
    --fg-2: #b2b9c4;
    --fg-3: #858d99;
    --line: #2a2e35;
    --accent: #8fb0ff;
    --accent-2: #a9c2ff;
    --accent-soft: #1d2846;
    --ok: #5fd0a0;
    --danger: #ff8f7d;
    --shadow: 0 30px 80px -20px rgb(0 0 0 / 70%), 0 12px 24px -12px rgb(0 0 0 / 50%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* the bar */
.bar { position: absolute; inset: 0 0 auto; z-index: 5; }
.bar-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand svg { flex: none; border-radius: 9px; box-shadow: 0 4px 14px rgb(20 50 140 / 30%); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: inherit; text-decoration: none; font-size: 15px; font-weight: 500; opacity: 0.85; }
.nav a:hover { opacity: 1; color: inherit; }
.nav .btn { opacity: 1; }
.on-photo { color: #fff; }
.on-photo .nav a { text-shadow: 0 1px 10px rgb(0 0 0 / 30%); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* buttons and the form */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #2f5fe0; color: #fff; box-shadow: 0 8px 24px -8px rgb(47 95 224 / 70%); }
.btn-primary:hover { background: #3a6af0; color: #fff; }
.btn-glass { background: rgb(255 255 255 / 16%); color: #fff; border-color: rgb(255 255 255 / 30%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgb(255 255 255 / 24%); color: #fff; }
.btn-small { height: 36px; padding: 0 16px; font-size: 14.5px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.join { display: flex; gap: 8px; width: 100%; max-width: 460px; padding: 6px; border-radius: 999px; background: rgb(255 255 255 / 16%); border: 1px solid rgb(255 255 255 / 30%); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.join input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 16px; }
.join input::placeholder { color: rgb(255 255 255 / 75%); }
.join input:focus { outline: none; }
.join:focus-within { border-color: rgb(255 255 255 / 60%); }
.join-light { background: var(--bg); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 6px 20px -10px rgb(16 24 40 / 25%); }
.join-light input::placeholder { color: var(--fg-3); }
.join-light:focus-within { border-color: var(--accent); }
.said { min-height: 1.5em; margin-top: 10px; font-size: 14.5px; font-weight: 550; }
.said.ok { color: #c8f5dc; }
.said.err { color: #ffd4cc; }
.section .said.ok { color: var(--ok); }
.section .said.err { color: var(--danger); }
@media (max-width: 480px) { .join { flex-direction: column; border-radius: 22px; } .join .btn { width: 100%; } }

/* the hero: Home's picture, the words on it, the app rising out of it */
.hero { position: relative; color: #fff; padding: 150px 0 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/img/hero.webp") center 40% / cover no-repeat, #24324d; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 16 32 / 55%) 0%, rgb(10 16 32 / 25%) 38%, rgb(10 16 32 / 45%) 72%, var(--bg) 100%); }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; background: rgb(255 255 255 / 14%); border: 1px solid rgb(255 255 255 / 25%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7cf0b4; box-shadow: 0 0 0 3px rgb(124 240 180 / 25%); }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 720; max-width: 15ch; text-shadow: 0 2px 30px rgb(0 0 0 / 25%); }
.hero .lead { font-size: clamp(17px, 2vw, 21px); max-width: 38ch; color: rgb(255 255 255 / 92%); text-shadow: 0 1px 16px rgb(0 0 0 / 30%); }
.hero .note { font-size: 14px; color: rgb(255 255 255 / 80%); }
.shot { margin: 64px auto 0; max-width: 1080px; padding: 0 24px; }
.frame { border-radius: 16px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); border: 1px solid rgb(255 255 255 / 18%); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: rgb(246 247 249 / 92%); border-bottom: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .frame-bar { background: rgb(32 36 43 / 92%); } }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin: 0 auto; font-size: 12.5px; color: var(--fg-3); padding: 2px 14px; border-radius: 6px; background: var(--bg); }

/* the sections */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-2); }
.kicker { font-size: 14px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; max-width: 20ch; }
.section .intro { margin-top: 18px; font-size: 19px; color: var(--fg-2); max-width: 54ch; }
.center { text-align: center; }
.center h2, .center .intro { margin-left: auto; margin-right: auto; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
.feature { display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 0; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.section-alt .feature { background: var(--bg); }
.feature h3 { font-size: 22px; font-weight: 650; }
.feature p { color: var(--fg-2); font-size: 16.5px; }
.feature .pic { margin: auto -28px 0; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.feature .pic img { width: 100%; height: auto; }
.feature.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 32px; padding: 0 0 0 36px; align-items: center; }
.feature.wide .copy { display: flex; flex-direction: column; gap: 14px; padding: 36px 0; }
.feature.wide .pic { margin: 0; align-self: stretch; display: flex; align-items: center; border-top: 0; border-left: 1px solid var(--line); }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .feature.wide { grid-template-columns: 1fr; padding: 28px 28px 0; gap: 14px; }
  .feature.wide .copy { padding: 0; }
  .feature.wide .pic { margin: 10px -28px 0; border-left: 0; border-top: 1px solid var(--line); }
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* private by design: the drawing, and three points */
.private { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 56px; }
.points { display: flex; flex-direction: column; gap: 26px; }
.point { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.point svg { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.point h3 { font-size: 18.5px; font-weight: 650; margin-bottom: 4px; }
.point p { color: var(--fg-2); font-size: 16px; }
.diagram { width: 100%; height: auto; }
.diagram .box { fill: var(--bg); stroke: var(--line); }
.diagram .label { fill: var(--fg); font: 600 15px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.diagram .small { fill: var(--fg-3); font: 500 12.5px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.diagram .wire { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 6; fill: none; }
.diagram .lock { fill: var(--accent); }
.diagram .relay { fill: var(--bg-3); stroke: var(--line); }
@media (prefers-reduced-motion: no-preference) { .diagram .wire { animation: flow 1.6s linear infinite; } }
@keyframes flow { to { stroke-dashoffset: -22; } }
@media (max-width: 860px) { .private { grid-template-columns: 1fr; gap: 40px; } }

/* everywhere */
.where { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.place { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.place svg { width: 28px; height: 28px; color: var(--accent); }
.place h3 { font-size: 18px; font-weight: 650; }
.place p { color: var(--fg-2); font-size: 15.5px; }
@media (max-width: 960px) { .where { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .where { grid-template-columns: 1fr; } }

/* getting started */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 16px; }
@media (prefers-color-scheme: dark) { .step::before { color: #0f1a36; } }
.step h3 { font-size: 18.5px; font-weight: 650; margin-bottom: 8px; }
.step p { color: var(--fg-2); font-size: 15.5px; }
.cmd { display: block; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #0f1320; color: #e6ecff; font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; white-space: nowrap; }
.cmd::before { content: "$ "; color: #7b8bb8; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.soon { margin-top: 28px; color: var(--fg-3); font-size: 15px; }

/* questions */
.faq { max-width: 780px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fg-3); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--fg-2); }

/* the last call */
.cta { position: relative; overflow: hidden; color: #fff; padding: 110px 0; isolation: isolate; text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/img/hero.webp") center 70% / cover no-repeat, #24324d; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 16 32 / 55%), rgb(10 16 32 / 70%)); }
.cta h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; margin: 0 auto 16px; max-width: 18ch; }
.cta p { color: rgb(255 255 255 / 88%); font-size: 18.5px; margin: 0 auto 30px; max-width: 46ch; }
.cta .join { margin: 0 auto; }

/* the foot */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 14.5px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.foot nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.foot a { color: var(--fg-2); text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* the legal pages */
.doc-head { padding: 136px 0 48px; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.doc-head .bar { color: var(--fg); }
.doc-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 720; }
.doc-head p { margin-top: 12px; color: var(--fg-2); }
.doc { max-width: var(--text); margin: 0 auto; padding: 56px 24px 96px; }
.doc h2 { font-size: 24px; font-weight: 680; margin: 48px 0 14px; scroll-margin-top: 24px; }
.doc h3 { font-size: 18px; font-weight: 650; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--fg-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--fg); }
.summary { padding: 22px 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.summary h2 { margin-top: 0; font-size: 18px; }
.summary ul { margin-bottom: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a { font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); text-decoration: none; background: var(--bg); }
.toc a:hover { color: var(--accent); border-color: var(--accent); }

/* not found, and the pages early access answers with */
.notfound { padding-top: 120px; text-align: center; }
.notfound h1 { font-size: 40px; font-weight: 720; }
.notfound p { margin-top: 14px; }

.where .place { text-align: left; }

/* the "why Sideora" pages (reasons.mjs) */
.r-hero { padding: 150px 0 120px; }
.r-hero h1 { font-size: clamp(36px, 5.4vw, 62px); max-width: 18ch; }
.r-hero .lead { max-width: 46ch; }
.r-hero::after { background: linear-gradient(180deg, rgb(10 16 32 / 60%) 0%, rgb(10 16 32 / 35%) 45%, rgb(10 16 32 / 55%) 85%, var(--bg) 100%); }
.r-body { padding-top: 64px; }
.r-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.r-grid.no-pic { grid-template-columns: minmax(0, 760px); justify-content: center; }
.r-grid .points { gap: 30px; }
.r-point h2 { font-size: 22px; font-weight: 680; margin-bottom: 6px; max-width: none; }
.r-point p { color: var(--fg-2); font-size: 17px; }
.r-cmd { margin-top: 4px; font-size: 15px; padding: 14px 16px; }
.r-shot .frame { border-color: var(--line); }
.r-shot.narrow { justify-self: center; max-width: 420px; width: 100%; }
@media (max-width: 860px) { .r-grid { grid-template-columns: 1fr; gap: 40px; } }
.related { margin-top: 72px; }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 4px; }
.related-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--fg); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.related-card span { font-size: 13px; font-weight: 650; color: var(--accent); letter-spacing: 0.02em; }
.related-card strong { font-size: 17px; font-weight: 650; line-height: 1.3; }
.related-card:hover { border-color: var(--accent); color: var(--fg); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .related-card { transition: none; } .related-card:hover { transform: none; } }
@media (max-width: 860px) { .related-list { grid-template-columns: 1fr; } }

/* the footer's row of reasons, under the rest */
.foot-reasons { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-reasons a { color: var(--fg-3); font-size: 14px; }
.foot-reasons a:hover, .foot-reasons a[aria-current="page"] { color: var(--fg); }
.r-q { margin: 0 auto; }
.kicker.center { text-align: center; }

/* on a phone, the footer's links are fingers apart: each at least 44px tall to tap */
@media (max-width: 720px) {
  .foot nav, .foot-reasons { gap: 0 20px; }
  .foot nav a, .foot-reasons a { display: inline-flex; align-items: center; min-height: 44px; }
}
