/* Bayside Software Solutions — site styles.
   Keel's palette: deep indigo, bright violet, and the four priority colours
   (urgent red, high orange, medium blue, low green) as the one bold motif.
   Fonts ship with the site (SIL Open Font Licence): no requests to Google. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/bricolage.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('../fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('../fonts/manrope-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('../fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('../fonts/manrope-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('../fonts/manrope-800.woff2') format('woff2'); }

:root {
  --ink: #16183A;
  --ink-2: #474A70;
  --ink-3: #6E729A;
  --indigo: #1C1E4A;
  --indigo-deep: #121433;
  --indigo-2: #2A2D6E;
  --violet: #6A3DF0;
  --violet-2: #5428DB;
  --violet-soft: #ECE6FF;
  --canvas: #F3F4FA;
  --paper: #FFFFFF;
  --line: #DCDFEC;
  --p1: #9B1C1C;
  --p2: #F57C00;
  --p3: #BFDDF7;
  --p4: #C9EBC2;
  --pink: #E5367F;
  --jade: #00A88F;
  --gold: #E0A800;
  --display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --text: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(18, 20, 51, 0.28), 0 6px 18px rgba(18, 20, 51, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font: 500 17px/1.6 var(--text); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--violet-2); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font: 700 18px/1.1 var(--display); letter-spacing: -0.015em; white-space: nowrap; }
.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--canvas); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--violet-2); background: var(--violet-soft); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font: 800 16px/1 var(--text); text-decoration: none; border: 2px solid transparent; transition: transform 0.12s ease, background 0.12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-2); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-outline:hover { border-color: var(--ink-3); color: var(--ink); }

/* ---------------------------------------------------------------- hero (indigo) */
.hero { position: relative; overflow: hidden; background: var(--indigo); color: #fff; }
.hero::before { content: ''; position: absolute; inset: auto -10% -45% 35%; height: 520px; background: radial-gradient(closest-side, rgba(106, 61, 240, 0.55), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 800 13px/1 var(--text); letter-spacing: 0.04em; color: #C9BBFF; margin-bottom: 18px; }
.hero h1 { font: 700 clamp(40px, 5.2vw, 64px)/1.02 var(--display); letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: #C9BBFF; }
.hero p.lede { margin-top: 20px; font-size: 19px; line-height: 1.6; color: #D9DBF5; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* the priority stack: four bars in Keel's priority colours */
.stack { display: grid; gap: 10px; }
.stack i { display: block; height: 18px; border-radius: 9px; }
.stack i:nth-child(1) { background: var(--p1); width: 88%; }
.stack i:nth-child(2) { background: var(--p2); width: 72%; margin-left: 8%; }
.stack i:nth-child(3) { background: var(--p3); width: 80%; margin-left: 16%; }
.stack i:nth-child(4) { background: var(--p4); width: 60%; margin-left: 4%; }
.hero-stack { width: 180px; margin-top: 44px; opacity: 0.95; }

/* ---------------------------------------------------------------- device frames (generic, drawn in CSS) */
.devices { position: relative; min-height: 380px; }
.tablet { background: #0D0E2A; border-radius: 26px; padding: 11px; box-shadow: var(--shadow); }
.tablet img { border-radius: 16px; width: 100%; height: auto; }
.phone { background: #0D0E2A; border-radius: 40px; padding: 9px; box-shadow: var(--shadow); width: 240px; }
.phone img { border-radius: 32px; width: 100%; height: auto; }
.devices .tablet { width: 92%; }
.devices .phone { position: absolute; right: -2%; bottom: -36px; width: 34%; min-width: 150px; }
.window { background: #0D0E2A; border-radius: 16px; padding: 30px 8px 8px; box-shadow: var(--shadow); position: relative; }
.window::before { content: ''; position: absolute; top: 11px; left: 14px; width: 9px; height: 9px; border-radius: 50%; background: #F25F5C; box-shadow: 15px 0 0 #F7B500, 30px 0 0 #2BBF5B; }
.window img { border-radius: 9px; width: 100%; height: auto; }

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section.alt { background: var(--canvas); }
.section.dark { background: var(--indigo-deep); color: #fff; }
.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head h2, h2.big { font: 700 clamp(30px, 3.6vw, 44px)/1.08 var(--display); letter-spacing: -0.02em; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.section.dark .section-head p { color: #C9CCEB; }
.eyebrow { font: 800 13px/1 var(--text); letter-spacing: 0.04em; color: var(--violet-2); margin-bottom: 12px; display: block; }
.section.dark .eyebrow { color: #C9BBFF; }

/* product card (home) */
.product-card { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; border-radius: 24px; overflow: hidden; background: var(--indigo); color: #fff; box-shadow: var(--shadow); text-decoration: none; }
.product-card .pc-text { padding: 44px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.product-card .pc-shot { background: linear-gradient(160deg, #2A2D6E, #1C1E4A); padding: 40px 0 0 40px; display: flex; align-items: flex-end; overflow: hidden; }
.product-card .pc-shot .tablet { width: 115%; border-radius: 22px 0 0 0; padding: 10px 0 0 10px; box-shadow: none; }
.product-card .pc-shot .tablet img { border-radius: 12px 0 0 0; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; background: var(--violet); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.app-icon .stack { width: 38px; gap: 5px; }
.app-icon .stack i { height: 6px; border-radius: 3px; }
.product-card h3 { font: 700 34px/1.05 var(--display); letter-spacing: -0.02em; }
.product-card p { color: #D9DBF5; }
.badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; font: 800 13px/1 var(--text); background: rgba(255, 255, 255, 0.12); color: #fff; }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.link-arrow { font-weight: 800; color: #C9BBFF; text-decoration: none; }
.product-card:hover .link-arrow { color: #fff; }

/* principles */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.section.alt .card { border-color: transparent; box-shadow: 0 1px 2px rgba(22, 24, 58, 0.06); }
.card .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.card h3 { font: 700 21px/1.2 var(--display); margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; }

/* feature rows (products) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .f-media { order: -1; }
.f-text h3 { font: 700 clamp(26px, 3vw, 36px)/1.1 var(--display); letter-spacing: -0.02em; }
.f-text > p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.ticks { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 6px; background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%235428DB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 13px; }
.f-media { display: flex; justify-content: center; }
.f-media .phone { width: 280px; }
.example { margin-top: 18px; display: inline-block; font: 700 15px/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.example b { color: #C9BBFF; font-weight: 700; }

.soon { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font: 800 11px/1.4 var(--text); letter-spacing: 0.02em; background: #FFF1C2; color: #6B4E00; white-space: nowrap; }
.section.dark .soon, .plan.pro .soon { background: rgba(255, 216, 102, 0.18); color: #FFD866; }

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.plan { border-radius: 24px; padding: 34px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.pro { background: var(--indigo); color: #fff; border-color: var(--indigo); position: relative; overflow: hidden; }
.plan.pro::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(closest-side, rgba(106, 61, 240, 0.6), transparent); }
.plan h3 { font: 700 30px/1 var(--display); }
.plan .price { margin-top: 10px; font: 700 18px/1.3 var(--text); color: var(--ink-2); }
.plan.pro .price { color: #C9CCEB; }
.plan .sum { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.plan.pro .sum { color: #D9DBF5; }
.plan ul { list-style: none; margin-top: 22px; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 26px; font-size: 16px; }
.plan li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px; background: var(--p4); }
.plan.pro li::before { background: var(--violet); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); }
.plan .includes { margin-top: 22px; font: 800 13px/1 var(--text); color: #C9BBFF; }
.promise { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise div { background: var(--paper); border-radius: 16px; padding: 20px; border: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.promise strong { display: block; color: var(--ink); font: 700 17px/1.3 var(--display); margin-bottom: 4px; }

/* ---------------------------------------------------------------- privacy + faq */
.privacy-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.privacy-panel ul { list-style: none; display: grid; gap: 14px; }
.privacy-panel li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: #D9DBF5; }
.privacy-panel li strong { color: #fff; display: block; font: 700 18px/1.3 var(--display); }
.privacy-panel .ic { width: 34px; height: 12px; margin-top: 7px; border-radius: 6px; font-size: 0; }
.privacy-panel li:nth-child(1) .ic { background: var(--p1); }
.privacy-panel li:nth-child(2) .ic { background: var(--p2); }
.privacy-panel li:nth-child(3) .ic { background: var(--p3); }
.privacy-panel li:nth-child(4) .ic { background: var(--p4); }
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font: 700 18px/1.4 var(--display); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 700 22px/1 var(--text); color: var(--violet-2); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); }

.cta { text-align: center; }
.cta h2 { font: 700 clamp(30px, 3.6vw, 44px)/1.1 var(--display); letter-spacing: -0.02em; }
.cta p { margin: 14px auto 28px; max-width: 34em; color: #C9CCEB; font-size: 18px; }

/* ---------------------------------------------------------------- simple pages (support, privacy) */
.page-hero { background: var(--indigo); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { font: 700 clamp(34px, 4.2vw, 52px)/1.05 var(--display); letter-spacing: -0.02em; }
.page-hero p { margin-top: 12px; color: #D9DBF5; font-size: 18px; max-width: 40em; }
.prose { max-width: 760px; padding: 56px 24px 96px; margin: 0 auto; }
.prose h2 { font: 700 26px/1.2 var(--display); margin: 40px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font: 700 19px/1.3 var(--display); margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 10px 0 0 22px; display: grid; gap: 6px; }
.prose code { font: 600 14.5px ui-monospace, Menlo, Consolas, monospace; background: var(--canvas); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.draft { background: #FFF1C2; color: #5B4300; border-radius: 14px; padding: 16px 18px; font-weight: 700; margin-bottom: 24px; }
.shortcuts { margin-top: 14px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.shortcuts dt code { white-space: nowrap; }
.shortcuts dd { color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--indigo-deep); color: #B9BCE0; padding: 56px 0 40px; font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot .brand { color: #fff; }
.site-foot h4 { font: 800 13px/1 var(--text); letter-spacing: 0.04em; color: #fff; margin-bottom: 14px; }
.site-foot ul { list-style: none; display: grid; gap: 8px; }
.site-foot a { color: #D9DBF5; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .legal { margin-top: 16px; line-height: 1.7; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px; margin-top: 8px; font-size: 13.5px; color: #9EA2D6; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero .wrap, .feature, .privacy-panel, .product-card { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 56px; padding-bottom: 88px; gap: 40px; }
  .feature { gap: 32px; }
  .feature.flip .f-media { order: 0; }
  .feature + .feature { margin-top: 80px; }
  .cards3, .promise { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .product-card .pc-text { padding: 32px; }
  .product-card .pc-shot { padding: 24px 0 0 24px; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .site-foot .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-head .wrap { height: 60px; gap: 12px; }
  .brand-name { font-size: 15px; line-height: 1.05; }
  .brand-line2 { display: block; }
  a.btn[href^="mailto:"] { font-size: 14px; padding: 12px 16px; line-height: 1.25; max-width: 100%; text-align: center; }   /* the full address fits a phone */
  .nav a { padding: 7px 9px; font-size: 14px; }
  .section { padding: 72px 0; }
  .devices { min-height: 0; padding-bottom: 30px; }
  .devices .phone { width: 38%; bottom: -10px; }
  .f-media .phone { width: 240px; }
  .plan { padding: 26px; }
  .shortcuts { grid-template-columns: 1fr; gap: 2px 0; }
  .shortcuts dd { margin-bottom: 8px; }
}

/* coming-soon page */
.hero-stack.big { width: min(360px, 80%); justify-self: center; gap: 16px; margin-top: 0; }
.hero-stack.big i { height: 30px; border-radius: 15px; }
.soon-card { grid-template-columns: 1fr; max-width: 720px; }
.site-foot li { color: #D9DBF5; }

/* narrow phones: the logo already links home, so the menu drops Home and tightens */
@media (max-width: 480px) {
  .nav a:first-child { display: none; }
  .nav a { padding: 7px 7px; font-size: 13.5px; }
}
@media (max-width: 340px) {
  .site-head .wrap { gap: 8px; }
  .site-head .brand-mark { width: 26px; height: 26px; }
  .brand-name { font-size: 13.5px; }
  .nav a { padding: 6px 5px; font-size: 12.5px; }
}

/* long email addresses may break on the narrowest screens rather than overflow */
a[href^="mailto:"] { overflow-wrap: anywhere; }
