/* Marfet website. Colours come from the app icon: brand blue + the yellow dot. */
:root {
  --paper: #F5F7FD;
  --surface: #FFFFFF;
  --ink: #141A3D;
  --muted: #545D84;
  --line: #DCE2F5;
  --blue: #3256E6;
  --blue-soft: #E7ECFF;
  --on-blue: #FFFFFF;
  --tag: #FFD666;
  --tag-ink: #3A2C00;
  --ok: #17794A;
  --bad: #B3261E;
  --shadow: 0 1px 2px rgba(20, 26, 61, .06), 0 8px 24px rgba(20, 26, 61, .08);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1330; --surface: #171E44; --ink: #EEF1FC; --muted: #A3ACCF; --line: #29315C;
    --blue: #8EA6FF; --blue-soft: #1E2758; --on-blue: #0E1330; --tag: #FFD666; --tag-ink: #2B2100; --ok: #5FD39A; --bad: #FF8A80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1330; --surface: #171E44; --ink: #EEF1FC; --muted: #A3ACCF; --line: #29315C;
  --blue: #8EA6FF; --blue-soft: #1E2758; --on-blue: #0E1330; --tag: #FFD666; --tag-ink: #2B2100; --ok: #5FD39A; --bad: #FF8A80;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.55; font-optical-sizing: auto;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--blue-soft); }
.nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.nav .hide-sm { display: inline-block; }
@media (max-width: 560px) { .nav .hide-sm { display: none; } .nav a { padding: 8px 10px; } }

/* Type */
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(40px, 7vw, 72px); font-variation-settings: "wdth" 85; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; margin: 20px 0 0; }
.muted { color: var(--muted); }
p { max-width: 38em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--blue); background: var(--blue); color: var(--on-blue);
}
.btn.ghost { background: transparent; color: var(--blue); }
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .6; cursor: progress; }
.soon { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px dashed var(--line); color: var(--muted); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 48px 72px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); padding-block-start: 24px; gap: 40px; } }
.hero > * { min-width: 0; }
.shoplink { margin-top: 22px; font-weight: 600; }

/* The phone-alert stack: what Marfet actually sends */
.alerts { position: relative; display: grid; gap: 14px; max-width: 420px; justify-self: end; width: 100%; padding: 0 4px; }
@media (max-width: 860px) { .alerts { justify-self: start; } }
.alert {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow);
}
.alert .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--blue-soft); }
.alert b { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.alert b small { color: var(--muted); font-weight: 500; }
.alert span { display: block; font-size: 15px; color: var(--ink); line-height: 1.4; margin-top: 2px; }
.alert.lastcall { transform: rotate(-1.5deg); }
.tag {
  position: relative; display: inline-block; margin-top: 10px; background: var(--tag); color: var(--tag-ink);
  font-weight: 800; font-size: 14px; padding: 5px 12px 5px 22px; border-radius: 4px 999px 999px 4px;
}
.tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
  .alert { animation: drop .5s cubic-bezier(.2, .8, .2, 1.1) both; }
  .alert:nth-child(1) { animation-delay: .15s; }
  .alert:nth-child(2) { animation-delay: .55s; }
  .alert:nth-child(3) { animation-delay: .95s; }
  .alert.lastcall { animation-name: drop-tilt; }
  @keyframes drop { from { opacity: 0; transform: translateY(-18px) scale(.97); } }
  @keyframes drop-tilt { from { opacity: 0; transform: translateY(-18px) rotate(-1.5deg) scale(.97); } to { transform: rotate(-1.5deg); } }
}

/* Audiences */
.who { border-top: 1px solid var(--line); padding-block: 56px; display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
@media (max-width: 760px) { .who { grid-template-columns: 1fr; gap: 16px; padding-block: 40px; } }
.who h2 { font-size: clamp(26px, 3.4vw, 34px); }
.who .intro { color: var(--muted); margin: 12px 0 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; max-width: 36em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233256E6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.ticks strong { font-weight: 700; }

/* Yellow band */
.band { background: var(--tag); color: var(--tag-ink); border-radius: 28px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 24px 0 64px; }
.band h2 { font-size: clamp(26px, 3.6vw, 36px); max-width: 16em; }
.band p { margin: 10px 0 0; }
.band .btn { background: var(--tag-ink); border-color: var(--tag-ink); color: var(--tag); }
@media (max-width: 560px) { .band { padding: 28px 22px; border-radius: 22px; } }

.promise { display: flex; gap: 14px; align-items: flex-start; padding: 22px 0 8px; color: var(--muted); font-size: 15px; }
.promise svg { flex: none; margin-top: 2px; }

/* Business page */
.biz { display: grid; grid-template-columns: 1fr 460px; gap: 56px; padding-block: 32px 72px; align-items: start; }
@media (max-width: 920px) { .biz { grid-template-columns: 1fr; gap: 32px; } }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--on-blue); font-weight: 800; display: grid; place-items: center; }
.steps strong { display: block; }
.steps span { color: var(--muted); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .form { padding: 22px 18px; } }
.form h2 { font-size: 26px; margin-bottom: 4px; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-weight: 700; font-size: 15px; }
.field label small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 22px; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.msg { margin-top: 14px; font-weight: 600; }
.msg.bad { color: var(--bad); }
.done { text-align: left; }
.done .big { font-size: 44px; line-height: 1; }
.done h2 { margin-top: 12px; }

/* Text pages (support, delete, legal) */
.doc { padding-block: 24px 72px; }
.doc h1 { font-size: clamp(36px, 6vw, 54px); }
.doc h2 { font-size: 23px; margin: 36px 0 10px; letter-spacing: -.015em; }
.doc ul, .doc ol { padding-left: 22px; max-width: 38em; }
.doc li { margin: 6px 0; }
.updated { color: var(--muted); margin-top: 10px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; max-width: 40em; }
details summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p, details ol, details ul { margin-top: 0; }
.path { font-weight: 700; background: var(--blue-soft); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 14px; padding: 18px 20px; margin: 24px 0; max-width: 40em; }
.callout p { margin: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); }
