/* Landing page (/ and /en/). Builds on site.css. */

/* Section heads sit on a folder tab, like a browser tab on its strip. */
.tabhead {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 0 0 2rem;
  border-bottom: 1.5px solid var(--ink);
}

.tabhead span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.4rem;
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--card);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: -1.5px;
}

.tabhead span::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ai);
}

.tabhead.shu span::before {
  background: var(--shu);
}

section {
  padding-top: clamp(4rem, 10vw, 7rem);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  padding-top: clamp(2.5rem, 7vw, 5rem);
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 999px;
  padding: 0.3rem 0.8rem 0.3rem 0.65rem;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--shu);
  box-shadow: 0 0 0 0 rgba(217, 67, 30, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 67, 30, 0.45);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(217, 67, 30, 0);
  }
}

.hero h1 {
  margin: 1.4rem 0 1.25rem;
  font-weight: 900;
  font-size: clamp(2.9rem, 10.5vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-feature-settings: "palt" 1;
}

.hero h1 .line {
  display: block;
}

.hero h1 em {
  font-style: normal;
  color: var(--ai);
  position: relative;
  white-space: nowrap;
}

/* A hand-drawn underline under the moving word. */
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.1em;
  bottom: 0.02em;
  height: 0.12em;
  background: var(--shu);
  border-radius: 999px;
  transform-origin: left;
  transform: scaleX(0) rotate(-1.2deg);
  animation: draw 0.9s 0.5s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}

@keyframes draw {
  to {
    transform: scaleX(1) rotate(-1.2deg);
  }
}

:lang(en) .hero h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: clamp(2.8rem, 9.5vw, 5.4rem);
}

.hero .one-liner {
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
}

.hero .sub {
  margin: 0 0 2rem;
  color: var(--ink-2);
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.store-soon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.45rem 1.3rem 0.5rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.25;
}

.store-soon small {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-soon b {
  font-size: 1.05rem;
}

/* ---------- The phone ---------- */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 1rem;
}

/* Big ghost mark behind the phone. */
.stage::before {
  content: "";
  position: absolute;
  inset: 6% 2% 4%;
  border-radius: 46% 54% 40% 60% / 52% 44% 56% 48%;
  background:
    repeating-linear-gradient(-35deg, transparent 0 11px, rgba(36, 57, 92, 0.07) 11px 12px),
    var(--paper-2);
  transform: rotate(-4deg);
}

.phone {
  position: relative;
  width: min(19.5rem, 76vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 2.6rem;
  background: var(--ink);
  padding: 0.62rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 30px 60px -20px rgba(23, 20, 15, 0.45),
    0 12px 24px -12px rgba(23, 20, 15, 0.35);
  transform: rotate(2.5deg);
  animation: rise 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(5deg);
  }
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 2.05rem;
  overflow: hidden;
  background: #fff;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--ink);
}

.ph-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 1.3rem 0.2rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
}

.ph-url {
  margin: 0.25rem 0.7rem 0.6rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: #f1eee8;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-page {
  padding: 0 0.85rem;
}

.ph-hotel {
  height: 6.4rem;
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 78% 30%, #f7c873 0 9%, transparent 10%),
    linear-gradient(180deg, transparent 58%, #2c4a6e 58% 64%, #1f3550 64%),
    linear-gradient(180deg, #f6d8c4, #f0b998 70%);
  position: relative;
  overflow: hidden;
}

.ph-hotel::after {
  content: "";
  position: absolute;
  left: 14%;
  bottom: 36%;
  width: 34%;
  height: 46%;
  background:
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 255, 255, 0.55) 7px 10px),
    #3a2f2a;
  border-radius: 3px 3px 0 0;
}

.ph-title {
  margin: 0.6rem 0 0.15rem;
  font-weight: 800;
  font-size: 0.86rem;
}

.ph-rows {
  margin: 0.45rem 0 0.7rem;
  border: 1px solid #e7e2d8;
  border-radius: 0.6rem;
}

.ph-rows div {
  display: flex;
  justify-content: space-between;
  padding: 0.32rem 0.6rem;
}

.ph-rows div + div {
  border-top: 1px solid #efebe3;
}

.ph-rows span {
  color: var(--ink-3);
}

.ph-btn {
  position: relative;
  display: block;
  text-align: center;
  padding: 0.6rem;
  border-radius: 0.6rem;
  background: #2b2520;
  color: #fff;
  font-weight: 800;
}

/* The agent's pointer: an 藍 ring that travels to the button. */
.ph-cursor {
  position: absolute;
  left: 62%;
  top: 22%;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 2.5px solid var(--ai);
  background: rgba(36, 57, 92, 0.16);
  animation: cursor 9s cubic-bezier(0.55, 0, 0.25, 1) infinite;
  z-index: 2;
}

@keyframes cursor {
  0% {
    left: 62%;
    top: 22%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  24%,
  36% {
    left: 44%;
    top: 63.5%;
    transform: scale(1);
  }
  30% {
    transform: scale(0.82);
  }
  44%,
  100% {
    left: 44%;
    top: 63.5%;
    opacity: 0;
  }
}

/* 小窓: the request's small window at the screen edge. */
.ph-mini {
  position: absolute;
  right: 0.45rem;
  top: 6.2rem;
  width: 3.9rem;
  white-space: nowrap;
  border-radius: 0.6rem;
  background: var(--card);
  border: 1.5px solid var(--ai);
  padding: 0.3rem;
  box-shadow: 0 6px 14px -6px rgba(23, 20, 15, 0.4);
  z-index: 2;
}

.ph-mini i {
  display: block;
  height: 2.6rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(180deg, #f0b998 0 45%, #fff 45% 60%, #e7e2d8 60% 66%, #fff 66% 74%, #2b2520 74% 86%, #fff 86%);
}

.ph-mini b {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.5rem;
  color: var(--ai);
}

.ph-mini b::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--ai);
  animation: mini 9s steps(1) infinite;
}

@keyframes mini {
  0%,
  36% {
    background: var(--ai);
  }
  38%,
  74% {
    background: var(--shu);
  }
  76% {
    background: var(--ai);
  }
}

/* The approval sheet slides up and waits for you. */
.ph-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.95rem 1.1rem;
  background: #fff;
  border-radius: 1.2rem 1.2rem 0 0;
  box-shadow: 0 -12px 30px -10px rgba(23, 20, 15, 0.35);
  transform: translateY(105%);
  animation: sheet 9s cubic-bezier(0.3, 0.7, 0.2, 1) infinite;
  z-index: 3;
}

.ph-sheet::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 0.22rem;
  margin: 0 auto 0.6rem;
  border-radius: 999px;
  background: #ddd6ca;
}

@keyframes sheet {
  0%,
  36% {
    transform: translateY(105%);
  }
  44%,
  76% {
    transform: translateY(0);
  }
  84%,
  100% {
    transform: translateY(105%);
  }
}

.ph-sheet .k {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shu-ink);
}

.ph-sheet h3 {
  margin: 0.1rem 0 0.45rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.ph-sheet dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.6rem;
  margin: 0 0 0.75rem;
}

.ph-sheet dt {
  color: var(--ink-3);
}

.ph-sheet dd {
  margin: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-sheet q {
  quotes: "「" "」";
}

:lang(en) .ph-sheet q {
  quotes: "“" "”";
}

.ph-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.45rem;
}

.ph-actions span {
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.6rem;
  font-weight: 800;
  border: 1.5px solid var(--ink);
}

.ph-actions .allow {
  position: relative;
  background: var(--shu);
  border-color: var(--shu);
  color: #fff;
  overflow: hidden;
}

/* Your tap on 許可. */
.ph-actions .allow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin: -0.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: tap 9s ease-out infinite;
}

@keyframes tap {
  0%,
  66% {
    transform: scale(0);
    opacity: 1;
  }
  74% {
    transform: scale(14);
    opacity: 0;
  }
  100% {
    transform: scale(14);
    opacity: 0;
  }
}

.stage figcaption {
  position: relative;
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--ink-3);
  text-align: center;
  max-width: 20rem;
}

/* ---------- What it does ---------- */

.does {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  counter-reset: does;
}

@media (min-width: 52rem) {
  .does {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.does li {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.6rem;
  box-shadow: 5px 5px 0 var(--ink);
}

.does li:nth-child(3) {
  box-shadow: 5px 5px 0 var(--shu);
}

.does .n {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ai);
}

.does li:nth-child(3) .n {
  color: var(--shu);
}

.does h3 {
  margin: 0.8rem 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.45;
}

.does p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.does .say {
  display: inline-block;
  margin: 0.15rem 0;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  background: var(--ai-soft);
  color: var(--ai);
  font-weight: 700;
}

/* ---------- Approval statement ---------- */

.approval {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

@media (min-width: 52rem) {
  .approval {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.approval blockquote {
  margin: 0;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  line-height: 1.75;
  font-weight: 700;
}

:lang(en) .approval blockquote {
  line-height: 1.55;
}

.approval blockquote p {
  margin: 0 0 0.9rem;
}

.approval blockquote p:last-child {
  margin: 0;
}

.approval mark {
  background: none;
  color: #ffb39c;
  box-shadow: inset 0 -0.18em 0 rgba(217, 67, 30, 0.55);
}

.approval .modes {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: #cfc8ba;
}

/* 朱の判: the approval stamp. */
.stamp {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  border: 5px solid var(--shu);
  color: var(--shu);
  font-weight: 900;
  font-size: 2.3rem;
  letter-spacing: 0.08em;
  line-height: 1;
  transform: rotate(-12deg);
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px rgba(217, 67, 30, 0.6);
  opacity: 0.92;
  mask-image: radial-gradient(circle at 30% 70%, #000 60%, rgba(0, 0, 0, 0.75) 61%, #000 75%);
}

.stamp span {
  display: block;
  text-align: center;
}

.stamp small {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  margin-top: 0.4rem;
}

:lang(en) .stamp {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0;
}

/* ---------- Needs & privacy ---------- */

.two {
  display: grid;
  gap: clamp(3rem, 7vw, 4rem);
}

@media (min-width: 52rem) {
  .two {
    grid-template-columns: 1fr 1fr;
  }
}

.two h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.35;
  font-weight: 900;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

:lang(en) .two h2 {
  font-family: var(--display);
  font-weight: 400;
}

.need {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.need-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
}

.need-list li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

:lang(en) .need-list li {
  grid-template-columns: 8.5rem 1fr;
}

.need-list b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.25rem;
}

.more {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
  font-weight: 700;
}

.more::after {
  content: "→";
}

/* ---------- Store ---------- */

.store {
  text-align: center;
}

.store h2 {
  font-weight: 900;
  text-wrap: balance;
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}

:lang(en) .store h2 {
  font-family: var(--display);
  font-weight: 400;
}

.store p {
  margin: 0 auto 1.75rem;
  color: var(--ink-2);
  max-width: 32rem;
}

.store .cta-row {
  justify-content: center;
}

/* Load-in: stagger the hero copy. */
.hero .reveal {
  animation: up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.hero .reveal:nth-child(3) {
  animation-delay: 0.16s;
}

.hero .reveal:nth-child(4) {
  animation-delay: 0.24s;
}

.hero .reveal:nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-sheet {
    animation: none;
    transform: none;
  }

  .ph-cursor {
    display: none;
  }
}
