:root {
  --ink: #1c1c1a;
  --ink-soft: #68665f;
  --ink-faint: #8d8a81;
  --paper: #f4f1ea;
  --paper-soft: #eae7df;
  --paper-warm: #dedbd2;
  --night: #171817;
  --night-soft: #232422;
  /* Cobalt is the brand's designated interface accent — the logo itself is
     deliberately single-colour, so this is the one place colour is allowed
     to carry meaning (brand pack, Jul 30). */
  --accent: #2b4cd8;
  --accent-soft: rgba(43, 76, 216, 0.14);
  /* Each product brings its own colour from its icon; it is used only inside
     that product's own surfaces, never for Kydnos itself. */
  --roomhaus: #c65d3b;
  --roomhaus-deep: #7a4028;
  --roomhaus-soft: rgba(198, 93, 59, 0.14);
  --motionly: #f6622a;
  --motionly-soft: rgba(246, 98, 42, 0.16);
  --line: rgba(28, 28, 26, 0.12);
  --line-strong: rgba(28, 28, 26, 0.2);
  /* The wordmark is drawn on a 5x7 cell grid; borrowing the cell as a spacing
     unit keeps the pixel language coherent wherever it surfaces in the UI. */
  --cell: 4px;
  --radius: 22px;
  --radius-large: 34px;
  --pill: 999px;
  --nav-height: 60px;
  --content-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow-soft: 0 18px 50px rgba(28, 28, 26, 0.12);
  --shadow-deep: 0 30px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--ink);
  background: var(--accent-soft);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.container {
  width: min(100% - 40px, var(--content-width));
  margin-inline: auto;
}

.container-narrow {
  max-width: 720px;
}

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

.skip-link {
  position: fixed;
  z-index: 300;
  top: -60px;
  left: 16px;
  padding: 10px 18px;
  color: white;
  background: var(--ink);
  border-radius: var(--pill);
  transition: top 0.2s ease;
}

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

/* Navigation */

.site-nav {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--nav-height);
  background: rgba(244, 241, 234, 0.8);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-nav.scrolled {
  background: rgba(244, 241, 234, 0.94);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

/* Pixel marks scale only in whole multiples of the cell, so these sizes are
   fixed rather than fluid — an in-between size makes the cells uneven and the
   letterform shimmers (brand pack rule). No rotation, no shadow, no gradient. */
.brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--ink);
  transition: color 0.2s steps(2, end);
}

.brand:hover .brand-mark {
  color: var(--accent);
}

.brand-section {
  color: var(--ink-faint);
  font-weight: 500;
}

.brand-section::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

/* The footer has room for the full wordmark. It is masked rather than served
   as an <img> so it inherits colour — and sized to a whole-cell multiple
   (140-unit artwork -> 105px = 3px cells) so the letterforms stay crisp. */
.footer-wordmark {
  width: 105px;
  height: 21px;
  background: currentColor;
  -webkit-mask: url("../assets/brand/wordmark.svg") no-repeat center / contain;
  mask: url("../assets/brand/wordmark.svg") no-repeat center / contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(23, 23, 25, 0.74);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-cta {
  padding: 8px 16px;
  color: white !important;
  background: var(--ink);
  border-radius: var(--pill);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close,
.nav-open .nav-toggle .icon-open {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

/* Shared type and controls */

.eyebrow {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.55);
}

.lede {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 0.95rem;
  font-weight: 550;
  border-radius: var(--pill);
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-dark {
  color: white;
  background: var(--ink);
}

.btn-dark:hover {
  background: #2d2d30;
}

.btn-light {
  color: var(--ink);
  background: white;
}

.btn-light:hover {
  background: #f0f0f2;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.on-dark .btn-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.on-dark .btn-ghost:hover {
  border-color: white;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 550;
}

.text-link span,
.contact-mail span {
  transition: transform 0.2s ease;
}

.text-link:hover span,
.contact-mail:hover span {
  transform: translate(2px, 0);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

/* A product that cannot be downloaded yet says so where the download button
   would be. The lit cell is the same one the brand lattice uses. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  white-space: nowrap;
}

.status::before {
  content: "";
  width: var(--cell);
  height: var(--cell);
  background: var(--accent);
}

.on-dark .status {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.26);
}

.section {
  padding: clamp(84px, 10vw, 140px) 0;
}

.section-tight {
  padding: clamp(64px, 7vw, 96px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
}

.section-head .lede {
  margin-top: 20px;
  max-width: 620px;
}

.section-head-split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
}

.section-head-split .lede {
  margin-top: 0;
  justify-self: end;
}

.on-dark {
  color: white;
  background: var(--night);
}

.on-dark .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.on-dark .lede {
  color: rgba(255, 255, 255, 0.66);
}

.on-dark .text-link {
  color: white;
}

/* App icons: the PNG/WebP carries its own squircle and transparent corners,
   so shadows follow the alpha channel, not the element box. */
.app-icon {
  width: 56px;
  height: 56px;
  flex: none;
  filter: drop-shadow(0 8px 18px rgba(28, 28, 26, 0.22));
}

.app-icon-square {
  border-radius: 22.5%;
}

/* Home hero */

.hero {
  padding: calc(var(--nav-height) + clamp(56px, 8vw, 104px)) 0 clamp(48px, 6vw, 80px);
}

.hero-inner {
  max-width: 900px;
  text-align: left;
}

.hero .eyebrow {
  margin-bottom: 22px;
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.hero .lede {
  max-width: 620px;
  margin-top: 26px;
}

.hero .actions {
  margin-top: 34px;
}

/* Two product cards, each showing the product itself. Roomhaus takes the
   wider column because a room photograph needs width; phones are tall. */
.duo {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 22px;
  margin-top: clamp(40px, 5vw, 64px);
}

.duo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.duo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.duo-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 18px;
}

.duo-head strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.duo-head small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.duo-head .status {
  margin-left: auto;
}

.duo-visual {
  position: relative;
  flex: 1;
  margin: 0 14px;
  overflow: hidden;
  border-radius: var(--radius);
}

.duo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 22px;
}

.duo-foot p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.duo-card-motionly {
  color: white;
  background: linear-gradient(180deg, #1d1b1c 0%, #141314 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.duo-card-motionly .duo-head small,
.duo-card-motionly .duo-foot p {
  color: rgba(255, 255, 255, 0.6);
}

.duo-card-motionly .text-link {
  color: white;
}

.duo-card-motionly .duo-visual {
  background: radial-gradient(90% 70% at 50% 100%, rgba(246, 98, 42, 0.36), transparent 70%);
}

/* Before / after comparison. The "after" image sits underneath, the "before"
   image is clipped to the left of the handle, and a full-size range input on
   top does the dragging so keyboard and touch come for free. */
.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-warm);
  border-radius: inherit;
  user-select: none;
  -webkit-user-select: none;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 5 12l4 6M15 6l4 6-4 6'/%3E%3C/svg%3E") no-repeat center / 22px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: none;
}

.compare-tag {
  position: absolute;
  bottom: 14px;
  z-index: 1;
  padding: 5px 10px;
  color: white;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(20, 20, 20, 0.55);
  border-radius: var(--pill);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.compare-tag-before {
  left: 14px;
}

.compare-tag-after {
  right: 14px;
}

.compare-tall {
  aspect-ratio: 5 / 4;
}

.compare-wide {
  aspect-ratio: 16 / 10;
}

/* iPhone frame for Motionly captures. Proportions follow the 414x900 capture. */
.phone {
  position: relative;
  aspect-ratio: 414 / 900;
  padding: 3%;
  background: #0d0d0e;
  border-radius: 13% / 6%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    var(--shadow-deep);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11% / 5%;
}

.phone-fan {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 4%;
  padding: 10% 8% 0;
}

.phone-fan .phone:nth-child(1) {
  transform: translateY(14%) rotate(-4deg);
}

.phone-fan .phone:nth-child(2) {
  z-index: 1;
  transform: translateY(2%) scale(1.06);
}

.phone-fan .phone:nth-child(3) {
  transform: translateY(14%) rotate(4deg);
}

/* Product blocks on the home page */

.product-block .section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px 26px;
  align-items: start;
  max-width: none;
}

.product-block .section-head .app-icon {
  width: 72px;
  height: 72px;
  grid-row: 1 / span 2;
  margin-top: 6px;
}

.product-block .section-head .eyebrow {
  margin-bottom: 0;
}

.product-block .section-head h2 {
  max-width: 16ch;
}

.product-block .section-head > .lede,
.product-block .section-head > .actions {
  grid-column: 2;
}

.product-block .section-head > .actions {
  margin-top: 6px;
}

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

.compare-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.compare-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 0;
  font-size: 0.9rem;
}

.compare-card figcaption strong {
  font-weight: 600;
}

.compare-card figcaption span {
  color: var(--ink-faint);
}

.on-dark .compare-card figcaption span {
  color: rgba(255, 255, 255, 0.5);
}

/* Fact strip: three numbers that are true today. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(40px, 5vw, 64px);
}

.fact {
  padding: 26px 26px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fact strong {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.fact span {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.on-dark .fact {
  background: var(--night-soft);
  border-color: rgba(255, 255, 255, 0.1);
}

.on-dark .fact span {
  color: rgba(255, 255, 255, 0.6);
}

/* Chips: the tool list. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.chips li {
  padding: 9px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--pill);
}

.chips li.chip-free::after {
  content: "3 free";
  margin-left: 9px;
  padding: 2px 7px;
  color: var(--roomhaus-deep);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--roomhaus-soft);
  border-radius: var(--pill);
}

/* Style strip: a scrolling row of the bundled style references. */
.styles-strip {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.styles-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: styles-scroll 60s linear infinite;
}

.styles-strip:hover .styles-track {
  animation-play-state: paused;
}

.styles-track figure {
  position: relative;
  width: clamp(150px, 15vw, 200px);
  flex: none;
  overflow: hidden;
  border-radius: 18px;
}

.styles-track img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
}

.styles-track figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: white;
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(20, 20, 20, 0.5);
  border-radius: var(--pill);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@keyframes styles-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* Motionly block */

.motionly-block {
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(246, 98, 42, 0.22), transparent 70%),
    var(--night);
}

.motionly-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

/* Inside the two-column layout the copy column is narrow, so the icon sits
   above the text instead of beside it and the heading gets the full width. */
.motionly-block .section-head {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.motionly-block .section-head .app-icon {
  grid-row: auto;
  width: 64px;
  height: 64px;
  margin: 0 0 6px;
}

.motionly-block .section-head h2 {
  max-width: 14ch;
}

.motionly-block .section-head > .lede,
.motionly-block .section-head > .actions,
.motionly-block .section-head > .feature-list {
  grid-column: 1;
}

.motionly-block .section-head > .actions {
  margin-top: 16px;
}

.phones-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 5%;
  padding: 6% 0 0;
}

.phones-row .phone:nth-child(odd) {
  transform: translateY(10%);
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--motionly);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-list strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
}

.feature-list span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

.section:not(.on-dark) .feature-list span {
  color: var(--ink-soft);
}

.section:not(.on-dark) .feature-icon {
  color: var(--accent);
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Roomhaus surfaces use the Roomhaus colour for their icons. */
.roomhaus-tone .feature-icon {
  color: #e0906f;
}

/* Publishing */

.publishing-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  padding: clamp(36px, 5vw, 64px);
  color: white;
  background: #28191d;
  border-radius: var(--radius-large);
}

.publishing-card .eyebrow {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.55);
}

.publishing-card h2 {
  max-width: 14ch;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.publishing-card .lede {
  max-width: 520px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.62);
}

.publishing-card .publishing-aside {
  justify-self: end;
  text-align: right;
}

.publishing-card ul {
  margin: 0 0 26px;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.publishing-card li + li {
  margin-top: 8px;
}

/* Studio */

.studio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
}

.studio-grid .section-head {
  margin-bottom: 0;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  list-style: none;
}

.principles li {
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.principles span {
  display: block;
  margin-bottom: 18px;
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.principles h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.principles p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.studio-copy {
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.studio-copy p + p {
  margin-top: 14px;
}

/* Contact */

.contact-section {
  text-align: center;
  background: var(--paper-soft);
}

.contact-inner .eyebrow {
  margin-bottom: 20px;
}

.contact-inner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.contact-inner > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--accent);
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Footer */

.site-footer {
  padding: 44px 0;
  color: var(--ink-soft);
  background: var(--paper-soft);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.78rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}

.footer-brand {
  color: var(--ink);
  font-size: 0.9rem;
}

.footer-meta p + p {
  margin-top: 3px;
  color: var(--ink-faint);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
}

.footer-legal a:hover {
  color: var(--ink);
}

/* Product pages */

.page-hero {
  padding: calc(var(--nav-height) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.page-hero .app-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 26px;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  letter-spacing: -0.045em;
}

.page-hero .lede {
  max-width: 540px;
  margin-top: 22px;
}

.page-hero .actions {
  margin-top: 30px;
}

.page-hero .compare {
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
}

.page-hero-motionly {
  color: white;
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(246, 98, 42, 0.28), transparent 70%),
    var(--night);
}

.page-hero-motionly .lede {
  color: rgba(255, 255, 255, 0.68);
}

.page-hero-motionly .site-nav {
  color: white;
}

.fineprint {
  margin-top: 16px;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.on-dark .fineprint,
.page-hero-motionly .fineprint {
  color: rgba(255, 255, 255, 0.5);
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
}

.steps li {
  counter-increment: step;
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 22px;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.steps h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.steps p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.on-dark .steps li {
  background: var(--night-soft);
  border-color: rgba(255, 255, 255, 0.1);
}

.on-dark .steps p {
  color: rgba(255, 255, 255, 0.62);
}

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
}

.tools-grid li {
  position: relative;
  padding: 22px 22px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.tools-grid strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tools-grid p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.tools-grid .tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 8px;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--pill);
}

.tag-free {
  color: var(--roomhaus-deep);
  background: var(--roomhaus-soft);
}

.tag-pro {
  color: var(--ink-soft);
  background: var(--paper-soft);
}

/* Styles gallery */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.styles-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.styles-grid img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.styles-grid figure:hover img {
  transform: scale(1.04);
}

.styles-grid figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: white;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(20, 20, 20, 0.5);
  border-radius: var(--pill);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Split feature (copy + visual) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.split .section-head {
  margin-bottom: 0;
}

.split-reverse > :first-child {
  order: 2;
}

.split .compare {
  border-radius: var(--radius-large);
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.plan {
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-pro {
  color: white;
  background: var(--night);
  border-color: transparent;
}

.plan h3 {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.plan .plan-note {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.plan-pro .plan-note {
  color: rgba(255, 255, 255, 0.6);
}

.plan ul {
  margin-top: 22px;
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
}

.plan li + li {
  margin-top: 10px;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: var(--cell);
  height: var(--cell);
  background: var(--accent);
}

.plan-pro li::before {
  background: var(--motionly);
}

.plan-roomhaus.plan-pro li::before {
  background: var(--roomhaus);
}

/* FAQ */
.faq {
  max-width: 760px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-weight: 400;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding: 0 0 22px;
  max-width: 640px;
  color: var(--ink-soft);
}

/* Phones gallery on the Motionly page */
.phones-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.phones-gallery figure {
  margin: 0;
}

.phones-gallery figcaption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  text-align: center;
}

/* Sibling product callout at the bottom of a product page */
.sibling {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sibling strong {
  display: block;
  font-size: 1rem;
}

.sibling small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.sibling .text-link {
  margin-left: auto;
}

/* Legal pages */

.legal-page {
  padding: calc(var(--nav-height) + 72px) 0 110px;
}

.legal-page h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.legal-updated {
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

.legal-body {
  margin-top: 48px;
}

.legal-body h2 {
  margin: 44px 0 12px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.legal-body p,
.legal-body li {
  color: #424245;
  font-size: 1.0313rem;
}

.legal-body p + p {
  margin-top: 12px;
}

.legal-body ul {
  margin: 12px 0;
  padding-left: 22px;
}

.legal-body li + li {
  margin-top: 6px;
}

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

  .styles-track {
    animation: none;
  }

  .brand-mark,
  .btn,
  .duo-card,
  .text-link span,
  .contact-mail span,
  .styles-grid img {
    transition: none;
  }
}

/* Responsive */

@media (max-width: 1024px) {
  .tools-grid,
  .phones-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 900px) {
  .duo,
  .section-head-split,
  .motionly-layout,
  .studio-grid,
  .publishing-card,
  .page-hero-grid,
  .split,
  .plans {
    grid-template-columns: 1fr;
  }

  .split-reverse > :first-child {
    order: 0;
  }

  .section-head-split .lede {
    justify-self: start;
  }

  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }

  .compare-grid-2 {
    grid-template-columns: 1fr;
  }

  .compare-grid > :nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  .facts,
  .steps {
    grid-template-columns: 1fr;
  }

  .publishing-card .publishing-aside {
    justify-self: start;
    text-align: left;
  }

  .phones-row {
    grid-template-columns: repeat(4, 1fr);
    padding: 12% 0 6%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 0;
    z-index: 90;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 28px 20px;
    background: var(--paper);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }

  .nav-open .nav-links {
    transform: none;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .nav-links .nav-cta {
    margin-top: 18px;
    padding: 14px 22px;
    font-size: 1rem;
  }

  .product-block .section-head {
    grid-template-columns: 1fr;
  }

  .product-block .section-head .app-icon {
    grid-row: auto;
    width: 60px;
    height: 60px;
  }

  .product-block .section-head > .lede,
  .product-block .section-head > .actions {
    grid-column: 1;
  }

  .compare-grid,
  .principles,
  .tools-grid,
  .styles-grid,
  .phones-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .compare-grid > :nth-child(3):last-child {
    grid-column: auto;
  }

  .duo-head {
    flex-wrap: wrap;
  }

  .duo-head .status {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .duo-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .sibling {
    flex-wrap: wrap;
  }

  .sibling .text-link {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .compare-grid,
  .principles,
  .tools-grid,
  .phones-gallery {
    grid-template-columns: 1fr;
  }

  .phones-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8%;
    padding: 6% 4% 0;
  }

  .phones-row .phone:nth-child(n + 3) {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}
