/* Spark AI Page Builder: marketing site */

:root {
  --green: #165c3f;
  --green-deep: #0f4430;
  --green-900: #0b2f22;
  --lime: #9be66b;
  --lime-soft: #ddf5cc;
  --mint: #eef6f0;
  --ink: #101814;
  --ink-2: #2b3530;
  --muted: #56645c;
  --off: #f7f8f5;
  --sky: #b8e0ff;
  --line: #e1e7e2;
  --white: #fff;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 20, 0.05), 0 12px 32px -16px rgba(16, 24, 20, 0.18);
  --shadow-lg: 0 50px 90px -40px rgba(16, 24, 20, 0.4), 0 0 0 1px rgba(16, 24, 20, 0.06);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--off);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green);
  background: var(--lime-soft);
  border-radius: 999px;
  padding: 5px 12px;
}

.eyebrow svg {
  width: 14px;
  height: 14px;
}

.section-head {
  max-width: 720px;
  display: grid;
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}

.section-head h2 {
  font-size: clamp(32px, 4.6vw, 52px);
}

.section-head p {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
  --bg: var(--green);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font: 600 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--green-deep);
  box-shadow: 0 10px 24px -12px rgba(22, 92, 63, 0.7);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-ghost {
  --bg: rgba(255, 255, 255, 0.7);
  --fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px #cfd8d2, 0 10px 24px -14px rgba(16, 24, 20, 0.3);
}

.btn-lime {
  --bg: var(--lime);
  --fg: var(--ink);
}

.btn-lime:hover {
  background: #aef07f;
  box-shadow: 0 12px 28px -12px rgba(155, 230, 107, 0.8);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14.5px;
}

.btn-block {
  width: 100%;
}

/* ---------- nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled,
.site-header.open {
  background: rgba(247, 248, 245, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(16, 24, 20, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

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

.brand span small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.86em;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(22, 92, 63, 0.08);
  color: var(--green);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.menu-toggle .icon-close {
  display: none;
}

.site-header.open .menu-toggle .icon-close {
  display: block;
}

.site-header.open .menu-toggle .icon-menu {
  display: none;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 8px var(--gutter) 20px;
    background: rgba(247, 248, 245, 0.98);
    box-shadow: 0 20px 30px -20px rgba(16, 24, 20, 0.25);
    display: none;
  }

  .site-header.open .nav-links {
    display: flex;
  }

  .nav-links a {
    font-size: 17px;
    padding: 12px;
  }

  .nav-cta .btn {
    display: none;
  }

  .nav-links .mobile-cta {
    display: flex;
    margin-top: 8px;
  }
}

@media (min-width: 921px) {
  .nav-links .mobile-cta {
    display: none;
  }
}

/* ---------- island backdrop ---------- */

.island {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 50% 60% at 8% 0%, rgba(155, 230, 107, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 60% at 95% 0%, rgba(184, 224, 255, 0.9), transparent 70%),
    var(--mint);
  overflow: hidden;
}

.island::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  bottom: -62%;
  height: 90%;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, var(--off) 55%);
  box-shadow: 0 -20px 80px rgba(22, 92, 63, 0.07);
}

/* ---------- hero ---------- */

.hero {
  margin-top: -72px;
  padding: calc(72px + clamp(48px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px);
}

.hero-copy {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--green) 20%, #3f9b52 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-2);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.hero-note {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.hero-media {
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 1080px;
}

/* ---------- video frames ---------- */

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mint);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1280 / 800;
}

.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 24, 20, 0.72);
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
}

.media-toggle:hover,
.media-toggle:focus-visible {
  opacity: 1;
  transform: scale(1.05);
}

.media-toggle svg {
  width: 16px;
  height: 16px;
}

.media-toggle .i-play {
  display: none;
}

.media-toggle[aria-pressed="false"] .i-play {
  display: block;
}

.media-toggle[aria-pressed="false"] .i-pause {
  display: none;
}

/* ---------- trust strip (facts only) ---------- */

.strip {
  padding: 28px 0 0;
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.strip svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 14px 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  align-content: start;
}

.step .shot {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eceef2;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 20, 0.06);
}

.step .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-body {
  padding: 4px 10px 0;
  display: grid;
  gap: 8px;
}

.step-num {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--green);
  font-weight: 600;
}

.step h3 {
  font-size: 24px;
}

.step p {
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ---------- feature rows: copy above, full-width media below ---------- */

.feature-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.feature-head > div {
  display: grid;
  gap: 16px;
}

.feature-head h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.feature-head > div > p {
  color: var(--muted);
  font-size: 18px;
}

.dark .feature-head > div > p {
  color: #b7c8be;
}

@media (max-width: 900px) {
  .feature-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.media-frame.wide {
  max-width: 1120px;
  margin: 0 auto;
}

.center-text {
  text-align: center;
  margin-top: 16px;
}

.checks {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 16px;
  color: var(--ink-2);
}

.checks li strong {
  color: var(--ink);
  font-weight: 600;
}

.checks .ic {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--lime-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}

.checks .ic svg {
  width: 16px;
  height: 16px;
}

.fine {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
}

.tile {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  align-content: start;
}

.tile .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green);
  display: grid;
  place-items: center;
}

.tile .ic svg {
  width: 20px;
  height: 20px;
}

.tile h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.tile p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.tile.wide {
  grid-column: span 2;
}

.device-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.device-row span {
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--off);
  border: 1px solid var(--line);
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .tile.wide {
    grid-column: auto;
  }
}

/* ---------- native (dark) ---------- */

.dark {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(155, 230, 107, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(184, 224, 255, 0.12), transparent 70%),
    var(--green-900);
  color: #e9f2ec;
}

.dark .eyebrow {
  background: rgba(155, 230, 107, 0.16);
  color: var(--lime);
}

.dark .section-head p {
  color: #b7c8be;
}

.dark .checks li {
  color: #cfdcd4;
}

.dark .checks li strong {
  color: #fff;
}

.dark .checks .ic {
  background: rgba(155, 230, 107, 0.16);
  color: var(--lime);
}

.files {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.file {
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 8px;
  align-content: start;
}

.file code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--lime);
  word-break: break-all;
}

.file h3 {
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #fff;
}

.file p {
  font-size: 14.5px;
  color: #b7c8be;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .files {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .files {
    grid-template-columns: 1fr;
  }
}

/* ---------- data + apps: cards with product UI visuals ---------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 20, 0.04), 0 16px 40px -28px rgba(16, 24, 20, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 24px;
  display: grid;
  gap: 16px;
  align-content: start;
  flex: 1;
}

.card-body h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-body > p {
  color: var(--muted);
  font-size: 16px;
}

.card-body .fine {
  margin-top: auto;
}

@media (max-width: 900px) {
  .duo {
    grid-template-columns: 1fr;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--off);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

/* chips that wrap into even rows instead of leaving an orphan */
.chips.even {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 420px) {
  .chips.even {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chips.even li {
  text-align: center;
  background: var(--mint);
  border-color: transparent;
  color: var(--green-deep);
}

.apps-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
}

.apps-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mono {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #eef0f3;
  color: #3a404c;
  font: 700 10px/1 var(--font);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* The visual: editor UI on a soft mint-to-white ground, bleeding to the card edges.
   Sizes are in em and the base font scales with the card, so the mock keeps its proportions. */
.card-visual {
  container-type: inline-size;
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(155, 230, 107, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(184, 224, 255, 0.35), transparent 70%),
    linear-gradient(180deg, var(--mint), #fff);
  border-bottom: 1px solid var(--line);
  font-family: var(--font);
  color: #16181d;
}

.card-visual {
  font-size: clamp(7px, 2.05cqi, 12px);
}

.ui {
  position: absolute;
  background: #fff;
  border: 1px solid #e1e4ea;
  border-radius: 0.9em;
  box-shadow: 0 1px 2px rgba(20, 24, 40, 0.06), 0 1.4em 3em -1.6em rgba(20, 24, 40, 0.35);
}

.ui svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

/* product section, bound to live data */
.ui-product {
  left: 5%;
  top: 10%;
  width: 56%;
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 1.2em;
  padding: 1em;
}

.ui-product-photo {
  border-radius: 0.6em;
  overflow: hidden;
  aspect-ratio: 1;
  background: #e9ddcc;
}

.ui-product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui-product-info {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  min-width: 0;
  font-size: 0.95em;
}

.ui-store-kicker {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05em;
  color: #2a211c;
}

.ui-product-title {
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.2;
  color: #2a211c;
}

.ui-bound {
  align-self: flex-start;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.1em 0.35em;
  outline: 2px solid #165c3f;
  outline-offset: 1px;
}

.ui-price {
  font-size: 1.3em;
  font-weight: 700;
  color: #2a211c;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.25s ease;
}

.ui-price.swap {
  opacity: 0.2;
}

.ui-bound-tag {
  position: absolute;
  left: calc(100% + 0.6em);
  top: 50%;
  transform: translateY(-50%);
  width: 2em;
  height: 2em;
  border-radius: 0.55em;
  background: #fff;
  border: 1px solid #e1e4ea;
  box-shadow: 0 1px 3px rgba(20, 24, 40, 0.12);
  display: grid;
  place-items: center;
  color: #3f8f2f;
}

.ui-label {
  font-size: 0.85em;
  color: #6f6259;
}

.ui-label span {
  color: #2a211c;
  font-weight: 600;
}

.ui-sizes {
  display: flex;
  gap: 0.4em;
}

.ui-sizes span {
  width: 2.3em;
  height: 2.1em;
  border-radius: 0.5em;
  border: 1px solid rgba(42, 33, 28, 0.2);
  display: grid;
  place-items: center;
  font-size: 0.9em;
  font-weight: 500;
  color: #2a211c;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.ui-sizes span.on {
  border: 1.5px solid #2a211c;
  background: #f3ece2;
}

.ui-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4em;
  font-size: 0.88em;
  padding: 0.45em 0.6em;
  border-radius: 0.5em;
  border: 1px solid rgba(42, 33, 28, 0.2);
  color: #2a211c;
  white-space: nowrap;
}

.ui-cart {
  background: #b4582f;
  color: #fff;
  border-radius: 999px;
  text-align: center;
  padding: 0.55em 0;
  font-size: 0.9em;
  font-weight: 600;
}

.ui-inspector {
  right: 4%;
  top: 24%;
  width: 36%;
  overflow: hidden;
}

.ui-tabs {
  display: flex;
  gap: 1.1em;
  padding: 0 1em;
  border-bottom: 1px solid #e1e4ea;
  font-size: 0.9em;
  font-weight: 500;
  color: #5f6674;
}

.ui-tabs span {
  padding: 0.75em 0 0.6em;
  border-bottom: 2px solid transparent;
}

.ui-tabs .on {
  color: #165c3f;
  border-bottom-color: #165c3f;
}

.ui-group {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 0.9em 1em 1em;
}

.ui-group-title {
  font-size: 0.95em;
  font-weight: 600;
}

.ui-connected {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.45em;
  border-radius: 0.6em;
  background: #f0f1f4;
  font-size: 0.95em;
  font-weight: 600;
}

.ui-connected img {
  width: 2.4em;
  height: 2.4em;
  border-radius: 0.4em;
  object-fit: cover;
}

.ui-connected span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ui-connected small {
  font-size: 0.8em;
  font-weight: 500;
  color: #5f6674;
}

.ui-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}

.ui-tokens span {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.8em;
  font-weight: 600;
  padding: 0.3em 0.55em;
  border-radius: 0.45em;
  background: #e6f4e7;
  color: #165c3f;
  white-space: nowrap;
}

.ui-tokens svg {
  width: 1em;
  height: 1em;
}

/* app panel */
.ui-apps {
  left: 6%;
  top: 8%;
  width: 46%;
  overflow: visible;
}

.ui-row {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.ui-row small {
  width: 4.2em;
  font-size: 0.9em;
  color: #5f6674;
}

.ui-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 2.4em;
  padding: 0 0.6em;
  border-radius: 0.55em;
  border: 1px solid #e1e4ea;
  font-size: 0.92em;
  font-weight: 500;
  white-space: nowrap;
}

.ui-field svg {
  margin-left: auto;
  color: #5f6674;
}

.ui-field .mono,
.ui-choose .mono {
  width: 1.8em;
  height: 1.8em;
  border-radius: 0.45em;
  font-size: 0.72em;
}

.ui-choose {
  position: relative;
  margin: 0 1em 1em 5.2em;
  border: 1px solid #e1e4ea;
  border-radius: 0.7em;
  background: #fff;
  box-shadow: 0 1em 2.4em -1.2em rgba(20, 24, 40, 0.35);
  padding: 0.5em;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.ui-choose-title {
  font-size: 0.9em;
  font-weight: 600;
  padding: 0.3em 0.4em 0.4em;
}

.ui-choose-group {
  font-size: 0.75em;
  font-weight: 600;
  color: #5f6674;
  padding: 0.5em 0.5em 0.2em;
}

.ui-choose-item {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.35em 0.45em;
  border-radius: 0.5em;
  font-size: 0.9em;
  font-weight: 500;
}

.ui-choose-item small {
  color: #5f6674;
  font-weight: 400;
  font-size: 0.85em;
}

.ui-choose-item.on {
  background: #e6f4e7;
}

.ui-choose-item svg {
  margin-left: auto;
  color: #165c3f;
}

.ui-widget {
  right: 5%;
  top: 9%;
  width: 40%;
  padding: 1em 1.1em;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}

.ui-widget-tag {
  align-self: flex-start;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f6674;
  background: #f0f1f4;
  border-radius: 0.4em;
  padding: 0.2em 0.5em;
}

.ui-stars {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  color: #16181d;
  font-size: 1.15em;
  letter-spacing: 0.05em;
}

.ui-stars b {
  font-size: 0.85em;
  letter-spacing: 0;
}

.ui-stars small {
  font-size: 0.72em;
  color: #5f6674;
  letter-spacing: 0;
}

.ui-quote {
  font-size: 0.92em;
  line-height: 1.4;
  color: #2b3530;
}

.ui-quote-by {
  font-size: 0.78em;
  color: #5f6674;
}

.ui-island {
  right: 5%;
  bottom: 8%;
  width: 40%;
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.7em;
}

.ui-island img {
  width: 5.2em;
  height: auto;
  border-radius: 0.5em;
  flex: none;
}

.ui-island span {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  font-size: 0.9em;
  line-height: 1.3;
}

.ui-island small {
  color: #5f6674;
  font-size: 0.85em;
}

/* ---------- templates ---------- */

.templates-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tpl {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 10px 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 20, 0.04);
  display: grid;
  gap: 12px;
  align-content: start;
}

.tpl h3 {
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0 6px;
}

.tpl p {
  font-size: 13.5px;
  color: var(--muted);
  padding: 0 6px;
  margin-top: -8px;
}

/* a miniature storefront page, built from real product photos */
.tpl-page {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.tpl-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.tpl-page b,
.tpl-page i,
.tpl-page em,
.tpl-page u {
  display: block;
  border-radius: 3px;
}

.tpl-page b {
  height: 7px;
  width: 85%;
  background: #2a211c;
}

.tpl-page i {
  height: 4px;
  width: 90%;
  background: #d8d2ca;
}

.tpl-page i.s {
  width: 60%;
}

.tpl-page em {
  height: 9px;
  width: 45%;
  border-radius: 99px;
  background: #b4582f;
}

.tp-hero,
.tp-product {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 7px;
  border-radius: 6px;
  background: #f3ece2;
  min-height: 0;
}

.tp-product {
  background: #fff;
  padding: 0;
}

.tp-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.tp-chips {
  display: flex;
  gap: 3px;
}

.tp-chips u {
  width: 12px;
  height: 9px;
  border: 1px solid #cfc8bf;
}

.tp-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  height: 22%;
}

.tp-row i {
  height: 100%;
  width: 100%;
  background: #f3f4f1;
}

.tp-product + .tp-row {
  grid-template-columns: 1fr 1fr;
}

.tp-article {
  flex: 1;
  width: 70%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 4px;
  min-height: 0;
}

.tp-article img {
  height: 52%;
  flex: none;
}

.tp-banner {
  position: relative;
  height: 60%;
  flex: none;
}

.tp-over {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tp-over b {
  background: #fff;
}

.tp-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.tp-grid i {
  height: 100%;
  width: 100%;
  background: #f3f4f1;
}

@media (max-width: 960px) {
  .templates-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 440px) {
  .templates-wrap {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 860px) {
  .template-extras {
    grid-template-columns: 1fr;
  }
}

/* ---------- page types ---------- */

.types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.type {
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
}

.type img {
  width: 112px;
  height: 84px;
  border-radius: 12px;
}

.type h3 {
  font-family: var(--font);
  font-size: 17px;
  letter-spacing: -0.015em;
}

.type p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 4px;
}

@media (max-width: 1000px) {
  .types {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .types {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .type {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }

  .type img {
    width: 88px;
    height: 66px;
  }
}

/* ---------- pricing ---------- */

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.billing-toggle button {
  border: 0;
  background: transparent;
  font: 600 15px/1 var(--font);
  color: var(--muted);
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.billing-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.billing-toggle .save {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  align-items: stretch;
}

.plan {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.plan.featured {
  background: var(--green-900);
  color: #e9f2ec;
  box-shadow: 0 30px 60px -30px rgba(11, 47, 34, 0.7);
}

.plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan h3 {
  font-size: 22px;
}

.plan .for {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: -10px;
}

.plan.featured .for {
  color: #b7c8be;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price .amount {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price .per {
  color: var(--muted);
  font-size: 15px;
}

.plan.featured .price .per,
.plan.featured .billed {
  color: #b7c8be;
}

.billed {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: -12px;
  min-height: 1.5em;
}

.plan .credits {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green-deep);
}

.plan.featured .credits {
  background: rgba(155, 230, 107, 0.14);
  color: var(--lime);
}

.plan .credits svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.plan ul {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  flex: 1;
}

.plan li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.45;
}

.plan li svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  margin-top: 1px;
}

.plan.featured li svg {
  color: var(--lime);
}

.plan .btn-ghost {
  --bg: var(--off);
}

.pricing-notes {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 14.5px;
  color: var(--muted);
  text-align: center;
}

.pricing-notes span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pricing-notes svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

@media (max-width: 1080px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq details {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary:focus-visible {
  outline-offset: -3px;
  border-radius: 16px;
}

.faq summary .plus {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq summary .plus svg {
  width: 14px;
  height: 14px;
}

.faq details[open] summary .plus {
  transform: rotate(45deg);
  background: var(--lime);
}

.faq .answer {
  padding: 0 22px 22px;
  color: var(--ink-2);
  font-size: 16px;
  display: grid;
  gap: 10px;
}

/* ---------- final CTA ---------- */

.final {
  padding: clamp(80px, 10vw, 120px) 0 clamp(120px, 14vw, 180px);
  text-align: center;
}

.final .glyph {
  width: clamp(120px, 16vw, 168px);
  margin: 0 auto 12px;
  position: relative;
}

.final .glyph::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -2px;
  height: 14%;
  border-radius: 50%;
  background: rgba(22, 92, 63, 0.16);
  filter: blur(8px);
  z-index: -1;
}

.final h2 {
  font-size: clamp(36px, 5.6vw, 64px);
  letter-spacing: -0.04em;
  max-width: 820px;
  margin: 0 auto;
}

.final p {
  color: var(--ink-2);
  font-size: 18px;
  margin: 18px auto 30px;
  max-width: 560px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--off);
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2 {
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--green);
  text-decoration: underline;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 300px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- legal pages ---------- */

.legal {
  padding: 48px 0 96px;
}

.legal .container {
  max-width: 820px;
}

.draft-banner {
  background: #fff4d6;
  border: 1px solid #f1d58a;
  color: #5b4300;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  margin-bottom: 32px;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 12px;
}

.legal h2 {
  font-size: 22px;
  margin: 32px 0 10px;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--ink-2);
  margin-bottom: 10px;
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
}

/* ---------- reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}

/* eyebrows size to their content inside grids */
.eyebrow {
  justify-self: start;
  width: max-content;
  max-width: 100%;
}

.center .eyebrow {
  justify-self: center;
}
