:root {
  --bg: #fae2ba;
  --paper: #fff0d2;
  --accent: #c9a227;
  --accent2: #b87333;
  --text: #3d3229;
  --muted: #786654;
  --shadow: rgba(61, 50, 41, 0.12);
  --max: 1080px;
  --dot-size: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 240, 210, 0.9), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(201, 162, 39, 0.22), transparent 36%),
    linear-gradient(180deg, var(--paper) 0%, var(--bg) 48%, #f4d596 100%);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent2);
}

main {
  padding: 0 1.25rem 4rem;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
}

.margin-dots {
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 20;
}

.margin-dots .dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  border: 2px solid var(--accent2);
  background: transparent;
  padding: 0;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.margin-dots .dot span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.margin-dots .dot.is-active,
.margin-dots .dot:hover {
  background: var(--accent);
  transform: scale(1.15);
}

.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.hero__glow {
  position: absolute;
  inset: 8% 10% auto;
  height: 280px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.35), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.hero__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  font-weight: 600;
}

.hero__tagline {
  margin: 0 auto 2rem;
  max-width: 640px;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero__visual {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px var(--shadow);
  border: 1px solid rgba(184, 115, 51, 0.25);
}

.section-intro {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-intro h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.section-intro p {
  margin: 0;
  color: var(--muted);
}

.intro-left {
  margin-right: auto;
  text-align: left;
}

.intro-right {
  margin-left: auto;
  text-align: right;
}

.features {
  padding: 4rem 0 2rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento-tile {
  grid-column: span 4;
  background: rgba(255, 240, 210, 0.82);
  border: 1px solid rgba(184, 115, 51, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px var(--shadow);
}

.bento-tile.tile-wide {
  grid-column: span 8;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 240px;
}

.bento-tile.tile-tall {
  grid-column: span 4;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.bento-tile.tile-accent {
  grid-column: span 8;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.bento-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.bento-copy {
  padding: 1.25rem 1.35rem 1.4rem;
}

.bento-copy h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.bento-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.screens {
  padding: 3rem 0;
}

.device-pair-stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1rem, 4vw, 2.5rem);
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.device-frame {
  margin: 0;
  width: min(280px, 42vw);
  padding: 0.65rem;
  border-radius: 28px;
  background: linear-gradient(145deg, #3d3229, #786654);
  box-shadow: 0 18px 40px var(--shadow);
}

.device-frame img {
  border-radius: 22px;
}

.device-frame--offset {
  transform: translateY(24px);
}

.screens-inline {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.screens-inline img {
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 12px 32px var(--shadow);
}

.screens-inline figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal {
  padding: 3rem 0 1rem;
}

.legal-tabs {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 240, 210, 0.9);
  border: 1px solid rgba(184, 115, 51, 0.25);
}

.legal-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
}

.legal-tab.is-active {
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
}

.legal-panels {
  background: rgba(255, 240, 210, 0.88);
  border: 1px solid rgba(184, 115, 51, 0.22);
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 12px 30px var(--shadow);
}

.legal-panel {
  display: none;
}

.legal-panel.is-visible {
  display: block;
}

.legal-panel h3 {
  margin-top: 0;
}

.legal-panel p {
  color: var(--text);
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .bento-tile,
  .bento-tile.tile-wide,
  .bento-tile.tile-tall,
  .bento-tile.tile-accent {
    grid-column: span 12;
    display: block;
  }

  .intro-right {
    text-align: left;
    margin-left: 0;
  }

  .margin-dots {
    top: auto;
    bottom: 1rem;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 3rem;
  }

  .device-frame--offset {
    transform: none;
  }
}
