/* Public landing page (/ for visitors who have not entered a code). */
.welcome { background: var(--paper); }
.w-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.w-top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--blue-soft); }
.w-top .w-wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.w-login { font-weight: 600; color: var(--blue); text-decoration: none; border: 1.5px solid var(--blue-line); border-radius: 999px; padding: 7px 16px; }
.w-login:hover { background: var(--blue-soft); }

/* hero */
.w-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.w-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.w-hero h1 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.01em; }
.w-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--blue-soft) 62%); }
.w-lead { margin: 0 0 24px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 34em; }
.w-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.w-cta .btn { text-decoration: none; }
.w-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); }

/* phone mock */
.w-phone { width: 100%; max-width: 360px; justify-self: center; border-radius: 32px; overflow: hidden; background: #ededed;
  box-shadow: 0 24px 60px rgba(22, 63, 134, 0.18), 0 0 0 10px #fff, 0 0 0 11px var(--blue-line); font-family: "Noto Sans SC", var(--font); color: #191919; }
.w-phone-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #ededed; border-bottom: 1px solid #ddd; font-size: 15px; }
.w-phone-bar span { color: #555; width: 20px; }
.w-chat { padding: 10px 12px 14px; display: grid; gap: 10px; min-height: 330px; align-content: start; }
.w-chat > * { opacity: 0; animation: w-in 0.35s ease-out forwards; }
@keyframes w-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.w-time, .w-sys { text-align: center; font-size: 12px; color: #999; }
.w-msg { display: flex; gap: 8px; align-items: flex-start; }
.w-msg.me { justify-content: flex-end; }
.w-msg small { display: block; font-size: 11px; color: #888; margin-bottom: 2px; }
.w-msg p { margin: 0; background: #fff; padding: 8px 11px; border-radius: 6px; font-size: 15px; line-height: 1.45; max-width: 230px; }
.w-msg.me p { background: #95ec69; }
.w-msg p + p { margin-top: 4px; }
.w-voice { color: #333; min-width: 80px; }
.w-sub { font-size: 14px !important; }
.w-msg u { text-decoration: none; border-bottom: 1.5px dotted #1d4fa3; cursor: pointer; }
.w-av { flex: none; width: 36px; height: 36px; border-radius: 5px; display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.w-av.a1 { background: #f6d6e4; color: #8a2a55; }
.w-av.a2 { background: #d8e6f8; color: #1d4fa3; }
.w-av.a3 { background: #2b2b2b; color: #fff; }
.w-av.me { background: #ffe9a8; color: #8a5a00; }
.w-learn { background: #fff; border-top: 1px solid #ddd; padding: 12px 16px; display: grid; gap: 2px; font-family: var(--font); color: var(--blue); font-size: 14px; }
.w-learn b { font-family: "Noto Sans SC", sans-serif; font-size: 17px; }

/* features */
.w-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 16px; padding-bottom: 56px; }
.w-features article { border: 1.5px solid var(--blue-soft); border-radius: var(--radius); padding: 24px; }
.w-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.w-features h2 { margin: 0 0 8px; font-size: 19px; }
.w-features p { margin: 0; line-height: 1.6; color: var(--ink-soft); }

/* shelf */
.w-shelf { padding-bottom: 56px; }
.w-shelf-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.w-shelf-head h2 { margin: 0; font-size: 24px; }
.w-shelf-head a { color: var(--blue); font-weight: 600; text-decoration: none; }
.w-shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.w-card { scroll-snap-align: start; display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--blue);
  border: 1.5px solid var(--blue-soft); border-radius: 18px; padding: 16px; background: #fff; transition: border-color 0.15s, transform 0.15s; }
.w-card:hover { border-color: var(--blue-line); transform: translateY(-2px); }
.w-card-cast { display: flex; margin-bottom: 8px; }
.w-card-cast img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-right: -8px; background: var(--blue-soft); }
.w-card b { font-family: "Noto Sans SC", sans-serif; font-size: 16px; line-height: 1.35; }
.w-card-vi { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.w-card small { margin-top: 6px; font-size: 12px; color: var(--ink-soft); }

/* pricing */
.w-price { padding-bottom: 64px; text-align: center; }
.w-price h2 { margin: 0 0 8px; font-size: 28px; }
.w-price-lead { margin: 0 auto 24px; max-width: 34em; color: var(--ink-soft); line-height: 1.6; }
.w-price-row { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; gap: 18px; }
.w-price-row.three { grid-template-columns: repeat(3, minmax(0, 220px)); }
.w-plan { position: relative; display: grid; gap: 4px; padding: 26px 20px; border-radius: var(--radius); border: 2px solid var(--blue-line); text-decoration: none; color: var(--blue); background: #fff; transition: border-color 0.15s, transform 0.15s; }
.w-plan:hover { border-color: var(--blue); transform: translateY(-2px); }
.w-plan.best { border-color: var(--blue); background: var(--blue-soft); }
.w-plan-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.w-plan-name { font-weight: 600; color: var(--ink-soft); }
.w-plan-price { font-size: 32px; font-weight: 700; }
.w-plan-sub { font-size: 13px; color: var(--ink-soft); }
.w-price-note { margin: 18px 0 0; font-size: 13px; color: var(--ink-soft); }
.w-note a { color: var(--blue); }

/* more */
.w-more { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 64px; }
.w-more-card { display: block; text-decoration: none; color: var(--blue); background: var(--blue-soft); border-radius: var(--radius); padding: 28px; }
.w-more-card h2 { margin: 0 0 8px; font-size: 22px; }
.w-more-card p { margin: 0 0 16px; line-height: 1.6; color: var(--ink-soft); }
.w-more-card span { font-weight: 700; }

.w-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--blue-soft); font-size: 14px; color: var(--ink-soft); }
.w-foot a { color: var(--blue); }

@media (max-width: 820px) {
  .w-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; padding-bottom: 72px; }
  .w-features, .w-more { grid-template-columns: 1fr; }
  .w-price-row, .w-price-row.three { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .w-wrap { padding: 0 16px; }
  .w-cta .btn { flex: 1 1 100%; text-align: center; }
  .w-foot { flex-direction: column; }
}
