:root {
  /* Primary: Y2K Orange / Coral */
  --color-primary: #EE7F6F;
  --color-secondary: #FF8C73;
  --color-accent-peach: #F1937E;
  --color-accent-light-coral: #F3A594;

  /* Neutral */
  --color-bg: #F2F2F7;
  --color-bg-card: #FFFFFF;
  --color-bg-login: #D6D4CD;

  /* Borders and muted UI */
  --color-border: #E5E5EA;
  --color-warm-gray: #A39E9B;

  /* Text */
  --color-text: #1C1C1E;
  --color-text-muted: #4A4A4F;

  /* Dark UI */
  --color-apple-black: #1E1E1E;

  /* Fonts */
  --font-sans: "Noto Sans JP", system-ui, sans-serif;
  --font-en: "Inter", "Helvetica Neue", system-ui, sans-serif;

  /* Layout */
  --container-width: 1120px;
  --container-padding: 20px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-card: 0 18px 60px rgba(28, 28, 30, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - (var(--container-padding) * 2), var(--container-width));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section-heading {
  margin: 0 0 16px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

#workflow .section-heading,
#workflow .section-lead,
#features .section-heading,
#features .section-lead,
#cta .section-heading,
#cta .section-lead {
  text-align: center;
}

#workflow .section-heading,
#features .section-heading,
#cta .section-heading {
  font-weight: 600;
  font-size: clamp(1.6rem, 4.6vw, 2.6rem);
  letter-spacing: -0.04em;
}

@media (min-width: 768px) {
  #workflow .section-heading,
  #features .section-heading,
  #cta .section-heading {
    white-space: nowrap;
  }
}

.cta {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(238, 127, 111, 0.1));
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.workflow-list {
  display: grid;
  gap: 56px;
  margin-top: 48px;
}

.workflow-item {
  display: grid;
  gap: 32px;
  align-items: center;
}

.workflow-item__copy {
  display: grid;
  gap: 14px;
}

.workflow-item__number {
  color: var(--color-primary);
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.workflow-item h3 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.workflow-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
}

.workflow-item__visual {
  position: relative;
  width: min(72%, 280px);
  margin: 0 auto;
}

.workflow-item__visual .phone-frame {
  position: relative;
  z-index: 1;
}

.workflow-item__blob {
  position: absolute;
  inset: -8% -10%;
  z-index: 0;
  border-radius: 42% 58% 54% 46% / 52% 42% 58% 48%;
  background: radial-gradient(circle at 30% 30%, #FF8C73 0%, #EE7F6F 70%, #E86A56 100%);
  opacity: 0.45;
  pointer-events: none;
}

.workflow-item:nth-child(1) .workflow-item__blob {
  inset: -12% -14%;
}

.workflow-item:nth-child(2) .workflow-item__blob {
  inset: -7% -9%;
  border-radius: 56% 44% 48% 52% / 46% 56% 44% 54%;
}

.workflow-item:nth-child(3) .workflow-item__blob {
  inset: -5% -7%;
  border-radius: 58% 42% 46% 54% / 42% 58% 48% 52%;
}

.workflow-item:nth-child(4) .workflow-item__blob {
  inset: -10% -12%;
  border-radius: 48% 52% 56% 44% / 54% 46% 52% 48%;
}

@media (min-width: 768px) {
  .workflow-list {
    gap: 96px;
    margin-top: 64px;
  }

  .workflow-item {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .workflow-item:nth-child(even) .workflow-item__copy {
    order: 2;
  }

  .workflow-item__visual {
    width: min(78%, 320px);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg-card);
  box-shadow: 0 12px 28px rgba(238, 127, 111, 0.28);
}

.button-primary:hover {
  color: var(--color-bg-card);
}

.button-secondary {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  color: var(--color-text);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(238, 127, 111, 0.12);
  color: var(--color-primary);
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
}

.text-muted {
  color: var(--color-text-muted);
}

.font-en {
  font-family: var(--font-en);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 229, 234, 0.72);
  background: rgba(242, 242, 247, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand__name {
  display: block;
  height: 20px;
  width: auto;
}

.site-nav {
  position: fixed;
  inset: 68px 16px auto;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover {
  background: rgba(238, 127, 111, 0.1);
  color: var(--color-primary);
}

.site-nav--simple {
  position: static;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-nav--simple a {
  padding: 8px 10px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-card);
  color: var(--color-text);
}

.hero {
  overflow: hidden;
  padding: 16px 0 32px;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__copy {
  display: grid;
  gap: 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.hero__lead {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.1rem, 4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.65;
}

.hero__description {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.hero__actions .download-badge img {
  height: 40px;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.download-badge img {
  height: 56px;
  width: auto;
  display: block;
}

a.download-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.download-badge--coming-soon {
  position: relative;
  cursor: default;
}

.download-badge--coming-soon img {
  filter: grayscale(100%);
  opacity: 0.5;
}

.download-badge__coming-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.92);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.hero__visual {
  position: relative;
  min-height: 580px;
}

.hero__blob {
  position: absolute;
  inset: 26px 0 auto;
  height: 460px;
  border-radius: 42% 58% 54% 46% / 52% 42% 58% 48%;
  background: radial-gradient(circle at 30% 30%, #FF8C73 0%, #EE7F6F 70%, #E86A56 100%);
  opacity: 0.85;
}

.phone-stack {
  position: relative;
  width: 100%;
  height: 520px;
}

.phone-frame {
  overflow: hidden;
  border: 8px solid var(--color-apple-black);
  border-radius: 38px;
  background: var(--color-bg-card);
  box-shadow: 0 24px 70px rgba(28, 28, 30, 0.22);
}

.phone-stack .phone-frame {
  position: absolute;
  width: 52%;
  max-width: 230px;
  margin: 0;
  transition: transform 240ms ease;
}

.phone-stack .phone-frame:nth-child(1) {
  left: 4%;
  top: 0;
  transform: rotate(-7deg);
  z-index: 2;
}

.phone-stack .phone-frame:nth-child(2) {
  right: 4%;
  top: 60px;
  transform: rotate(7deg);
  z-index: 1;
}

.phone-frame img {
  width: 100%;
  height: auto;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.screenshot-strip .phone-frame {
  border-width: 7px;
  border-radius: 26px;
}

.screenshot-strip .phone-frame:nth-child(2) {
  margin-top: 0;
}

.pillars-grid,
.features-grid,
.pricing-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.pillar-card,
.feature-card,
.price-card {
  padding: 24px;
}

.pillar-card {
  display: grid;
  gap: 12px;
}

.pillar-card__number {
  color: var(--color-primary);
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pillar-card h3,
.feature-card h3,
.price-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

.pillar-card p,
.feature-card p,
.price-card p {
  margin: 0;
  color: var(--color-text-muted);
}

.feature-card {
  display: grid;
  gap: 12px;
}

.feature-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: rgba(238, 127, 111, 0.12);
  color: var(--color-primary);
  font-weight: 900;
}

.pricing {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(238, 127, 111, 0.08));
}

.price-card {
  position: relative;
  display: grid;
  gap: 18px;
}

.price-card--featured {
  border-color: rgba(238, 127, 111, 0.45);
}

.price-card__badge {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-bg-card);
  font-size: 0.78rem;
  font-weight: 800;
}

.price-card__price {
  margin: 0;
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.price-card__price span {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--color-primary);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.site-footer__grid {
  display: grid;
  gap: 32px;
}

.site-footer h2,
.site-footer h3,
.site-footer p {
  margin: 0;
}

.site-footer__brand {
  display: grid;
  gap: 10px;
}

.site-footer__logo {
  display: block;
  height: 28px;
  width: auto;
}

.footer-nav {
  display: grid;
  gap: 24px;
}

.footer-nav h3 {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a,
.site-footer__bottom {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.site-footer__bottom {
  display: grid;
  gap: 6px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.document-hero {
  padding: 56px 0 28px;
}

.document-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 10vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.document-hero p {
  margin: 0;
  color: var(--color-text-muted);
}

.document-content {
  margin-bottom: 72px;
  padding: 28px;
}

.document-content h2 {
  margin: 44px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  font-size: 1.45rem;
  line-height: 1.35;
}

.document-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.document-content h3 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
}

.document-content p,
.document-content li {
  color: var(--color-text);
}

.document-content p {
  margin: 0 0 14px;
}

.document-content ul,
.document-content ol {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 1.4em;
}

.document-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.document-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.document-content th,
.document-content td {
  padding: 12px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.document-content th {
  background: rgba(238, 127, 111, 0.08);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-group {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.faq-group h2 {
  margin: 0;
  font-size: 1.35rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--color-primary);
  font-family: var(--font-en);
  font-weight: 900;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item__body {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
  color: var(--color-text-muted);
}

.faq-item__body p,
.faq-item__body ul {
  margin: 0;
}

.faq-item__body ul {
  padding-left: 1.2em;
}

@media (min-width: 768px) {
  :root {
    --container-padding: 32px;
  }

  .section {
    padding: 104px 0;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-toggle {
    display: none;
  }

  .brand__name {
    height: 26px;
  }

  .hero {
    padding: 24px 0 48px;
  }

  #workflow {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr);
    column-gap: 56px;
  }

  .phone-stack {
    height: 600px;
  }

  .phone-stack .phone-frame {
    max-width: 260px;
  }

  .screenshot-strip {
    grid-template-columns: repeat(3, minmax(0, 220px));
    justify-content: center;
  }

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

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

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

  .document-hero {
    padding: 84px 0 36px;
  }

  .document-content {
    padding: 44px;
  }
}
