/* Minute's marketing site: the glass theme of the app (decision D-21), dark, self-hosted fonts, no framework. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/outfit-300-700-latin.woff2?v=92684e4acd') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2?v=52de700912') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #060b18;
  --glow-a: rgba(47, 91, 255, 0.3);
  --glow-b: rgba(36, 99, 235, 0.2);
  --glow-c: rgba(16, 185, 160, 0.11);
  --bar: rgba(9, 17, 40, 0.7);
  --panel: #0c1630;
  --card: rgba(20, 36, 80, 0.5);
  --raised: rgba(30, 50, 104, 0.42);
  --hover: rgba(90, 130, 255, 0.1);
  --line: rgba(140, 170, 255, 0.13);
  --line-2: rgba(140, 170, 255, 0.24);
  --ink: #f3f6ff;
  --ink-2: #c4cde6;
  --muted: #94a0c2;
  --faint: #64708f;
  --accent: #4f7bff;
  --accent-strong: #3d63e6;
  --accent-text: #9db5ff;
  --accent-soft: rgba(79, 123, 255, 0.16);
  --accent-line: rgba(120, 155, 255, 0.42);
  --accent-glow: rgba(61, 99, 230, 0.45);
  --good: #5fd35f;
  --warn: #f6c55a;
  --codex: #3987e5;
  --claude: #d95926;
  --gpt: #199e70;
  --grok: #e6e8ec;
  --mark-ink: #0d0f12;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(2, 6, 20, 0.3);
  --pop: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(140, 170, 255, 0.12);
  --radius: 16px;
  --sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); font-size: 0.92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(70vw 60vh at 8vw -8vh, var(--glow-a), transparent 70%),
    radial-gradient(50vw 70vh at calc(100% + 6vw) 40vh, var(--glow-b), transparent 70%),
    radial-gradient(60vw 50vh at 50% calc(100% + 10vh), var(--glow-c), transparent 72%);
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; padding: 8px 14px; border-radius: 10px; background: var(--panel); color: var(--ink); font-weight: 600; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The bar */
.bar { position: sticky; top: 0; z-index: 40; padding: 12px 12px 0; }
.bar-in {
  display: flex; align-items: center; gap: 12px; max-width: 1180px; height: 60px; margin: 0 auto; padding: 0 14px 0 16px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--bar); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; }
.mark {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(180deg, #5b85ff, #2f55d8); box-shadow: 0 6px 16px -6px rgba(47, 85, 216, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none; transition: background-color .2s, color .2s; }
.nav a:hover, .nav a[aria-current='page'] { background: var(--hover); color: var(--ink); }
.nav a[aria-current='page'] { box-shadow: inset 0 0 0 1px var(--accent-line); background: var(--accent-soft); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px)); padding: 10px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--panel); box-shadow: var(--pop); display: grid; gap: 2px;
}
.menu-panel a { padding: 11px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--ink-2); }
.menu-panel a:hover { background: var(--hover); color: var(--ink); }
.menu-panel .btn { margin-top: 6px; justify-content: center; color: #fff; }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: box-shadow .2s, background-color .2s, border-color .2s, transform .2s;
}
.btn-primary {
  color: #fff; background: var(--accent-strong); background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  box-shadow: 0 10px 26px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { box-shadow: 0 14px 32px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.26); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: var(--card); }
.btn-ghost:hover { background: var(--hover); border-color: var(--accent-line); }
.btn-quiet { color: var(--ink-2); padding: 9px 12px; }
.btn-quiet:hover { color: var(--ink); background: var(--hover); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 11px; }
.eyebrow { color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 14px; color: var(--ink-2); text-decoration: none; }
a.chip:hover { color: var(--ink); background: var(--hover); }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; font: 500 11px/1 var(--mono); color: var(--mark-ink); }
.badge.ring { border-radius: 999px; border: 1.5px solid var(--line-2); color: var(--ink-2); width: 24px; height: 24px; }
.b-claude { background: var(--claude); } .b-gpt { background: var(--gpt); } .b-grok { background: var(--grok); } .b-codex { background: var(--codex); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }

/* Sections */
main { display: block; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.lead { max-width: 760px; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.025em; max-width: 920px; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; max-width: 820px; }
.h3 { font-size: 20px; line-height: 1.3; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); }
.grid { display: grid; gap: 16px; }
/* Grid children may shrink below their content, so a wide code block scrolls inside its card, not the page. */
.grid > *, .guide-block, .wrap > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 14px; box-shadow: inset 0 0 0 1px var(--accent-line); }
.icon svg { width: 20px; height: 20px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; margin-bottom: 14px; box-shadow: inset 0 0 0 1px var(--accent-line); }

/* Media */
.frame { position: relative; border-radius: 18px; border: 1px solid var(--line-2); box-shadow: var(--pop); overflow: hidden; background: var(--panel); }
.frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.frame img, .frame video { width: 100%; }
.hero-media { margin-top: 56px; position: relative; }
.hero-media::before { content: ''; position: absolute; inset: 8% 6% -6% 6%; z-index: -1; background: radial-gradient(closest-side, rgba(61, 99, 230, 0.55), transparent); filter: blur(40px); }
.caption { margin-top: 12px; color: var(--muted); font-size: 14px; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 760px; }
.phones .frame { border-radius: 24px; }

/* Hero */
.hero { padding: 64px 0 24px; }
.hero .lead { margin-top: 22px; }
.hero .row { margin-top: 30px; }
.hero .note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.works span.label { color: var(--muted); font-size: 14px; margin-right: 4px; }

/* Quote */
.quote { margin: 0; border-left: 3px solid var(--accent); padding: 6px 0 6px 20px; max-width: 760px; }
.quote p { font-size: 22px; line-height: 1.4; color: var(--ink); }
.quote cite { display: block; margin-top: 8px; font-style: normal; color: var(--muted); font-size: 14px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(61, 99, 230, 0.22), rgba(20, 36, 80, 0.5)); box-shadow: var(--pop); }
.price { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin: 14px 0 6px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ''; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db5ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan .btn { margin-top: auto; justify-content: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 500; color: var(--ink-2); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-text); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); }

/* The demo */
.demo { border: 1px solid var(--accent-line); border-radius: 22px; padding: 32px; background: linear-gradient(180deg, rgba(61, 99, 230, 0.26), rgba(20, 36, 80, 0.45)); box-shadow: var(--pop); }
.login { display: grid; gap: 10px; max-width: 620px; margin: 22px 0; }
.login div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.login dt { width: 84px; color: var(--muted); font-size: 14px; font-weight: 600; }
.login dd { margin: 0; flex: 1 1 220px; min-width: 0; font-family: var(--mono); overflow-wrap: anywhere; user-select: all; }

/* Guides (rendered from the install notes) */
.guide { max-width: 860px; }
.guide h2 { font-size: 28px; margin: 0 0 14px; }
.guide h3 { font-size: 18px; margin: 22px 0 8px; }
.guide p, .guide li { color: var(--ink-2); }
.guide ol, .guide ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.guide strong { color: var(--ink); }
.guide code { background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.guide pre { max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
.guide pre code { overflow-wrap: normal; }
.guide pre code { background: none; border: 0; padding: 0; }
.guide blockquote { margin: 12px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--line-2); color: var(--muted); }
.guide table { min-width: 0; }
.guide-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 26px 28px; scroll-margin-top: 96px; }

/* Final call to action and footer */
.cta { text-align: left; border: 1px solid var(--line); border-radius: 24px; padding: 48px; background: radial-gradient(80% 140% at 0% 0%, rgba(61, 99, 230, 0.3), transparent 60%), var(--card); box-shadow: var(--pop); }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 10px; color: var(--ink); font-size: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.notice { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.anchor { scroll-margin-top: 96px; }

/* Motion: short, and off when the visitor asks for less. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.enter > * { animation: rise .7s var(--ease) backwards; }
.enter > :nth-child(2) { animation-delay: 80ms; }
.enter > :nth-child(3) { animation-delay: 160ms; }
.enter > :nth-child(4) { animation-delay: 240ms; }
.enter > :nth-child(n + 5) { animation-delay: 320ms; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter > *, .reveal { animation: none !important; }
  .btn { transition: none; }
}

/* Smaller screens */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .plans { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .bar-end .btn-quiet { display: none; }
  .menu { display: block; }
  .section { padding: 52px 0; }
  .g2, .g4 { grid-template-columns: minmax(0, 1fr); }
  .cta, .demo { padding: 26px 22px; }
  .phones { gap: 10px; }
  .hero { padding-top: 40px; }
  .hero-media { margin-top: 36px; }
  .foot { grid-template-columns: 1fr; }
}
