:root {
  --bg: #f1f4fa;
  --sky: #8ed0ff;
  --sky-deep: #4d9be6;
  --sunset: #ff9e5e;
  --stripe: #ffd24d;
  --asphalt: #2b2f3a;
  --ink: #242938;
  --muted: #6b7285;
  --card: #ffffff;
  --cork: #c9a66b;
  --cork-dark: #a8844f;
  --note: #fff9e6;
  --radius: 18px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(142, 208, 255, 0.45), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(255, 158, 94, 0.25), transparent 35%),
    var(--bg);
  line-height: 1.6;
}

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

a { color: var(--sky-deep); }

/* margin_dots nav */
.margin-dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 100;
}

.margin-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(77, 155, 230, 0.35);
  border: 2px solid var(--sky-deep);
  transition: transform 0.2s, background 0.2s;
  position: relative;
}

.margin-dots .dot.active,
.margin-dots .dot:hover {
  background: var(--sunset);
  border-color: var(--sunset);
  transform: scale(1.15);
}

.margin-dots .dot::after {
  content: attr(data-label);
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.margin-dots .dot:hover::after { opacity: 1; }

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  padding-right: 3rem;
}

/* hero window_frame */
.hero-window {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.hero-copy .eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sunset);
  margin: 0 0 0.5rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero-copy h1 span { color: var(--sky-deep); }

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34ch;
  margin: 0;
}

.window-frame {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(36, 41, 56, 0.12);
  overflow: hidden;
  border: 1px solid rgba(77, 155, 230, 0.2);
}

.window-chrome {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #eef3fb, #e4ebf6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.window-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d9e6;
}

.window-chrome span:first-child { background: #ff7b7b; }
.window-chrome span:nth-child(2) { background: var(--stripe); }
.window-chrome span:nth-child(3) { background: #7bc96f; }

.window-body img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* section intro */
.section-intro.centered {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
}

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

/* cork_notes */
.cork-board {
  margin-bottom: 4.5rem;
}

.cork-surface {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0 2px, transparent 2px 8px),
    linear-gradient(145deg, var(--cork) 0%, var(--cork-dark) 100%);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,0.08);
}

.note {
  background: var(--note);
  padding: 1.25rem 1.1rem 1.1rem;
  border-radius: 4px;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.18);
  position: relative;
}

.note-tilt-left { transform: rotate(-2.5deg); }
.note-tilt-right { transform: rotate(2deg); }

.note .pin {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #c0392b);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.note h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.5rem 0 0.4rem;
  color: var(--asphalt);
}

.note p {
  margin: 0;
  font-size: 0.92rem;
  color: #4a4f5c;
}

/* device_pair */
.device-pair {
  margin-bottom: 4rem;
}

.phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: flex-start;
}

.phone-shell {
  margin: 0;
  width: min(280px, 42vw);
  padding: 0.65rem;
  background: var(--asphalt);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(43, 47, 58, 0.25);
}

.phone-offset {
  transform: translateY(2rem);
}

.phone-shell img {
  border-radius: 22px;
  width: 100%;
}

/* tab_switch legal */
.legal-tabs {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(36, 41, 56, 0.08);
}

.tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #e8edf5;
  padding-bottom: 0.75rem;
}

.tab {
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab.active {
  background: var(--sky-deep);
  color: #fff;
}

.tab-panel h2 {
  font-family: var(--font-display);
  margin-top: 0;
}

.tab-panel[hidden] { display: none; }

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

@media (min-width: 768px) {
  .hero-window {
    grid-template-columns: 1fr 1.1fr;
  }
}

@media (max-width: 600px) {
  .margin-dots { right: 0.65rem; }
  main { padding-right: 2rem; }
  .phone-offset { transform: none; }
}
