@import url("site.css");

/* Plan document layout */
.plan-wrap {
  padding: 32px 0 80px;
}

.plan-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.plan-sidebar {
  position: sticky;
  top: 88px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(127, 212, 196, 0.3);
  box-shadow: var(--shadow);
}

.plan-sidebar h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}

.plan-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-sidebar nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.plan-sidebar nav a:hover,
.plan-sidebar nav a.active {
  background: #eef7f5;
  color: var(--mint-deep);
}

.plan-doc-link {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(127, 212, 196, 0.3);
}

.plan-doc-link a {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.plan-doc-link a.tech-link {
  background: #eef7f5;
  color: var(--mint-deep);
}

.plan-doc-link a.service-link {
  background: #fff5f7;
  color: var(--pink-deep);
}

/* Doc header */
.plan-header {
  margin-bottom: 28px;
}

.plan-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.plan-badge.service {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: white;
}

.plan-badge.technical {
  background: linear-gradient(135deg, var(--mint), var(--mint-deep));
  color: white;
}

.plan-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.plan-meta {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Sections */
.plan-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 24px;
  border: 1px solid rgba(127, 212, 196, 0.25);
  box-shadow: var(--shadow);
}

.plan-section h2 {
  font-size: 1.35rem;
  color: var(--mint-deep);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(127, 212, 196, 0.35);
}

.plan-section h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
  color: var(--text);
}

.plan-section p,
.plan-section li {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.plan-section ul,
.plan-section ol {
  margin: 8px 0 14px 22px;
}

/* Quote / highlight */
.plan-quote {
  background: linear-gradient(135deg, #eef9f6, #fff5f7);
  border-left: 4px solid var(--mint-deep);
  padding: 18px 22px;
  border-radius: 0 14px 14px 0;
  margin: 16px 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

.plan-highlight {
  background: #eef7f5;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 14px 0;
}

/* Tables */
.plan-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

table.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.plan-table th,
table.plan-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(127, 212, 196, 0.25);
  vertical-align: top;
}

table.plan-table th {
  background: #eef7f5;
  font-weight: 700;
  color: var(--mint-deep);
  white-space: nowrap;
}

table.plan-table tr:hover td {
  background: rgba(238, 247, 245, 0.5);
}

/* Status badges */
.status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status.done { background: #d4f0e8; color: #1a7a5e; }
.status.wip { background: #fff3cd; color: #856404; }
.status.planned { background: #e8ecf0; color: #5c6470; }

/* Priority badges */
.priority {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.priority.p0 { background: #fde8ec; color: var(--pink-deep); }
.priority.p1 { background: #fff3cd; color: #856404; }
.priority.p2 { background: #e8ecf0; color: #5c6470; }

/* Cards grid */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.plan-card {
  background: var(--bg);
  border: 1px solid rgba(127, 212, 196, 0.35);
  border-radius: 14px;
  padding: 22px;
}

.plan-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.plan-card.tutor .card-icon { background: #d4f0e8; }
.plan-card.assistant .card-icon { background: #e8f0ff; }
.plan-card.marketing .card-icon { background: #fde8ec; }

.plan-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.plan-card .persona-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mint-deep);
  margin-bottom: 10px;
}

.plan-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Persona cards */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.persona-card {
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(127, 212, 196, 0.3);
}

.persona-card.emma { background: linear-gradient(160deg, #eef9f6, #fff); }
.persona-card.lumi { background: linear-gradient(160deg, #f0f4ff, #fff); }
.persona-card.ruby { background: linear-gradient(160deg, #fff5f7, #fff); }

.persona-card h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.persona-card .role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}

.persona-card ul {
  margin: 0 0 0 18px;
  font-size: 0.88rem;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.stat-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  border: 1px solid rgba(127, 212, 196, 0.3);
}

.stat-box .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mint-deep);
}

.stat-box .label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Timeline */
.timeline {
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid rgba(127, 212, 196, 0.25);
}

.timeline-item .period {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--mint-deep);
}

/* Architecture diagram */
.arch-diagram {
  background: #1e2429;
  color: #c8d0d8;
  border-radius: 14px;
  padding: 24px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-x: auto;
  margin: 16px 0;
  white-space: pre;
}

/* Flow diagram */
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

.flow-step {
  background: #eef7f5;
  border: 1px solid rgba(127, 212, 196, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.flow-arrow {
  color: var(--mint-deep);
  font-weight: 800;
}

/* Brand colors */
.color-swatches {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.color-swatch {
  text-align: center;
}

.color-swatch .swatch {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 6px;
  border: 1px solid rgba(0,0,0,0.08);
}

.color-swatch span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

/* API endpoint */
.api-endpoint {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.82rem;
  background: #eef7f5;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--mint-deep);
  white-space: nowrap;
}

.method {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
}

.method.get { background: #d4f0e8; color: #1a7a5e; }
.method.post { background: #e8f0ff; color: #2a5db0; }
.method.sse { background: #fff3cd; color: #856404; }

/* Module list */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.module-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid rgba(127, 212, 196, 0.25);
}

.module-item .mod-name {
  font-weight: 700;
  font-size: 0.9rem;
}

/* Revenue tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.tier-card {
  border-radius: 14px;
  padding: 22px;
  border: 1px solid rgba(127, 212, 196, 0.3);
  text-align: center;
}

.tier-card.free { background: #f8fbfa; }
.tier-card.basic { background: #eef9f6; }
.tier-card.premium { background: linear-gradient(160deg, #eef9f6, #fff5f7); }
.tier-card.b2b { background: #1e2429; color: #c8d0d8; }

.tier-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.tier-card.b2b h4 { color: white; }

.tier-card p {
  font-size: 0.85rem;
  margin: 0;
}

.tier-card.b2b p { color: #9ab0c0; }

/* GNB plan links */
.gnb .plan-nav-link {
  font-weight: 700;
}

.gnb .plan-nav-link.active {
  color: var(--mint-deep);
}

@media (max-width: 1024px) {
  .plan-layout { grid-template-columns: 1fr; }
  .plan-sidebar { position: static; }
  .plan-cards,
  .persona-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .plan-section { padding: 22px 20px; }
  .stats-row,
  .tier-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
}
