/* Spark site system: the marketing look shared by Basket AI, Care AI and the planner.
   Light, editorial and calm: warm paper ground, plum-black type, black pill buttons, photography with floating
   product cards. Each product sets its own spark gradient with --grad (Basket AI: Sunset). */
:root {
  --paper: #FBF7F2;
  --paper-2: #F4EEE6;
  --surface: #FFFFFF;
  --ink: #1B1220;
  --ink-2: #3A2F3D;
  --muted: #625866;
  --line: #E8DFD5;
  --line-2: #D9CEC2;
  --accent: #D9363E;          /* text-safe coral */
  --grad: linear-gradient(120deg, #FF5E62 0%, #FF8A5B 55%, #FFB561 100%);
  --grad-1: #FF5E62; --grad-2: #FF8A5B; --grad-3: #FFB561;
  --plum: #2A1433;
  --good: #1F7A4D;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 14px; --r-lg: 22px;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font: 600 15px/1 var(--font);
       text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; white-space: nowrap; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* announcement + nav */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 13.5px; padding: 9px 16px; }
.announce a { color: #FFB561; text-decoration: none; font-weight: 600; }
nav.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
nav.top.scrolled { border-bottom-color: var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.logo img { width: 30px; height: 30px; }
nav.top .links { display: flex; gap: 22px; font-size: 14.5px; font-weight: 500; }
nav.top .links a { text-decoration: none; color: var(--ink-2); }
nav.top .links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
nav.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
nav.top .login { font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; margin-right: 6px; }
@media (max-width: 900px) { nav.top .links { display: none; } }
@media (max-width: 520px) { nav.top .login, nav.top .btn-outline { display: none; } }

/* sections */
section { padding-block: 96px; }
section.tight { padding-block: 64px; }
.sec-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; font-weight: 700; }
.sec-head p { font-size: 18px; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } section { padding-block: 64px; } }

/* forms */
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select { width: 100%; font: 15px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; }
.field input::placeholder { color: #9A8F98; }
.field input:invalid:not(:placeholder-shown) { border-color: var(--accent); }

/* spark mark (a product's gradient) */
.spark-i { width: 14px; height: 14px; display: inline-block; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4 C53 38 62 47 96 50 C62 53 53 62 50 96 C47 62 38 53 4 50 C38 47 47 38 50 4Z'/%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 100 100'%3E%3Cpath d='M50 4 C53 38 62 47 96 50 C62 53 53 62 50 96 C47 62 38 53 4 50 C38 47 47 38 50 4Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: 14px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
footer h4 { margin: 0 0 12px; font-size: 13px; color: var(--ink); }
footer a { display: block; text-decoration: none; padding: 4px 0; color: var(--muted); }
footer a:hover { color: var(--ink); }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }
