/* ViveStudy public pages. Brand: canvas "ViveStudy — product mockups", Website page. */
:root {
  --bg: #F6F1EE;
  --ink: #1F1B2E;
  --ink-2: #3E3850;
  --muted: #4C4560;
  --muted-2: #5F5870;
  --line: #CFC6D8;
  --field: #8C8499;
  --violet: #6C4DF5;
  --violet-ink: #4A2FD0;
  --violet-soft: #EDE8FF;
  --pink: #D9628F;
  --peach: #FFB884;
  --plum: #3A2F7A;
  --night: #12131C;
  --ok-bg: #DFF3EA;
  --ok-ink: #176B4D;
  --err-bg: #FDE7EC;
  --err-ink: #9B1C3C;
  --radius: 28px;
  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img, svg { display: block; }
a { color: var(--violet-ink); }
a:hover { color: #2E1A9A; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.wordmark { font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; }
.wordmark b { font-weight: 800; }
.wordmark span { font-weight: 300; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #000000; color: #FFFFFF; }
.btn-light { background: #FFFFFF; color: var(--night); }
.btn-light:hover { color: var(--night); background: #F0EEF7; }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 22px; }
.btn-ghost:hover { color: var(--violet-ink); }
.btn-outline { background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Announcement bar */
.notice { background: var(--ink); color: #FFFFFF; font-size: 14px; padding: 10px 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; text-align: center; }
.notice strong { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.notice a { color: #FFFFFF; font-weight: 600; text-underline-offset: 3px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.site-nav .link { padding: 10px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav .link:hover { color: var(--ink); background: rgba(31, 27, 46, 0.05); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 26px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--violet-soft); color: #3A23A8; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
.hero h1 { font-weight: 700; font-size: clamp(44px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--violet); }
.lead { margin: 0; max-width: 520px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fine { margin: 0; max-width: 480px; font-size: 14px; color: var(--muted-2); }

.hero-art { flex: 1 1 460px; position: relative; min-height: 520px; }
.hero-art .sunset { position: absolute; inset: 0; border-radius: 40px; background: var(--plum); overflow: hidden; }
.hero-art .sunset svg { width: 100%; height: 100%; }
.card { background: #FFFFFF; border-radius: 22px; box-shadow: 0 20px 50px rgba(18, 19, 28, 0.28); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.card-chat { position: absolute; left: 32px; top: 40px; width: min(330px, calc(100% - 48px)); }
.card-progress { position: absolute; right: 28px; bottom: 36px; width: min(290px, calc(100% - 48px)); gap: 14px; }
.who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--violet-soft); display: inline-flex; align-items: center; justify-content: center; }
.card p { margin: 0; font-size: 15px; line-height: 1.5; }
.bubble { align-self: flex-end; background: var(--violet); color: #FFFFFF; border-radius: 16px 16px 4px 16px; padding: 9px 14px; font-size: 15px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.meter-track { height: 8px; border-radius: 999px; background: #EFEAF3; }
.meter-fill { height: 8px; border-radius: 999px; }

/* Sections */
.band-white { background: #FFFFFF; }
.section { padding-top: 104px; padding-bottom: 104px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 56px; }
.section h2 { font-weight: 700; font-size: clamp(34px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.035em; }
.section-head p, .split-copy p { margin: 0; font-size: 18px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.step { background: var(--bg); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.step h3 { font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.split-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.example { flex: 1 1 460px; background: #FFFFFF; border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 2px rgba(31, 27, 46, 0.06), 0 16px 40px rgba(31, 27, 46, 0.08); display: flex; flex-direction: column; gap: 18px; }
.example .q { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; }
.working { background: var(--bg); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.working p { margin: 0; font-size: 15px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.band-night { background: var(--night); color: #ECEDF5; }
.band-night h2 { color: #FFFFFF; }
.parents { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.parents-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.parents-copy .eyebrow { color: #A4A8BD; letter-spacing: 0.08em; }
.parents-copy p { margin: 0; font-size: 18px; color: #C4C7D6; }
.parents-copy .btn { align-self: flex-start; }
.facts { flex: 1 1 520px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.facts li { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #2E3044; padding-top: 20px; }
.facts strong { font-family: var(--display); font-weight: 600; font-size: 19px; color: #FFFFFF; }
.facts span { color: #C4C7D6; font-size: 16px; }

.closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-top: 112px; padding-bottom: 112px; }
.closing h2 { max-width: 760px; font-weight: 700; font-size: clamp(38px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.04em; }
.closing p { margin: 0; max-width: 520px; font-size: 18px; color: var(--muted); }

.site-footer { border-top: 1px solid #E4DCE2; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--muted-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Forms (sign in, invitation, account) */
.auth { min-height: 100vh; padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; }
.auth-main { flex: 1 1 520px; display: flex; flex-direction: column; padding: 8px 24px 24px; }
.auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.auth-aside { flex: 1 1 520px; min-height: 640px; border-radius: 32px; background: var(--plum); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; }
.auth-aside svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-aside div { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.auth-aside .big { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -0.035em; color: #FFFFFF; }
.auth-aside .small { margin: 0; font-size: 18px; color: #E4DFFF; }
.form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.form h1 { font-weight: 700; font-size: 40px; line-height: 1.08; letter-spacing: -0.035em; }
.form .sub { margin: 0; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--field); background: #FFFFFF; font: inherit; color: var(--ink); }
.input:focus { border-color: var(--violet); outline: 3px solid rgba(108, 77, 245, 0.25); outline-offset: 0; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 56px; }
.icon-btn { position: absolute; right: 4px; top: 3px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #E0D8E0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.hint { background: var(--violet-soft); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #2F2A44; }
.hint p { margin: 0; }
.status { border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.status[hidden] { display: none; }
.status.ok { background: var(--ok-bg); color: var(--ok-ink); }
.status.err { background: var(--err-bg); color: var(--err-ink); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.panel { width: 100%; max-width: 560px; background: #FFFFFF; border-radius: var(--radius); padding: 40px; box-shadow: 0 1px 2px rgba(31, 27, 46, 0.06), 0 16px 40px rgba(31, 27, 46, 0.08); display: flex; flex-direction: column; gap: 18px; }
.panel h1 { font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; }
.panel p { margin: 0; color: var(--muted); }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 24px; gap: 40px; }
  .hero-art { min-height: 460px; }
  .card-chat { left: 16px; top: 20px; }
  .card-progress { right: 16px; bottom: 20px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .auth-aside { display: none; }
  .panel { padding: 28px 22px; }
  .site-nav .link { display: none; }
}
