/* The finallyapp.us website: the home page (#landing in index.html) and /features, /about,
   /download. Quiet and editorial — paper-white page, one ink color, hairlines, real screenshots,
   the Finally blue only for links and the main button. Everything sits under .site so none of it
   touches the app. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.site {
  --paper: #fbfaf7;
  --ink: #15171c;
  --ink-2: #4a4f5c;
  --ink-3: #8a8f9a;
  --line: #e6e3dc;
  --card: #ffffff;
  --blue: #036efc;
  --wrap: 1120px;
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-color-scheme: dark) {
  .site {
    --paper: #111214; --ink: #ececee; --ink-2: #a9acb4; --ink-3: #72757e; --line: #26282d; --card: #17181b; --blue: #4b93ff;
    color-scheme: dark;
  }
}
body.site { margin: 0; min-height: 100vh; }
.site *, .site *::before, .site *::after { box-sizing: border-box; }
:where(.site) a { color: inherit; }
.site img { max-width: 100%; display: block; }
.site h1, .site h2, .site h3, .site p { margin: 0; }
.site :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.s-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ---------- navigation ---------- */

.s-nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.s-nav.stuck { border-bottom-color: var(--line); }
.s-nav .s-wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.s-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.s-brand img { width: 22px; height: auto; }
.s-links { display: flex; flex-direction: row; flex: none; gap: 24px; margin-right: auto; }
.s-links a { font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 1.5px solid transparent; }
.s-links a:hover { color: var(--ink); }
.s-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.s-actions { display: flex; align-items: center; gap: 18px; }
.s-signin { font-size: 15px; color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; font-size: 15px; cursor: pointer; }
.s-signin:hover { color: var(--ink); }

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

.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: opacity 0.15s;
}
.s-btn:hover { opacity: 0.86; }
.s-btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.s-btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.s-btn.line { background: transparent; color: var(--ink); border-color: var(--line); }
.s-btn.line:hover { border-color: var(--ink-3); opacity: 1; }
.s-btn svg { width: 18px; height: 18px; flex: none; }
.s-link { color: var(--blue); text-decoration: none; font-weight: 500; }
.s-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- type ---------- */

.s-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.s-h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; max-width: 14ch; }
.s-h1.long { max-width: 18ch; }
.s-h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; }
.s-h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; }
.s-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; letter-spacing: -0.005em; }
.s-body { color: var(--ink-2); }
.s-body p + p { margin-top: 14px; }
.s-small { font-size: 14px; color: var(--ink-3); }

/* ---------- page parts ---------- */

.s-hero { padding: 88px 0 56px; }
.s-hero .s-lead { margin-top: 26px; }
.s-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.s-cta .s-small { margin-left: 6px; }

.s-shot { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: var(--card); box-shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 24px 60px -30px rgba(20, 20, 30, 0.25); }
.s-shot img { width: 100%; height: auto; }
.s-shot .dark { display: none; }
@media (prefers-color-scheme: dark) { .s-shot .light.has-dark { display: none; } .s-shot .dark { display: block; } }
.s-hero-shot { margin-top: 8px; }
.s-caption { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

.s-section { padding: 104px 0; border-top: 1px solid var(--line); }
.s-section.tight { padding: 72px 0; }
.s-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.s-row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.s-row.flip > :first-child { order: 2; }
.s-row-text { position: sticky; top: 104px; }
.s-row-text .s-h2 { margin-top: 12px; }
.s-row-text .s-body { margin-top: 18px; }
.s-row-text ul { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.s-row-text li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.s-row-text li b { color: var(--ink); font-weight: 600; }

.s-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.s-col { border-top: 1px solid var(--ink); padding-top: 18px; }
.s-col .s-h3 { margin-bottom: 8px; }
.s-col p { color: var(--ink-2); font-size: 16px; }

.s-quote { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; letter-spacing: -0.025em; font-weight: 600; max-width: 30ch; }

.s-end { padding: 120px 0; border-top: 1px solid var(--line); }
.s-end .s-h2 { max-width: 16ch; }

/* Features page: a plain index of everything, grouped. */
.s-index { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.s-index + .s-index { border-top-color: var(--line); }
.s-index-head { position: sticky; top: 96px; align-self: start; }
.s-index-head .s-h3 { font-size: 22px; margin-top: 8px; }
.s-defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
.s-defs h4 { margin: 0 0 6px; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.s-defs p { font-size: 15.5px; color: var(--ink-2); }
.s-defs .wide { grid-column: 1 / -1; }
.s-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; vertical-align: 2px; color: var(--ink-2); border: 1px solid var(--line); }
.s-jump { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; margin-top: 30px; font-size: 15px; }
.s-jump a { color: var(--ink-2); text-decoration: none; }
.s-jump a:hover { color: var(--ink); }

/* About page: one readable column. */
.s-prose { max-width: 680px; }
.s-prose p { color: var(--ink-2); font-size: 18px; line-height: 1.7; }
.s-prose p + p { margin-top: 20px; }
.s-prose h2 { font-size: 22px; letter-spacing: -0.02em; margin: 52px 0 14px; color: var(--ink); }
.s-prose strong { color: var(--ink); font-weight: 600; }
.s-prose ol { padding-left: 22px; margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.7; }
.s-prose li + li { margin-top: 10px; }
.s-prose li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Download page: one card per computer (yours first), then everywhere else. */
.s-dl2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.s-dl2[data-first="mac"] #mac { order: -1; }
.s-dl2 .s-card + .s-card { margin-top: 0; }
.site .s-h4 { margin: 28px 0 12px; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.s-elsewhere { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.s-elsewhere .s-body { max-width: 52ch; }
.s-dl { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.s-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 32px; }
.s-card + .s-card { margin-top: 16px; }
.s-card .s-h3 { font-size: 22px; }
.s-card .s-body { margin-top: 8px; font-size: 16px; }
.s-card .s-cta { margin-top: 24px; }
.s-os { display: flex; align-items: center; gap: 14px; }
.s-os svg { width: 34px; height: 34px; flex: none; }
.s-specs { margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: 14.5px; border-top: 1px solid var(--line); }
.s-specs dt, .s-specs dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.s-specs dt { color: var(--ink-3); padding-right: 24px; }
.s-specs dd { color: var(--ink); }
.s-steps { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.s-steps li + li { margin-top: 8px; }
.s-steps b { color: var(--ink); font-weight: 600; }
.s-note { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: 14.5px; color: var(--ink-2); }
.s-soon { color: var(--ink-3); font-size: 13px; font-weight: 600; }

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

.s-foot { border-top: 1px solid var(--line); padding: 56px 0 64px; font-size: 14px; }
.s-foot .s-wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.s-foot p { color: var(--ink-3); margin-top: 10px; max-width: 30ch; }
.s-foot h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.s-foot ul { list-style: none; margin: 0; padding: 0; }
.s-foot li + li { margin-top: 8px; }
.s-foot a, .s-foot button { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.s-foot a:hover, .s-foot button:hover { color: var(--ink); }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .s-row, .s-row.flip, .s-dl, .s-dl2, .s-index { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .s-elsewhere { flex-direction: column; align-items: flex-start; }
  .s-row.flip > :first-child { order: 0; }
  .s-row-text, .s-index-head { position: static; }
  .s-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .s-section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .s-wrap { padding: 0 20px; }
  .s-nav .s-wrap { gap: 16px; height: 58px; }
  .s-links { gap: 16px; }
  .s-links a { font-size: 14px; }
  .s-actions .s-signin { display: none; }
  .s-brand span { display: none; }
  .s-hero { padding: 48px 0 36px; }
  .s-defs { grid-template-columns: minmax(0, 1fr); }
  .s-card { padding: 22px; }
  .s-foot .s-wrap { grid-template-columns: 1fr 1fr; }
  .s-foot .s-wrap > :first-child { grid-column: 1 / -1; }
  .s-end, .s-section.tight { padding: 64px 0; }
}
@media (max-width: 380px) {
  .s-actions .s-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site * { transition: none !important; }
}

/* ---------- Main (finallyapp.us, #landing): one screen, nothing to scroll ---------- */
/* Menu on top, then the name, line and buttons on the left with the app picture on the right
   (stacked on phones: name, line, picture, buttons), Privacy · Terms at the bottom. The picture
   takes whatever height is left and shrinks to fit, so the page never scrolls. */
.landing.site { overflow: hidden; }
.m-screen {
  height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center; gap: clamp(12px, 3vh, 32px); padding: clamp(16px, 3vh, 28px) 32px clamp(12px, 2.2vh, 20px);
}
.m-nav { display: flex; flex-direction: row; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.m-nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1; padding: 9px 15px; border-radius: 999px; transition: color 0.15s, background-color 0.15s; }
.m-nav a:hover { color: var(--ink); }
.m-nav a[aria-current="page"] { color: var(--paper); background: var(--ink); }

.m-hero {
  width: 100%; max-width: 1240px; min-height: 0; height: 100%;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 5vw, 72px);
}
.m-copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 3vh, 28px); }
.m-brand {
  display: flex; align-items: center; gap: 0.22em; font-size: clamp(52px, min(7vw, 11vh), 104px);
  line-height: 1; font-weight: 700; letter-spacing: -0.045em;
}
.m-brand img { height: 0.95em; width: auto; }
.m-lead { max-width: 24ch; font-size: clamp(18px, min(2.1vw, 3.2vh), 26px); line-height: 1.4; letter-spacing: -0.012em; color: var(--ink-2); text-wrap: balance; }
.m-cta { display: flex; gap: 12px; margin-top: clamp(0px, 1vh, 8px); }
.m-cta .s-btn { min-width: 150px; height: 48px; font-size: 16px; }

.m-shot { margin: 0; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.m-shot img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 20, 30, 0.05), 0 30px 70px -32px rgba(20, 20, 30, 0.32);
}
.m-shot .dark { display: none; }
@media (prefers-color-scheme: dark) { .m-shot .light.has-dark { display: none; } .m-shot .dark { display: block; } }

.m-legal { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.m-legal a { color: var(--ink-3); text-decoration: none; }
.m-legal a:hover { color: var(--ink-2); }

/* Narrow windows and phones: one centered column in the sketch's order. */
@media (max-width: 860px) {
  .m-screen { padding-left: 20px; padding-right: 20px; }
  .m-hero { display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.6vh, 24px); text-align: center; }
  .m-copy { display: contents; }
  .m-brand { justify-content: center; font-size: clamp(44px, min(14vw, 8.5vh), 72px); }
  .m-lead { max-width: 30ch; font-size: clamp(16px, 2.4vh, 19px); }
  .m-shot { order: 1; flex: 0 1 auto; height: auto; display: block; width: 100%; }
  .m-shot img { margin: 0 auto; border-radius: 10px; }
  .m-cta { order: 2; width: 100%; max-width: 420px; margin: 0; }
  .m-cta .s-btn { min-width: 0; flex: 1; }
}
@media (max-width: 400px) { .m-nav a { padding: 8px 11px; font-size: 13.5px; } }
/* Very short windows: the picture gives way rather than the page scrolling. */
@media (max-height: 520px) { .m-shot { display: none !important; } }
