/* Native captures keep their original ratio. The shell is presentation, never a new UI. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
[hidden] {
  display: none !important;
}
.hero {
  padding-block: 64px;
}
.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
}
.hero-visual {
  padding: 0;
  margin: 0;
  min-width: 0;
}
.hero-device,
.tour-device {
  margin: 0;
  min-width: 0;
}
.hero-device {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 24px;
}
.hero-device {
  position: relative;
  isolation: isolate;
}
.discovery-field {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: 47%;
  left: 50%;
  width: min(120%, 540px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}
.discovery-ring {
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 217, 217, 0.08);
  border-radius: 50%;
  position: relative;
}
.discovery-ring:nth-child(2) {
  width: 76%;
  border-color: rgba(5, 184, 245, 0.14);
}
.discovery-ring:nth-child(3) {
  width: 52%;
}
.discovery-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
}
.discovery-ring:nth-child(2)::after {
  left: auto;
  right: 3%;
  top: 30%;
}
.discovery-ring:nth-child(3)::after {
  left: 15%;
  top: 12%;
}
.phone-frame {
  position: relative;
  width: 100%;
  padding: 7px;
  border: 1px solid #52545a;
  border-radius: 44px;
  background: linear-gradient(115deg, #777a80, #24262a 14%, #090a0b 55%, #494b50 88%, #74777c);
  box-shadow:
    0 1px 0 #95979c inset,
    0 30px 65px -28px #000,
    0 0 0 1px #050506;
  isolation: isolate;
}
.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: #000;
  aspect-ratio: 1206 / 2622;
  border: 1px solid #08090b;
}
.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.phone-key {
  position: absolute;
  z-index: -1;
  width: 3px;
  background: #515359;
  border-radius: 2px;
}
.phone-key--volume {
  top: 19%;
  left: -4px;
  height: 9%;
}
.phone-key--volume::before {
  content: '';
  position: absolute;
  top: -48%;
  width: 3px;
  height: 30%;
  background: inherit;
  border-radius: inherit;
}
.phone-key--power {
  top: 27%;
  right: -4px;
  height: 12%;
}
.hero-phone {
  max-width: 316px;
}
.hero-device figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--body);
}
.hero-device figcaption small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.hero-actions {
  gap: 22px;
}
.tour-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--r-control);
  background: var(--primary);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform var(--product-press-duration, 120ms) ease,
    background var(--product-feedback-duration, 180ms) ease;
}
.tour-cta:hover {
  color: #000;
  background: var(--primary-light);
}
.tour-cta:active {
  transform: scale(0.97);
}
.tour-cta svg {
  width: 20px;
  height: 20px;
}
.hero-actions .ghost-link {
  font-size: 14px;
}

#see {
  background: var(--ground);
}
#see .section-head {
  max-width: 760px;
}
.product-tour {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  margin-top: 52px;
}
.tour-copy {
  max-width: 490px;
  min-width: 0;
}
.tour-tabs {
  display: flex;
  flex-direction: column;
}
.tour-tab {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr 20px;
  gap: 18px;
  align-items: start;
  padding: 26px 8px 26px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  text-decoration: none;
  transition:
    color var(--product-feedback-duration, 180ms) ease,
    background var(--product-feedback-duration, 180ms) ease;
}
.tour-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--product-shift-duration, 240ms) var(--product-shift-easing, ease);
}
.tour-tab:hover {
  color: var(--ink);
  background: rgba(217, 217, 217, 0.025);
}
.tour-tab.is-active::before {
  transform: scaleY(1);
}
.tour-number {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding-top: 5px;
}
.tour-tab.is-active .tour-number {
  color: var(--primary);
}
.tour-tab-copy {
  display: block;
}
.tour-tab-copy strong {
  display: block;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.tour-tab-copy > span {
  display: block;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 9px;
  max-width: 34ch;
}
.tour-tab > svg {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--muted);
  transition: transform var(--product-shift-duration, 240ms) ease;
}
.tour-tab.is-active > svg {
  color: var(--primary);
  transform: translateX(3px);
}
.tour-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}
.tour-navigation button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    background var(--product-feedback-duration, 180ms) ease,
    transform var(--product-press-duration, 120ms) ease;
}
.tour-navigation button:hover {
  background: var(--raised);
}
.tour-navigation button:active {
  transform: scale(0.94);
}
.tour-navigation svg {
  width: 20px;
  height: 20px;
}
.tour-previous svg {
  transform: rotate(180deg);
}
.tour-count {
  min-width: 54px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tour-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 20px;
}
.tour-error {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
}
.tour-error:empty {
  display: none;
}
.tour-error:not(:empty) {
  margin-top: 12px;
}
.tour-device {
  display: grid;
  justify-items: center;
  gap: 22px;
}
.tour-phone {
  max-width: 320px;
}
.tour-screen {
  display: grid;
}
.tour-panel {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-width: 0;
}
.tour-device figcaption {
  display: grid;
  gap: 8px;
  text-align: center;
  min-height: 50px;
  font-size: 14px;
}
.tour-caption {
  color: var(--body);
}
.screen-full {
  color: var(--muted);
  font-size: 12px;
  text-underline-offset: 4px;
}
.screen-full span {
  display: inline-block;
  margin-left: 4px;
}
.moment {
  overflow: hidden;
}
.pro-kicker {
  color: var(--ink);
}
.pro-kicker span {
  color: var(--pro);
  margin-left: 6px;
}
.pro-features {
  border-top: 1px solid var(--line);
}
.pro-feature {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.pro-feature > svg {
  width: 24px;
  height: 24px;
  color: var(--pro);
  margin-top: 2px;
}
.pro-feature h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.pro-feature p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 43ch;
}
.pro-availability {
  color: var(--body);
  font-size: 13px;
}
.pro-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  margin-top: 20px;
  color: var(--pro);
  font-size: 14px;
  text-underline-offset: 5px;
}
.pro-link:hover {
  color: var(--pro);
}
.principles-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: start;
}
.principles-intro {
  position: sticky;
  top: 112px;
}
.principles-intro h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.15;
}
.principles-intro p {
  max-width: 35ch;
}
.principles-link {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  min-height: 48px;
  margin-top: 24px;
  font-size: 14px;
  text-decoration: none;
}
.principle-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.principle {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  padding: 32px 0;
}
.principle-rule {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.principle-number {
  padding-top: 4px;
  color: var(--primary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.principle-copy h3 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.principle-copy p {
  margin-top: 12px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.75;
  max-width: 44ch;
}
#statement {
  padding-block: 80px 100px;
}
.statement {
  max-width: none;
  font-size: clamp(30px, 4.5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.statement .motion-line {
  display: block;
  overflow: clip;
}
.statement .motion-line > span {
  display: inline-block;
}
.statement .motion-line:last-child {
  color: var(--primary);
}
@media (max-width: 980px) {
  .pro-layout {
    gap: 36px;
  }
  .pro-offer {
    padding: 24px;
  }
}
@media (max-width: 980px) {
  .principles-layout {
    gap: 36px;
  }
}
@media (max-width: 700px) {
  .pro-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 30px;
  }
  .pro-feature {
    gap: 16px;
    padding-block: 24px;
  }
  .pro-free {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .principles-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .principles-intro {
    position: static;
  }
  .principle {
    grid-template-columns: 24px 1fr;
    gap: 14px;
    padding-block: 26px;
  }
  .principle-copy h3 {
    font-size: 20px;
  }
  #statement {
    padding-block: 40px 64px;
  }
}
@media (min-width: 1440px) {
  .hero-phone {
    max-width: 340px;
  }
  .tour-phone {
    max-width: 352px;
  }
  .product-tour {
    gap: 100px;
  }
}
@media (min-width: 1920px) {
  .hero-phone {
    max-width: 360px;
  }
  .tour-phone {
    max-width: 370px;
  }
  .tour-copy {
    max-width: 550px;
  }
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(38px, 5.4vw, 56px);
  }
  .hero-brand {
    margin-bottom: 24px;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .hero-device figcaption {
    max-width: 28ch;
  }
  .product-tour {
    gap: 36px;
  }
  .tour-tab {
    padding-left: 14px;
    gap: 10px;
  }
  .tour-tab-copy strong {
    font-size: 19px;
  }
  .tour-tab-copy > span {
    font-size: 14px;
  }
}
@media (max-width: 700px) {
  .hero {
    padding-block: 40px 52px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero h1 {
    font-size: clamp(42px, 9.8vw, 64px);
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
  .hero-phone {
    max-width: 290px;
  }
  .hero-device {
    gap: 20px;
  }
  .hero-device figcaption {
    max-width: none;
  }
  .product-tour {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }
  .tour-copy {
    display: contents;
  }
  .tour-tabs {
    position: sticky;
    top: 64px;
    z-index: 4;
    flex-direction: row;
    gap: 12px;
    background: var(--ground);
    padding-top: 8px;
    order: 0;
  }
  .tour-tab {
    grid-template-columns: 1fr;
    align-content: start;
    flex: 1;
    padding: 12px 0 16px;
    gap: 8px;
    min-width: 0;
  }
  .tour-tab::before {
    top: auto;
    bottom: -1px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
  }
  .tour-tab.is-active::before {
    transform: scaleX(1);
  }
  .tour-number {
    padding: 0;
  }
  .tour-tab-copy strong {
    font-size: 14px;
    letter-spacing: -0.02em;
  }
  .tour-tab-copy > span,
  .tour-tab > svg {
    display: none;
  }
  .tour-navigation {
    justify-content: space-between;
    margin-top: 0;
    order: 2;
  }
  .tour-note {
    margin-top: 0;
    text-align: center;
    order: 3;
  }
  .tour-error {
    order: 4;
  }
  .tour-device {
    order: 1;
    gap: 16px;
  }
  .tour-phone {
    max-width: 280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tour-tab,
  .tour-tab::before,
  .tour-tab > svg,
  .tour-cta,
  .tour-navigation button {
    transition: none;
  }
  .tour-cta:active,
  .tour-navigation button:active {
    transform: none;
  }
}

/* One continuous selection marker. Without JS the original per-tab marker remains. */
.tour-tabs {
  position: relative;
}
.tour-tabs.has-indicator .tour-tab::before {
  display: none;
}
.tour-indicator {
  position: absolute;
  pointer-events: none;
  background: var(--primary);
  border-radius: 2px;
  transform-origin: 0 0;
}
.tour-screen {
  touch-action: pan-y pinch-zoom;
  user-select: none;
  cursor: grab;
}
.tour-screen[data-dragging] {
  cursor: grabbing;
}
.tour-panel {
  position: relative;
  transform-origin: center;
  background: #000;
}
.tour-caption,
.tour-count {
  display: inline-block;
}
@media (max-width: 700px) {
  .tour-tabs {
    position: sticky;
  }
}

/* The full capture expands from its place inside the phone. */
.screen-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: auto;
}
.screen-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
}
.screen-viewer::backdrop {
  background: transparent;
}
.viewer-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  pointer-events: none;
}
.viewer-toolbar,
.viewer-footer,
.viewer-canvas {
  position: relative;
}
.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.viewer-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
}
.viewer-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ground);
  color: var(--ink);
  cursor: pointer;
}
.viewer-close:hover {
  background: var(--raised);
}
.viewer-close svg {
  width: 20px;
  height: 20px;
}
.viewer-canvas {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
.viewer-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: contain;
  transform-origin: 0 0;
  border-radius: 22px;
}
.viewer-footer {
  text-align: center;
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.viewer-caption {
  color: var(--body);
  margin: 0;
}
.viewer-original {
  color: var(--muted);
  font-size: 12px;
  text-underline-offset: 4px;
}
@media (max-width: 700px) {
  .screen-viewer {
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    gap: 14px;
  }
  .viewer-image {
    border-radius: 18px;
  }
}
