/* OutBar — calm, iOS-style landing page */

:root {
  /* Always light, regardless of the visitor's system appearance. */
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --hairline: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);

  --panel: rgba(246, 246, 248, 0.82);
  --tile: rgba(255, 255, 255, 0.72);
  --chip: rgba(0, 113, 227, 0.12);

  --radius: 22px;
  /* Chillax for display type, Satoshi for body text. */
  --font-display: "Chillax", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font: "Satoshi", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  /* The mock-up shows real macOS UI, so it keeps Apple's system font. */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-system-rounded: ui-rounded, -apple-system, "SF Pro Rounded", var(--font-system);
}


* { box-sizing: border-box; }

/* Elements that set their own display (carets, badges) must still honour the hidden attribute. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Keep anchored sections clear of the sticky header. */
section[id] { scroll-margin-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 0.35em;
  margin: 0 0.08em;
  border-radius: 0.4em;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 0 var(--hairline);
  font: 600 0.8em var(--font);
  color: var(--text);
  vertical-align: 0.08em;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  /* Bold, so the wordmark carries the same weight as the solid envelope beside it. */
  font: 700 20px var(--font-display);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
/* The icon is white, so a hairline keeps it from dissolving into light backgrounds. */
.brand img { border-radius: 7px; box-shadow: 0 0 0 1px var(--hairline); }
.brand.small { font-size: 14px; gap: 6px; }
.brand.small img { border-radius: 5px; box-shadow: 0 0 0 1px var(--hairline); }

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 980px;
  font: 500 17px var(--font);
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { color: var(--accent); }
.btn-secondary:hover { text-decoration: underline; }
.btn-small { height: 30px; padding: 0 14px; font-size: 13px; }

/* Hero */

.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 88px 16px 40px;
  text-align: center;
}

.app-icon {
  margin: 0 auto 28px;
  border-radius: 25px;
  box-shadow: 0 0 0 1px var(--hairline), 0 12px 32px rgba(0, 0, 0, 0.1);
}
.app-icon.small { border-radius: 20px; margin-bottom: 20px; }

/* Chillax Semibold for display type and card titles: its rounded shapes stay soft at this weight. */
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: 18px; }

h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
h3 { font-size: 19px; letter-spacing: -0.015em; }

.badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: 980px;
  background: var(--bg-alt);
  box-shadow: 0 0 0 1px var(--hairline);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.lede {
  margin: 22px auto 0;
  max-width: 600px;
  font-size: clamp(19px, 2.4vw, 22px);
  line-height: 1.4;
  color: var(--text-2);
}

.cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.fine { margin-top: 16px; font-size: 13px; color: var(--text-3); }

/* Stage: desktop with the menu bar panel */

.stage { max-width: 1040px; margin: 24px auto 0; padding: 0 16px; }

.desktop {
  position: relative;
  font-family: var(--font-system);
  letter-spacing: normal;
  height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 10% 100%, #f7c6b9 0%, transparent 55%),
    radial-gradient(90% 80% at 90% 95%, #b9c9ff 0%, transparent 60%),
    radial-gradient(80% 70% at 60% 0%, #cfe4ff 0%, transparent 70%),
    linear-gradient(160deg, #e9eefb, #f4e9f1);
  box-shadow: var(--shadow);
}


.menubar {
  height: 30px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 45%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.menubar-left, .menubar-right { display: flex; align-items: center; gap: 16px; }
.menubar-left span:nth-child(2) { font-weight: 600; }
.menubar-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--text); opacity: 0.85; }
.menubar-clock { font-variant-numeric: tabular-nums; }

.menubar-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border-radius: 6px;
}
.menubar-item.is-active { background: color-mix(in srgb, var(--text) 14%, transparent); }

.menubar svg,
.panel svg,
.card-icon svg,
.privacy-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menubar svg .fill, .panel svg .fill { fill: currentColor; stroke: none; }

/* The panel */

.panel {
  position: absolute;
  top: 34px;
  right: 120px;
  width: 380px;
  padding: 12px;
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  box-shadow: 0 0 0 0.5px var(--hairline), 0 18px 50px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  color: var(--text);
}

.panel-compose { display: flex; flex-direction: column; gap: 8px; transition: opacity 0.3s; }
.panel-compose.is-hidden { opacity: 0; }

.panel-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 2px 4px 2px 6px; }
.panel-title { font-weight: 600; font-size: 13.5px; }
.panel-account { font-size: 11px; color: var(--text-2); }
.panel-more { color: var(--text-2); font-size: 10px; letter-spacing: 1px; padding-top: 4px; }

.pill, .tile { background: var(--tile); border-radius: 18px; }

.pill-row {
  position: relative;
  min-height: 36px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pill-label { color: var(--text-2); }
.pill-aside { margin-left: auto; color: var(--text-2); font-size: 12px; }

.chips { display: inline-flex; gap: 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  background: var(--chip);
  color: var(--accent);
  font-size: 12px;
  animation: pop 0.25s ease-out;
}

.typed { white-space: pre; }
.typed.multiline { white-space: pre-wrap; }

.caret {
  display: inline-block;
  width: 1.5px;
  height: 15px;
  margin-left: 1px;
  background: var(--accent);
  vertical-align: -3px;
  animation: blink 1s steps(1) infinite;
}

.suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 40px;
  z-index: 2;
  width: 220px;
  padding: 5px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 0 0.5px var(--hairline), 0 10px 30px rgba(0, 0, 0, 0.16);
  animation: pop 0.2s ease-out;
}
.suggest-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
}
.suggest-row b { font-weight: 600; }
.suggest-avatar { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }

.message {
  position: relative;
  height: 168px;
  padding: 12px 14px;
  line-height: 1.45;
}
.placeholder { position: absolute; top: 12px; left: 14px; color: var(--text-3); pointer-events: none; }

.ai-status {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: 11px;
  color: var(--text-2);
  background: color-mix(in srgb, var(--card) 85%, transparent);
  box-shadow: 0 0 0 0.5px var(--hairline);
  animation: pop 0.25s ease-out;
}
.ai-status u { color: var(--accent); text-decoration: none; }

.panel-footer { display: flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }

.round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tile);
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.round.is-active { background: var(--accent); color: #fff; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--tile);
  font-weight: 500;
}
.pill-btn.primary { background: var(--accent); color: #fff; font-weight: 600; transition: transform 0.15s, opacity 0.2s; }
.pill-btn.primary.is-disabled { opacity: 0.45; }
.pill-btn.primary.is-pressed { transform: scale(0.95); }

.panel-sent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: fade 0.3s ease-out;
}
.panel-sent[hidden] { display: none; }
.sent-check svg { stroke-width: 3.5; }
.sent-check circle { fill: #34c759; stroke: none; }
.sent-check path {
  stroke: #fff;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.45s 0.1s ease-out forwards;
}
.sent-title { font: 600 17px var(--font-system-rounded); }

.stage-caption { margin: 22px 0 0; text-align: center; color: var(--text-2); font-size: 15px; }

/* Sections */

.section { max-width: 1040px; margin: 0 auto; padding: 120px 16px 0; text-align: center; }

.section-lede {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 19px;
  color: var(--text-2);
}
.section-lede.left { margin-left: 0; text-align: left; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(90deg, #ff6b4a, #c84bff, #2f7bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  text-align: left;
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.blue { background: #0a84ff; }
.card-icon.indigo { background: #5e5ce6; }
.card-icon.green { background: #30d158; }
.card-icon.orange { background: #ff9f0a; }
.card-icon.pink { background: #ff375f; }
.card-icon.teal { background: #40c8e0; }

/* Writing help */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  text-align: left;
}

.actions { display: grid; gap: 10px; }
.action {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 15px;
}
.action b { font-weight: 600; }
.action small { color: var(--text-3); font-size: 13px; text-align: right; }

/* Privacy */

.privacy-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}
.privacy-icon svg { width: 26px; height: 26px; }

.facts {
  list-style: none;
  margin: 40px auto 0;
  padding: 0;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.facts li {
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 15px;
  text-align: left;
}
.facts b { display: block; color: var(--text); margin-bottom: 4px; }

/* FAQ */

.faq { max-width: 720px; text-align: left; }
.faq h2 { text-align: center; margin-bottom: 32px; }

details { border-bottom: 1px solid var(--hairline); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 32px 20px 0;
  position: relative;
  font-size: 17px;
  font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { margin: 0 0 20px; color: var(--text-2); font-size: 15px; }

/* Final call to action */

.final { padding: 140px 16px 120px; text-align: center; }
.final .btn { margin-top: 28px; }

/* Footer */

.footer { border-top: 1px solid var(--hairline); }
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-3);
}
.footer-inner .brand { color: var(--text); }
.footer-inner nav { margin-left: auto; display: flex; gap: 18px; }
.footer-inner nav a { color: var(--text-2); }

/* Motion */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
}

/* Small screens */

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .panel { right: 50%; transform: translateX(50%); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .hero { padding-top: 56px; }
  .desktop { height: 520px; border-radius: 20px; }
  .menubar-left span:not(.menubar-dot):not(:nth-child(2)) { display: none; }
  .menubar-item:not(.is-active) { display: none; }
  .panel { width: calc(100% - 24px); }
  .section { padding-top: 88px; }
  .card { padding: 24px; }
  .action { flex-direction: column; gap: 2px; }
  .action small { text-align: left; }
  .footer-inner { flex-wrap: wrap; }
}

/* Privacy policy and other long-form pages */

.privacy-more { margin: 28px 0 0; font-size: 15px; }

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 16px 100px;
}
.legal h1 { font-size: clamp(36px, 6vw, 52px); }
.legal h2 { margin-top: 44px; font-size: 22px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.legal p { margin: 12px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal b { color: var(--text); font-weight: 600; }
.legal code { font: 14px ui-monospace, "SF Mono", Menlo, monospace; padding: 1px 5px; border-radius: 5px; background: var(--bg-alt); }
.legal-meta { margin-top: 8px !important; font-size: 14px !important; color: var(--text-3) !important; }
.legal-lede { margin-top: 28px !important; font-size: 19px !important; color: var(--text) !important; }

.footer-inner a { color: var(--text-2); }
