:root {
  --bg: #f4f9ff;
  --bg-soft: #eef6ff;
  --surface: #ffffff;
  --surface-subtle: rgba(255, 255, 255, 0.82);
  --surface-accent: #f3f8ff;
  --line: #d8e6f7;
  --line-strong: #bdd4f0;
  --text: #15304d;
  --text-soft: #55708d;
  --text-inverse: #f7fbff;
  --brand: #4f99f9;
  --brand-deep: #2d6fbc;
  --brand-strong: #2b7de9;
  --accent-good: #2db36c;
  --accent-soft: #ecf5ff;
  --shadow: 0 20px 48px rgba(47, 100, 170, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1120px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(213, 237, 253, 0.95) 0%, transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(168, 212, 253, 0.62) 0%, transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -44px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(83, 128, 178, 0.16);
  backdrop-filter: blur(14px);
  background: rgba(246, 250, 255, 0.88);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.header-nav {
  display: none;
  gap: 18px;
  flex-wrap: wrap;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.hero,
.section,
.section-tone,
.section-cta {
  padding: 72px 0;
}

.hero {
  padding-top: 38px;
}

.hero-grid,
.section-grid {
  display: grid;
  gap: 28px;
}

.hero-copy,
.hero-visual,
.section-heading,
.section-content {
  min-width: 0;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.hero h1,
.section-heading h2,
.section-head h2,
.cta-panel h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.9vw, 3.85rem);
  max-width: none;
  white-space: nowrap;
}

.hero-title-line {
  display: block;
  width: max-content;
}

.section-heading h2,
.section-head h2,
.cta-panel h2 {
  font-size: clamp(1.9rem, 5vw, 3.3rem);
  max-width: 16ch;
}

.hero-lead,
.hero-note,
.info-card p,
.swipe-rule p,
.metaphor-card p,
.feature-card p,
.assurance-card p,
.usecase-card p,
.flow-card p,
.price-card p,
.store-card p,
.support-lead,
.faq-item p,
.cta-copy {
  margin: 0;
  line-height: 1.75;
  color: var(--text-soft);
}

.hero-lead {
  margin-top: 18px;
  font-size: 1.05rem;
  color: #31577f;
  max-width: none;
  white-space: nowrap;
}

.hero-lead-line,
.hero-note-line {
  display: block;
  width: max-content;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(79, 153, 249, 0.08);
}

.hero-note {
  margin-top: 18px;
  max-width: none;
  white-space: nowrap;
}

.cta-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.button-primary,
.button-secondary {
  min-height: 52px;
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 800;
  text-align: center;
}

.button-primary {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #5da9ff 0%, #347fe8 100%);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(62, 140, 244, 0.22);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-deep);
}

.button-secondary--light {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-inverse);
}

.hero-visual {
  display: grid;
  gap: 14px;
}

.phone-stage {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
}

.phone-shell {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 44px;
  background: linear-gradient(180deg, #1a2431 0%, #111821 100%);
  box-shadow:
    0 28px 80px rgba(33, 62, 96, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 34%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(4, 4, 4, 0.88);
  z-index: 2;
}

.hero-video {
  width: 100%;
  aspect-ratio: 1166 / 2418;
  object-fit: cover;
  border-radius: 30px;
  background: #000;
}

.gesture-card {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 18px;
  color: #fff;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.gesture-card strong {
  font-size: 0.92rem;
}

.gesture-card span {
  font-size: 0.78rem;
  opacity: 0.86;
}

.gesture-card--left {
  top: 10%;
  left: -2%;
  background: rgba(45, 179, 108, 0.92);
  transform: rotate(-6deg);
}

.gesture-card--right {
  right: -2%;
  bottom: 14%;
  background: rgba(79, 153, 249, 0.92);
  transform: rotate(7deg);
}

.section {
  background: transparent;
}

.section-tone {
  background: rgba(255, 255, 255, 0.48);
}

.section-content,
.cards-compact,
.method-grid,
.feature-grid,
.assurance-grid,
.usecase-grid,
.pricing-stack,
.pricing-grid,
.store-grid,
.faq-list {
  display: grid;
  gap: 14px;
}

.info-card,
.swipe-rule,
.feature-card,
.assurance-card,
.usecase-card,
.price-card,
.store-card,
.support-shell,
.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  padding: 22px;
  box-shadow: var(--shadow);
}

.swipe-rule {
  background: linear-gradient(180deg, #f9fcff 0%, #edf6ff 100%);
}

.swipe-rule h3,
.feature-card h3,
.price-card h3,
.store-card h3 {
  margin: 14px 0 8px;
  font-size: 1.4rem;
}

.swipe-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swipe-rule--accept .swipe-chip {
  background: rgba(45, 179, 108, 0.14);
  color: #168950;
}

.swipe-rule--later .swipe-chip {
  background: rgba(79, 153, 249, 0.14);
  color: #2d6fbc;
}

.feature-card,
.price-card,
.store-card {
  background: #ffffff;
}

.feature-card h3,
.usecase-card span {
  color: var(--brand-deep);
}

.assurance-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.assurance-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  text-align: center;
  background: linear-gradient(180deg, #f9fcff 0%, #edf6ff 100%);
}

.assurance-card p {
  font-weight: 800;
  color: var(--brand-deep);
}

.usecase-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.price-card--accent {
  border-color: #c5dcfb;
  background: linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%);
}

.cards-compact p,
.swipe-rule p,
.feature-card p,
.price-card p,
.store-card p,
.faq-item p,
.usecase-card p {
  max-width: none;
}

.store-badge-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
}

.store-badge-link.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
}

.store-badge-link img {
  height: 42px;
  width: auto;
  display: block;
}

.store-contact-link {
  margin-top: 18px;
}

.document-card {
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
  border-color: #d9e8fb;
  box-shadow: 0 12px 28px rgba(62, 140, 244, 0.08);
}

.document-copy p,
.document-meta {
  color: #4d6075;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.support-shell .section-head h2 {
  max-width: none;
  white-space: nowrap;
}

.support-shell {
  padding: 28px;
}

.support-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.form-field em {
  font-style: normal;
  color: #cf4f56;
  font-size: 0.82rem;
  margin-left: 6px;
}

.form-field small {
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-left: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(79, 153, 249, 0.2);
  border-color: var(--brand);
}

.form-field--full {
  grid-column: 1 / -1;
}

.support-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.support-status {
  margin: 0;
  min-height: 1.5em;
  color: var(--text-soft);
}

.support-status[data-state="success"] {
  color: #19844c;
}

.support-status[data-state="error"] {
  color: #cf4f56;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.faq-item p {
  margin-top: 10px;
}

.section-cta {
  color: var(--text-inverse);
  background:
    radial-gradient(circle at left top, rgba(168, 212, 253, 0.24), transparent 34%),
    linear-gradient(135deg, #2d6fbc 0%, #183d6b 100%);
}

.section-cta .section-label,
.section-cta .cta-panel h2,
.section-cta .cta-copy {
  color: var(--text-inverse);
}

.cta-panel {
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(10, 37, 74, 0.22);
}

.footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(83, 128, 178, 0.14);
  background: rgba(247, 251, 255, 0.94);
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.footer__brand {
  margin: 0;
  font-weight: 800;
  white-space: nowrap;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
}

.footer__links li {
  white-space: nowrap;
}

.footer__links a {
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 111, 188, 0.22);
}

.footer small {
  color: var(--text-soft);
  white-space: nowrap;
  text-align: right;
}

body.photowake-legal {
  background:
    radial-gradient(circle at 12% 8%, rgba(213, 237, 253, 0.95) 0%, transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(168, 212, 253, 0.85) 0%, transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%);
}

.photowake-legal .legal-header {
  border-color: #cfe1f8;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
  box-shadow: 0 10px 24px rgba(79, 153, 249, 0.08);
}

.photowake-legal .legal-header p,
.photowake-legal .legal-body p,
.photowake-legal .legal-body li,
.photowake-legal .legal-kv dd {
  color: #4d6075;
}

.photowake-legal .legal-body {
  border-color: #d9e8fb;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(62, 140, 244, 0.08);
}

.photowake-legal .legal-body h2,
.photowake-legal .legal-kv dt {
  color: #235691;
}

.photowake-legal .back-link {
  border-bottom-color: #90bdf0;
  color: #2a5b91;
}

@media (min-width: 720px) {
  .hero,
  .section,
  .section-tone,
  .section-cta {
    padding: 88px 0;
  }

  .header-nav {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: minmax(520px, 1.34fr) minmax(240px, 0.66fr);
    align-items: center;
    gap: 20px;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .section-heading {
    max-width: 100%;
  }

  .section-heading h2 {
    max-width: none;
    white-space: nowrap;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual {
    justify-items: end;
  }

  .phone-stage {
    width: min(100%, 300px);
    margin-inline: 0;
  }

  .method-grid,
  .feature-grid,
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-compact,
  .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assurance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

}

@media (min-width: 980px) {
  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    grid-template-columns: minmax(700px, 1.42fr) minmax(250px, 0.58fr);
    gap: 28px;
  }

  .phone-stage {
    width: min(100%, 300px);
  }

  .cards-compact,
  .feature-grid,
  .usecase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
