/*
Theme Name: OneSaju
Theme URI: https://1saju.co.kr
Author: OneSaju Crew
Description: Informational guide theme for the 1Saju mobile app.
Version: 0.1.5
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: onesaju
*/

:root {
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #171512;
  --muted: #6f695f;
  --line: #e6ded0;
  --accent: #bd6333;
  --accent-ink: #fffaf4;
  --green: #516a56;
  --blue: #405f78;
  --shadow: 0 20px 60px rgba(43, 34, 23, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Pretendard,
    "Noto Sans KR",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 239, 0.88);
  border-bottom: 1px solid rgba(230, 222, 208, 0.82);
  backdrop-filter: blur(16px);
}

.header-inner,
.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.hero {
  padding: 76px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 58px;
  line-height: 1.08;
  font-weight: 850;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.button.ghost {
  background: transparent;
}

.proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.proof-pill {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.preview-title {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
}

.preview-date {
  color: var(--muted);
  font-size: 13px;
}

.flow {
  padding: 22px 20px 24px;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.step-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.step h2 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.35;
}

.option-grid {
  display: grid;
  gap: 10px;
}

.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.choice small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.choice.selected,
.choice:hover {
  border-color: rgba(189, 99, 51, 0.5);
  background: #fff8ef;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: grid;
  gap: 7px;
}

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

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.step-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.result-box {
  display: grid;
  gap: 14px;
}

.result-headline {
  padding: 18px;
  border-radius: 8px;
  background: #f8efe4;
}

.result-headline strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.result-headline p,
.insight p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.insight {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.insight h3 {
  margin: 0 0 9px;
  font-size: 15px;
}

.mini-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.mini-cell {
  min-height: 62px;
  padding: 10px;
  border-radius: 8px;
  background: #f6f2ea;
}

.mini-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-cell strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: #fffaf2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  max-width: 720px;
  margin: 0;
  font-size: 38px;
  line-height: 1.22;
}

.section-lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.principle {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.principle .number {
  color: var(--accent);
  font-weight: 900;
}

.principle h3 {
  margin: 16px 0 10px;
  font-size: 20px;
}

.principle p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  padding: 42px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 48px;
  }

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

  .hero h1 {
    font-size: 42px;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-copy,
  .section-lead {
    font-size: 16px;
  }

  .hero-actions,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .field-grid,
  .mini-table {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 30px;
  }
}

.product-hero {
  position: relative;
  min-height: auto;
  padding: 44px 0 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(189, 99, 51, 0.16), transparent 30%),
    linear-gradient(135deg, #f4eee4 0%, #fbfaf6 48%, #e8f0ec 100%);
}

.product-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  content: "";
  background: linear-gradient(to bottom, rgba(247, 245, 239, 0), var(--bg));
  pointer-events: none;
}

.hero-report-bg {
  position: absolute;
  inset: 26px 7% auto auto;
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(260px, 0.62fr);
  gap: 22px;
  width: min(760px, 66%);
  filter: blur(2.4px);
  opacity: 0.28;
  transform: rotate(-1deg);
}

.report-paper {
  border: 1px solid rgba(117, 93, 67, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 24px 70px rgba(43, 34, 23, 0.12);
}

.cover-paper {
  min-height: 310px;
  padding: 34px 26px;
  text-align: center;
}

.score-paper {
  align-self: start;
  padding: 24px;
  transform: translateY(58px);
}

.locked-paper {
  grid-column: 1 / -1;
  width: min(520px, 82%);
  padding: 26px;
  transform: translate(12%, -6px);
  text-align: center;
}

.seal {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid #c94337;
  border-radius: 8px;
  color: #c94337;
  font-size: 28px;
  font-weight: 900;
  transform: rotate(-6deg);
}

.small-seal {
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.report-kicker {
  margin: 20px 0 10px;
  color: #8e6b47;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.cover-paper h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.16;
}

.cover-paper p:not(.report-kicker) {
  color: var(--muted);
}

.eight-letters,
.mini-eight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(280px, 100%);
  margin: 22px auto 0;
}

.eight-letters i {
  grid-column: 1 / -1;
  height: 1px;
  background: #d8cab7;
}

.eight-letters span,
.mini-eight span {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid #e7d3ba;
  border-radius: 8px;
  background: #fff9ef;
  color: #9b4d12;
}

.eight-letters b,
.mini-eight span {
  font-size: 28px;
  font-weight: 900;
}

.eight-letters small,
.mini-eight small {
  display: block;
  color: inherit;
  font-size: 14px;
}

.score-grid,
.mini-scores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.score-grid span,
.mini-scores b {
  border: 1px solid #eadfd0;
  border-radius: 8px;
  background: #f7f1e8;
}

.score-grid span {
  padding: 16px;
}

.score-grid em {
  display: block;
  color: #8e6b47;
  font-style: normal;
  font-weight: 800;
}

.score-grid b {
  display: block;
  margin-top: 8px;
  color: #c94337;
  font-size: 34px;
  line-height: 1;
}

.locked-line {
  height: 14px;
  margin: 0 0 12px;
  border-radius: 8px;
  background: #e6ded0;
}

.locked-line.short {
  width: 68%;
}

.locked-paper strong {
  display: block;
  margin-top: 12px;
  color: #8e6b47;
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 420px);
  gap: 44px;
  align-items: center;
}

.hero-copy-block {
  max-width: 620px;
  padding: 18px 0;
}

.hero-copy-block h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(38px, 4.5vw, 54px);
  line-height: 1.12;
  font-weight: 900;
}

.product-hero .hero-copy {
  max-width: 560px;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
}

.modal-card {
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(12px);
}

.modal-progress {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 18px 0 0;
}

.modal-progress span {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: #d9cdbd;
  transition: width 180ms ease, background 180ms ease;
}

.modal-progress span.active {
  width: 30px;
  background: var(--accent);
}

.mini-report-visual {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #eadfd0;
  border-radius: 8px;
  background: #f8f1e8;
}

.mini-eight {
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin: 0;
}

.mini-eight span {
  min-height: 64px;
  font-size: 24px;
}

.mini-scores {
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.mini-scores b {
  padding: 10px 0;
  color: #c94337;
  text-align: center;
}

.step-copy {
  margin: -8px 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.button.wide {
  width: 100%;
}

.checkbox-field {
  display: flex;
  min-height: 58px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
}

.report-result {
  text-align: center;
}

.report-result .result-headline {
  margin-top: 14px;
}

.result-grade-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.result-grade-strip span {
  padding: 11px 10px;
  border: 1px solid #eadfd0;
  border-radius: 8px;
  background: #fff8ef;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-grade-strip b {
  display: block;
  margin-top: 3px;
  color: #c94337;
  font-size: 24px;
  line-height: 1;
}

.result-signal {
  padding: 15px;
  border: 1px solid #eadfd0;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff9f1;
  text-align: left;
}

.result-signal-label {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.result-signal p:last-child {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
  font-weight: 800;
}

.result-score-table .mini-cell span {
  color: #c94337;
  font-size: 24px;
  line-height: 1;
}

.locked-preview {
  display: grid;
  gap: 13px;
  padding: 16px;
  border-radius: 8px;
  background: #241d17;
  color: #fffaf4;
  text-align: left;
}

.locked-preview strong {
  display: block;
  margin-bottom: 6px;
  color: #ffe3b2;
}

.locked-preview p {
  margin: 0;
  color: #eadfce;
  line-height: 1.6;
}

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

.locked-preview li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #4d3b2e;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.locked-preview li::after {
  margin-left: auto;
  color: #ffe3b2;
  content: "잠김";
  font-size: 11px;
}

.locked-preview li span {
  display: inline-grid;
  min-width: 42px;
  place-items: center;
  padding: 4px 7px;
  border-radius: 8px;
  background: #ffe3b2;
  color: #241d17;
  font-size: 12px;
  font-weight: 900;
}

.mini-cell.locked {
  background: linear-gradient(135deg, rgba(23, 21, 18, 0.08), rgba(189, 99, 51, 0.11));
}

.info-card {
  align-self: center;
}

.info-card-body {
  display: grid;
  gap: 18px;
  padding: 22px 20px 24px;
}

.status-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.status-list,
.notice-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ef;
}

.status-list span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.status-list strong {
  font-size: 14px;
}

.guide-grid .principle {
  min-height: 220px;
}

.notice-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.72fr);
  gap: 44px;
  align-items: start;
}

.notice-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.notice-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.notice-list li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 8px;
  background: var(--accent);
  content: "";
}

@media (max-width: 860px) {
  .product-hero {
    padding: 26px 0 42px;
  }

  .hero-report-bg {
    inset: 0 -58% auto;
    grid-template-columns: 1fr;
    opacity: 0.42;
  }

  .score-paper {
    transform: none;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-copy-block {
    padding: 14px 0 0;
  }

  .hero-copy-block h1 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .proof-line {
    margin-top: 22px;
  }

  .modal-card {
    margin-bottom: 24px;
  }

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

  .status-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
