:root {
  --paper: oklch(0.985 0.008 58);
  --panel: oklch(0.965 0.014 49);
  --ink: oklch(0.27 0.018 38);
  --muted: oklch(0.54 0.023 39);
  --hairline: oklch(0.86 0.018 43);
  --rose: oklch(0.66 0.09 17);
  --rose-deep: oklch(0.52 0.09 17);
  --gold: oklch(0.72 0.07 72);
  --shadow: oklch(0.28 0.025 35 / 0.18);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}

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

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--paper);
  line-height: 1.8;
  overflow: hidden;
}

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

a {
  color: inherit;
}

.page-scroll-capture {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  opacity: 0.001;
  pointer-events: auto;
}

.mobile-page-frame {
  display: none;
}

.desktop-lp {
  position: fixed;
  inset: 0;
  z-index: 3;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(350px, 430px) minmax(280px, 430px);
  gap: clamp(24px, 3.8vw, 64px);
  justify-content: center;
  align-items: center;
  padding: clamp(22px, 3vw, 46px);
  pointer-events: none;
}

.desktop-rail {
  min-width: 0;
  height: min(760px, calc(100svh - 72px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.desktop-rail--left {
  padding-left: 0;
  justify-content: flex-start;
  gap: clamp(120px, 16vh, 190px);
}

.desktop-rail--right {
  padding-right: 0;
  justify-content: center;
}

.brand-lockup {
  font-family: var(--serif);
}

.brand-name {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
}

.brand-sub {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
}

.rail-copy {
  max-width: 420px;
}

.rail-kicker {
  margin: 0 0 1.1rem;
  color: var(--rose-deep);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.rail-copy h1 {
  margin: 0 0 1.3rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.2vw, 3.7rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rail-copy p:last-child {
  max-width: 35ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.15vw, 1rem);
  line-height: 2.05;
}

.rail-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 24px 0 28px;
  border: 1px solid oklch(0.72 0.08 17);
  border-radius: 999px;
  background: var(--rose);
  color: oklch(0.99 0.006 58);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 40px oklch(0.56 0.11 17 / 0.22);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

.rail-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px oklch(0.56 0.11 17 / 0.28);
}

.phone-stage {
  width: 100%;
  height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  --device-h: min(900px, calc(100svh - 44px));
  pointer-events: auto;
}

.phone-stage::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 50% auto auto 50%;
  width: min(68vw, 680px);
  aspect-ratio: 1;
  border: 1px solid oklch(0.79 0.035 52 / 0.48);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.phone-clip-mask {
  display: none;
}

.phone-device {
  width: min(100%, 430px);
  height: min(900px, calc(100svh - 44px));
  min-height: 620px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-rows: 34px 1fr 28px;
  border: 10px solid oklch(0.12 0.008 35);
  border-radius: 44px;
  background: transparent;
  padding: 0;
  box-shadow:
    0 28px 90px var(--shadow),
    inset 0 0 0 1px oklch(0.98 0.004 58 / 0.12);
  pointer-events: auto;
  overflow: hidden;
}

.device-top,
.device-bottom {
  display: grid;
  place-items: center;
  background: oklch(0.12 0.008 35);
}

.device-speaker {
  width: 74px;
  height: 6px;
  border-radius: 99px;
  background: oklch(0.07 0.006 35);
  box-shadow: inset 0 1px 1px oklch(0.48 0.006 35 / 0.35);
}

.device-home {
  width: 104px;
  height: 4px;
  border-radius: 99px;
  background: oklch(0.76 0.005 58 / 0.42);
}

.phone-screen-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  pointer-events: auto;
}

.photo-stack {
  position: relative;
  height: 300px;
}

.rail-photo {
  position: absolute;
  overflow: hidden;
  border: 1px solid oklch(0.95 0.006 58 / 0.7);
  box-shadow: 0 22px 52px oklch(0.32 0.025 35 / 0.18);
}

.rail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail-photo--large {
  right: 24px;
  top: 0;
  width: min(290px, 72%);
  aspect-ratio: 4 / 5;
  border-radius: 22px;
}

.rail-photo--large img {
  object-position: 58% 22%;
}

.rail-photo--small {
  left: 0;
  bottom: -18px;
  width: min(190px, 48%);
  aspect-ratio: 1;
  border-radius: 999px;
}

.trust-list {
  display: grid;
  gap: 18px;
  max-width: 360px;
  margin: 0 0 0 auto;
}

.trust-list div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.trust-list dt {
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.trust-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.85;
}

@media (max-width: 1020px) {
  body {
    overflow: hidden;
  }

  .page-scroll-capture {
    display: none;
  }

  .mobile-page-frame {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--paper);
  }

  .desktop-lp {
    display: none;
  }
}

@media (max-height: 720px) and (min-width: 1021px) {
  .desktop-rail {
    height: calc(100svh - 44px);
  }

  .phone-device {
    min-height: 0;
  }
}
