/* Titan Studio's public pages (the landing page, pricing, help, sign-in, billing, account): a light
   theme with the brand blue #0a84ff. The app itself (the studio, /app) keeps its own dark look. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --border: #e3e3e8;
  --border-strong: #d2d2d7;
  --text: #1d1d1f;
  --muted: #636366;
  --faint: #8e8e93;
  --primary: #0a84ff;
  --primary-hover: #0077ed;
  --primary-ink: #0066cc;          /* the blue for small text on white (AA contrast) */
  --primary-soft: rgba(10, 132, 255, .09);
  --ok: #248a3d;
  --warn: #c93400;
  --danger: #d70015;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -12px rgba(0, 0, 0, .12);
  --wrap: 1200px;
  color-scheme: light;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-alt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-alt); }
body.landing { background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 650; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 12px; }
code { font: 13px "SF Mono", ui-monospace, Menlo, monospace; background: #f2f2f7; padding: 1px 6px; border-radius: 5px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .86); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.site-header nav a:not(.btn) { color: var(--text); }
.site-header nav a:not(.btn):hover { color: var(--primary-ink); text-decoration: none; }
.site-header nav form { margin: 0; }
.site-header .btn { padding: 7px 16px; font-size: 15px; }
main { flex: 1; width: 100%; }
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 36px 0 28px; font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-row nav a { color: var(--muted); }
.legal { margin-top: 22px; color: var(--faint); font-size: 12.5px; }
.legal p { margin: 0 0 4px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 18px; border-radius: 980px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: #f2f2f4; text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(10, 132, 255, .35); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.secondary { background: var(--surface); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(0, 0, 0, .04); }
.btn.danger { color: var(--danger); }
.btn.wide { width: 100%; padding: 11px 18px; }
.btn.large { padding: 11px 24px; font-size: 16px; }
.btn.xl { padding: 13px 28px; font-size: 17px; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--text); cursor: pointer; }
button.link:hover { color: var(--primary-ink); }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password] { width: 100%; padding: 10px 12px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 10px; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10, 132, 255, .18); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 0 16px; font-weight: 400; }
.check input { width: auto; margin: 0; accent-color: var(--primary); }
.error { color: var(--danger); font-size: 13px; margin-top: 5px; }

/* ---------- layout pieces (sign-in, billing, account, help) ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.centered { display: flex; align-items: center; justify-content: center; padding: 64px 16px; }
.narrow { width: 100%; max-width: 420px; }
.medium { width: 100%; max-width: 560px; }
.page { max-width: 880px; margin: 0 auto; padding: 48px 24px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions { margin-top: 20px; }
.alt { text-align: center; margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.notice { padding: 11px 14px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; background: var(--bg-alt); border: 1px solid var(--border); }
.notice.ok { background: rgba(52, 199, 89, .09); border-color: rgba(52, 199, 89, .35); }
.notice.warn { background: rgba(255, 149, 0, .09); border-color: rgba(255, 149, 0, .4); }
.notice.danger { background: rgba(255, 59, 48, .07); border-color: rgba(255, 59, 48, .35); color: #a1000f; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 6px; }
.dot.ok { background: #34c759; }
.dot.warn { background: #ff9500; }
.dot.danger { background: #ff3b30; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

/* ---------- pricing ---------- */
.plan { text-align: center; }
.plan .price { color: var(--text); font-size: 56px; font-weight: 700; letter-spacing: -.03em; margin: 4px 0 0; }
.plan .per { color: var(--muted); margin-bottom: 22px; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
ul.ticks li { display: flex; gap: 10px; padding: 6px 0; }
ul.ticks li::before { content: "\2713"; flex: none; color: var(--primary); font-weight: 700; }

/* ---------- help ---------- */
.help h2 { margin-top: 36px; }
.help ol, .help ul { padding-left: 22px; margin: 0 0 12px; }
.help li { margin-bottom: 6px; }

/* =====================================================================================
   The landing page
   ===================================================================================== */
.eyebrow { color: var(--primary-ink); font-weight: 600; font-size: 16px; margin: 0 0 12px; letter-spacing: 0; }
.section { padding: 120px 0; }
.section.tinted { background: var(--bg-alt); }
.section h2, .glass h2, .closing h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.028em; line-height: 1.08; margin-bottom: 18px; }
.body { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 640px; text-wrap: pretty; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .body { margin: 0 auto; }

/* hero */
.hero { padding: 88px 0 0; text-align: center; overflow: hidden;
  background: radial-gradient(1100px 520px at 50% -140px, rgba(10, 132, 255, .16), rgba(10, 132, 255, 0) 70%), var(--bg); }
.hero-copy { max-width: 920px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px; border-radius: 980px;
  background: var(--primary-soft); color: var(--primary-ink); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; margin: 0 0 24px; }
.hero h1 .accent { color: var(--primary); }
.lede { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; color: var(--muted); max-width: 760px; margin: 0 auto 34px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fine { margin: 18px 0 0; color: var(--faint); font-size: 14px; }
.window.hero-shot { max-width: 1200px; margin: 64px auto 0; }

/* the app window around screenshots */
.window { margin: 0; border-radius: 14px; overflow: hidden; background: #1e1e1e;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .06), 0 40px 90px -30px rgba(0, 20, 60, .42); }
/* a neutral title bar (the app runs on Mac and Windows): the mark and the name */
.window-bar { display: flex; gap: 7px; align-items: center; justify-content: center; height: 30px; padding: 0 13px; background: #2a2a2a;
  border-bottom: 1px solid #111; color: #9a9a9e; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.window-bar img { width: 14px; height: 14px; opacity: .9; }
.window > img { width: 100%; }
.window.shot { margin-top: 64px; }
.split .window.shot { margin-top: 0; }

/* numbers */
.stats { padding: 88px 0 24px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(36px, 4.4vw, 56px); font-weight: 750; letter-spacing: -.03em; line-height: 1.05; color: var(--text); }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 16px; }
.stat sup a { color: var(--primary-ink); font-size: 11px; margin-left: 2px; }

/* text + picture */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.split + .split { margin-top: 120px; }
.split.reverse .split-copy { order: 2; }
/* product shots beside their copy: the picture gets the wide column, on either side */
.split.showcase { grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: 56px; }
.split.showcase.reverse { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); }
.showcase h2 { font-size: clamp(30px, 3.6vw, 46px); }
.checks { list-style: none; padding: 0; margin: 26px 0 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 17px; }
.checks .icon { color: var(--primary); width: 22px; height: 22px; margin-top: 1px; stroke-width: 2.2; }

/* the benchmark */
.bench { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.bench figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 650; font-size: 17px; margin-bottom: 22px; }
.bench figcaption span { color: var(--faint); font-weight: 400; font-size: 14px; }
.bench-group + .bench-group { margin-top: 26px; }
.bench-size { margin: 0 0 10px; font-weight: 600; color: var(--muted); font-size: 14px; letter-spacing: .01em; }
.bar-row { display: grid; grid-template-columns: 104px 1fr 70px; gap: 14px; align-items: center; margin: 8px 0; font-size: 15px; }
.bar-label { color: var(--muted); }
.bar-track { height: 14px; background: #f0f0f3; border-radius: 7px; overflow: hidden; }
.bar { display: block; height: 100%; width: var(--w); border-radius: 7px; background: #b8b8c0; animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.bar.ours { background: var(--primary); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.bar-value.ours { color: var(--primary-ink); font-weight: 700; }
.bench-note { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--faint); font-size: 12.5px; line-height: 1.5; }
@keyframes grow { from { width: 0; } }

/* grids */
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.tile, .feature { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.tile .icon { color: var(--primary); width: 30px; height: 30px; margin-bottom: 18px; }
.tile h3, .feature h3 { font-size: 18px; margin-bottom: 8px; }
.tile p, .feature p { color: var(--muted); font-size: 15.5px; margin: 0; line-height: 1.5; }
.feature { transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; }
.badge .icon { width: 24px; height: 24px; }

/* Glass */
.glass { position: relative; padding: 120px 0; color: #f5f5f7; overflow: hidden;
  background: radial-gradient(900px 480px at 18% 0%, rgba(10, 132, 255, .42), rgba(10, 132, 255, 0) 65%),
              radial-gradient(800px 460px at 92% 100%, rgba(94, 92, 230, .32), rgba(94, 92, 230, 0) 60%), #05070d; }
.glass h2, .glass h3 { color: #fff; }
.glass-word { background: linear-gradient(100deg, #ffffff 10%, #8ec8ff 55%, #b9b4ff 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glass .eyebrow { color: #64b5ff; }
.glass .body { color: rgba(235, 235, 245, .72); }
.pane { position: relative; padding: 30px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.pane .icon { color: #64b5ff; width: 30px; height: 30px; margin-bottom: 18px; }
.pane h3 { font-size: 19px; margin-bottom: 8px; }
.pane p { color: rgba(235, 235, 245, .72); margin: 0; font-size: 15.5px; }

/* closing call to action */
.closing { padding: 120px 0 128px; }
.closing-box { text-align: center; max-width: 920px; padding: 72px 32px; border-radius: 32px;
  background: radial-gradient(700px 300px at 50% 0%, rgba(10, 132, 255, .14), rgba(10, 132, 255, 0) 70%), var(--bg-alt); }
.closing-box .body { margin: 0 auto 26px; }
.platforms { list-style: none; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 0; margin: 0 0 32px; }
.platforms li { display: flex; flex-direction: column; gap: 2px; min-width: 170px; padding: 12px 18px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); }
.platforms strong { font-size: 15px; }
.platforms span { color: var(--muted); font-size: 13.5px; }

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

@media (max-width: 1060px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .split, .split.showcase, .split.showcase.reverse { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse .split-copy { order: 0; }
  .split + .split { margin-top: 96px; }
}

@media (max-width: 720px) {
  .site-header nav { gap: 16px; font-size: 14px; }
  .site-header nav a:not(.btn):not([href*="login"]) { display: none; }
  .section, .glass, .closing { padding: 80px 0; }
  .hero { padding-top: 56px; }
  .window.hero-shot, .window.shot { margin-top: 40px; }
  .split .window.shot { margin-top: 0; }
  .stats { padding: 64px 0 8px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .grid.four, .grid.three { grid-template-columns: 1fr; }
  .bench { padding: 22px; }
  .bar-row { grid-template-columns: 86px 1fr 60px; gap: 10px; font-size: 14px; }
  .closing-box { padding: 48px 20px; border-radius: 24px; }
  .window-bar { height: 22px; font-size: 10px; }
  .window-bar img { width: 11px; height: 11px; }
}
