/* MintPilot public website. Brand palette is taken from the logo: deep navy, signal green and teal. */
:root {
  --ink: #050f19; --deck: #0b1a26; --hull: #102231; --line: #1c3442;
  --text: #e2f3f7; --mist: #8aa3b2; --signal: #5ae161; --signal-deep: #2fa83a; --teal: #1a9692; --star: #f2c14e;
  --wrap: 1120px;
  --font: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: 12px; top: -48px; padding: 10px 14px; background: var(--signal); color: #04110a; font-weight: 700; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(5, 15, 25, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; display: block; }
.wordmark { font-size: 1.3rem; font-weight: 900; font-style: italic; letter-spacing: -.03em; }
.wordmark span:first-child { color: var(--signal); }
.wordmark span:last-child { color: #d6e6ef; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.links a { color: var(--mist); text-decoration: none; padding: 6px 0; }
.links a:hover { color: var(--text); }
.btn { display: inline-block; padding: 14px 24px; border-radius: 12px; background: var(--signal); color: #04110a; font-weight: 750; text-decoration: none; border: 1px solid var(--signal); transition: background .15s ease, border-color .15s ease; }
.btn:hover { background: #7bec82; border-color: #7bec82; }
.btn-small { padding: 9px 16px; font-size: .92rem; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--hull); border-color: #2a4a5c; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 92px) 0 clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -8%; top: -10%; width: 62%; height: 120%; background: radial-gradient(closest-side, rgba(26, 150, 146, .26), rgba(26, 150, 146, 0)); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
h1 { margin: 0 0 22px; font-size: clamp(2.5rem, 6.2vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 850; text-wrap: balance; }
.lead { margin: 0 0 30px; max-width: 34em; color: #c3d6e0; font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--mist); font-size: .98rem; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

/* Phone with the example chat: the one showpiece on the page */
.phone { margin: 0 auto; width: min(100%, 372px); border: 9px solid #0f2433; border-radius: 40px; background: #0e1621; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); overflow: hidden; position: relative; }
.phone-bar { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: #17212b; border-bottom: 1px solid #0b121a; }
.phone-bar img { border-radius: 50%; }
.phone-bar div { line-height: 1.25; }
.phone-bar strong { display: block; font-size: .98rem; }
.phone-bar span { font-size: .8rem; color: #6f8799; }
.chat { padding: 18px 14px 22px; min-height: 468px; display: flex; flex-direction: column; gap: 8px; font-size: .86rem; line-height: 1.5; background: #0e1621; }
.bubble { position: relative; align-self: flex-start; max-width: 94%; padding: 9px 12px 20px; background: #182533; color: #e6edf2; border-radius: 14px 14px 14px 4px; }
.bubble b { font-weight: 700; }
.bubble code { font-family: var(--mono); font-size: .86em; color: #ff8fd0; }
.bubble u { color: #6ab7ff; text-decoration: none; word-break: break-all; }
.bubble .time { position: absolute; right: 10px; bottom: 4px; font-size: .68rem; color: #6f8799; }
.bubble.win { border: 1px solid rgba(90, 225, 97, .5); }
.keys { display: flex; gap: 6px; padding: 0; background: none; align-self: stretch; max-width: 100%; }
.keys span { flex: 1; text-align: center; padding: 9px 6px; border-radius: 9px; background: rgba(60, 94, 124, .55); color: #eaf2f8; font-size: .8rem; font-weight: 600; }
.typing { display: none; align-self: flex-start; gap: 4px; padding: 11px 14px; background: #182533; border-radius: 14px 14px 14px 4px; }
.typing.on { display: inline-flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #6f8799; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
/* With scripting on, bubbles start hidden and the page script reveals them in order. Without it, everything stays visible. */
@media (scripting: enabled) {
  .bubble { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
  .bubble.show { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble { transition: none; }
  .typing i { animation: none; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 116px) 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 820; text-wrap: balance; }
h3 { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p, .split-head p { color: var(--mist); font-size: 1.08rem; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-head { position: sticky; top: 110px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 36px 64px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--signal); color: var(--signal); display: grid; place-items: center; font-weight: 800; background: var(--ink); z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 40px; bottom: 0; width: 1.5px; background: var(--line); }
.steps p { color: var(--mist); max-width: 36em; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 80px); }
.features article { padding: 28px 0 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; }
.features .ico { grid-row: span 2; }
.features p { color: var(--mist); grid-column: 2; }
.ico { width: 28px; height: 28px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

.safety { border: 1px solid var(--line); border-radius: 22px; background: var(--deck); padding: clamp(28px, 5vw, 56px); }
.safety-head { max-width: 560px; margin-bottom: 36px; }
.safety-head p { color: var(--mist); }
.safety-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(28px, 5vw, 64px); }
.safety-list li { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; }
.safety-list .ico { stroke: var(--signal); }
.safety-list p { color: var(--mist); }
.fine { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--mist); font-size: .96rem; max-width: 52em; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px 9px 30px; border: 1px solid var(--line); border-radius: 999px; background: var(--deck); position: relative; font-weight: 600; }
.chips li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--signal); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 32px; background: var(--deck); }
.plan-pro { border-color: rgba(90, 225, 97, .55); background: linear-gradient(180deg, #0d2231, var(--deck)); }
.plan-pro h3 { color: var(--star); }
.price { margin: 6px 0 22px; }
.price strong { display: block; font-size: 2.2rem; line-height: 1.1; letter-spacing: -.03em; font-weight: 820; }
.price span { color: var(--mist); font-size: .95rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: #cfe1ea; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; background: var(--signal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.center { margin-top: 36px; text-align: left; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 650; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 40px 24px 0; color: var(--mist); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

.cta { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); background: var(--deck); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 6vw, 72px); align-items: center; }
.cta p { color: var(--mist); margin-bottom: 24px; }
.cta p:last-child { margin-bottom: 0; }
.cta-art { width: 100%; border-radius: 22px; border: 1px solid var(--line); display: block; }

.foot { padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--mist); font-size: .92rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot-row p:nth-of-type(1) { flex: 1 1 320px; }
.foot .brand img { width: 32px; height: 32px; }

/* Smaller screens */
@media (max-width: 960px) {
  .links { display: none; }
  .btn-small { margin-left: auto; }
  .hero-grid, .split, .cta-grid { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .hero::before { right: -30%; width: 100%; top: 20%; }
}
@media (max-width: 720px) {
  .features, .safety-list, .plans { grid-template-columns: 1fr; }
  .chat { min-height: 440px; }
  .cta-art { max-width: 420px; }
}
