/* Robo Gallery — site stylesheet */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3eee4;
  --paper-2: #eae3d5;
  --card: #fbf8f2;
  --ink: #17140f;
  --muted: #5a5348;
  --line: #d8cfbe;
  --accent: #c8391f;
  --on-dark: #c9c0af;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.25, 1);
  --bar-h: 88px;
  --bar-h-compact: 68px;
  /* Height of the header once scrolled (bar + 1px border): anchors and sticky blocks sit below it */
  --header-h: calc(var(--bar-h-compact) + 1px);
  --section-pad: 112px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchors land right below the sticky header; blocks add their own gap with scroll-margin-top */
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 40;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 16px;
  color: var(--paper);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* Type */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.75rem, 6.2vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 28px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #a92f18;
  border-color: #a92f18;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark {
  min-height: 44px;
  padding: 0 22px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.btn-light:hover {
  background: #fff;
  color: var(--ink);
}

.btn-line-light {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}

.btn-line-light:hover {
  background: var(--paper);
  color: var(--ink);
}

/* Header: stays on top while scrolling. Once scrolled, main.js adds .is-scrolled: the bar gets
   shorter and a bottom line appears. The margin makes up the lost height, so the page below never jumps. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid transparent;
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  margin-bottom: calc(var(--bar-h) - var(--bar-h-compact));
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(23, 20, 15, 0.5);
}

.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--bar-h);
}

.site-header.is-scrolled .bar {
  min-height: var(--bar-h-compact);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 24px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 36px;
  margin-inline: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a:not(.btn) {
  display: inline-block;
  padding-block: 10px;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  margin-left: auto;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hero */

.hero {
  padding-block: 32px 104px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 648px);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px 0 6px;
  border: 1px solid #cfc5b2;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 26em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.proof {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

.demo-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.tabs {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.js .tabs {
  display: flex;
}

.tabs-label {
  margin-right: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.tab {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.tab:hover {
  background: var(--paper-2);
}

.tab[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.stage-frame {
  padding: clamp(12px, 3.7vw, 24px);
  border-radius: 28px;
  background: var(--paper-2);
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
}

.stage-caption {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Photo tiles (abstract landscapes) */

.tile {
  position: absolute;
  box-sizing: border-box;
  border-radius: 6px;
  background: transparent;
  transition: left 0.7s var(--ease), top 0.7s var(--ease), width 0.7s var(--ease),
    height 0.7s var(--ease), padding 0.7s var(--ease), transform 0.7s var(--ease),
    box-shadow 0.7s var(--ease), background-color 0.7s var(--ease);
}

.photo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg);
}

.sun {
  position: absolute;
  top: 14%;
  left: 14%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
}

.tile:nth-child(even) .sun {
  left: 62%;
}

.hill {
  position: absolute;
  left: -20%;
  bottom: -24%;
  width: 140%;
  height: 58%;
  border-radius: 50%;
  background: var(--hill);
}

.k1 { --bg: #d9a441; --hill: #b3782b; --sun: #f3e3b3; }
.k2 { --bg: #4c6b5d; --hill: #2f4a3f; --sun: #dce6d2; }
.k3 { --bg: #c8553d; --hill: #8e3524; --sun: #f6d2b8; }
.k4 { --bg: #2f4858; --hill: #1d2f3b; --sun: #a9c4d6; }
.k5 { --bg: #e8b4a0; --hill: #c98069; --sun: #fbede5; }
.k6 { --bg: #7a6a99; --hill: #524470; --sun: #d9cfea; }
.k7 { --bg: #a9bfa0; --hill: #6f8a66; --sun: #eef3e6; }
.k8 { --bg: #d9cdb4; --hill: #b5a484; --sun: #fff9ea; }

.stage[data-layout="polaroid"] .tile,
.pv-pol .tile {
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 8px 18px rgba(23, 20, 15, 0.2);
}

.stage[data-layout="polaroid"] .tile {
  padding: 1.334% 1.334% 4.667%;
}

.pv-pol .tile {
  padding: 1.455% 1.455% 5.091%;
}

.stage[data-layout="polaroid"] .photo,
.pv-pol .photo {
  border-radius: 2px;
}

/* Stats */

.stats {
  background: var(--ink);
  color: var(--paper);
}

.stats dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-block: 64px;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
}

.stat dd {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat dt {
  color: var(--on-dark);
}

/* Sections */

/* A jump to #pricing etc. skips most of the top padding, so the heading lands 32px below the header */
.section {
  padding-top: var(--section-pad);
  scroll-margin-top: calc(32px - var(--section-pad));
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.section-head h2 {
  max-width: 14em;
}

.section-head p {
  max-width: 24em;
  color: var(--muted);
  font-size: 1.125rem;
}

.section-head a {
  font-weight: 600;
  white-space: nowrap;
}

.section-head.centered {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  text-align: center;
}

.section-head.centered p {
  max-width: 34em;
}

/* Features */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
}

.card h3 {
  font-size: 1.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.card-albums {
  grid-column: span 2;
  grid-row: span 2;
  gap: 14px;
  padding: 32px;
}

.card-albums h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
}

.card-albums p {
  max-width: 28em;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.card-polaroid {
  min-height: 260px;
  background: var(--paper-2);
  border-color: var(--paper-2);
}

.card-polaroid h3,
.card-mobile h3,
.card-layouts h3 {
  font-size: 1.625rem;
}

.card-mobile {
  min-height: 260px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.card-mobile p {
  color: var(--on-dark);
}

.card-layouts {
  grid-column: span 2;
  min-height: 260px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.card-layouts p {
  max-width: 28em;
  color: #fff;
}

.card-icon {
  width: 34px;
  height: 34px;
  color: var(--ink);
}

.art {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

/* In the 4-column bento this card spans two rows, so the art grows into the free height
   instead of leaving a gap under the text; the 2-column layout (max-width: 1000px) goes back to a fixed ratio. */
.albums-art {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 470px;
  min-height: 230px;
  margin-top: 12px;
}

.albums-art span {
  position: absolute;
  display: block;
  border-radius: 14px;
}

.album-back-1 {
  left: 0;
  top: 19%;
  width: 57.4%;
  height: 73.9%;
  background: #d9a441;
  transform: rotate(-4deg);
}

.album-back-2 {
  left: 14.9%;
  top: 9.6%;
  width: 57.4%;
  height: 73.9%;
  background: #4c6b5d;
  transform: rotate(2deg);
}

.albums-art .album-front {
  left: 29.8%;
  top: 0;
  width: 70.2%;
  height: 85.2%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}

.album-front i {
  display: block;
  border-radius: 6px;
}

.mini-polaroid {
  width: 120px;
  padding: 8px 8px 12px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 20, 15, 0.18);
  transform: rotate(-5deg);
}

.mini-polaroid i {
  display: block;
  border-radius: 3px;
}

.mini-polaroid .mp-photo {
  height: 80px;
  border-radius: 2px;
  background: #c8553d;
}

.mini-polaroid .mp-line-1 {
  width: 70%;
  height: 6px;
  margin-top: 10px;
  background: var(--ink);
}

.mini-polaroid .mp-line-2 {
  width: 45%;
  height: 5px;
  margin-top: 6px;
  background: #cfc5b2;
}

.phone {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  width: 92px;
  height: 96px;
  padding: 8px 8px 0;
  border: 3px solid var(--paper);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.phone i {
  display: block;
  border-radius: 4px;
}

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

.chips li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #fff;
  border-radius: 18px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.chips li.chip-solid {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.b1 { background: #d9a441; }
.b2 { background: #4c6b5d; }
.b3 { background: #c8553d; }
.b4 { background: #2f4858; }
.b5 { background: #e8b4a0; }
.b6 { background: #7a6a99; }
.b7 { background: #a9bfa0; }
.b8 { background: #d9cdb4; }
.b9 { background: #a9c4d6; }

.cta-art .snap-2 .sun {
  left: 62%;
}

/* Demos */

.demos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
}

.demo {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.preview {
  position: relative;
  width: 100%;
  aspect-ratio: 11 / 6;
  overflow: hidden;
  border-radius: 24px;
  background: #e2d9c7;
}

.demo-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.demo-info h3 {
  font-size: 1.625rem;
}

.demo-info p {
  flex-basis: 100%;
  order: 3;
  color: var(--muted);
  font-size: 0.9375rem;
}

.demo-info a {
  font-weight: 600;
  white-space: nowrap;
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 32px 28px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
}

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

.plan h3 {
  font-size: 1.5rem;
}

.price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.amount {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.per {
  font-size: 0.875rem;
  opacity: 0.75;
}

.plan-list {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.plan-list .tick {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.plan-list .strong {
  font-weight: 600;
}

.plan-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.plan-dark .btn-accent {
  color: #fff;
}

/* Call to action */

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  overflow: hidden;
  border-radius: 32px;
  background: var(--ink);
  color: var(--paper);
}

.cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 520px;
}

.cta-copy h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.03;
}

.cta-copy p {
  color: var(--on-dark);
  font-size: 1.125rem;
}

.cta-art {
  position: relative;
  flex-shrink: 0;
  width: 420px;
  height: 300px;
}

.cta-art .snap {
  position: absolute;
  padding: 10px 10px 36px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.cta-art .snap-1 { left: 10px; top: 40px; width: 170px; height: 210px; transform: rotate(-7deg); }
.cta-art .snap-2 { left: 150px; top: 0; width: 180px; height: 220px; transform: rotate(4deg); }
.cta-art .snap-3 { left: 250px; top: 110px; width: 160px; height: 190px; transform: rotate(-3deg); }

/* Footer */

.site-footer {
  padding-block: 72px 48px;
}

.upzilla {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--paper-2);
}

.upzilla h2 {
  margin-bottom: 6px;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.upzilla p {
  max-width: 42em;
  color: var(--muted);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot-about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 320px;
}

.foot-about p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot-about a {
  font-weight: 600;
}

.foot-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.foot-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9375rem;
}

.foot-list a {
  display: inline-block;
  padding-block: 6px;
  text-decoration: none;
}

.foot-list a:hover {
  text-decoration: underline;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.legal a {
  color: var(--muted);
}

/* 404 */

.notfound {
  padding-block: 96px 128px;
}

.notfound .lead {
  max-width: 28em;
  margin-block: 20px 32px;
}

/* Legal pages */

.legal-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding-block: 24px 112px;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

.legal-toc ol {
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.legal-toc a {
  color: var(--muted);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.legal-text {
  max-width: 44em;
}

.legal-text section + section {
  margin-top: 40px;
}

.legal-text section {
  scroll-margin-top: 32px;
}

.legal-text h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.legal-text p,
.legal-text li {
  line-height: 1.65;
}

.legal-text p {
  margin: 0 0 14px;
}

.legal-text ul {
  margin: 0 0 14px;
  list-style: disc;
  padding-left: 1.3em;
}

.legal-text a {
  color: var(--accent);
}

.legal-updated {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .legal-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-toc {
    position: static;
  }
}

/* Responsive */

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

  .cta-art {
    display: none;
  }
}

@media (max-width: 1000px) {
  .hero {
    padding-bottom: 72px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .demo-panel {
    max-width: 648px;
  }

  .stats dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 48px;
  }

  :root {
    --section-pad: 88px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-albums {
    grid-row: auto;
  }

  .albums-art {
    flex: none;
    min-height: 0;
    aspect-ratio: 47 / 23;
    margin-top: auto;
  }

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

  .foot-about {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

@media (max-width: 900px) {
  :root {
    --bar-h: 72px;
    --bar-h-compact: 60px;
  }

  .site-header.is-scrolled .bar {
    padding-block: 8px;
  }

  /* The open menu lives inside the sticky header, so let it scroll on short screens */
  .js .site-header.nav-open {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
  }

  .bar {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-block: 12px;
  }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-block: 12px 8px;
  }

  .js .site-nav {
    display: none;
  }

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

  .nav-links {
    flex-direction: column;
    gap: 0;
    margin-inline: 0;
  }

  .site-nav .nav-links a {
    display: block;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }

  .nav-actions {
    justify-content: space-between;
    padding-top: 8px;
  }
}

@media (max-width: 720px) {
  .demos {
    grid-template-columns: minmax(0, 1fr);
  }

  .upzilla {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-block: 16px 56px;
  }

  :root {
    --section-pad: 72px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .bento,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-albums,
  .card-layouts {
    grid-column: auto;
  }

  .card-albums {
    padding: 24px;
  }

  .stats dl {
    gap: 28px 16px;
  }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .cta-panel {
    border-radius: 24px;
  }

  .cta-copy .btn {
    width: 100%;
  }

  .tabs {
    gap: 8px;
  }

  .tabs-label {
    flex-basis: 100%;
    margin-right: 0;
  }

  .tab {
    padding: 0 14px;
  }
}

@media (max-width: 380px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cookie notice (built by main.js) */

.cookie-notice {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 480px;
  padding: 18px 18px 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 18px 40px -18px rgba(23, 20, 15, 0.45);
  animation: cookie-in 0.4s var(--ease) both;
}

.cookie-notice p {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.cookie-notice a {
  color: var(--ink);
}

.cookie-notice .btn {
  flex: none;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.legal-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

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

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (max-width: 520px) {
  .cookie-notice {
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-width: none;
  }
}

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

  .tile {
    transition: none;
  }

  .cookie-notice {
    animation: none;
  }

  .site-header {
    transition: none;
  }
}

/* Hero gallery layouts (generated) */
.stage[data-layout="grid"] .tile:nth-child(1){left:0%;top:0%;width:23.5%;height:48.5%}
.stage[data-layout="grid"] .tile:nth-child(2){left:25.5%;top:0%;width:23.5%;height:48.5%}
.stage[data-layout="grid"] .tile:nth-child(3){left:51%;top:0%;width:23.5%;height:48.5%}
.stage[data-layout="grid"] .tile:nth-child(4){left:76.5%;top:0%;width:23.5%;height:48.5%}
.stage[data-layout="grid"] .tile:nth-child(5){left:0%;top:51.5%;width:23.5%;height:48.5%}
.stage[data-layout="grid"] .tile:nth-child(6){left:25.5%;top:51.5%;width:23.5%;height:48.5%}
.stage[data-layout="grid"] .tile:nth-child(7){left:51%;top:51.5%;width:23.5%;height:48.5%}
.stage[data-layout="grid"] .tile:nth-child(8){left:76.5%;top:51.5%;width:23.5%;height:48.5%}
.stage[data-layout="masonry"] .tile:nth-child(1){left:0%;top:0%;width:23.5%;height:37.5%}
.stage[data-layout="masonry"] .tile:nth-child(2){left:0%;top:40.5%;width:23.5%;height:59.5%}
.stage[data-layout="masonry"] .tile:nth-child(3){left:25.5%;top:0%;width:23.5%;height:62.5%}
.stage[data-layout="masonry"] .tile:nth-child(4){left:25.5%;top:65.5%;width:23.5%;height:34.5%}
.stage[data-layout="masonry"] .tile:nth-child(5){left:51%;top:0%;width:23.5%;height:47.5%}
.stage[data-layout="masonry"] .tile:nth-child(6){left:51%;top:50.5%;width:23.5%;height:49.5%}
.stage[data-layout="masonry"] .tile:nth-child(7){left:76.5%;top:0%;width:23.5%;height:30%}
.stage[data-layout="masonry"] .tile:nth-child(8){left:76.5%;top:33%;width:23.5%;height:67%}
.stage[data-layout="polaroid"] .tile:nth-child(1){left:1.333%;top:1.5%;width:22%;height:44%}
.stage[data-layout="polaroid"] .tile:nth-child(2){left:26%;top:1.5%;width:22%;height:44%}
.stage[data-layout="polaroid"] .tile:nth-child(3){left:50.667%;top:1.5%;width:22%;height:44%}
.stage[data-layout="polaroid"] .tile:nth-child(4){left:75.333%;top:1.5%;width:22%;height:44%}
.stage[data-layout="polaroid"] .tile:nth-child(5){left:1.333%;top:51%;width:22%;height:44%}
.stage[data-layout="polaroid"] .tile:nth-child(6){left:26%;top:51%;width:22%;height:44%}
.stage[data-layout="polaroid"] .tile:nth-child(7){left:50.667%;top:51%;width:22%;height:44%}
.stage[data-layout="polaroid"] .tile:nth-child(8){left:75.333%;top:51%;width:22%;height:44%}
.stage[data-layout="mosaic"] .tile:nth-child(1){left:0%;top:0%;width:48%;height:100%}
.stage[data-layout="mosaic"] .tile:nth-child(2){left:50%;top:0%;width:24%;height:32.5%}
.stage[data-layout="mosaic"] .tile:nth-child(3){left:76%;top:0%;width:24%;height:32.5%}
.stage[data-layout="mosaic"] .tile:nth-child(4){left:50%;top:35.5%;width:50%;height:30%}
.stage[data-layout="mosaic"] .tile:nth-child(5){left:50%;top:68.5%;width:16%;height:31.5%}
.stage[data-layout="mosaic"] .tile:nth-child(6){left:68%;top:68.5%;width:16%;height:31.5%}
.stage[data-layout="mosaic"] .tile:nth-child(7){left:86%;top:68.5%;width:14%;height:15%}
.stage[data-layout="mosaic"] .tile:nth-child(8){left:86%;top:86.5%;width:14%;height:13.5%}
.stage[data-layout="polaroid"] .tile:nth-child(1){transform:rotate(-4deg)}
.stage[data-layout="polaroid"] .tile:nth-child(2){transform:rotate(3deg)}
.stage[data-layout="polaroid"] .tile:nth-child(3){transform:rotate(-2deg)}
.stage[data-layout="polaroid"] .tile:nth-child(4){transform:rotate(4deg)}
.stage[data-layout="polaroid"] .tile:nth-child(5){transform:rotate(3deg)}
.stage[data-layout="polaroid"] .tile:nth-child(6){transform:rotate(-3deg)}
.stage[data-layout="polaroid"] .tile:nth-child(7){transform:rotate(4deg)}
.stage[data-layout="polaroid"] .tile:nth-child(8){transform:rotate(-2deg)}

/* Demo previews (generated) */
.pv1 .tile:nth-child(1){left:4%;top:23.333%;width:21.091%;height:50.667%}
.pv1 .tile:nth-child(2){left:26.545%;top:18%;width:21.091%;height:50.667%}
.pv1 .tile:nth-child(3){left:49.091%;top:26%;width:21.091%;height:50.667%}
.pv1 .tile:nth-child(4){left:71.636%;top:20%;width:21.091%;height:50.667%}
.pv1 .tile:nth-child(1){transform:rotate(-5deg)}
.pv1 .tile:nth-child(2){transform:rotate(3deg)}
.pv1 .tile:nth-child(3){transform:rotate(-2deg)}
.pv1 .tile:nth-child(4){transform:rotate(4deg)}
.pv2 .tile:nth-child(1){left:2.909%;top:5.333%;width:17.455%;height:36.667%}
.pv2 .tile:nth-child(2){left:2.909%;top:45.333%;width:17.455%;height:49.333%}
.pv2 .tile:nth-child(3){left:22.182%;top:5.333%;width:17.455%;height:56.667%}
.pv2 .tile:nth-child(4){left:22.182%;top:65.333%;width:17.455%;height:29.333%}
.pv2 .tile:nth-child(5){left:41.455%;top:5.333%;width:17.455%;height:30%}
.pv2 .tile:nth-child(6){left:41.455%;top:38.667%;width:17.455%;height:56%}
.pv2 .tile:nth-child(7){left:60.727%;top:5.333%;width:17.455%;height:46.667%}
.pv2 .tile:nth-child(8){left:60.727%;top:55.333%;width:17.455%;height:39.333%}
.pv2 .tile:nth-child(9){left:80%;top:5.333%;width:17.455%;height:33.333%}
.pv2 .tile:nth-child(10){left:80%;top:42%;width:17.455%;height:52.667%}
.pv3 .tile:nth-child(1){left:2.909%;top:5.333%;width:30.182%;height:43%}
.pv3 .tile:nth-child(2){left:34.909%;top:5.333%;width:30.182%;height:43%}
.pv3 .tile:nth-child(3){left:66.909%;top:5.333%;width:30.182%;height:43%}
.pv3 .tile:nth-child(4){left:2.909%;top:51.667%;width:30.182%;height:43%}
.pv3 .tile:nth-child(5){left:34.909%;top:51.667%;width:30.182%;height:43%}
.pv3 .tile:nth-child(6){left:66.909%;top:51.667%;width:30.182%;height:43%}
.pv4 .tile:nth-child(1){left:2.909%;top:5.333%;width:32.727%;height:43%}
.pv4 .tile:nth-child(2){left:37.455%;top:5.333%;width:26.909%;height:43%}
.pv4 .tile:nth-child(3){left:66.182%;top:5.333%;width:30.909%;height:43%}
.pv4 .tile:nth-child(4){left:2.909%;top:51.667%;width:27.273%;height:43%}
.pv4 .tile:nth-child(5){left:32%;top:51.667%;width:36.364%;height:43%}
.pv4 .tile:nth-child(6){left:70.182%;top:51.667%;width:26.909%;height:43%}

/* Resources menu: a dropdown in the main menu (main.js opens it; :focus-within without the script) */
.has-sub {
  position: relative;
}
.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.sub-toggle:hover {
  text-decoration: underline;
}
.sub-chevron {
  transition: transform 0.15s;
}
.sub-toggle[aria-expanded="true"] .sub-chevron {
  transform: rotate(180deg);
}
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 30;
  width: 290px;
  margin: 0;
  padding: 8px;
  list-style: none;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(23, 20, 15, 0.45);
}
.sub-toggle[aria-expanded="true"] + .sub-menu,
html:not(.js) .has-sub:focus-within .sub-menu {
  display: block;
}
.site-nav .sub-menu a:not(.btn) {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.site-nav .sub-menu a:not(.btn):hover,
.site-nav .sub-menu a:not(.btn):focus-visible,
.site-nav .sub-menu a[aria-current] {
  background: var(--paper-2);
  text-decoration: none;
}
.sub-menu strong {
  display: block;
  font-weight: 600;
}
.sub-menu span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}
@media (max-width: 900px) {
  .sub-toggle {
    width: 100%;
    justify-content: space-between;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }
  .sub-menu {
    position: static;
    width: auto;
    transform: none;
    margin: 4px 0 8px;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 12px;
  }
  .site-nav .nav-links .sub-menu a {
    border-bottom: 0;
    padding: 10px 12px;
    font-size: 1rem;
  }
}

/* Blog, FAQ and comparisons */
.page-hero .eyebrow a {
  color: inherit;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.article-cover {
  margin: 0 0 28px;
}
.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.article-lede {
  font-size: 1.15rem;
}
.legal-text h3 {
  margin: 22px 0 8px;
  font-size: 1.1rem;
}
.legal-text ol {
  margin: 0 0 14px;
  padding-left: 1.4em;
}
.legal-text ol ul {
  margin-top: 8px;
}
.legal-text code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--paper-2);
  font-size: 0.92em;
}
.note {
  margin-top: 40px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.note p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 0;
}
.legal-text .note .btn-dark,
.legal-text .note .btn-dark:hover,
.legal-text .note .btn-outline:hover {
  color: var(--paper);
}
.legal-text .note .btn-outline {
  color: var(--ink);
}
.related {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.related ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
  list-style: disc;
}
.related li + li {
  margin-top: 6px;
}
.back-link {
  margin-top: 28px;
}

.post-grid,
.cmp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.post-grid {
  padding-bottom: 112px;
}
.cmp-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
}
.post-card a,
.cmp-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 16px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.post-card a:hover,
.cmp-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(23, 20, 15, 0.5);
}
.post-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
.post-tag {
  margin-top: 16px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-card h2,
.cmp-card h2 {
  margin: 8px 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
}
.post-card p,
.cmp-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}
.post-more {
  margin-top: auto;
  font-weight: 600;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  position: relative;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 4px;
  font-size: 1.4rem;
  font-weight: 400;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-answer {
  padding: 0 0 12px;
}

.compare-page {
  padding-bottom: 112px;
}
.compare-page .section-title {
  margin: 64px 0 16px;
  font-family: var(--serif);
  font-size: 1.8rem;
}
.cmp-wrap {
  overflow-x: auto;
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.cmp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}
.cmp-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.cmp-table th,
.cmp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td {
  border-bottom: 0;
}
.cmp-table thead th {
  background: var(--paper-2);
  font-weight: 600;
}
.cmp-table tbody th {
  width: 160px;
  color: var(--muted);
  font-weight: 600;
}
/* the Robo Gallery column: the soft sage of the site palette, with the logo green on top */
.cmp-table tbody td:first-of-type {
  background: #eef3e6;
}
.cmp-table thead th:nth-child(2) {
  background: #dfe8d6;
  box-shadow: inset 0 3px 0 #4c6b5d;
}
/* a wide table scrolls inside its box instead of widening the text column */
@media (max-width: 860px) {
  .legal-page {
    grid-template-columns: minmax(0, 1fr);
  }
}
.source-note {
  color: var(--muted);
  font-size: 0.9rem;
}
