/* Duppy landing — values come from the app design tokens (duppy/src/client/design/tokens.json). */

@font-face {
  font-family: "Plus Jakarta Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --ink: #0f1a45;
  --ink-secondary: #4a5278;
  --ink-muted: #8f95b2;
  --surface: #ffffff;
  --surface-subtle: #f6f7fb;
  --surface-sunken: #f1f2f8;
  --border-subtle: #eef0f6;
  --border: #e6e8f2;
  --primary: #2b3bee;
  --primary-soft: #e8ebff;
  --primary-tint: #f8f9ff;
  --assistant: #6d3bf0;
  --assistant-soft: #ecebff;
  --assistant-tint: #f4f0ff;
  --assistant-border: #c9bcff;
  --gradient: linear-gradient(90deg, #2f55f5, #7c3aed);
  --gradient-diagonal: linear-gradient(150deg, #2f55f5, #7c3aed);
  --gradient-mic: linear-gradient(160deg, #0ea5ff 0%, #3b5bff 45%, #8b2ff5 100%);
  --shadow-card: 0 6px 16px rgba(30, 40, 90, 0.07);
  --shadow-soft: 0 4px 12px rgba(30, 40, 90, 0.05);
  --shadow-primary: 0 8px 18px rgba(76, 61, 240, 0.3);
  --shadow-mic: 0 14px 34px rgba(91, 63, 245, 0.38), 0 0 0 10px rgba(124, 92, 255, 0.1);
  --font: "Plus Jakarta Sans Variable", "Plus Jakarta Sans", system-ui, sans-serif;
  --gutter: 20px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ───────── Header ───────── */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff; /* opaque: the official logo PNGs have a white background */
  border-bottom: 1px solid var(--border-subtle);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.brand .mark {
  width: 34px;
  height: 34px;
}

.brand .wordmark {
  height: 25px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  position: relative;
}

.lang summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  background: var(--surface-sunken);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid var(--ink-secondary);
  border-bottom: 2px solid var(--ink-secondary);
  transform: rotate(45deg);
}

.lang nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(30, 40, 90, 0.16);
  display: grid;
  gap: 2px;
}

.lang nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.lang nav a b {
  width: 24px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.lang nav a:hover {
  background: var(--surface-subtle);
}

.lang nav a[aria-current] {
  background: var(--primary-soft);
  font-weight: 700;
}

.lang nav a[aria-current] b {
  color: var(--primary);
}

/* The access CTA: the app is not open yet, so it is a label, not a link. */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.2px;
  box-shadow: var(--shadow-primary);
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.cta::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
  animation: blink 2s ease-in-out infinite;
}

.cta.sm {
  height: 40px;
  padding: 0 16px;
  font-size: 0.8125rem;
  box-shadow: 0 6px 14px rgba(76, 61, 240, 0.3);
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

/* ───────── Hero ───────── */

.hero {
  position: relative;
  padding: 48px 0 56px;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(124, 58, 237, 0.1), transparent 70%),
    radial-gradient(50% 45% at 10% 10%, rgba(47, 85, 245, 0.08), transparent 70%);
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #2236d6;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.875rem, 8.4vw, 3.75rem);
  overflow-wrap: break-word;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.hero .lead {
  margin-top: 18px;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  color: var(--ink-secondary);
  max-width: 34em;
  text-wrap: pretty;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.hero-cta .note {
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.hero-copy {
  min-width: 0;
  text-align: center;
}

.hero-copy .lead {
  margin-inline: auto;
}

.hero-cta {
  justify-content: center;
}

/* ───────── Phone mockup (Home, UX-01) ───────── */

.phone {
  width: min(300px, 82vw);
  margin: 0 auto;
  padding: 9px;
  border-radius: 46px;
  background: #0b1030;
  box-shadow:
    0 30px 60px rgba(30, 40, 90, 0.22),
    0 0 0 1px rgba(15, 26, 69, 0.4);
}

.screen {
  position: relative;
  border-radius: 38px;
  background: #fff;
  overflow: hidden;
  padding: 40px 16px 0;
  text-align: center;
}

.screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 999px;
  background: #0b1030;
}

.screen-brand {
  display: flex;
  align-items: center;
  gap: 4px;
}

.screen-brand .mark {
  width: 26px;
  height: 26px;
}

.screen-brand .wordmark {
  height: 19px;
  width: auto;
}

.screen-title {
  margin-top: 22px;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.screen .sub {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.mic-stage {
  position: relative;
  height: 150px;
  margin: 14px -16px 0;
  display: grid;
  place-items: center;
}

.mic-stage .wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mic {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--gradient-mic);
  box-shadow: var(--shadow-mic);
  display: grid;
  place-items: center;
  color: #fff;
}

.mic::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(124, 92, 255, 0.35);
  animation: pulse 2600ms ease-out infinite;
}

@keyframes pulse {
  from {
    transform: scale(0.92);
    opacity: 1;
  }
  to {
    transform: scale(1.45);
    opacity: 0;
  }
}

.mic svg {
  width: 34px;
  height: 34px;
}

.mic-label {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.3px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.tile {
  padding: 12px 4px 10px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.tile svg {
  width: 20px;
  height: 20px;
  margin: 0 auto 6px;
  color: var(--primary);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 10px;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dadde8;
}

.dots i:first-child {
  background: var(--assistant);
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 -16px;
  padding: 10px 6px 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.tabbar svg {
  width: 19px;
  height: 19px;
  margin: 0 auto 3px;
}

.tabbar .on {
  color: var(--primary);
  font-weight: 800;
}

/* ───────── Sections ───────── */

section {
  padding: 64px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.kicker {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--assistant);
  margin-bottom: 10px;
}

h2.title {
  font-size: clamp(1.75rem, 4.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.section-head p.desc,
.feature p.desc {
  margin-top: 14px;
  color: var(--ink-secondary);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.alt {
  background: var(--surface-subtle);
}

/* Capture: four ways */

.ways {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.way {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.way .ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}

.way:first-child .ico {
  background: var(--gradient-mic);
  color: #fff;
  box-shadow: 0 8px 18px rgba(91, 63, 245, 0.3);
}

.way .ico svg {
  width: 24px;
  height: 24px;
}

.way h3 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.way p {
  margin-top: 6px;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

/* Feature rows: copy + demo card */

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
}

.feature ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.feature li {
  position: relative;
  padding-left: 32px;
  font-size: 0.975rem;
}

.feature li b {
  font-weight: 700;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    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-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 20px no-repeat,
    var(--gradient-diagonal);
}

.demo {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 44px rgba(30, 40, 90, 0.1);
}

/* Agenda demo */

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-sunken);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink-secondary);
}

.seg span {
  padding: 9px 4px;
  border-radius: 11px;
}

.seg .on,
.pills .on {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 14px rgba(76, 61, 240, 0.28);
}

.pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.pills span {
  padding: 8px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.pills .on {
  border-color: transparent;
}

.day {
  margin: 14px 0 10px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.day b {
  color: var(--ink);
}

.timeline {
  display: grid;
  gap: 8px;
}

.slot {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.block {
  padding: 10px 12px;
  border-radius: 12px;
  border-left: 4px solid;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.block small {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.85;
  white-space: nowrap;
}

.block > span {
  display: flex;
  align-items: center;
}

.block .who {
  flex: none;
  font-style: normal;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  vertical-align: -4px;
}

.pink {
  background: #ffe6ee;
  color: #a3123f;
  border-color: #e8436a;
}
.blue {
  background: #e3ecff;
  color: #1f3fbf;
  border-color: #2f55f5;
}
.green {
  background: #e3f6e8;
  color: #17703a;
  border-color: #22a050;
}
.orange {
  background: #ffeedc;
  color: #8a4a06;
  border-color: #f08a1c;
}

/* Ask Duppy demo */

.chat {
  display: grid;
  gap: 10px;
}

.bubble {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.bubble.me {
  justify-self: end;
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bubble.ai {
  background: var(--assistant-tint);
  border: 1px solid var(--assistant-border);
  border-bottom-left-radius: 6px;
}

.bubble.ai .from {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--assistant);
}

.bubble.ai .from svg {
  width: 14px;
  height: 14px;
}

.bubble.ai ol {
  margin: 6px 0 8px;
  padding-left: 18px;
}

.confirm {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.confirm span {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--assistant-border);
  background: #fff;
  color: var(--assistant);
}

.confirm span:first-child {
  background: var(--assistant);
  border-color: var(--assistant);
  color: #fff;
}

.ask {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0 14px;
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--assistant-border);
  color: var(--ink-muted);
  font-size: 0.875rem;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.12);
}

.ask svg {
  width: 18px;
  height: 18px;
  color: var(--assistant);
  flex: none;
}

.ask span {
  flex: 1;
}

/* Groups demo */

.groups {
  display: grid;
  gap: 10px;
}

.group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.group .gtile {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.group .gtile svg {
  width: 24px;
  height: 24px;
}

.group .gname {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1.25;
}

.group .gname small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.avatars {
  display: flex;
}

.avatars i {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
}

/* More features grid */

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.card {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card .ico {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.card .ico svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.card p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

/* Data, privacy and AI */

.trust {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.trust-card {
  padding: 26px 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.trust-card .ico {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.trust-card .ico svg {
  width: 26px;
  height: 26px;
}

.trust-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.trust-card p {
  margin-top: 8px;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

.trust-card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 12px;
}

.trust-card li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.trust-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    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-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 18px no-repeat,
    var(--gradient-diagonal);
}

/* Final CTA */

.final {
  padding: 72px 0;
}

.final .box {
  padding: 48px 24px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, #2f55f5 0%, #7c3aed 70%, #c026d3 130%);
  box-shadow: 0 24px 50px rgba(76, 61, 240, 0.3);
}

.final h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.final p {
  margin: 14px auto 26px;
  max-width: 32em;
  opacity: 0.92;
  font-size: 1.0625rem;
}

.final .cta {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(15, 26, 69, 0.25);
}

.final .cta::before {
  background: var(--assistant);
}

/* Footer */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 36px;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ───────── Cookie consent ───────── */

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.footer button {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: var(--primary);
  cursor: pointer;
}

.footer button:hover {
  text-decoration: underline;
}

.consent {
  position: fixed;
  z-index: 20;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 460px;
  margin-left: auto;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px rgba(30, 40, 90, 0.2);
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.consent[hidden] {
  display: none;
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.consent button {
  appearance: none;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.consent button.primary {
  border-color: transparent;
  background: var(--gradient);
  color: #fff;
}

/* ───────── Blog ───────── */

.nav-link {
  display: none;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--surface-subtle);
}

a.cta {
  cursor: pointer;
  text-decoration: none;
}

a.cta::before {
  display: none;
}

.wrap.narrow {
  max-width: 760px;
}

.blog-hero {
  padding: 56px 0 8px;
  text-align: center;
  background: radial-gradient(60% 80% at 50% 0%, rgba(124, 58, 237, 0.08), transparent 70%);
}

.blog-hero h1,
.post h1 {
  font-size: clamp(1.875rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.blog-hero .lead {
  margin: 14px auto 0;
  max-width: 34em;
  color: var(--ink-secondary);
  font-size: 1.0625rem;
}

.posts {
  padding: 48px 0 64px;
}

.posts h2.title {
  text-align: center;
  margin-bottom: 28px;
}

.post-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(30, 40, 90, 0.12);
}

.post-card h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.post-card p {
  margin-top: 8px;
  flex: 1;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

.post-card span {
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--assistant);
}

.posts .all {
  margin-top: 24px;
  text-align: center;
  font-weight: 700;
}

.posts .all a,
.crumbs a,
.footer a {
  color: var(--primary);
  text-decoration: none;
}

.posts .all a:hover,
.crumbs a:hover,
.footer a:hover {
  text-decoration: underline;
}

.post {
  padding: 40px 0 16px;
}

.crumbs {
  margin-bottom: 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.post-meta {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.prose {
  margin-top: 28px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #1f2a55;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1em;
}

.prose h2 {
  margin: 1.8em 0 0.6em;
  font-size: clamp(1.375rem, 3.6vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}

.prose h3 {
  margin: 1.5em 0 0.4em;
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose li::marker {
  color: var(--assistant);
  font-weight: 700;
}

.prose a {
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--ink);
}

/* ───────── Wider windows (app breakpoints: 600 / 840) ───────── */

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }

  .ways,
  .grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-link {
    display: inline-flex;
  }
}

@media (min-width: 840px) {
  .header .wrap {
    height: 72px;
  }

  .hero {
    padding: 80px 0 88px;
  }

  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy .lead {
    margin-inline: 0;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  section {
    padding: 96px 0;
  }

  .final {
    padding: 96px 0;
  }

  .final .box {
    padding: 72px 40px;
  }

  .ways {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .feature.flip .demo {
    order: -1;
  }

  .trust {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-hero {
    padding: 80px 0 16px;
  }

  .post {
    padding: 64px 0 24px;
  }
}

@media (max-width: 380px) {
  .cta.sm {
    padding: 0 12px;
  }

  .brand .wordmark {
    height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
