/* Color palette — mirrors app/src/theme/tokens.ts (single source of truth) */
:root {
  --washi: #F6F2E8;
  --washi-raised: #E9E2D3;
  --washi-sink: #CFCBB6;
  --washi-alt: #E9E2D3;
  --sumi: #1A1A1A;
  --sumi-soft: #6D6A63;
  --seal: #C0392B;
  --seal-deep: #C0392B;
  --stroke-ref: #8B8680;
  --guide-line: #8B8680;
  --text-muted: #6D6A63;
  --text-light: #CFCBB6;

  /* Web-only: tokens.ts has no border colour (canvas guides are not hairlines) */
  --hairline: #CFCBB6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sumi);
  background: var(--washi);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1.5rem 0;
}

a {
  color: var(--seal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--seal-deep);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* Container & sections */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: 100px 0;
}

section.intro,
section.checks,
section.learning,
section.faq,
section.quote {
  background: var(--washi);
}

section.content-dark {
  background: var(--sumi);
  color: var(--washi);
  padding: 100px 0;
}

section.pricing {
  background: var(--washi-alt);
  padding: 100px 0;
}

section.footer-cta {
  text-align: center;
  padding: 100px 0;
}

/* Navigation */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(246, 242, 232, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brandmark {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.brandname {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-right a {
  color: var(--sumi);
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-right a:hover:not(.btn-primary) {
  color: var(--seal);
}

.nav-right .btn-primary {
  color: var(--washi);
  background: var(--sumi);
  padding: 10px 20px;
  border-radius: 4px;
}

.nav-right .btn-primary:hover {
  background: var(--seal);
}

/* Language bar */
.langbar {
  text-align: center;
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--washi);
}

.langbar strong {
  color: var(--sumi);
}

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

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 80px 0;
}

.hero-text {
  max-width: 500px;
}

.hero-text .overline {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
  text-transform: uppercase;
}

.hero-text h1 {
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text h1 span {
  color: var(--seal);
}

.subheader {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 450px;
}

.cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Phone placeholder */
.phone-placeholder {
  width: 260px;
  height: 595px;
  border-radius: 30px;
  border: 6px solid var(--sumi);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(26, 26, 26, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--washi-raised), var(--washi-sink));
  animation: fudeFloat 6s ease-in-out infinite;
}

.phone-placeholder.small {
  width: 260px;
  height: 595px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.phone-placeholder.medium {
  width: 240px;
  height: 550px;
  border-radius: 28px;
  border: 6px solid var(--sumi-soft);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

.placeholder-content {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

@keyframes fudeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 0;
}

.intro p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--sumi);
}

.overline {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.overline.light {
  color: var(--text-light);
}

.section-desc {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px auto;
  color: var(--text-muted);
}

/* Checks grid */
.checks {
  background: var(--washi-alt);
  padding: 70px 0;
}

.checks > h2,
.checks > .section-desc,
.checks > .overline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 32px;
  max-width: 1100px;
  margin: 0 auto 48px auto;
}

.check-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.check-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--seal);
  color: var(--seal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 600;
}

.check-title {
  font-size: 15px;
  font-weight: 500;
}

.check-item p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 240px;
  margin: 0;
}

.checks-note {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  font-style: italic;
  color: var(--text-muted);
}

/* Learning section */
.learning {
  max-width: 1300px;
  margin: 0 auto;
}

.learning-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.learning-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.learning-text h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.learning-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Content dark section */
.content-dark {
  padding: 100px 48px;
}

.content-dark .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Legal pages (privacy, terms) */
main.legal {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 48px;
  font-size: 16px;
  line-height: 1.8;
}

main.legal h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  margin-top: 0;
  line-height: 1.2;
}

main.legal h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

main.legal h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

main.legal p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: var(--sumi);
}

main.legal .back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--seal);
  text-decoration: none;
  font-size: 14px;
}

main.legal .back:hover {
  text-decoration: underline;
}

main.legal .date {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.content-grid > div:first-child p {
  color: var(--text-light);
  max-width: 420px;
}

.content-grid h2 {
  color: var(--washi);
}

.visual-placeholders {
  display: flex;
  gap: 24px;
  justify-content: center;
}

/* Pricing */
.pricing {
  text-align: center;
}

.pricing > h2,
.pricing > .section-desc,
.pricing > .overline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 860px;
  margin: 0 auto 32px auto;
}

.pricing-card {
  background: var(--washi-raised);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.pricing-card.featured {
  background: var(--sumi);
  color: var(--washi);
}

.pricing-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.price {
  font-family: 'Noto Serif JP', serif;
  font-size: 32px;
  font-weight: 700;
  margin: 12px 0;
}

.price span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 4px;
}

.pricing-card p {
  font-size: 14px;
  line-height: 1.7;
}

.pricing-card.featured p {
  color: var(--text-light);
}

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq h2 {
  text-align: center;
  margin-bottom: 56px;
}

.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 28px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Quote */
.quote {
  background: var(--washi-sink);
  padding: 90px 80px;
  text-align: center;
}

.quote p {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  color: var(--sumi);
}

/* Footer CTA */
.footer-cta {
  padding: 100px 0 60px 0;
}

.footer-cta h2 {
  margin-bottom: 16px;
}

.footer-cta p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.footer-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sumi);
  color: var(--washi);
  padding: 14px 26px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--seal);
  color: var(--washi);
}

.btn-secondary {
  color: var(--sumi);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--sumi);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  color: var(--seal);
  border-color: var(--seal);
}

/* Footer */
footer {
  background: var(--washi);
  border-top: 1px solid var(--hairline);
  padding: 32px 0 0 0;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.seal {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  line-height: 1;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

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

.footer-contact {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.footer-contact p {
  margin: 0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .sticky-nav {
    padding: 16px 24px;
    flex-direction: column;
    gap: 16px;
  }

  .nav-right {
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }

  .hero-visual {
    order: -1;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .visual-placeholders {
    flex-direction: column;
    gap: 16px;
  }

  .checks-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  section {
    padding: 60px 0;
  }

  .quote {
    padding: 60px 24px;
  }

  .quote p {
    font-size: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .footer-contact {
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 20px;
  }

  .container {
    padding: 0 16px;
  }

  .sticky-nav {
    padding: 12px 16px;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-right a:not(.btn-primary) {
    display: none;
  }

  .cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
