:root {
  --bg: #f4f4f4;
  --ink: #1a1a1a;
  --muted: #6b6b66;
  --rim: #4a4644;
  --inner: #f3f3f3;
  --accent: #00c0e8;
  --card-radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

main {
  width: 100%;
}

.hero {
  min-height: 100svh;
}

.hero-sticky {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 20px 16px 28px;
}

.hero-lens-wrap {
  width: min(88vw, 360px);
  aspect-ratio: 4 / 11;
}

#hero-lens,
#sticky-lens {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-copy {
  text-align: center;
  max-width: 720px;
  margin-top: 4px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(40px, 8vw, 62px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-copy > p {
  margin-top: 8px;
  font-size: clamp(16px, 2.2vw, 20px);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 500;
  font-size: 15px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.content-grid {
  width: min(1280px, 100%);
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.left-lens {
  display: none;
}

.sections-col {
  min-width: 0;
}

.feature-section {
  padding: 24px 16px 64px;
  min-height: auto;
}

.mobile-strip {
  width: 100%;
  max-width: 520px;
  height: 128px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.mobile-strip svg {
  width: 100%;
  height: 260px;
  transform: rotate(90deg) translate(24px, -106px);
  transform-origin: center;
}

.section-header {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: flex-start;
}

.section-header h2 {
  position: relative;
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 500;
  line-height: 1;
}

.bracket {
  position: absolute;
  left: 0;
  top: 6px;
  width: 184px;
  height: 88px;
  pointer-events: none;
}

.bracket path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  transition: stroke-dashoffset 0.6s ease;
}

.feature-section.in-view .bracket path {
  stroke-dashoffset: 0;
}

.section-body {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.part-circle {
  width: min(86vw, 360px);
  aspect-ratio: 1;
  margin: 0 auto;
  position: relative;
  outline: none;
  opacity: 0;
  transform: perspective(900px) rotateX(70deg) scale(0.7);
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1), opacity 0.7s cubic-bezier(.2,.7,.2,1);
}

.feature-section.in-view .part-circle {
  opacity: 1;
  transform: none;
}

.part-circle svg {
  width: 100%;
  height: 100%;
}

.part-circle .image-layer {
  position: absolute;
  width: 72%;
  height: 72%;
  left: 14%;
  top: 14%;
  border-radius: 50%;
  overflow: hidden;
}

.part-circle .image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(-8deg);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  inset: 0;
}

.part-circle .image-layer img.incoming {
  opacity: 0;
  transform: rotate(10deg);
}

.card-side {
  width: 100%;
  position: relative;
}

.folder-card {
  position: relative;
  width: 100%;
  min-height: 250px;
  max-width: 560px;
  margin: 0 auto;
}

.folder-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.folder-shape path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.card-inner {
  position: relative;
  z-index: 1;
  padding: 20px 20px 22px;
  min-height: 250px;
}

.card-inner > h3 {
  font-size: clamp(30px, 8vw, 52px);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 12px;
  padding-right: 120px;
}

.card-text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 52ch;
  transition: opacity 0.2s ease;
}

.feature-list {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.folder-tabs {
  margin: 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  position: absolute;
  top: 12px;
  right: 10px;
  z-index: 3;
}

.tab-btn {
  width: 32px;
  height: 24px;
  border: 1px dashed color-mix(in srgb, var(--ink) 70%, transparent);
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.tab-btn[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tab-btn:focus-visible,
.btn:focus-visible,
.left-lens a:focus-visible,
.part-circle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.left-lens .part.active {
  transform: translateX(24px);
  opacity: 1;
}

.left-lens .part {
  transition: transform 0.45s ease, opacity 0.45s ease;
  opacity: 0.35;
}

.left-lens .part.active text {
  text-decoration: underline;
}

.cta {
  padding: 20px 16px 88px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 500;
  margin-bottom: 14px;
}

.simple-page {
  min-height: calc(100svh - 120px);
  padding: 28px 16px 32px;
}

.simple-wrap {
  width: min(920px, 100%);
  margin: 0 auto;
}

.simple-wrap h1 {
  font-size: clamp(36px, 7vw, 56px);
  margin-bottom: 16px;
}

.install-box {
  margin-top: 22px;
  border: 1px dashed var(--ink);
  border-radius: var(--card-radius);
  padding: 16px;
}

.install-box h2 {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 8px;
}

.install-box ol {
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 8px;
}

.qr-block {
  display: none;
  margin-top: 18px;
  align-items: center;
  gap: 14px;
}

.qr-block p {
  max-width: 24ch;
  color: var(--muted);
}

footer {
  border-top: 1px solid #ddd;
  color: var(--muted);
  font-size: 13px;
  padding: 14px 16px 18px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

footer p {
  margin-top: 8px;
}

@media (min-width: 1024px) {
  .hero-sticky {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
  }

  .hero-lens-wrap {
    width: 340px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .content-grid {
    grid-template-columns: minmax(220px, 28%) 1fr;
    gap: 20px;
    align-items: start;
  }

  .left-lens {
    display: block;
    position: sticky;
    top: 0;
    height: 100svh;
    padding-top: 26px;
  }

  .left-lens #sticky-lens {
    width: 100%;
    height: calc(100svh - 32px);
  }

  .mobile-strip {
    display: none;
  }

  .feature-section {
    min-height: 100svh;
    padding: 34px 10px 96px;
  }

  .section-header {
    min-height: 120px;
  }

  .bracket {
    left: -24px;
    top: -8px;
    width: 320px;
    height: 120px;
  }

  .section-body {
    grid-template-columns: minmax(340px, 1fr) minmax(360px, 1fr);
    align-items: center;
    gap: 30px;
  }

  .card-side {
    justify-self: end;
    width: min(440px, 100%);
  }

  .folder-card {
    min-height: 300px;
  }

  .card-inner {
    min-height: 300px;
    padding: 28px;
  }

  .card-inner > h3 {
    font-size: 40px;
    padding-right: 0;
  }

  .folder-tabs {
    position: static;
    margin: 10px auto 0;
    max-width: 560px;
  }

  .part-circle {
    width: min(440px, 42vw);
  }

  .qr-block {
    display: flex;
  }

  footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  footer p {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero {
    height: auto;
  }

  .hero-sticky {
    position: relative;
  }

  .part-circle {
    transform: none;
    opacity: 1;
  }

  .feature-section .bracket path {
    stroke-dashoffset: 0;
  }

  .feature-section {
    min-height: auto;
  }
}
