/* GistSend: dependable infrastructure, Nigerian warmth.
   Deep lagoon teal carries the brand; marigold is the signal (fills only,
   never under text); Gisted's clay appears only where Gisted itself does. */
:root {
  --mist: #f2f5f4;
  --paper: #ffffff;
  --ink: #12222a;
  --ink-soft: #4a5b62;
  --line: #d7e0de;
  --lagoon: #0b5d63;          /* white on it 7.4:1; on mist 6.9:1 */
  --lagoon-deep: #083f44;
  --lagoon-wash: #e1eeec;
  --marigold: #f0b429;        /* fills only */
  --clay: #a8412a;            /* Gisted */
  --clay-wash: #fff3ec;
  --gisted-bg: #fffbf8;
  --urgent: #9b2c1f;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon); }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--lagoon-wash); padding: 0.05em 0.35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; }

section { padding-block: clamp(64px, 9vw, 112px); }
.section-lede { color: var(--ink-soft); font-size: 1.15rem; margin-top: 14px; max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--lagoon); color: #fff; font-weight: 700; text-decoration: none;
  border: 2px solid var(--lagoon); transition: background .15s, color .15s;
}
.btn:hover { background: var(--lagoon-deep); border-color: var(--lagoon-deep); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn-quiet { background: transparent; color: var(--lagoon); }
.btn-quiet:hover { background: var(--lagoon-wash); border-color: var(--lagoon); }
.btn-clay { background: var(--clay); border-color: var(--clay); margin-top: 28px; }
.btn-clay:hover { background: #8c3421; border-color: #8c3421; }
.btn-light { background: #fff; color: var(--lagoon-deep); border-color: #fff; }
.btn-light:hover { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.btn-ghost { background: transparent; border-color: rgb(255 255 255 / 60%); }
.btn-ghost:hover { background: rgb(255 255 255 / 12%); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgb(242 245 244 / 92%); 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; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px 8px 8px 2px; background: var(--lagoon); position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--marigold); right: 5px; top: 5px; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; }
.lede { font-size: 1.22rem; color: var(--ink-soft); margin-top: 24px; max-width: 46ch; }
.fine { margin-top: 18px; font-size: 0.95rem; color: var(--ink-soft); }

.demo { position: relative; min-height: 520px; }
.compose {
  position: absolute; left: 0; top: 40px; width: 62%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 20px; box-shadow: 0 18px 40px rgb(18 34 42 / 10%);
  font-size: 0.9rem;
}
.compose-bar { display: flex; gap: 5px; margin-bottom: 14px; }
.compose-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.compose-from { color: var(--ink-soft); margin-bottom: 12px; }
.compose-label { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); margin-top: 10px; }
.compose-field { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-top: 4px; background: var(--mist); }
.compose-body { line-height: 1.4; }
.compose-send {
  display: inline-block; margin-top: 14px; background: var(--lagoon); color: #fff;
  font-weight: 700; padding: 7px 18px; border-radius: 999px;
  animation: press 0.5s ease 0.9s both;
}
.flight { position: absolute; left: 50%; top: 300px; width: 22%; height: 2px; }
.flight span {
  position: absolute; left: 0; top: -6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--marigold); box-shadow: 0 0 0 6px rgb(240 180 41 / 25%);
  opacity: 0; animation: fly 0.9s cubic-bezier(.5,0,.3,1) 1.2s both;
}
.phone {
  position: absolute; right: 0; top: 0; width: 46%; min-width: 230px;
  background: var(--gisted-bg); border: 8px solid var(--ink); border-radius: 36px;
  padding: 26px 12px 16px; box-shadow: 0 26px 60px rgb(18 34 42 / 22%);
}
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; border-radius: 10px; background: var(--ink); }
.phone-head { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--clay); padding: 6px 4px 6px; }
.phone-head img { background: var(--clay); border-radius: 5px; }
.phone-day { font-size: 0.66rem; font-weight: 700; color: #6b4a3c; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 4px 6px; }
.note { background: #fdf0e8; border: 1px solid #f0dfd4; border-radius: 14px; padding: 10px 11px; margin-bottom: 7px; color: #2a1710; }
.note-top { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; }
.mono { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 0.66rem; font-weight: 700; background: #f3e4dc; color: #6b4a3c; border: 1px solid #e3cfc4; }
.mono-dark { background: #2a1710; color: #fff; border-color: #2a1710; }
.mono-sand { background: #fbe3c8; color: #8a5a1e; border-color: #e9c9a5; }
.note-body { font-size: 0.78rem; color: #4a332a; margin-top: 6px; line-height: 1.35; }
.note-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 0.68rem; }
.chip { background: #f3e4dc; border-radius: 5px; padding: 1px 6px; font-weight: 600; }
.when { color: var(--clay); font-weight: 600; }
.when::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); margin-right: 4px; vertical-align: middle; }
.dock { display: flex; gap: 6px; justify-content: center; margin-top: 10px; padding: 8px; border-radius: 18px; background: #f6e9e1; border: 1px solid #ecd9cd; }
.dock span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; background: #f3e4dc; color: #6b4a3c; border: 1px solid #e3cfc4; }
.dock .d-fin { background: #2f6b4f; color: #fff; border-color: #2f6b4f; font-size: 0.85rem; }
.dock .d-ctt { background: var(--clay); color: #fff; border-color: var(--clay); font-size: 0.85rem; }
.note-new { border-color: var(--clay); box-shadow: 0 0 0 3px rgb(168 65 42 / 12%); animation: land 0.6s cubic-bezier(.2,.8,.2,1) 2s both; }

@keyframes press { 50% { transform: scale(0.94); background: var(--lagoon-deep); } }
@keyframes fly {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(170%, -150px) scale(0.6); }
}
@keyframes land { from { opacity: 0; transform: translateY(-14px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Problem table */
.problem { background: var(--paper); border-block: 1px solid var(--line); }
.table-scroll { overflow-x: auto; margin-top: 40px; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.98rem; }
.compare th, .compare td { text-align: left; padding: 16px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 600; width: 19%; }
.compare td { color: var(--ink-soft); }
.compare .us { background: var(--lagoon-wash); color: var(--lagoon-deep); font-weight: 600; }
.compare thead .us { color: var(--lagoon-deep); border-bottom-color: var(--lagoon); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 28px 0 0; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--lagoon); color: #fff;
  font-weight: 800; margin-bottom: 20px; position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; left: 44px; right: 0; top: 21px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--ink-soft); margin-top: 8px; font-size: 0.98rem; }

/* What you send */
.send { background: var(--paper); border-block: 1px solid var(--line); }
.kinds { margin-top: 48px; display: grid; gap: 0; }
.kind { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); }
.kind:last-child { border-bottom: 1px solid var(--line); }
.kind-say p { color: var(--ink-soft); margin-top: 8px; max-width: 46ch; }
.soon { font-size: 0.78rem; font-weight: 600; color: var(--clay); background: var(--clay-wash); padding: 3px 9px; border-radius: 999px; vertical-align: middle; margin-left: 6px; letter-spacing: 0; }
.msg { background: var(--gisted-bg); border: 1px solid #f0dfd4; border-radius: 16px; padding: 16px 18px; max-width: 400px; color: #2a1710; }
.msg-from { font-size: 0.82rem; font-weight: 600; color: #6b4a3c; display: flex; align-items: center; gap: 8px; }
.msg-title { font-weight: 700; margin-top: 3px; }
.msg-body { font-size: 0.93rem; color: #6b4a3c; margin-top: 4px; }
.msg-urgent { border-left: 4px solid var(--urgent); }
.pill { font-size: 0.72rem; color: #fff; background: var(--urgent); padding: 1px 8px; border-radius: 999px; }
.msg-cta { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.9rem; color: #fff; background: var(--clay); padding: 6px 16px; border-radius: 999px; }
.poll { margin-top: 10px; display: grid; gap: 6px; }
.poll p { border: 1px solid #f0dfd4; border-radius: 8px; padding: 7px 10px; font-size: 0.9rem; display: flex; justify-content: space-between; background: linear-gradient(to right, var(--clay-wash) var(--w), #fff var(--w)); }
.later { margin-top: 32px; color: var(--ink-soft); max-width: 70ch; }
.later b { color: var(--ink); }

/* Gisted: the only place clay leads */
.gisted { background: var(--gisted-bg); color: #2a1710; }
.gisted-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.gisted-name { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin-bottom: 18px; }
.gisted-name img { background: var(--clay); border-radius: 10px; }
.gisted h2 { color: #2a1710; }
.gisted-copy > p { color: #6b4a3c; margin-top: 18px; max-width: 54ch; }
.gisted-copy b { color: #2a1710; }

.app-tile { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: #fff; }
.app-fin { background: #2f6b4f; }
.app-ctt { background: var(--clay); }
.app-next { background: transparent; color: var(--clay); border: 2px dashed #e0b9a6; }

/* Device frames: real screenshots, framed like the phone they came from */
.device { margin: 0; }
.device img { width: 100%; max-width: 320px; border-radius: 34px; border: 7px solid #2a1710; box-shadow: 0 24px 56px rgb(42 23 16 / 18%); background: #fffbf8; }
.device figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 12px; text-align: center; max-width: 320px; }
.gisted .device { justify-self: center; }
.gisted .device img { max-width: 340px; }

/* Mini-app showcases */
.miniapp { background: var(--paper); border-top: 1px solid var(--line); }
.miniapp-ctt { background: var(--mist); }
.miniapp-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.miniapp-flip .miniapp-copy { order: 2; }
.miniapp-name { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; }
.miniapp-lede { color: var(--ink-soft); font-size: 1.12rem; margin-top: 16px; max-width: 48ch; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; max-width: 48ch; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--lagoon-wash); box-shadow: inset 0 0 0 5px var(--lagoon-wash), inset 0 0 0 9px var(--lagoon); }
.miniapp-fin .ticks li::before { box-shadow: inset 0 0 0 5px #e3efe8, inset 0 0 0 9px #2f6b4f; background: #e3efe8; }
.miniapp-ctt .ticks li::before { box-shadow: inset 0 0 0 5px var(--clay-wash), inset 0 0 0 9px var(--clay); background: var(--clay-wash); }
.device-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.device-low { margin-top: 64px; }
.next-apps { padding-block: 40px; background: var(--gisted-bg); border-top: 1px solid #f0dfd4; }
.next-row { display: flex; gap: 18px; align-items: center; }
.next-row p { color: #6b4a3c; max-width: 72ch; }
.next-row b { color: #2a1710; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.trust dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.trust dt { font-weight: 700; font-size: 1.1rem; padding-top: 14px; border-top: 3px solid var(--lagoon); }
.trust dd { margin: 8px 0 0; color: var(--ink-soft); }

/* Developers */
.dev { background: var(--ink); color: #e7efee; }
.dev h2 { color: #fff; }
.dev-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.dev-grid > div > p { color: #b8c6c8; margin-top: 18px; max-width: 48ch; }
.dev-points { margin: 22px 0 0; padding-left: 20px; color: #b8c6c8; display: grid; gap: 6px; }
.dev-points li::marker { color: var(--marigold); }
.code { margin: 0; background: #0a171d; border: 1px solid #22363e; border-radius: 14px; padding: 22px; overflow-x: auto; font-family: var(--mono); font-size: 0.86rem; line-height: 1.65; color: #d9e4e4; }
.c-cmd { color: var(--marigold); }
.c-str { color: #8fd3c7; }

/* Closing call */
.cta { background: var(--lagoon); color: #fff; }
.cta-inner { text-align: left; }
.cta h2 { color: #fff; max-width: 20ch; }
.cta p { color: #cfe5e3; margin-top: 14px; font-size: 1.15rem; }

/* Footer */
.foot { padding: 36px 0; background: var(--lagoon-deep); color: #b9d3d1; font-size: 0.95rem; }
.foot b { color: #fff; }
.foot-row { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: #e1eeec; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
  .top nav { display: none; }
  .top-row { justify-content: space-between; }
  .hero-grid, .gisted-grid, .dev-grid, .trust-grid, .miniapp-grid { grid-template-columns: 1fr; gap: 40px; }
  .miniapp-flip .miniapp-copy { order: 0; }
  .demo { min-height: 500px; max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .steps li:nth-child(2)::after { display: none; }
  .kind { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .demo { min-height: 0; display: grid; gap: 16px; }
  .compose, .phone { position: static; width: 100%; min-width: 0; }
  .compose { order: 2; }
  .phone { order: 1; max-width: 320px; margin-inline: auto; }
  .flight { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .trust dl { grid-template-columns: 1fr; }
  .device-pair { gap: 12px; }
  .device-low { margin-top: 32px; }
  .device img { border-width: 5px; border-radius: 24px; }
  .next-row { align-items: flex-start; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flight span { opacity: 0; }
}
.code code { background: none; padding: 0; font-size: inherit; border-radius: 0; }
.dock .mono-dark { background: #2a1710; color: #fff; border-color: #2a1710; }
.dock .mono-sand { background: #fbe3c8; color: #8a5a1e; border-color: #e9c9a5; }
