/* outofmindapps -- one stylesheet for every page. System fonts, no trackers, no external files. */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #6b4dff;
  --accent-2: #ff5c8a;
  --accent-ink: #5335e6;
  --espresso-1: #3b2418;
  --espresso-2: #1c110b;
  --ivory: #f4ecdd;
  --brass: #c9a96b;
  --radius-lg: 32px;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #161617;
    --surface-2: #1d1d1f;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: #333336;
    --accent: #9d8bff;
    --accent-2: #ff7aa2;
    --accent-ink: #b7a9ff;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; letter-spacing: -.01em; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; text-align: center; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; z-index: -1;
}
.hero::before { width: 520px; height: 520px; background: var(--accent); top: -220px; left: 50%; transform: translateX(-85%); }
.hero::after { width: 460px; height: 460px; background: var(--accent-2); top: -160px; left: 50%; transform: translateX(5%); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-bottom: 18px; }
h1 {
  font-size: clamp(50px, 13.5vw, 96px); line-height: 1.0; letter-spacing: -.035em; font-weight: 750; margin: 0 auto 24px; max-width: 12ch;
  text-wrap: balance;
}
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.9vw, 21px); font-weight: 400; color: var(--muted); max-width: 40rem; margin: 0 auto; line-height: 1.45; letter-spacing: -.01em; text-wrap: pretty; }

/* Sections */
section { padding: 56px 0; }
.label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.section-title { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.025em; line-height: 1.08; font-weight: 700; margin: 0 0 12px; }
.section-sub { color: var(--muted); font-size: 19px; margin: 0 0 36px; max-width: 46ch; }

/* App tiles */
.apps { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile {
  border-radius: var(--radius-lg); padding: 40px; min-height: 360px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow);
}
.tile h3 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.1; }
.tile p { margin: 0; font-size: 18px; line-height: 1.45; }
.tile .pill {
  align-self: flex-start; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
}
.tile-main { grid-column: span 12; color: var(--ivory);
  background: radial-gradient(120% 140% at 0% 0%, #5a3a26 0%, var(--espresso-1) 45%, var(--espresso-2) 100%);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; min-height: 440px;
}
.tile-main .pill { background: rgba(201,169,107,.18); color: var(--brass); }
.tile-main .app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.tile-main .app-head img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.tile-main h3 { font-size: 44px; font-family: ui-serif, "New York", Georgia, serif; font-weight: 600; }
.tile-main .tag { color: var(--brass); font-size: 19px; }
.tile-main ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.tile-main li { padding-left: 26px; position: relative; color: rgba(244,236,221,.86); }
.tile-main a { color: var(--brass); font-weight: 600; }
.tile-main li b { color: var(--ivory); font-weight: 650; }
.tile-main li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }

/* A mock iOS notification, drawn in CSS */
.phone-demo { display: grid; gap: 14px; justify-items: end; }
.notif {
  width: min(360px, 100%); background: rgba(244,236,221,.12); border: 1px solid rgba(244,236,221,.14);
  backdrop-filter: blur(20px); border-radius: 22px; padding: 14px 16px; color: var(--ivory);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.notif:nth-child(2) { transform: translateX(-18px); opacity: .92; }
.notif:nth-child(3) { transform: translateX(-36px); opacity: .84; }
.notif .top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(244,236,221,.65); margin-bottom: 4px; }
.notif .top img { width: 18px; height: 18px; border-radius: 5px; }
.notif .top span:last-child { margin-left: auto; }
.notif b { display: block; font-size: 15px; }
.notif small { font-size: 14px; color: rgba(244,236,221,.8); }
.notif .reply { margin-top: 10px; background: rgba(0,0,0,.25); border-radius: 12px; padding: 8px 12px; font-size: 14px; color: rgba(244,236,221,.7); }

.tile-soft { grid-column: span 6; }
.tile-lilac { background: linear-gradient(160deg, #efe9ff 0%, #d9ccff 100%); color: #2a1d63; }
.tile-mint { background: linear-gradient(160deg, #e3fbf1 0%, #bdeedd 100%); color: #0f4636; }
@media (prefers-color-scheme: dark) {
  .tile-lilac { background: linear-gradient(160deg, #2a2150 0%, #1a1433 100%); color: #e6ddff; }
  .tile-mint { background: linear-gradient(160deg, #123a30 0%, #0b231d 100%); color: #cff5e6; }
}
.tile-soft .pill { background: rgba(0,0,0,.07); }
@media (prefers-color-scheme: dark) { .tile-soft .pill { background: rgba(255,255,255,.1); } }
.tile-soft .glyph { font-size: 56px; line-height: 1; }

/* Principles */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h4 { margin: 12px 0 6px; font-size: 20px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }
.card .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* Contact band */
.band { text-align: center; background: var(--surface-2); border-radius: var(--radius-lg); padding: 56px 24px; }
.btn {
  display: inline-block; margin-top: 20px; padding: 14px 26px; border-radius: 999px; font-weight: 600;
  background: var(--ink); color: var(--bg);
}
.btn:hover { text-decoration: none; opacity: .88; }

/* Documents: support, privacy, terms */
.doc { max-width: 720px; margin: 0 auto; padding: 72px 0 40px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); text-align: left; margin: 0 0 12px; max-width: none; }
.doc .updated { color: var(--muted); margin: 0 0 40px; }
.doc h2 { font-size: 26px; letter-spacing: -.015em; margin: 44px 0 10px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.contact-card { background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); padding: 28px; margin: 8px 0 32px; }
.contact-card a.big { font-size: 24px; font-weight: 650; letter-spacing: -.01em; }
details { background: var(--surface); border-radius: 16px; padding: 18px 22px; margin: 12px 0; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p, details ol, details ul { margin: 12px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 44px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Phone widths */
@media (max-width: 820px) {
  .tile-main { grid-template-columns: 1fr; }
  .phone-demo { justify-items: stretch; }
  .notif:nth-child(2), .notif:nth-child(3) { transform: none; }
  .tile-soft { grid-column: span 12; min-height: 280px; }
  .cards3 { grid-template-columns: 1fr; }
  .tile { padding: 28px; }
  .tile-main h3 { font-size: 34px; }
  .tile-main .app-head img { width: 60px; height: 60px; border-radius: 15px; }
  .hero { padding: 56px 0 44px; }
  section { padding: 40px 0; }
  .section-sub { font-size: 17px; margin-bottom: 24px; }
  .tile p { font-size: 17px; }
  .lede { max-width: none; }
  .nav-links { gap: 16px; }
}
@media (max-width: 420px) { .nav-links a.hide-sm { display: none; } }
