/* RiftMag (/riftmag/): the 3D scene, then the waitlist sections. The brand's black, white and red: a black page
   (--paper is the page colour, --ink the text), white type, red accents and a red waitlist band; the form card is white. System type, with Oxanium for the RIFTMAG mark as on the rest of the site. */
.rm3 {
  --black: #0b0b0c;
  --white: #f2f0ec;
  --paper: var(--black);
  --ink: var(--white);
  --dim: rgba(242, 240, 236, .58);
  --faint: rgba(242, 240, 236, .18);
  --line: rgba(242, 240, 236, .08);
  --line-strong: rgba(242, 240, 236, .2);
  --red: #ff3b30;
  --red-deep: #c8000f;
  --grad: conic-gradient(from 200deg, #ff7a5c, #ff453a 18%, #e0141f 34%, #a8000c 50%, #e0141f 66%, #ff453a 82%, #ff7a5c);
  --grad-line: linear-gradient(90deg, #ff6a4d, #ff3b30 45%, #c8000f);
  --col: 17%;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', ui-sans-serif, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
  background: var(--paper);
}
.rm3 *, .rm3 *::before, .rm3 *::after { box-sizing: border-box; }
.rm3 body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.rm3 a { color: inherit; text-decoration: none; }
.rm3 button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.rm3 p, .rm3 h1, .rm3 h2, .rm3 ul, .rm3 ol { margin: 0; padding: 0; }
.rm3 :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, .rm3 .ask-box, .feat, .hero-pre, .scroll, .tab, .dots, .strip, .quote-pre, .note, .f-note, .foot, .rail, .menu, .pad, .launch, .topbar {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* the 3D stage sits behind everything and never takes a click */
.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; display: block; }
.flat { display: none; }
.no-3d .stage { display: none; }
.no-3d .flat {
  display: block; position: fixed; z-index: 0; pointer-events: none;
  left: 50%; top: 54%; width: min(30vw, 260px); height: auto; transform: translate(-50%, -50%) rotate(-4deg);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6));
}

/* grid guides */
.guides { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.guides i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.guides i:nth-child(1) { left: var(--col); }
.guides i:nth-child(2) { left: 50%; }
.guides i:nth-child(3) { left: calc(100% - var(--col)); }

/* corner brackets */
.cb { position: absolute; width: 7px; height: 7px; border: 1px solid var(--ink); pointer-events: none; }
.cb.tl { left: -4px; top: -4px; border-right: 0; border-bottom: 0; border-top-left-radius: 3px; }
.cb.tr { right: -4px; top: -4px; border-left: 0; border-bottom: 0; border-top-right-radius: 3px; }
.cb.bl { left: -4px; bottom: -4px; border-right: 0; border-top: 0; border-bottom-left-radius: 3px; }
.cb.br { right: -4px; bottom: -4px; border-left: 0; border-top: 0; border-bottom-right-radius: 3px; }

/* top bar */
.topbar {
  position: fixed; z-index: 6; top: 0; left: 0; right: 0; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-deep); color: #fff; font-size: 11px;
  transition: transform .5s cubic-bezier(.6, 0, .2, 1);
}
.topbar b { color: #fff; font-weight: 700; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar-x { position: absolute; right: 14px; top: 0; height: 30px; width: 24px; font-size: 15px; color: #fff; }
.rm3.bar-off .topbar { transform: translateY(-100%); }

/* nav */
.nav {
  position: fixed; z-index: 5; left: 0; right: 0; top: 30px; height: 52px;
  display: grid; grid-template-columns: var(--col) 1fr 12% var(--col); align-items: stretch;
  background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: top .5s cubic-bezier(.6, 0, .2, 1);
}
.rm3.bar-off .nav { top: 0; }
.logo { display: flex; align-items: center; gap: 10px; padding-left: 22px; }
/* The IronLabs Tech mark (src/components/LogoMark.astro), as in the site header. The RiftMag mark that was here is kept
   in the power bank repo, docs/brand/riftmag-bot-mark.html (owner, 2026-11-21). */
.logo { color: var(--ink); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; display: block; }
.logo-word { font: 600 16px/1 Oxanium, var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); padding-left: 26px; font-size: 11px; }
.menu a:hover, .pad:hover { color: var(--red-deep); }
.pad { display: flex; align-items: center; justify-content: center; font-size: 11px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.launch {
  position: relative; align-self: center; justify-self: center; height: 30px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; border: 1px solid var(--line-strong);
}
.launch span { color: var(--red); font-weight: 700; letter-spacing: -.08em; }
.launch::before {
  content: ''; position: absolute; inset: -1px; border-top: 1px solid var(--red); border-left: 1px solid var(--red);
  clip-path: polygon(0 0, 62% 0, 62% 2px, 2px 2px, 2px 100%, 0 100%);
}
.launch:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }

/* right rail */
.rail { position: fixed; z-index: 4; right: 22px; top: 50%; height: 270px; transform: translateY(-50%); width: 120px; font-size: 10px; }
.rail-dots { position: absolute; right: 0; top: 0; bottom: 34px; display: flex; flex-direction: column; justify-content: space-between; }
.rail-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.rail-label {
  position: absolute; right: 14px; top: 0; display: flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: top .7s var(--ease);
}
.rail-label b { font-weight: 500; }
.dial { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--ink); position: relative; }
.dial::after { content: ''; position: absolute; left: 4px; top: 1px; width: 1px; height: 4px; background: var(--red); }
.rail[data-at='1'] .rail-label { top: 31%; }
.rail[data-at='2'] .rail-label { top: 62%; }
.rail-top { position: absolute; right: 0; bottom: 0; color: var(--dim); }

/* sections */
main { position: relative; z-index: 2; }
.sec { position: relative; height: 100vh; min-height: 560px; }

/* reveal */
.motion .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.motion .is-in .rv { opacity: 1; transform: none; }
.motion .is-in .rv:nth-of-type(2) { transition-delay: .1s; }
.motion .is-in .rv:nth-of-type(3) { transition-delay: .2s; }
.motion .is-in .rv:nth-of-type(4) { transition-delay: .3s; }
.motion .is-in .rv:nth-of-type(n+5) { transition-delay: .4s; }

/* intro: ask box */
.ask { position: absolute; left: var(--col); top: 30%; width: 24.4%; }
.ask-tab {
  display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); border-bottom: 0;
  font: 800 19px/1 var(--sans); color: var(--red); letter-spacing: -.1em; background: var(--paper);
}
.ask-box { position: relative; border: 1px solid var(--ink); padding: 12px 14px 14px; font-size: 11px; line-height: 1.45; background: color-mix(in srgb, var(--paper) 70%, transparent); }
.ask-label { color: var(--dim); margin-bottom: 6px; }
.ask-text { min-height: 2.9em; }
.caret { display: inline-block; width: 6px; height: 11px; margin-left: 3px; vertical-align: -1px; background: var(--ink); }
.motion .caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask-next { margin-top: 10px; font: 400 11px/1.45 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.ask-rule { position: absolute; top: calc(30% + 42px); left: calc(var(--col) + 24.4%); right: var(--col); height: 1px; background: var(--line-strong); transform-origin: left; }
.feat { position: absolute; top: calc(30% + 42px); right: var(--col); width: 23%; list-style: none; font-size: 11px; }
.feat li { position: relative; height: 21px; line-height: 21px; padding-left: 26%; border-bottom: 1px solid var(--line-strong); }
.feat li::before { content: ''; position: absolute; left: 18%; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.feat li.dim { color: var(--dim); }
.feat li.dim::before { background: var(--dim); }

/* intro: headline */
.hero { position: absolute; left: 2.6vw; bottom: 11%; }
.hero-pre { font-size: 12px; margin: 0 0 12px 2px; }
.hero h1 { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font: 400 clamp(42px, 5.25vw, 92px)/1 var(--sans); letter-spacing: -.035em; }
.gbox { position: relative; display: inline-block; padding: .08em .2em .14em; }
.gbox::before {
  content: ''; position: absolute; inset: 0; padding: 2px; background: var(--grad-line);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.gbox.cut::before { clip-path: polygon(0 0, 100% 0, 100% calc(100% - .42em), calc(100% - .42em) 100%, 0 100%); }
.gbox.cut::after {
  content: ''; position: absolute; right: 0; bottom: .42em; width: .594em; height: 2px; background: #c8000f;
  transform-origin: right bottom; transform: rotate(-45deg);
}
.gbox.warm::before { background: linear-gradient(90deg, #ff9a7a, #ff453a 40%, #a8000c); }
.gbox.warm { color: var(--red); }
.sub { position: absolute; left: calc(62% + 18px); bottom: 3.6%; width: min(30%, 380px); font-size: 14.5px; line-height: 1.45; }
.sub .note { margin-top: 8px; font-size: 10px; color: var(--dim); }
.scroll { position: absolute; right: 26px; bottom: 26px; display: inline-flex; gap: 8px; align-items: center; padding: 7px 10px; font-size: 11px; }
.motion .scroll .arrow { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.base-rule { position: absolute; left: 50%; right: 0; bottom: 14%; height: 1px; background: var(--line-strong); }

/* product: tab carousel */
.tabs { position: absolute; left: var(--col); right: 0; top: 17%; height: 74px; overflow: hidden; }
.tabs-strip { list-style: none; display: flex; height: 100%; padding-left: 6px; will-change: transform; }
.motion .tabs-strip { transition: transform .9s cubic-bezier(.65, 0, .2, 1); }
.tabs-strip.no-anim { transition: none !important; }
.tab {
  position: relative; flex: none; width: 33vw; height: 100%; display: grid; grid-template-columns: 68px 1fr; align-items: center;
  font-size: 12px; color: var(--faint); border: 1px solid transparent; transition: color .6s, border-color .6s, opacity .6s;
}
.tab-n { display: grid; place-items: center; height: 100%; border-right: 1px solid transparent; transition: border-color .6s; }
.tab-l { padding: 0 18px; }
.tab .cb { opacity: 0; transition: opacity .6s; }
.tab.on { color: var(--ink); border-color: var(--ink); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.tab.on .tab-n { border-right-color: var(--line-strong); color: var(--red); }
.tab.on .cb { opacity: 1; }
.tab.past { opacity: 0; }
.p-head { position: absolute; left: 2.6vw; bottom: 9%; }
.dots { font-size: 18px; letter-spacing: .1em; margin-bottom: 8px; color: var(--red); }
.p-head h2 { font: 400 clamp(30px, 3.05vw, 54px)/1.12 var(--sans); letter-spacing: -.03em; }
.obox { display: inline-block; padding: 0 .22em .06em; border: 1px solid var(--ink); border-radius: 999px; margin-bottom: 4px; }
.p-sub { position: absolute; left: calc(62% + 18px); bottom: 9%; width: min(28%, 360px); font-size: 14.5px; }

/* fronts */
.strip { position: absolute; left: var(--col); right: var(--col); top: 15%; height: 60px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line-strong); font-size: 11px; padding-left: 4px; }
.strip-tag { display: flex; align-items: center; gap: 10px; }
.br-num { position: relative; padding: 2px 7px; }
.br-num b { font-weight: 500; color: var(--red); }
.swatch { width: 36px; height: 56px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line-strong); margin-left: 12px; }
.strip-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.strip-name { font: 500 15px/1 var(--sans); text-transform: none; letter-spacing: -.01em; }
.strip-role { color: var(--dim); }
/* the strip crosses the device: paper behind its words keeps them readable over the dark plate */
.f-note, .strip-name, .strip-role { background: color-mix(in srgb, var(--paper) 90%, transparent); padding: 4px 7px; }
.quote { position: absolute; left: 2.6vw; top: 30%; width: 25vw; }
.quote-pre { font-size: 11px; color: var(--dim); margin-bottom: 14px; }
.quote-text { font: 400 clamp(20px, 2.3vw, 40px)/1.19 var(--sans); letter-spacing: -.025em; }
.try { display: inline-block; margin-top: 22px; padding-left: 12px; border-left: 1px solid var(--ink); font-size: 14px; }
.try:hover { color: var(--red-deep); border-color: var(--red); }
.arrows { position: absolute; left: 2.6vw; bottom: 10%; display: flex; gap: 10px; }
.arrows button { width: 44px; height: 44px; border: 1px solid var(--ink); font-size: 17px; background: color-mix(in srgb, var(--paper) 70%, transparent); }
.arrows button:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.ghost { position: absolute; left: calc(100% - var(--col) + 22px); top: 30%; width: calc(var(--col) - 60px); font: 400 clamp(20px, 2.3vw, 40px)/1.19 var(--sans); letter-spacing: -.025em; color: color-mix(in srgb, var(--ink) 12%, transparent); }
.f-note { position: absolute; left: calc(62% + 18px); bottom: 10%; width: min(28%, 360px); font-size: 10px; color: var(--dim); line-height: 1.6; }
.swap { transition: opacity .45s, transform .45s; }
.swap.out { opacity: 0; transform: translateY(10px); }

.foot { position: relative; height: 30vh; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 11px; text-align: center; padding: 0 16px; }
.foot-note { color: var(--dim); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13px; }
.foot-links a { text-decoration: underline; text-underline-offset: 3px; }

/* phones and small windows */
/* ---------- below the scene: progress, waitlist, questions ---------- */
.past-scene .rail { opacity: 0; pointer-events: none; }
.rail { transition: opacity .4s; }
.lower { position: relative; background: var(--paper); border-top: 1px solid var(--line-strong); }
.lower::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent calc(var(--col) - 1px), var(--line) var(--col), transparent calc(var(--col) + 1px), transparent calc(100% - var(--col) - 1px), var(--line) calc(100% - var(--col)), transparent calc(100% - var(--col) + 1px)); }
.lo { position: relative; display: grid; grid-template-columns: var(--col) minmax(0, 1fr) minmax(0, 1fr) var(--col); padding: 120px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 82px; }
.lo-head { grid-column: 2; padding-right: 48px; }
.lo-kicker { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.lo-n { color: var(--red); }
.lo h2 { font: 500 clamp(34px, 4vw, 58px)/1.02 var(--sans); letter-spacing: -.035em; }
.rm3 .lo-intro { margin-top: 22px; color: var(--dim); font-size: 16px; line-height: 1.5; max-width: 34em; }
.steps { grid-column: 3; list-style: none; border-top: 1px solid var(--line-strong); }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr auto; column-gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.step-n { grid-row: span 2; font: 500 11px/1.6 var(--mono); color: var(--dim); }
.step h3 { margin: 0; font: 500 18px/1.3 var(--sans); letter-spacing: -.01em; }
.step p { grid-column: 2; color: var(--dim); font-size: 14px; margin-top: 4px; }
.step-state { grid-column: 3; grid-row: 1; align-self: start; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 7px; border: 1px solid var(--line-strong); color: var(--dim); }
.step.is-done .step-n { color: var(--ink); }
.step.is-now .step-n, .step.is-now .step-state { color: var(--red); border-color: var(--red); }
.step.is-now::before { content: ""; position: absolute; left: -16px; top: 22px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(255, 59, 48, .15); }
.motion .step.is-now::before { animation: rm3-pulse 2s ease-in-out infinite; }
@keyframes rm3-pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 59, 48, 0); } }

.join h2 { font-size: clamp(34px, 4.4vw, 64px); }
.rm3 .facts { list-style: none; margin-top: 28px; border-top: 1px solid var(--line-strong); }
.facts li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line-strong); position: relative; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.facts li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.card { grid-column: 3; position: relative; align-self: start; padding: 34px 32px 30px;
  --paper: #ebe8e2; --ink: var(--black); --dim: rgba(11, 11, 12, .55); --line-strong: rgba(11, 11, 12, .22);
  color: var(--ink); background: #fbfaf7; border: 1px solid #fbfaf7; color-scheme: light; }
.field label { display: block; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.input { width: 100%; font: 400 18px/1.2 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 0; padding: 14px 14px; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 59, 48, .18); }
.input[aria-invalid="true"] { border-color: var(--red-deep); }
.rm3 .err { min-height: 18px; margin-top: 6px; font-size: 13px; color: #ffb3ad; }
.card .err { color: var(--red-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; margin-top: 6px; font-size: 14px; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }
.consent .err { grid-column: 2; }
.consent-note { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--dim); }
.consent-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.rm3 .submit { margin-top: 18px; width: 100%; padding: 16px 18px; background: var(--black) !important; color: #fff !important; font: 500 12px/1 var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--black) !important; transition: background .25s, color .25s; }
.submit span { color: var(--red); }
.submit:hover { background: var(--red-deep) !important; border-color: var(--red-deep) !important; }
.submit:hover span { color: #fff; }
.msg { margin-top: 12px; font-size: 14px; }
.done { text-align: left; }
.done-mark { display: block; font: 700 34px/1 var(--mono); color: var(--red); margin-bottom: 16px; }
.done-title { font: 500 28px/1.1 var(--sans); letter-spacing: -.02em; margin-bottom: 10px !important; }
.done-title:focus { outline: none; }
.preview-note, .fine { margin-top: 14px !important; font: 500 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }

.faq-list { grid-column: 3; border-top: 1px solid var(--line-strong); }
.q { border-bottom: 1px solid var(--line-strong); }
.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 500 18px/1.3 var(--sans); letter-spacing: -.01em; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--red); transition: transform .3s var(--ease); }
.q[open] summary::after { transform: rotate(45deg); }
.q p { padding: 0 40px 22px 0; color: var(--dim); font-size: 15px; line-height: 1.55; }

/* Waitlist band: red, slanted top and bottom, between the black sections. The form card stays white. */
.lo.join {
  --slant: 5vw;
  --dim: rgba(255, 255, 255, .78);
  --line-strong: rgba(255, 255, 255, .32);
  z-index: 1; margin: calc(var(--slant) * -.5) 0; padding: calc(120px + var(--slant)) 0;
  background: linear-gradient(160deg, #e0141f, #a8000c); color: #fff; border-bottom: 0;
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.lo.join .lo-n { color: #fff; }
.lo.join .facts li::before { background: #fff; }
.lo.join .gbox::before { background: #fff; }
.lo.join .gbox.cut::after { background: #fff; }
.lo.join .err { color: #fff; }
.lo.join .card .err { color: var(--red-deep); }

@media (max-width: 900px) {
  .guides i:nth-child(1), .guides i:nth-child(3), .menu, .pad, .rail, .feat, .ghost, .ask-rule, .base-rule { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .logo { padding-left: 16px; gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }
  .logo-word { font-size: 13px; letter-spacing: .1em; }
  .launch { white-space: nowrap; justify-self: end; padding: 0 10px; gap: 6px; }
  .launch { margin-right: 16px; }
  .topbar { font-size: 10px; padding: 0 40px 0 12px; text-align: center; }
  .ask { left: 16px; right: 16px; width: auto; top: 18%; }
  .hero { left: 16px; right: 16px; bottom: 21%; }
  .hero-pre, .sub, .p-sub, .p-head h2, .quote-text, .try, .quote-pre, .f-note { background: color-mix(in srgb, var(--paper) 88%, transparent); }
  .hero-pre { display: inline-block; padding: 2px 4px; }
  .gbox { background: color-mix(in srgb, var(--paper) 88%, transparent); }
  .ask-box { background: color-mix(in srgb, var(--paper) 90%, transparent); }
  .arrows button { background: var(--paper); }
  .sub { left: 16px; right: 16px; width: auto; bottom: 4%; padding: 8px 10px; }
  .scroll { display: none; }
  .tabs { left: 0; top: 14%; }
  .tabs-strip { padding-left: 16px; }
  .tab { width: 78vw; }
  .p-head { left: 16px; right: 16px; bottom: 24%; }
  .p-sub { left: 16px; right: 16px; width: auto; bottom: 5%; padding: 8px 10px; }
  .strip { left: 16px; right: 16px; top: 12%; gap: 10px; }
  .strip-role { display: none; }
  .quote { left: 16px; right: 16px; width: auto; top: auto; bottom: 26%; }
  .quote-text { padding: 4px 6px; font-size: 22px; }
  .arrows { left: auto; right: 16px; bottom: 26%; transform: translateY(calc(100% + 64px)); }
  .f-note { left: 16px; right: 16px; width: auto; bottom: 4%; padding: 6px 8px; }
  .no-3d .flat { width: 46vw; top: 50%; }
  .lower::before { display: none; }
  .lo { grid-template-columns: 1fr; padding: 72px 16px; gap: 34px; }
  .lo-head, .steps, .card, .faq-list { grid-column: 1; padding-right: 0; }
  .card { padding: 26px 18px 22px; }
  .lo.join { padding: calc(72px + var(--slant)) 16px; }
  .lo.join .gbox { background: none; }
  .step.is-now::before { left: -10px; }
}
@media (max-height: 640px) and (min-width: 901px) {
  .ask { top: 24%; }
  .feat, .ask-rule { top: calc(24% + 42px); }
}
