/* Drawn website. The Daylight theme of the app: cool greys, white surfaces,
   one blue accent, Inter. No build step: edit and upload. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-tint: #f3f4f6;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --border: #e3e6eb;
  --border-strong: #c9ced6;
  --text: #18202b;
  --muted: #5d6576;
  --faint: #8a91a0;
  --accent: #2f6fde;
  --accent-text: #1f56b5;
  --accent-soft: #e8f0fd;
  --accent-tint: #f2f6fe;
  --ok: #1d8a5b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 12px 32px rgba(20, 28, 44, 0.1), 0 2px 6px rgba(20, 28, 44, 0.06);
  --shadow-lg: 0 30px 80px rgba(20, 28, 44, 0.16), 0 6px 16px rgba(20, 28, 44, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--accent-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  font-weight: 600;
}
p {
  margin: 0;
}
.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}
.mono {
  font-family: var(--mono);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--text);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font: 600 0.95rem/1 var(--font);
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:hover {
  text-decoration: none;
  border-color: var(--text);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn.primary:hover {
  background: var(--accent-text);
  border-color: var(--accent-text);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 36%, transparent);
}
.btn.dark {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.btn.dark:hover {
  background: #2b3442;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.btn.ghost:hover {
  background: var(--bg-tint);
}
.btn.sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.88rem;
  border-radius: 9px;
}
.btn.lg {
  height: 52px;
  padding: 0 26px;
  font-size: 1.02rem;
  border-radius: 12px;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.arrow {
  transition: transform 0.2s var(--ease);
}
.btn:hover .arrow,
.link-arrow:hover .arrow {
  transform: translateX(3px);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* ---- Logo ---------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.logo:hover {
  text-decoration: none;
}
.logo svg {
  width: 24px;
  height: 24px;
}

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, #fff 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-tint);
  text-decoration: none;
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg {
  width: 20px;
  height: 20px;
}
.mobile-menu {
  display: none;
}
@media (max-width: 880px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .mobile-menu.open {
    display: grid;
    gap: 4px;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--border);
    background: #fff;
  }
  .mobile-menu a:not(.btn) {
    padding: 12px 4px;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu .btn {
    margin-top: 10px;
  }
}

/* ---- Sections ------------------------------------------------------------ */
section {
  position: relative;
}
.section {
  padding: clamp(72px, 10vw, 128px) 0;
}
.section.soft {
  background: var(--bg-soft);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  padding: clamp(56px, 9vw, 104px) 0 0;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  /* A faint drafting grid behind the headline. */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 760px;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.badge b {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
}
.badge:hover {
  text-decoration: none;
  border-color: var(--border-strong);
}
.hero h1 {
  margin: 26px auto 0;
  max-width: 14ch;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero .lead {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--muted);
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--faint);
}

/* The app frame around the hero drawing. */
.stage {
  position: relative;
  margin: clamp(48px, 7vw, 72px) auto 0;
  max-width: 1080px;
  perspective: 1600px;
}
.app-frame {
  position: relative;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  transform-origin: 50% 100%;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}
.app-bar .logo {
  font-size: 0.92rem;
  gap: 7px;
}
.app-bar .logo svg {
  width: 16px;
  height: 16px;
}
.app-bar .menus {
  display: flex;
  gap: 14px;
}
.app-bar .title {
  color: var(--text);
  font-weight: 600;
}
.app-bar .spacer {
  flex: 1;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  background: #fff;
}
.chip.ok {
  color: var(--ok);
}
.chip.blue {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chip svg {
  width: 14px;
  height: 14px;
}
.app-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 230px;
  height: clamp(360px, 46vw, 520px);
}
.app-side {
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  font-size: 0.78rem;
  overflow: hidden;
}
.app-side.right {
  border-right: none;
  border-left: 1px solid var(--border);
}
.side-search {
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--faint);
  margin-bottom: 12px;
}
.side-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 12px 0 6px;
}
.part {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--text);
}
.part.active {
  background: var(--accent-tint);
  color: var(--accent-text);
}
.part i {
  width: 34px;
  height: 0;
  border-top: 4px solid currentColor;
  opacity: 0.8;
}
.part i.thin {
  border-top-width: 2px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.stat-row b {
  font-family: var(--mono);
  font-weight: 500;
}
.app-canvas {
  position: relative;
  background-color: #fbfcfd;
  background-image: linear-gradient(#eef1f5 1px, transparent 1px), linear-gradient(90deg, #eef1f5 1px, transparent 1px);
  background-size: 24px 24px;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}
.app-tabs {
  position: absolute;
  top: 10px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.app-tabs span {
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 0.74rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
}
.app-tabs span.on {
  color: var(--text);
  font-weight: 600;
}
.hero-plan {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

/* Floating cards around the hero frame. */
.float {
  position: absolute;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-size: 0.82rem;
  text-align: left;
  animation: bob 7s ease-in-out infinite;
}
.float.f1 {
  right: calc(100% - 16px);
  top: 36%;
  width: 196px;
}
.float.f2 {
  left: calc(100% - 16px);
  top: 12%;
  width: 216px;
  padding: 8px;
  animation-delay: -2.5s;
}
.float.f3 {
  left: calc(100% - 16px);
  bottom: 10%;
  width: 206px;
  animation-delay: -4.5s;
}
.float .k {
  color: var(--muted);
  font-size: 0.74rem;
}
.float .v {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.float img {
  border-radius: 9px;
}
.float .cap {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0;
  font-size: 0.74rem;
  color: var(--muted);
}
.check-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.check-ok svg {
  width: 18px;
  height: 18px;
  color: var(--ok);
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
/* The cards sit beside the frame; without room for them, they would cover
   the app's panels. */
@media (max-width: 1500px) {
  .float {
    display: none;
  }
}
@media (max-width: 880px) {
  .app-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-side {
    display: none;
  }
  .app-bar .menus,
  .app-bar .hide-sm {
    display: none;
  }
  .float {
    display: none;
  }
}

/* Hero plan animation: walls draw, then openings, furniture, dimensions. */
.hero-plan .hp-wall polygon,
.hero-plan .hp-wall polyline,
.hero-plan .hp-wall path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill-opacity: 0;
}
.hero-plan .hp-zone,
.hero-plan .hp-fence,
.hero-plan .hp-room,
.hero-plan .hp-opening,
.hero-plan .hp-item,
.hero-plan .hp-label,
.hero-plan .hp-other {
  opacity: 0;
}
.hero-plan .hp-annotation > * {
  opacity: 0;
}
.drawn .hero-plan .hp-wall polygon,
.drawn .hero-plan .hp-wall polyline,
.drawn .hero-plan .hp-wall path {
  animation: draw 1.6s var(--ease) forwards, fillin 0.6s 1.2s ease forwards;
}
.drawn .hero-plan .hp-zone,
.drawn .hero-plan .hp-fence {
  animation: fade 0.8s 0.2s ease forwards;
}
.drawn .hero-plan .hp-opening {
  animation: fade 0.6s 1.5s ease forwards;
}
.drawn .hero-plan .hp-room {
  animation: fade 0.8s 1.8s ease forwards;
}
.drawn .hero-plan .hp-item {
  animation: pop 0.7s 2.1s var(--ease) forwards;
  transform-origin: center;
  transform-box: fill-box;
}
.drawn .hero-plan .hp-label {
  animation: fade 0.6s 2.6s ease forwards;
}
.drawn .hero-plan .hp-other {
  animation: fade 0.6s 2.6s ease forwards;
}
.drawn .hero-plan .hp-annotation > * {
  animation: fade 0.5s ease forwards;
  animation-delay: 3s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fillin {
  to {
    fill-opacity: 1;
  }
}
@keyframes fade {
  to {
    opacity: 1;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---- Logo strip / facts -------------------------------------------------- */
.facts {
  border-block: 1px solid var(--border);
  background: #fff;
}
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fact {
  padding: 28px 24px;
  border-left: 1px solid var(--border);
}
.fact:first-child {
  border-left: none;
}
.fact b {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.fact span {
  color: var(--muted);
  font-size: 0.92rem;
}
@media (max-width: 760px) {
  .facts .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fact:nth-child(3) {
    border-left: none;
  }
  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

/* ---- Feature rows -------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.flip .feature-copy {
  order: 2;
}
.feature + .feature {
  margin-top: clamp(80px, 11vw, 140px);
}
.feature-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}
.feature-copy > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
}
.ticks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.ticks svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 3px;
}
.feature-copy .link-arrow {
  margin-top: 26px;
}
@media (max-width: 880px) {
  .feature,
  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature.flip .feature-copy {
    order: 0;
  }
}

.visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.visual-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  font-size: 0.8rem;
  color: var(--muted);
}
.dots {
  display: flex;
  gap: 6px;
  margin-right: 6px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.visual-body {
  padding: clamp(16px, 3vw, 28px);
  background: #fff;
}
.visual-body.grid {
  background-color: #fbfcfd;
  background-image: linear-gradient(#eef1f5 1px, transparent 1px), linear-gradient(90deg, #eef1f5 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Viewer tabs (plan, roof, elevations, 3D). */
.viewer-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  overflow-x: auto;
}
.viewer-tabs button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 7px 12px;
  font: 500 0.85rem/1 var(--font);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.viewer-tabs button svg {
  width: 15px;
  height: 15px;
}
.viewer-tabs button:hover {
  color: var(--text);
}
.viewer-tabs button[aria-selected="true"] {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.viewer-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #fff;
}
.viewer-stage > figure {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 30px);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.viewer-stage > figure.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.viewer-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.viewer-stage figure.photo {
  padding: 0;
}
.viewer-stage figure.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The example quote. */
.quote {
  font-size: 0.92rem;
}
.quote-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.quote-head b {
  font-size: 1.05rem;
}
.quote table {
  width: 100%;
  border-collapse: collapse;
}
.quote th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 0 8px;
}
.quote td {
  padding: 9px 0;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.quote td.num,
.quote th.num {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.86rem;
  white-space: nowrap;
  padding-left: 12px;
}
.quote .more td {
  color: var(--faint);
  font-size: 0.85rem;
}
.quote .total td {
  border-top: 2px solid var(--text);
  font-weight: 700;
  font-size: 1rem;
  padding-top: 12px;
}
.quote .total td.num {
  font-size: 1.05rem;
}
.quote .sub td {
  color: var(--muted);
}
.quote-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--faint);
}

/* Plan set: fanned sheets. */
.sheets {
  position: relative;
  height: clamp(300px, 36vw, 420px);
}
.sheet {
  position: absolute;
  width: 62%;
  aspect-ratio: 1.414;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 4%;
  display: grid;
  grid-template-columns: 1fr 22%;
  gap: 4%;
  transition: transform 0.6s var(--ease);
}
.sheet .draw {
  display: grid;
  place-items: center;
  border: 1px solid #e9ecf0;
  border-radius: 3px;
  overflow: hidden;
  padding: 6%;
}
.sheet .draw img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sheet .tb {
  border-left: 1px solid #dfe3e8;
  padding-left: 10%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6%;
  font-size: clamp(6px, 0.8vw, 9px);
  color: var(--muted);
  line-height: 1.3;
}
.sheet .tb b {
  color: var(--text);
  font-size: 1.25em;
}
.sheet.s1 {
  left: 0;
  top: 8%;
  transform: rotate(-6deg);
}
.sheet.s2 {
  left: 19%;
  top: 2%;
  transform: rotate(-1deg);
  z-index: 2;
}
.sheet.s3 {
  left: 38%;
  top: 14%;
  transform: rotate(5deg);
  z-index: 3;
}
.sheets:hover .sheet.s1 {
  transform: rotate(-9deg) translateX(-12px);
}
.sheets:hover .sheet.s3 {
  transform: rotate(8deg) translateX(12px);
}
.cover-sheet {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
}
.cover-sheet .big {
  font-size: clamp(9px, 1.15vw, 15px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cover-sheet img {
  width: 100%;
  height: 58%;
  object-fit: cover;
}
.formats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.formats span {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

/* ---- Feature grid -------------------------------------------------------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 960px) {
  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .grid-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card .icon svg {
  width: 22px;
  height: 22px;
}
.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
}
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 3px;
}

/* ---- Audiences ----------------------------------------------------------- */
.audiences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.audience {
  border-radius: var(--radius-lg);
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
}
.audience .who {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.audience h3 {
  font-size: 1.35rem;
}
.audience p {
  color: var(--muted);
  margin-top: 12px;
}
@media (max-width: 880px) {
  .audiences {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Steps --------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.step p {
  margin-top: 10px;
  color: var(--muted);
}
@media (max-width: 880px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Pricing ------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  margin: 0 auto 40px;
}
.billing-toggle button {
  border: none;
  background: transparent;
  padding: 9px 18px;
  border-radius: 9px;
  font: 600 0.92rem/1 var(--font);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.billing-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.billing-toggle .save {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e5f5ed;
  color: var(--ok);
}
.toggle-row {
  text-align: center;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
/* Four plans side by side on wide screens, two by two on tablets. */
.plans.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.plans.four .plan {
  padding: 26px 22px;
}
.plans.four .plan .desc {
  min-height: 4.8em;
}
.plans.four .price .amount {
  font-size: 2.5rem;
}
@media (max-width: 1100px) {
  .plans.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
}
@media (max-width: 960px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-inline: auto;
  }
}
@media (max-width: 960px) {
  .plans.four {
    max-width: none;
  }
}
@media (max-width: 640px) {
  .plans.four {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  padding: 30px;
}
.plan.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--accent) 16%, transparent);
}
.plan .ribbon {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 {
  font-size: 1.3rem;
}
.plan .desc {
  color: var(--muted);
  margin-top: 6px;
  min-height: 3.2em;
  font-size: 0.96rem;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 22px;
}
.price .amount {
  font-size: 2.9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price .per {
  color: var(--muted);
  font-size: 0.95rem;
}
.price-note {
  min-height: 1.6em;
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}
.plan .btn {
  margin-top: 22px;
  width: 100%;
}
.plan ul {
  list-style: none;
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}
.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
}
.plan li svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent);
}
.plan li.lead-in {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--muted);
}
.bigger-team {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--panel-2);
  padding: 24px 30px;
}
.bigger-team h3 {
  font-size: 1.15rem;
}
.bigger-team p {
  color: var(--muted);
  margin-top: 4px;
}
.price-fine {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--faint);
}

/* Comparison table. */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare th,
.compare td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.compare th:first-child,
.compare td:first-child {
  text-align: left;
  width: 36%;
}
.compare thead th {
  background: #fff;
  font-size: 1.02rem;
}
.compare thead th small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
}
.compare .group td {
  background: var(--panel-2);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare tr:last-child td {
  border-bottom: none;
}
.compare .yes svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin: 0 auto;
}
.compare .no {
  color: var(--border-strong);
}
.compare .featured {
  background: var(--accent-tint);
}
.compare thead .featured {
  background: var(--accent-tint);
}

/* ---- FAQ ----------------------------------------------------------------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq .answer {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 70ch;
}
.faq .answer p + p {
  margin-top: 10px;
}

/* ---- Call to action ------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--text);
  color: #fff;
  padding: clamp(48px, 8vw, 88px) clamp(24px, 6vw, 72px);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 80%);
}
.cta-band > * {
  position: relative;
}
.cta-band h2 {
  max-width: 16ch;
  margin-inline: auto;
}
.cta-band p {
  margin: 18px auto 0;
  max-width: 540px;
  color: #b9c1cd;
  font-size: 1.12rem;
}
.cta-band .hero-cta .btn:not(.primary) {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.cta-band .hero-cta .btn:not(.primary):hover {
  border-color: #fff;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  margin-top: clamp(72px, 10vw, 120px);
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
}
.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--text);
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-grid a {
  color: var(--muted);
}
.footer-grid a:hover {
  color: var(--text);
}
.footer-brand p {
  color: var(--muted);
  margin-top: 14px;
  max-width: 34ch;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.86rem;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---- Legal pages ---------------------------------------------------------- */
.legal {
  padding: clamp(48px, 7vw, 88px) 0 0;
}
.legal .wrap {
  max-width: 780px;
}
.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.legal .updated {
  margin-top: 14px;
  color: var(--muted);
}
.legal .intro {
  margin-top: 28px;
  font-size: 1.1rem;
  color: var(--muted);
}
.legal h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 48px 0 14px;
  scroll-margin-top: 90px;
}
.legal h3 {
  font-size: 1.05rem;
  margin: 26px 0 8px;
}
.legal p,
.legal li {
  color: #2f3746;
}
.legal p + p {
  margin-top: 12px;
}
.legal ul,
.legal ol {
  padding-left: 22px;
  margin: 12px 0;
}
.legal li + li {
  margin-top: 6px;
}
.toc {
  margin-top: 32px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.toc b {
  font-size: 0.85rem;
}
.toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 10px 0 0;
  font-size: 0.95rem;
}
@media (max-width: 600px) {
  .toc ol {
    columns: 1;
  }
}

/* ---- Page header (pricing) ------------------------------------------------ */
.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px);
  text-align: center;
}
.page-hero p {
  margin: 20px auto 0;
  max-width: 600px;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---- Reveal on scroll ---------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .hero-rise > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}
.js .hero-rise > *:nth-child(2) {
  animation-delay: 0.08s;
}
.js .hero-rise > *:nth-child(3) {
  animation-delay: 0.16s;
}
.js .hero-rise > *:nth-child(4) {
  animation-delay: 0.24s;
}
.js .hero-rise > *:nth-child(5) {
  animation-delay: 0.32s;
}
.js .stage .app-frame {
  opacity: 0;
  transform: rotateX(14deg) translateY(40px) scale(0.97);
  transition: opacity 1.1s var(--ease) 0.25s, transform 1.4s var(--ease) 0.25s;
}
.js .stage.in .app-frame {
  opacity: 1;
  transform: none;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .float {
    animation: none;
  }
}
