:root {
  color-scheme: light;
  --ivory-50: #fffdf8;
  --ivory-100: #f8f5ed;
  --ivory-200: #eee8dc;
  --navy-950: #0d1b2d;
  --navy-900: #14263f;
  --navy-800: #203753;
  --navy-700: #36516d;
  --slate-600: #5f6d7a;
  --slate-500: #7d8994;
  --mint-700: #248e75;
  --mint-600: #34a98b;
  --mint-500: #55c5a5;
  --mint-200: #c9eee3;
  --mint-100: #e8f7f2;
  --blue-100: #eaf1f8;
  --amber-700: #ad6a15;
  --amber-100: #fff3d8;
  --red-700: #a84444;
  --red-100: #fcebea;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(20, 38, 63, 0.05);
  --shadow-md: 0 16px 45px rgba(20, 38, 63, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --content: 1180px;
  --sidebar-width: 250px;
  --font: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: auto;
  scroll-padding-top: 84px;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  color: var(--navy-900);
  background:
    radial-gradient(circle at 8% 2%, rgba(85, 197, 165, 0.1), transparent 28rem),
    var(--ivory-100);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy-900);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(52, 169, 139, 0.5);
  outline-offset: 3px;
}

#main-content:focus {
  outline: none;
}

.noscript {
  margin: 24px;
  padding: 16px;
  border: 1px solid #ecc;
  border-radius: var(--radius-sm);
  background: var(--red-100);
}

/* Shared navigation */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 20px;
}

.brand-korean {
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.public-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 40px), var(--content));
  height: 78px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-link {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 13px;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--navy-700);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.text-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.text-link:hover {
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.6);
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 17px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-align: center;
  word-break: keep-all;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-primary {
  color: var(--white);
  background: var(--navy-900);
  box-shadow: 0 8px 20px rgba(20, 38, 63, 0.18);
}

.button-primary:hover:not(:disabled) {
  background: var(--navy-800);
  box-shadow: 0 10px 22px rgba(20, 38, 63, 0.22);
}

.button-mint {
  color: var(--navy-950);
  background: var(--mint-500);
}

.button-secondary {
  border-color: var(--ivory-200);
  color: var(--navy-900);
  background: var(--white);
}

.button-secondary:hover:not(:disabled) {
  border-color: #d9d5ca;
  background: var(--ivory-50);
}

.button-ghost {
  color: var(--navy-700);
  background: transparent;
}

.button-danger {
  color: var(--white);
  background: var(--red-700);
}

.button-small {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px;
}

.button-wide {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ivory-200);
  border-radius: 11px;
  cursor: pointer;
  color: var(--navy-900);
  background: var(--white);
}

.button svg,
.icon-button svg,
.nav-item svg,
.feature-icon svg,
.course-icon svg,
.upload-icon svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Landing */
.landing {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

.landing-home .public-header {
  justify-content: flex-end;
}

.landing-home .public-header .brand {
  display: none;
}

.simple-hero {
  display: grid;
  width: min(calc(100% - 40px), 980px);
  min-height: calc(100vh - 78px);
  min-height: calc(100dvh - 78px);
  margin: 0 auto;
  padding: 64px 0 96px;
  place-items: center;
  text-align: center;
}

.simple-hero-inner {
  width: 100%;
  max-width: 820px;
}

.simple-logo {
  display: flex;
  margin-bottom: 27px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--navy-950);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.simple-logo .brand-mark {
  width: 47px;
  height: 47px;
  border-radius: 15px;
}

.simple-hero h1 {
  margin-bottom: 17px;
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 900;
  line-height: 1.16;
}

.simple-hero h1 .accent {
  color: var(--mint-700);
}

.simple-hero-copy {
  max-width: 650px;
  margin: 0 auto 31px;
  color: var(--slate-600);
  font-size: clamp(15px, 1.7vw, 18px);
}

.landing-composer {
  position: relative;
  scroll-margin-block: 24px;
  overflow-anchor: none;
  width: 100%;
  padding: 13px;
  border: 1px solid #d9d8d2;
  border-radius: 24px;
  text-align: left;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(20, 38, 63, 0.12), 0 2px 7px rgba(20, 38, 63, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.landing-composer:focus-within,
.landing-composer.is-dragging {
  border-color: var(--mint-600);
  box-shadow: 0 24px 65px rgba(20, 38, 63, 0.15), 0 0 0 4px rgba(85, 197, 165, 0.11);
}

.landing-composer.is-dragging {
  transform: scale(1.005);
  background: var(--mint-100);
}

.landing-composer .form-error {
  margin-bottom: 4px;
}

.landing-composer textarea {
  display: block;
  width: 100%;
  min-height: 134px;
  max-height: 320px;
  padding: 17px 18px 10px;
  border: 0;
  outline: 0;
  resize: vertical;
  color: var(--navy-900);
  background: transparent;
  font-size: 16px;
  line-height: 1.65;
}

.landing-composer textarea.is-auto-sized {
  resize: none;
  overflow-y: hidden;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.landing-composer textarea::placeholder {
  color: #929ca3;
}

.composer-file {
  min-height: 29px;
  padding: 0 18px 7px;
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 650;
  word-break: keep-all;
}

.composer-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.composer-hint svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--mint-700);
}

.composer-hint.ready {
  color: var(--mint-700);
}

.composer-hint.pending,
.composer-hint.pending svg {
  color: var(--amber-700);
}

.composer-file-ready {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 7px 6px 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--mint-200);
  border-radius: 9px;
  color: var(--mint-700);
  background: var(--mint-100);
}

.composer-file-ready strong {
  max-width: 390px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-file-ready button {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  color: var(--mint-700);
  background: transparent;
}

.composer-file-ready button:hover {
  background: rgba(36, 142, 117, 0.1);
}

.composer-file-ready svg {
  width: 15px;
  height: 15px;
}

.composer-actions {
  display: flex;
  padding: 4px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--ivory-200);
}

.composer-secondary-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.composer-example {
  color: var(--mint-700);
}

.composer-example:hover:not(:disabled) {
  background: var(--mint-100);
}

.composer-attach {
  cursor: pointer;
}

.composer-privacy {
  display: flex;
  margin: 15px auto 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--slate-500);
  font-size: 12px;
}

.composer-privacy svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--mint-700);
}

.format-bar {
  display: flex;
  padding: 27px 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid rgba(20, 38, 63, 0.07);
  border-bottom: 1px solid rgba(20, 38, 63, 0.07);
  color: var(--slate-500);
  background: rgba(255, 253, 248, 0.65);
  font-size: 12px;
  font-weight: 750;
}

.format-bar .formats {
  gap: 7px;
}

.format-bar .format-pill {
  padding: 6px 11px;
  font-size: 11px;
}

.feature-step {
  float: right;
  color: var(--mint-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero {
  position: relative;
  display: grid;
  width: min(calc(100% - 40px), var(--content));
  min-height: 650px;
  margin: 0 auto;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 11px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(36, 142, 117, 0.2);
  border-radius: 999px;
  color: var(--mint-700);
  background: var(--mint-100);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-600);
  box-shadow: 0 0 0 4px rgba(85, 197, 165, 0.18);
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.3vw, 72px);
  font-weight: 900;
  line-height: 1.08;
}

.hero h1 .accent {
  color: var(--mint-700);
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--slate-600);
  font-size: clamp(16px, 1.6vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note {
  display: flex;
  margin-top: 22px;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 650;
}

.hero-note svg {
  width: 17px;
  height: 17px;
  color: var(--mint-700);
}

.hero-visual {
  position: relative;
  min-height: 510px;
}

.visual-glow {
  position: absolute;
  inset: 8% -18% -10% -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 197, 165, 0.25), transparent 65%);
  filter: blur(10px);
}

.preview-card {
  position: absolute;
  inset: 36px 0 auto 20px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 28px 70px rgba(20, 38, 63, 0.16);
  backdrop-filter: blur(16px);
  transform: rotate(-1.5deg);
}

.preview-header,
.preview-meta,
.preview-score,
.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-header {
  margin-bottom: 24px;
}

.preview-label {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 800;
}

.preview-subject {
  font-size: 15px;
  font-weight: 850;
}

.status-dot {
  width: 10px;
  height: 10px;
  border: 3px solid var(--mint-200);
  border-radius: 50%;
  background: var(--mint-600);
  box-sizing: content-box;
}

.preview-question {
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 18px;
  color: var(--white);
  background: var(--navy-900);
}

.preview-question small {
  display: block;
  margin-bottom: 10px;
  color: #aebdcb;
  font-weight: 750;
}

.preview-question strong {
  display: block;
  margin-bottom: 17px;
  font-size: 18px;
  line-height: 1.5;
}

.fake-option {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #d7e0e8;
  font-size: 13px;
}

.fake-option.selected {
  border-color: var(--mint-500);
  color: var(--navy-950);
  background: var(--mint-500);
  font-weight: 800;
}

.preview-score {
  margin: 15px 2px 7px;
}

.preview-score strong {
  font-size: 24px;
}

.mini-progress {
  height: 7px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--ivory-200);
}

.mini-progress span {
  display: block;
  width: 90%;
  height: 100%;
  border-radius: inherit;
  background: var(--mint-500);
}

.preview-footer {
  color: var(--mint-700);
  font-size: 13px;
  font-weight: 800;
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  padding: 12px 15px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 800;
}

.floating-card.one {
  top: 10px;
  right: -24px;
}

.floating-card.two {
  right: -5px;
  bottom: 50px;
}

.floating-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--mint-700);
  background: var(--mint-100);
}

.floating-icon svg {
  width: 18px;
  height: 18px;
}

.trusted-strip {
  padding: 44px 20px;
  border-top: 1px solid rgba(20, 38, 63, 0.07);
  border-bottom: 1px solid rgba(20, 38, 63, 0.07);
  text-align: center;
  background: rgba(255, 253, 248, 0.55);
}

.trusted-strip p {
  margin-bottom: 22px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 750;
}

.formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.format-pill {
  padding: 8px 14px;
  border: 1px solid var(--ivory-200);
  border-radius: 999px;
  color: var(--navy-700);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.format-pill.pending {
  border-style: dashed;
  color: var(--slate-500);
  background: var(--ivory-100);
}

.section {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 104px 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
}

.section-heading p {
  color: var(--slate-600);
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--ivory-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
}

.feature-card:nth-child(2) {
  transform: translateY(20px);
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  color: var(--mint-700);
  background: var(--mint-100);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 15px;
}

.landing-cta {
  display: flex;
  margin-bottom: 80px;
  padding: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 28px;
  color: var(--white);
  background: var(--navy-900);
  box-shadow: var(--shadow-md);
}

.landing-cta h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 4vw, 38px);
}

.landing-cta p {
  margin: 0;
  color: #bdc8d2;
}

.landing-footer {
  display: flex;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 26px 0 36px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ivory-200);
  color: var(--slate-500);
  font-size: 13px;
}

.landing-footer nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-footer a {
  color: inherit;
}

.landing-footer nav a {
  color: var(--navy-700);
  font-weight: 800;
}

.legal-main {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
  padding: 54px 0 86px;
}

.legal-hero {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.legal-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 56px);
  letter-spacing: -0.05em;
}

.legal-hero p {
  margin: 0 auto 12px;
  color: var(--slate-600);
  font-size: 17px;
}

.legal-hero small {
  color: var(--slate-500);
}

.legal-readiness {
  display: flex;
  margin-bottom: 22px;
  padding: 19px 21px;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid #e6d9ad;
  border-radius: 16px;
  color: var(--navy-800);
  background: #fffaf0;
}

.legal-readiness svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #9a7118;
}

.legal-readiness p {
  margin: 4px 0 0;
  color: var(--slate-600);
  font-size: 13px;
}

.legal-article {
  padding: 52px 58px;
  border: 1px solid var(--ivory-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.legal-article section {
  scroll-margin-top: 24px;
}

.legal-article section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--ivory-200);
}

.legal-article h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.legal-article p {
  margin: 0;
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.9;
}

.legal-article a,
.billing-consent a,
.checkbox-label a {
  color: var(--mint-800);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.operator-grid {
  display: grid;
  margin: 0;
  gap: 0;
  border: 1px solid var(--ivory-200);
  border-radius: 14px;
  overflow: hidden;
}

.operator-grid > div {
  display: grid;
  padding: 12px 14px;
  grid-template-columns: 150px 1fr;
  gap: 14px;
}

.operator-grid > div + div {
  border-top: 1px solid var(--ivory-200);
}

.operator-grid dt {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.operator-grid dd {
  margin: 0;
  color: var(--navy-800);
  font-size: 13px;
}

.legal-links {
  display: flex;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.legal-links a {
  padding: 9px 13px;
  border: 1px solid var(--ivory-200);
  border-radius: 999px;
  color: var(--navy-700);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.pricing-teaser {
  display: flex;
  padding: 42px 46px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border: 1px solid var(--ivory-200);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 12%, rgba(85, 197, 165, 0.18), transparent 18rem),
    rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.pricing-teaser > div {
  max-width: 680px;
}

.pricing-teaser h2 {
  margin: 16px 0 10px;
  font-size: clamp(26px, 3.5vw, 40px);
}

.pricing-teaser p {
  margin: 0;
  color: var(--slate-600);
}

.pricing-main {
  width: min(calc(100% - 40px), 1040px);
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 44px 0 88px;
}

.pricing-hero {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.pricing-kicker {
  display: inline-flex;
  padding: 7px 12px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: var(--mint-700);
  background: var(--mint-100);
  font-size: 13px;
  font-weight: 850;
}

.pricing-hero h1 {
  margin: 15px 0 12px;
  font-size: clamp(37px, 5.4vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.no-break {
  white-space: nowrap;
}

.pricing-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--slate-600);
  font-size: 17px;
}

.pricing-hero-actions {
  display: flex;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-hero-note {
  display: block;
  margin-top: 9px;
  color: var(--slate-500);
  font-size: 11px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.plan-card {
  display: flex;
  min-width: 0;
  padding: 28px;
  flex-direction: column;
  border: 1px solid var(--ivory-200);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.plan-card.featured {
  border-color: rgba(42, 151, 122, 0.45);
  background:
    radial-gradient(circle at 100% 0, rgba(85, 197, 165, 0.2), transparent 16rem),
    var(--white);
  box-shadow: 0 20px 48px rgba(20, 38, 63, 0.12);
}

.plan-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--mint-800);
  background: var(--mint-100);
  font-size: 12px;
  font-weight: 850;
}

.plan-badge.muted {
  color: var(--slate-600);
  background: var(--ivory-100);
}

.plan-card h2 {
  margin: 20px 0 6px;
  font-size: 30px;
}

.plan-card > div > p {
  min-height: 48px;
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
}

.plan-price {
  display: flex;
  margin-top: 16px;
  align-items: baseline;
  gap: 7px;
}

.plan-price strong {
  color: var(--navy-950);
  font-size: clamp(31px, 4vw, 42px);
  letter-spacing: -0.05em;
}

.plan-price span {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.plan-list {
  display: grid;
  margin: 20px 0;
  padding: 18px 0;
  flex: 1;
  gap: 11px;
  border-top: 1px solid var(--ivory-200);
  border-bottom: 1px solid var(--ivory-200);
  list-style: none;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 700;
}

.plan-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--mint-700);
}

.plan-card .button[disabled] {
  opacity: 1;
  color: var(--navy-900);
  background: var(--mint-200);
  cursor: default;
}

.pricing-interest-controls {
  display: grid;
  gap: 6px;
}

.pricing-interest-status {
  display: flex;
  min-height: 46px;
  padding: 10px 17px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  color: var(--navy-900);
  background: var(--mint-200);
  font-weight: 800;
  text-align: center;
  word-break: keep-all;
}

.pricing-interest-status svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.pricing-interest-controls .button-ghost {
  min-height: 38px;
  color: var(--slate-600);
  font-size: 12px;
}

.pricing-action-note {
  min-height: 0 !important;
  margin-top: 12px !important;
  text-align: center;
  color: var(--slate-500) !important;
  font-size: 11px !important;
}

.pricing-payment-options {
  display: grid;
  gap: 9px;
}

.billing-consent {
  display: flex;
  margin: 0 0 12px;
  padding: 12px;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--ivory-200);
  border-radius: 12px;
  color: var(--slate-600);
  background: var(--ivory-50);
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.billing-consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--mint-700);
}

.pricing-result {
  display: flex;
  max-width: 760px;
  margin: 0 auto 26px;
  padding: 18px 20px;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid #d8e2ef;
  border-radius: 16px;
  background: #f4f7fb;
}

.pricing-result.success {
  border-color: #cce6dc;
  background: #f0faf6;
}

.pricing-result.error {
  border-color: #f0d1d1;
  background: #fff5f5;
}

.pricing-result > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.pricing-result strong {
  display: block;
  margin-bottom: 3px;
}

.pricing-result p {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
}

.settings-plan-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.payment-history {
  display: grid;
  border: 1px solid var(--ivory-200);
  border-radius: 14px;
  overflow: hidden;
}

.payment-history > div {
  display: flex;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.payment-history > div + div {
  border-top: 1px solid var(--ivory-200);
}

.payment-history span,
.payment-history small {
  display: block;
}

.payment-history small {
  margin-top: 2px;
  color: var(--slate-500);
}

.payment-history code {
  max-width: 46%;
  overflow: hidden;
  color: var(--slate-500);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pricing-honesty {
  display: flex;
  margin-top: 22px;
  padding: 20px 22px;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #d9e8e2;
  border-radius: 16px;
  background: #f2faf7;
}

.pricing-honesty > svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: var(--mint-700);
}

.pricing-honesty strong {
  display: block;
  margin-bottom: 4px;
}

.pricing-honesty p {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
}

/* Auth */
.auth-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(360px, 0.85fr) minmax(500px, 1.15fr);
}

.auth-panel {
  display: flex;
  padding: 44px clamp(28px, 7vw, 92px);
  flex-direction: column;
  background: var(--ivory-50);
}

.auth-main {
  display: flex;
  max-width: 440px;
  width: 100%;
  margin: auto;
  padding: 42px 0;
  flex-direction: column;
}

.auth-main h1 {
  margin: 26px 0 10px;
  font-size: 34px;
}

.auth-intro {
  margin-bottom: 30px;
  color: var(--slate-600);
}

.activation-auth {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  background:
    radial-gradient(circle at 18% 12%, rgba(85, 197, 165, 0.14), transparent 30%),
    var(--ivory-100);
}

.activation-auth .auth-panel {
  width: min(100%, 620px);
  min-height: 0;
  padding: 26px clamp(30px, 5vw, 54px) 30px;
  border: 1px solid rgba(13, 27, 45, 0.08);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 24px 70px rgba(13, 27, 45, 0.11);
}

.activation-auth .auth-panel > .brand {
  align-self: center;
}

.activation-auth .auth-main {
  max-width: 480px;
  padding: 24px 0 0;
}

.activation-auth .auth-main h1 {
  margin: 14px 0 6px;
  font-size: 32px;
}

.activation-auth .auth-intro {
  margin-bottom: 14px;
}

.activation-auth .eyebrow {
  align-self: flex-start;
}

.activation-auth .auth-visual {
  display: none;
}

.activation-intent {
  display: grid;
  margin-bottom: 14px;
  padding: 12px 14px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--mint-200);
  border-radius: 14px;
  background: var(--mint-100);
}

.activation-intent > svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  color: var(--white);
  background: var(--mint-700);
}

.activation-intent span,
.activation-intent strong,
.activation-intent small {
  display: block;
}

.activation-intent span {
  margin-bottom: 2px;
  color: var(--mint-700);
  font-size: 11px;
  font-weight: 850;
}

.activation-intent strong {
  overflow: hidden;
  color: var(--navy-900);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activation-intent small {
  margin-top: 3px;
  color: var(--slate-600);
  font-size: 11px;
}

.activation-auth .form-stack {
  gap: 12px;
}

.activation-auth .agreement-list {
  gap: 7px;
}

.auth-pending-note {
  margin: 0 0 22px;
}

.activation-progress {
  padding: 14px 16px;
  border: 1px solid rgba(24, 144, 116, 0.2);
  border-radius: 14px;
  color: var(--navy-900);
  background: rgba(85, 197, 165, 0.08);
}

.activation-progress-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.activation-progress-heading .spinner {
  width: 17px;
  height: 17px;
  margin: 0;
  border-width: 2px;
}

.activation-progress ol {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
}

.activation-progress li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--slate-500);
  font-size: 11px;
  white-space: nowrap;
}

.activation-progress li span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid var(--ivory-200);
  border-radius: 50%;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  background: var(--white);
}

.activation-progress li.is-complete,
.activation-progress li.is-active {
  color: var(--navy-900);
  font-weight: 700;
}

.activation-progress li.is-complete span,
.activation-progress li.is-active span {
  border-color: var(--mint-500);
  color: var(--white);
  background: var(--mint-600);
}

.activation-progress li.is-active span {
  box-shadow: 0 0 0 3px rgba(85, 197, 165, 0.18);
}

.activation-progress.is-error {
  border-color: rgba(199, 72, 72, 0.24);
  background: rgba(199, 72, 72, 0.08);
}

.activation-progress.is-error .spinner {
  display: none;
}

.activation-recovery {
  display: grid;
  margin-bottom: 20px;
  padding: 20px 22px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  border-color: rgba(24, 144, 116, 0.24);
  background: linear-gradient(100deg, rgba(85, 197, 165, 0.1), var(--white) 58%);
}

.activation-recovery-icon {
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  place-items: center;
  color: var(--mint-700);
  background: rgba(85, 197, 165, 0.15);
}

.activation-recovery-icon svg {
  width: 22px;
  height: 22px;
}

.activation-recovery h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.activation-recovery p {
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
}

.auth-visual {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: 60px;
  place-items: center;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(85, 197, 165, 0.1), transparent 52%),
    var(--navy-900);
}

.auth-visual::before {
  position: absolute;
  width: 420px;
  height: 420px;
  top: -180px;
  right: -140px;
  border: 80px solid rgba(85, 197, 165, 0.08);
  border-radius: 50%;
  content: "";
}

.auth-quote {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.auth-quote-mark {
  margin-bottom: 18px;
  color: var(--mint-500);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.auth-quote blockquote {
  margin: 0 0 24px;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.auth-quote p {
  color: #b6c4cf;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
  color: var(--slate-600);
  font-size: 14px;
}

.auth-switch a {
  color: var(--mint-700);
  font-weight: 800;
}

.auth-material-link {
  display: inline-flex;
  min-height: 44px;
  margin: 8px auto 0;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 750;
}

.auth-material-link:hover {
  color: var(--mint-700);
  background: var(--mint-100);
}

.auth-material-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

/* Forms */
.form-stack {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field-label {
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 800;
}

.optional-label {
  margin-left: 4px;
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 700;
}

.field-help {
  color: var(--slate-500);
  font-size: 12px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #dedbd2;
  border-radius: 11px;
  color: var(--navy-900);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input,
.select {
  min-height: 48px;
  padding: 10px 13px;
}

.textarea {
  min-height: 128px;
  padding: 12px 13px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: #9aa2aa;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--mint-600);
  outline: none;
  box-shadow: 0 0 0 4px rgba(85, 197, 165, 0.14);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--red-700);
}

.password-wrap {
  position: relative;
}

.password-wrap .input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--slate-500);
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--slate-600);
  font-size: 13px;
}

.checkbox-label input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--mint-700);
}

.agreement-list {
  display: grid;
  gap: 10px;
}

.form-error {
  padding: 12px 14px;
  border: 1px solid #f0c8c5;
  border-radius: 10px;
  color: var(--red-700);
  background: var(--red-100);
  font-size: 13px;
  font-weight: 700;
}

.form-error-link {
  display: inline-block;
  margin-left: 4px;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form-error-link:hover {
  text-decoration-thickness: 2px;
}

/* App shell */
.app-shell {
  display: grid;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: start;
}

.sidebar-overlay {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  height: 100vh;
  height: 100dvh;
  padding: 28px 18px 20px;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  border-right: 1px solid rgba(20, 38, 63, 0.08);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(14px);
}

.sidebar .brand {
  padding: 0 10px;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-close {
  display: none;
}

.sidebar-nav {
  display: grid;
  margin-top: 42px;
  gap: 5px;
}

.nav-section-label {
  margin: 21px 11px 7px;
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.nav-item {
  display: flex;
  min-height: 44px;
  padding: 9px 11px;
  align-items: center;
  gap: 11px;
  border-radius: 10px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 750;
}

.nav-item > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--navy-900);
  background: rgba(238, 232, 220, 0.55);
}

.nav-item[aria-current="page"] {
  color: var(--navy-950);
  background: var(--mint-100);
}

.nav-item[aria-current="page"] svg {
  color: var(--mint-700);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
}

.profile-mini {
  display: flex;
  padding: 11px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--ivory-200);
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--navy-900);
  background: var(--mint-200);
  font-size: 13px;
  font-weight: 900;
}

.profile-copy {
  min-width: 0;
}

.profile-copy strong,
.profile-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 13px;
}

.profile-copy span {
  color: var(--slate-500);
  font-size: 11px;
}

.app-column {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

.mobile-header {
  display: none;
}

.first-run-topbar {
  display: none;
}

.app-shell-first-run {
  display: block;
}

.app-shell-first-run .sidebar,
.app-shell-first-run .sidebar-overlay,
.app-shell-first-run .mobile-header {
  display: none;
}

.app-shell-first-run .app-column {
  grid-column: auto;
  grid-row: auto;
}

.app-shell-first-run .first-run-topbar {
  display: flex;
  width: min(calc(100% - 40px), var(--content));
  min-height: 78px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.first-run-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.app-main {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 46px clamp(20px, 2.5vw, 40px) 88px;
  padding-bottom: max(112px, calc(80px + env(safe-area-inset-bottom)));
}

.app-main > :first-child {
  scroll-margin-top: 24px;
}

.app-main:focus {
  outline: none;
}

.app-shell-first-run .app-main {
  max-width: 980px;
  padding-top: clamp(24px, 4vh, 48px);
}

.app-shell-first-run .dashboard-page-header {
  margin-bottom: 24px;
}

.app-shell-first-run .dashboard-start-card {
  padding: clamp(24px, 3vw, 34px);
}

.app-shell-first-run .dashboard-summary-full .onboarding-card {
  padding: 12px 0 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.page-header {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.page-header h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 38px);
  overflow-wrap: anywhere;
}

.page-header > div:first-child {
  min-width: 0;
}

.page-header p {
  margin: 0;
  color: var(--slate-600);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.breadcrumb {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  max-width: min(48vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb a:hover {
  color: var(--mint-700);
}

.breadcrumb-sep {
  color: #b6bbb9;
}

.greeting-kicker {
  margin-bottom: 6px;
  color: var(--mint-700);
  font-size: 13px;
  font-weight: 850;
}

.card {
  border: 1px solid var(--ivory-200);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.card-pad {
  padding: 24px;
}

.card-header {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-header h2,
.card-header h3 {
  margin: 0;
}

.card-header h2 {
  font-size: 20px;
}

.card-header h3 {
  font-size: 17px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-pro-launch {
  display: flex;
  margin-bottom: 18px;
  padding: 18px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: var(--mint-200);
  background: linear-gradient(135deg, var(--mint-100), rgba(255, 255, 255, 0.96));
}

.dashboard-pro-launch-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.dashboard-pro-launch-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--navy-950);
  background: var(--mint-200);
}

.dashboard-pro-launch-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dashboard-pro-launch strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy-950);
  font-size: 15px;
}

.dashboard-pro-launch p {
  margin: 0;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.55;
}

.dashboard-pro-launch .button {
  flex: 0 0 auto;
}

.dashboard-first-run,
.dashboard-first-run-header {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}

.dashboard-first-run-header {
  justify-content: center;
  text-align: center;
}

.dashboard-first-run-header p {
  max-width: 660px;
  margin-inline: auto;
}

.dashboard-grid > * {
  min-width: 0;
  max-width: 100%;
}

.dashboard-main {
  grid-column: span 8;
}

.dashboard-side {
  grid-column: span 4;
}

.dashboard-continue {
  grid-column: span 5;
}

.dashboard-full {
  grid-column: 1 / -1;
}

.dashboard-grid-active .dashboard-start-card {
  grid-column: span 7;
}

.dashboard-grid-active .dashboard-start-card,
.dashboard-grid-active .dashboard-continue {
  height: 100%;
}

.dashboard-grid-active .dashboard-start-heading h2 {
  font-size: clamp(21px, 2vw, 26px);
}

.dashboard-grid-active .dashboard-start-heading p {
  font-size: 14px;
}

.dashboard-grid-active .continue-card {
  min-height: auto;
}

.dashboard-grid-active .continue-card p {
  margin-bottom: 18px;
}

.dashboard-grid-active .continue-actions {
  margin-top: 18px;
}

.dashboard-start-card {
  padding: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(85, 197, 165, 0.16), transparent 17rem),
    rgba(255, 255, 255, 0.92);
}

.dashboard-start-heading {
  margin-bottom: 18px;
}

.dashboard-start-heading .eyebrow {
  margin-bottom: 10px;
}

.dashboard-start-heading h2 {
  margin-bottom: 7px;
  font-size: clamp(23px, 2.5vw, 30px);
  overflow-wrap: anywhere;
}

.dashboard-start-heading p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--slate-600);
  overflow-wrap: anywhere;
}

.dashboard-start-card .landing-composer {
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(20, 38, 63, 0.08);
}

.dashboard-start-card .landing-composer textarea {
  min-height: 86px;
  max-height: 220px;
}

.composer-course-row {
  display: grid;
  padding: 8px 10px 12px;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ivory-200);
}

.composer-course-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.composer-course-row label svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--mint-700);
}

.composer-course-select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding-block: 7px;
  text-overflow: ellipsis;
}

.composer-course-help {
  max-width: 210px;
  color: var(--slate-500);
  font-size: 11px;
  line-height: 1.45;
}

.dashboard-start-card .composer-privacy {
  justify-content: flex-start;
  margin-bottom: 0;
}

.dashboard-start-card-persistent {
  padding: 24px;
}

.dashboard-start-card-persistent .dashboard-start-heading {
  margin-bottom: 14px;
}

.dashboard-start-card-persistent .dashboard-start-heading h2 {
  font-size: clamp(22px, 2.2vw, 28px);
}

.dashboard-start-card-persistent .landing-composer textarea {
  min-height: 72px;
}

.dashboard-summary-full .stat-grid,
.dashboard-summary-full .onboarding-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-summary-full .onboarding-card {
  min-height: auto;
}

.dashboard-first-run .onboarding-card {
  padding-block: 24px;
}

.dashboard-summary-full .onboarding-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-full .empty-state {
  min-height: 210px;
  padding-block: 28px;
}

.continue-card {
  position: relative;
  min-height: 248px;
  padding: 30px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
}

.continue-card::after {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -110px;
  border: 55px solid rgba(85, 197, 165, 0.11);
  border-radius: 50%;
  content: "";
}

.continue-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 560px;
}

.continue-content h2 {
  overflow-wrap: anywhere;
}

.continue-card .eyebrow {
  color: var(--mint-200);
  background: rgba(85, 197, 165, 0.12);
}

.continue-card h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.continue-card p {
  margin-bottom: 24px;
  color: #bbc7d1;
}

.continue-actions {
  display: flex;
  margin-top: 22px;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.continue-secondary {
  color: var(--mint-200);
}

.continue-secondary:hover {
  color: var(--white);
}

.goal-line {
  display: flex;
  margin: 13px 0 8px;
  justify-content: space-between;
  color: #dbe3e9;
  font-size: 12px;
  font-weight: 750;
}

.progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mint-500);
  transition: width 0.35s ease;
}

.goal-marker {
  position: relative;
}

.goal-marker::after {
  position: absolute;
  top: -3px;
  left: 90%;
  width: 2px;
  height: 15px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.75);
  content: "";
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 750;
}

.stat-card strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 26px;
}

.stat-card small {
  color: var(--mint-700);
  font-weight: 750;
}

.onboarding-card {
  min-height: 100%;
  padding: 26px;
}

.onboarding-card h2 {
  margin: 12px 0 20px;
  font-size: 22px;
}

.onboarding-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.onboarding-steps li {
  display: flex;
  padding: 12px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--ivory-200);
  border-radius: 12px;
  background: var(--white);
}

.onboarding-steps li > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--mint-700);
  background: var(--mint-100);
  font-size: 12px;
  font-weight: 900;
}

.onboarding-steps strong,
.onboarding-steps small {
  display: block;
}

.onboarding-steps strong {
  font-size: 13px;
}

.onboarding-steps small {
  color: var(--slate-500);
  font-size: 11px;
}

.onboarding-card .privacy-note {
  margin-top: 18px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.course-card {
  display: flex;
  min-height: 180px;
  padding: 21px;
  flex-direction: column;
  border: 1px solid var(--ivory-200);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.course-card:hover {
  border-color: #d4dcd5;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.course-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.course-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--mint-700);
  background: var(--mint-100);
}

.course-card h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 17px 0 5px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 17px;
}

.course-card p {
  margin-bottom: 15px;
  color: var(--slate-500);
  font-size: 12px;
}

.course-card-foot {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 750;
}

.score-chip,
.status-chip,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 800;
}

.score-chip {
  padding: 5px 9px;
  color: var(--mint-700);
  background: var(--mint-100);
  font-size: 11px;
}

.status-chip {
  padding: 5px 10px;
  gap: 5px;
  color: var(--navy-700);
  background: var(--blue-100);
  font-size: 11px;
}

.status-chip.success {
  color: var(--mint-700);
  background: var(--mint-100);
}

.status-chip.warning {
  color: var(--amber-700);
  background: var(--amber-100);
}

.status-chip.danger {
  color: var(--red-700);
  background: var(--red-100);
}

.tag {
  padding: 4px 9px;
  color: var(--navy-700);
  background: var(--ivory-100);
  font-size: 11px;
}

.recent-list,
.material-list,
.history-list,
.weak-list {
  display: grid;
  gap: 8px;
}

.recent-item,
.material-item,
.history-item,
.weak-item {
  display: flex;
  padding: 14px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ivory-200);
  border-radius: 12px;
  background: var(--white);
}

.recent-item-icon,
.material-type {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--navy-700);
  background: var(--blue-100);
  font-size: 10px;
  font-weight: 900;
}

.recent-copy,
.material-copy,
.history-copy,
.weak-copy {
  min-width: 0;
  flex: 1;
}

.recent-copy strong,
.material-copy strong,
.history-copy strong,
.weak-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.recent-copy span,
.material-copy span,
.history-copy span,
.weak-copy span {
  display: block;
  color: var(--slate-500);
  font-size: 11px;
}

.material-copy .material-note {
  display: block;
  margin-top: 4px;
  color: var(--amber-700);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
  white-space: normal;
}

.empty-state {
  display: grid;
  min-height: 260px;
  padding: 36px;
  place-items: center;
  text-align: center;
  border: 1px dashed #d7d3ca;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
}

.empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 18px;
  color: var(--mint-700);
  background: var(--mint-100);
}

.empty-icon svg {
  width: 25px;
  height: 25px;
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 7px;
}

.empty-state p {
  max-width: 430px;
  margin: 0 auto 20px;
  color: var(--slate-600);
  font-size: 14px;
}

/* Course */
.course-hero {
  display: grid;
  margin-bottom: 20px;
  padding: 28px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.course-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.course-title-row > div:last-child {
  min-width: 0;
}

.course-title-row .course-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.course-title-row h1 {
  margin: 0 0 3px;
  font-size: 28px;
  overflow-wrap: anywhere;
}

.course-title-row p {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
}

.course-metrics {
  display: flex;
  gap: 26px;
}

.course-metric span,
.course-metric strong {
  display: block;
}

.course-metric span {
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 750;
}

.course-metric strong {
  margin-top: 2px;
  font-size: 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.analysis-card {
  padding: 22px;
}

.analysis-heading {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analysis-heading strong {
  font-size: 14px;
}

.analysis-meta {
  display: flex;
  margin-top: 10px;
  justify-content: space-between;
  color: var(--slate-500);
  font-size: 11px;
}

.concept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.quick-action {
  display: flex;
  min-height: 94px;
  padding: 15px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--ivory-200);
  border-radius: 13px;
  color: var(--navy-900);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.quick-action:hover {
  border-color: var(--mint-500);
  background: var(--mint-100);
}

.quick-action svg {
  width: 21px;
  height: 21px;
  color: var(--mint-700);
}

/* Upload */
.upload-layout,
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.drop-zone {
  display: grid;
  min-height: 390px;
  padding: 48px 36px;
  place-items: center;
  border: 2px dashed #cad7d1;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  background: linear-gradient(145deg, rgba(232, 247, 242, 0.42), rgba(255, 255, 255, 0.7));
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--mint-600);
  background: var(--mint-100);
}

.drop-zone.is-dragging {
  transform: scale(1.01);
  border-style: solid;
  box-shadow: 0 0 0 8px rgba(52, 169, 139, 0.12);
}

.drop-zone:focus-visible {
  outline: 3px solid rgba(52, 169, 139, 0.5);
  outline-offset: 3px;
}

.upload-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 17px;
  place-items: center;
  border-radius: 19px;
  color: var(--mint-700);
  background: var(--mint-100);
}

.upload-icon svg {
  width: 27px;
  height: 27px;
}

.drop-zone h2 {
  margin-bottom: 7px;
  font-size: 21px;
}

.drop-zone p {
  margin-bottom: 15px;
  color: var(--slate-600);
  font-size: 14px;
}

.drop-zone small {
  display: block;
  margin-top: 12px;
  color: var(--slate-500);
}

.auth-inline-link {
  margin-top: -6px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
}

.auth-inline-link a {
  color: var(--mint-700);
}

.recovery-unavailable {
  display: block;
}

.recovery-success {
  display: flex;
  padding: 18px;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(34, 139, 111, 0.28);
  border-radius: 14px;
  color: var(--navy-800);
  background: var(--mint-100);
}

.recovery-success > svg {
  width: 22px;
  flex: 0 0 auto;
  color: var(--mint-700);
}

.recovery-success p {
  margin: 5px 0 0;
  color: var(--slate-600);
  font-size: 13px;
}

.selected-file {
  display: flex;
  margin-top: 14px;
  padding: 13px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--mint-200);
  border-radius: 12px;
  background: var(--mint-100);
}

.selected-file .material-type {
  background: var(--white);
}

.selected-file-copy {
  min-width: 0;
  flex: 1;
}

.selected-file-copy strong,
.selected-file-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-copy strong {
  font-size: 13px;
}

.selected-file-copy span {
  color: var(--slate-500);
  font-size: 11px;
}

.divider-label {
  display: flex;
  margin: 20px 0;
  align-items: center;
  gap: 12px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 750;
}

.divider-label::before,
.divider-label::after {
  height: 1px;
  flex: 1;
  background: var(--ivory-200);
  content: "";
}

.info-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--slate-600);
  font-size: 13px;
}

.info-number {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--mint-700);
  background: var(--mint-100);
  font-size: 11px;
  font-weight: 900;
}

.privacy-note {
  display: flex;
  margin-top: 18px;
  padding: 13px;
  align-items: flex-start;
  gap: 9px;
  border-radius: 11px;
  color: var(--navy-700);
  background: var(--blue-100);
  font-size: 12px;
}

.privacy-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--mint-700);
}

/* Generator */
.option-group {
  display: grid;
  gap: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.segment-input,
.type-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment-label {
  display: grid;
  min-height: 72px;
  padding: 11px;
  place-items: center;
  border: 1px solid var(--ivory-200);
  border-radius: 11px;
  cursor: pointer;
  text-align: center;
  background: var(--white);
}

.segment-label strong,
.segment-label span {
  display: block;
}

.segment-label strong {
  font-size: 14px;
}

.segment-label span {
  color: var(--slate-500);
  font-size: 10px;
}

.segment-input:checked + .segment-label,
.type-input:checked + .type-label {
  border-color: var(--mint-600);
  background: var(--mint-100);
  box-shadow: inset 0 0 0 1px var(--mint-600);
}

.segment-input:focus-visible + .segment-label,
.type-input:focus-visible + .type-label {
  outline: 3px solid rgba(52, 169, 139, 0.5);
  outline-offset: 2px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.type-label {
  display: flex;
  min-height: 54px;
  padding: 11px 13px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--ivory-200);
  border-radius: 11px;
  cursor: pointer;
  background: var(--white);
  font-size: 13px;
  font-weight: 750;
}

.type-label > span:last-child {
  min-width: 0;
}

.type-label small {
  display: block;
  margin-top: 1px;
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 650;
}

.type-check {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #c8cdc9;
  border-radius: 6px;
  color: transparent;
  background: var(--white);
  font-size: 11px;
}

.type-input:checked + .type-label .type-check {
  border-color: var(--mint-700);
  color: var(--white);
  background: var(--mint-700);
}

.generation-summary {
  position: sticky;
  top: 24px;
}

.summary-course {
  display: flex;
  padding-bottom: 17px;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--ivory-200);
}

.summary-list {
  display: grid;
  margin: 18px 0;
  gap: 11px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--slate-600);
  font-size: 13px;
}

.summary-row strong {
  color: var(--navy-900);
}

/* Quiz */
.quiz-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ivory-100);
}

.quiz-header {
  position: sticky;
  top: 0;
  z-index: 15;
  border-bottom: 1px solid var(--ivory-200);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(14px);
}

.quiz-header-inner {
  display: grid;
  width: min(calc(100% - 36px), 980px);
  min-height: 72px;
  margin: 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.quiz-header-center {
  text-align: center;
}

.quiz-header-center strong,
.quiz-header-center span {
  display: block;
}

.quiz-header-center strong {
  font-size: 13px;
}

.quiz-header-center span {
  color: var(--slate-500);
  font-size: 11px;
}

.quiz-header-end {
  display: flex;
  justify-content: flex-end;
}

.quiz-progress-wrap {
  width: min(calc(100% - 36px), 980px);
  margin: 0 auto;
  padding-bottom: 13px;
}

.quiz-progress-wrap .progress {
  height: 5px;
  background: var(--ivory-200);
}

.quiz-main {
  width: min(calc(100% - 36px), 760px);
  margin: 0 auto;
  padding: 48px 0 calc(120px + env(safe-area-inset-bottom));
}

.quiz-meta {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
  justify-content: space-between;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 750;
}

.quiz-number {
  color: var(--mint-700);
  font-weight: 900;
}

.question-card {
  padding: clamp(22px, 4vw, 38px);
}

.question-card h1 {
  margin-bottom: 28px;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.5;
}

.quiz-text-answer {
  gap: 9px;
}

.quiz-text-answer > label {
  font-size: 13px;
}

.quiz-text-answer .input {
  min-height: 54px;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-input {
  position: absolute;
  opacity: 0;
}

.option-label {
  display: flex;
  min-height: 58px;
  padding: 13px 15px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--ivory-200);
  border-radius: 12px;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-label:hover {
  border-color: #bdcfc8;
  background: var(--mint-100);
}

.option-key {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d3d8d5;
  border-radius: 9px;
  color: var(--slate-500);
  background: var(--ivory-50);
  font-size: 12px;
  font-weight: 850;
}

.option-input:checked + .option-label {
  border-color: var(--mint-600);
  background: var(--mint-100);
  box-shadow: inset 0 0 0 1px var(--mint-600);
}

.option-input:checked + .option-label .option-key {
  border-color: var(--mint-700);
  color: var(--white);
  background: var(--mint-700);
}

.option-input:focus-visible + .option-label {
  outline: 3px solid rgba(52, 169, 139, 0.5);
  outline-offset: 2px;
}

.quiz-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 14;
  border-top: 1px solid var(--ivory-200);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}

.quiz-footer-inner {
  display: flex;
  width: min(calc(100% - 36px), 760px);
  min-height: 80px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.question-dots {
  display: flex;
  align-items: center;
  gap: 0;
}

.quiz-answer-progress {
  margin: 13px 4px 0;
}

.quiz-footer-status {
  display: none;
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.quiz-footer-status.is-visible {
  display: inline-flex;
}

.question-dot {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: transparent;
  touch-action: manipulation;
}

.question-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  content: "";
  background: #d5d8d5;
  transition: width 0.15s ease, background 0.15s ease;
}

.question-dot.answered::before {
  background: var(--mint-200);
}

.question-dot.active::before {
  width: 20px;
  background: var(--mint-600);
}

.quiz-nav-actions {
  display: flex;
  gap: 8px;
}

/* Results */
.result-hero {
  position: relative;
  display: grid;
  min-height: 310px;
  padding: 40px;
  place-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background: var(--navy-900);
}

.result-hero::before,
.result-hero::after {
  position: absolute;
  border: 50px solid rgba(85, 197, 165, 0.08);
  border-radius: 50%;
  content: "";
}

.result-hero::before {
  width: 240px;
  height: 240px;
  left: -120px;
  bottom: -150px;
}

.result-hero::after {
  width: 180px;
  height: 180px;
  top: -110px;
  right: -90px;
}

.result-content {
  position: relative;
  z-index: 1;
}

.result-kicker {
  margin-bottom: 8px;
  color: var(--mint-200);
  font-size: 13px;
  font-weight: 850;
}

.result-score {
  margin: 0;
  font-size: clamp(58px, 10vw, 84px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.result-score small {
  font-size: 26px;
}

.result-title {
  margin: 12px 0 5px;
  font-size: 22px;
}

.result-copy {
  margin: 0;
  color: #bbc8d1;
}

.result-stats {
  display: grid;
  margin: -28px auto 22px;
  padding: 18px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ivory-200);
}

.result-stat {
  padding: 16px;
  text-align: center;
  background: var(--white);
}

.result-stat span,
.result-stat strong {
  display: block;
}

.result-stat span {
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 750;
}

.result-stat strong {
  margin-top: 3px;
  font-size: 21px;
}

.result-feedback {
  display: flex;
  margin-bottom: 24px;
  padding: 17px 19px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: var(--ivory-300);
  box-shadow: none;
}

.result-actions {
  align-items: center;
}

.result-feedback-copy {
  display: grid;
  gap: 3px;
}

.result-feedback-copy strong {
  color: var(--navy-800);
  font-size: 14px;
}

.result-feedback-copy span {
  color: var(--slate-500);
  font-size: 11px;
}

.result-feedback-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.feedback-button {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--ivory-300);
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.feedback-button:hover:not(:disabled) {
  border-color: var(--mint-500);
  color: var(--mint-800);
  transform: translateY(-1px);
}

.feedback-button:focus-visible {
  outline: 3px solid rgba(52, 169, 139, 0.35);
  outline-offset: 2px;
}

.feedback-button.is-selected {
  border-color: var(--mint-600);
  color: var(--mint-900);
  background: var(--mint-100);
}

.feedback-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  padding: 22px;
}

.review-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  list-style: none;
  cursor: pointer;
}

.review-top::-webkit-details-marker {
  display: none;
}

.review-top:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgba(52, 169, 139, 0.45);
  outline-offset: 5px;
}

.review-card[open] .review-top {
  margin-bottom: 12px;
}

.review-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: var(--mint-800);
  font-size: 0;
  font-weight: 850;
  white-space: nowrap;
}

.review-toggle::before {
  content: "해설 보기";
  font-size: 11px;
}

.review-toggle::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.review-card[open] .review-toggle::before {
  content: "접기";
}

.review-card[open] .review-toggle::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.review-number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--white);
  background: var(--mint-700);
  font-size: 12px;
  font-weight: 900;
}

.review-number.wrong {
  background: var(--red-700);
}

.review-question {
  flex: 1;
  font-weight: 800;
}

.answer-grid {
  display: grid;
  margin: 14px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.answer-box {
  padding: 12px;
  border-radius: 10px;
  background: var(--ivory-100);
}

.answer-box.correct {
  background: var(--mint-100);
}

.answer-box span,
.answer-box strong {
  display: block;
}

.answer-box span {
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 750;
}

.answer-box strong {
  margin-top: 2px;
  font-size: 13px;
}

.explanation {
  padding: 14px;
  border-left: 3px solid var(--mint-500);
  border-radius: 0 9px 9px 0;
  color: var(--navy-700);
  background: var(--mint-100);
  font-size: 13px;
}

.source-box {
  display: flex;
  margin-top: 10px;
  padding: 11px 13px;
  align-items: flex-start;
  gap: 8px;
  border-radius: 9px;
  color: var(--slate-600);
  background: var(--blue-100);
  font-size: 12px;
}

.source-box svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--navy-700);
}

.result-pro-card {
  display: flex;
  margin-top: 22px;
  padding: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: rgba(42, 151, 122, 0.32);
  background: linear-gradient(120deg, var(--white), var(--mint-100));
}

.result-pro-card h2 {
  margin: 12px 0 5px;
  font-size: 20px;
}

.result-pro-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
}

.result-pro-card .button {
  flex: 0 0 auto;
}

/* Insights, history, settings */
.mastery-ring {
  position: relative;
  display: grid;
  width: 148px;
  height: 148px;
  margin: 10px auto 20px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--mint-500) var(--ring, 0%), var(--ivory-200) 0);
}

.mastery-ring::before {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--white);
  content: "";
}

.mastery-ring-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.mastery-ring-inner strong,
.mastery-ring-inner span {
  display: block;
}

.mastery-ring-inner strong {
  font-size: 28px;
}

.mastery-ring-inner span {
  color: var(--slate-500);
  font-size: 10px;
}

.weak-score {
  min-width: 50px;
  text-align: right;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 900;
}

.weak-bar {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--ivory-200);
}

.weak-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #e9ad5a;
}

.history-item {
  padding: 17px;
}

.history-score {
  min-width: 62px;
  text-align: right;
  font-size: 19px;
  font-weight: 900;
}

.history-score.mastered {
  color: var(--mint-700);
}

.plan-settings {
  overflow: hidden;
  background:
    radial-gradient(circle at 96% 0, rgba(85, 197, 165, 0.14), transparent 19rem),
    var(--white);
}

.settings-plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.settings-plan-header h2 {
  margin: 13px 0 5px;
  font-size: 24px;
}

.settings-plan-header p {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
}

.settings-plan-price {
  display: flex;
  padding-top: 8px;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.settings-plan-price strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.settings-plan-price span {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

.usage-grid {
  display: grid;
  margin-top: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.usage-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--ivory-200);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
}

.usage-item > span {
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 800;
}

.usage-value {
  display: flex;
  margin: 7px 0 11px;
  align-items: baseline;
  gap: 4px;
}

.usage-value strong {
  font-size: 24px;
}

.usage-value small {
  overflow: hidden;
  color: var(--slate-500);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--ivory-200);
}

.usage-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mint-600);
}

.usage-track.unlimited span {
  width: 100%;
  background: linear-gradient(90deg, var(--mint-200), var(--mint-500));
}

.plan-settings-footer {
  display: flex;
  margin-top: 18px;
  padding-top: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--ivory-200);
}

.plan-settings-footer > span {
  color: var(--slate-500);
  font-size: 12px;
}

.danger-zone {
  border-color: #edc5c2;
}

.danger-zone .card-header h2 {
  color: var(--red-700);
}

.danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.danger-row p {
  margin: 4px 0 0;
  color: var(--slate-600);
  font-size: 13px;
}

.operator-page-header {
  align-items: flex-end;
}

.operator-periods {
  display: inline-flex;
  padding: 4px;
  gap: 3px;
  border: 1px solid var(--ivory-200);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.operator-periods a {
  min-width: 58px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--slate-600);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.operator-periods a:hover {
  color: var(--navy-900);
  background: var(--ivory-100);
}

.operator-periods a[aria-current="page"] {
  color: var(--navy-950);
  background: var(--mint-100);
}

.operator-scope-note {
  display: flex;
  margin: -4px 0 20px;
  padding: 13px 15px;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--mint-200);
  border-radius: 14px;
  color: var(--slate-600);
  background: var(--mint-100);
  font-size: 12px;
  line-height: 1.55;
}

.operator-scope-note > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--mint-700);
  background: var(--white);
}

.operator-scope-note svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.operator-scope-note strong {
  display: block;
  margin-bottom: 1px;
  color: var(--navy-950);
  font-size: 12px;
}

.operator-kpi-grid {
  display: grid;
  margin-bottom: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.operator-kpi {
  min-width: 0;
  padding: 20px;
}

.operator-kpi > span,
.operator-kpi > small {
  display: block;
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 750;
}

.operator-kpi > strong {
  display: block;
  margin: 8px 0 6px;
  overflow-wrap: anywhere;
  color: var(--navy-950);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.operator-revenue {
  margin-bottom: 20px;
}

.operator-revenue .card-header {
  align-items: flex-end;
}

.operator-revenue .card-header p,
.operator-dashboard-grid .card-header p {
  margin: 5px 0 0;
  color: var(--slate-500);
  font-size: 12px;
}

.operator-progress-meta {
  display: flex;
  margin-top: 8px;
  justify-content: space-between;
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 750;
}

.operator-launch {
  margin-bottom: 20px;
}

.operator-launch-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  list-style: none;
}

.operator-launch-list li {
  display: grid;
  min-width: 0;
  padding: 14px;
  align-items: start;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid var(--ivory-200);
  border-radius: 12px;
  background: var(--white);
}

.operator-launch-list li.is-ready {
  border-color: var(--mint-200);
  background: var(--mint-100);
}

.operator-launch-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: var(--amber-700);
  background: var(--amber-100);
}

.operator-launch-list li.is-ready .operator-launch-icon {
  color: var(--mint-700);
  background: rgba(85, 197, 165, 0.16);
}

.operator-launch-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.operator-launch-list strong,
.operator-launch-list small {
  display: block;
}

.operator-launch-list strong {
  font-size: 13px;
}

.operator-launch-list small {
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 11px;
  line-height: 1.45;
}

.operator-launch-list em {
  color: var(--amber-700);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.operator-launch-list li.is-ready em {
  color: var(--mint-700);
}

.operator-launch-summary {
  margin: 12px 0 0;
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 750;
}

.operator-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 20px;
}

.operator-acquisition {
  grid-column: 1 / -1;
}

.operator-cohorts {
  grid-column: 1 / -1;
}

.operator-pricing-research {
  grid-column: 1 / -1;
}

.operator-funnel {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 13px;
  list-style: none;
}

.operator-funnel li > div:first-child {
  display: flex;
  margin-bottom: 5px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.operator-funnel li strong {
  white-space: nowrap;
}

.operator-funnel li strong small {
  margin-left: 4px;
  color: var(--slate-500);
  font-size: 10px;
}

.operator-funnel-track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--ivory-200);
}

.operator-funnel-track span {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: var(--mint-600);
}

.operator-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  border: 1px solid var(--ivory-200);
  border-radius: 12px;
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.operator-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 12px;
}

.operator-table-wide {
  min-width: 820px;
}

.operator-channel strong,
.operator-channel small {
  display: block;
}

.operator-channel small,
.operator-table td small {
  color: var(--slate-500);
  font-weight: 700;
}

.operator-table th,
.operator-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--ivory-200);
  text-align: right;
  white-space: nowrap;
}

.operator-table th:first-child,
.operator-table td:first-child {
  text-align: left;
}

.operator-table thead th {
  color: var(--slate-500);
  background: var(--ivory-100);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.operator-table tbody tr:last-child th,
.operator-table tbody tr:last-child td {
  border-bottom: 0;
}

.operator-note,
.operator-freshness {
  color: var(--slate-500);
  font-size: 11px;
}

.operator-note {
  margin: 14px 0 0;
}

.operator-freshness {
  margin: 18px 0 0;
  text-align: right;
}

@media (max-width: 900px) {
  .operator-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .operator-page-header {
    align-items: stretch;
  }

  .operator-periods {
    width: 100%;
  }

  .operator-periods a {
    flex: 1;
  }

  .operator-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operator-kpi {
    padding: 17px;
  }

  .operator-revenue .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .operator-launch .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .operator-launch-list {
    grid-template-columns: 1fr;
  }

  .operator-funnel li > div:first-child {
    align-items: flex-start;
  }

  .operator-freshness {
    text-align: left;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(13, 27, 45, 0.58);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(100%, 470px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 25px 80px rgba(13, 27, 45, 0.25);
}

.modal h2 {
  margin-bottom: 9px;
}

.modal p {
  color: var(--slate-600);
  font-size: 14px;
}

.modal-actions {
  display: flex;
  margin-top: 22px;
  justify-content: flex-end;
  gap: 8px;
}

.preview-modal {
  width: min(100%, 620px);
}

.preview-kicker {
  margin-bottom: 8px;
  color: var(--mint-700);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.preview-form {
  margin-top: 20px;
}

.preview-form fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.preview-form legend {
  width: 100%;
  margin-bottom: 18px;
  color: var(--navy-900);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.65;
  white-space: pre-line;
}

.preview-result {
  display: grid;
  margin: 20px 0 16px;
  padding: 18px;
  gap: 8px;
  border: 1px solid var(--mint-200);
  border-radius: 14px;
  background: var(--mint-100);
}

.preview-result.incorrect {
  border-color: #ecd9b8;
  background: #fff9ed;
}

.preview-result strong {
  color: var(--navy-900);
  font-size: 17px;
}

.preview-result span {
  margin-top: 4px;
  color: var(--mint-700);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-result blockquote {
  margin: 0;
  color: var(--slate-700);
  font-size: 13px;
  line-height: 1.65;
}

.preview-actions .button-primary {
  flex: 1;
}

/* Feedback and loading */
.toast-region {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 150;
  display: grid;
  width: min(380px, calc(100% - 36px));
  gap: 8px;
}

.toast {
  display: flex;
  padding: 13px 15px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--mint-200);
  border-radius: 12px;
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 750;
  animation: toast-in 0.22s ease both;
}

.toast.error {
  border-color: #efc8c5;
}

.toast-mark {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--mint-700);
  font-size: 11px;
}

.toast.error .toast-mark {
  background: var(--red-700);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.loading-page {
  display: grid;
  min-height: 60vh;
  place-items: center;
  text-align: center;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border: 3px solid var(--mint-200);
  border-top-color: var(--mint-700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-page p,
.skeleton-note {
  color: var(--slate-500);
  font-size: 13px;
}

.error-state {
  display: grid;
  min-height: 300px;
  padding: 30px;
  place-items: center;
  text-align: center;
}

.error-state h2 {
  margin-bottom: 7px;
}

.error-state p {
  max-width: 460px;
  color: var(--slate-600);
}

/* Responsive */
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 220px;
  }

  .sidebar {
    padding-inline: 14px;
  }

  .app-main {
    max-width: 960px;
    padding-inline: 20px;
  }
}

@media (max-width: 1120px) {
  .dashboard-main,
  .dashboard-side,
  .dashboard-continue,
  .dashboard-grid-active .dashboard-start-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .hero {
    gap: 34px;
  }

  .floating-card.one {
    right: 0;
  }

  .dashboard-summary-full .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid,
  .upload-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .generation-summary {
    position: static;
  }
}

@media (max-width: 820px) {
  .public-header {
    height: 68px;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 90px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .hero-note {
    justify-content: center;
  }

  .hero-visual {
    min-height: 500px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(2) {
    transform: none;
  }

  .landing-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-teaser {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-grid {
    max-width: 560px;
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

  .auth-page {
    display: block;
  }

  .activation-auth {
    display: grid;
  }

  .auth-panel {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .auth-visual {
    display: none;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 80;
    grid-column: auto;
    grid-row: auto;
    width: min(300px, 86vw);
    height: 100vh;
    height: 100dvh;
    box-shadow: 20px 0 60px rgba(13, 27, 45, 0.18);
    overscroll-behavior-y: contain;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: grid;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    border: 0;
    background: rgba(13, 27, 45, 0.45);
  }

  .sidebar-overlay.is-open {
    display: block;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    min-height: 66px;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ivory-200);
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(14px);
  }

  .mobile-header .brand-korean {
    display: none;
  }

  .app-main {
    max-width: 796px;
    padding-inline: 18px;
    padding-top: 30px;
  }

  .course-hero {
    grid-template-columns: 1fr;
  }

  .course-metrics {
    padding-top: 16px;
    border-top: 1px solid var(--ivory-200);
  }

  .question-dots {
    display: none;
  }

  .quiz-footer-status {
    display: inline-flex;
  }
}

@media (min-width: 821px) and (max-width: 900px) {
  .auth-page:not(.activation-auth) {
    display: block;
  }

  .auth-page:not(.activation-auth) .auth-panel {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .auth-page:not(.activation-auth) .auth-visual {
    display: none;
  }
}

@media (min-width: 601px) and (max-height: 800px) {
  .simple-hero {
    padding: 24px 0 48px;
    place-items: start center;
  }

  .simple-logo {
    margin-bottom: 14px;
    font-size: 26px;
  }

  .simple-logo .brand-mark {
    width: 41px;
    height: 41px;
    border-radius: 13px;
  }

  .simple-hero h1 {
    margin-bottom: 10px;
    font-size: clamp(40px, 4.4vw, 52px);
    line-height: 1.1;
  }

  .simple-hero-copy {
    margin-bottom: 18px;
    font-size: 16px;
  }

  .landing-composer textarea {
    min-height: 104px;
  }

  .composer-privacy {
    margin: 12px auto 0;
  }

}

@media (min-width: 1101px) and (max-height: 820px) {
  .pricing-main {
    padding: 20px 0 48px;
  }

  .pricing-hero {
    margin-bottom: 18px;
  }

  .pricing-hero h1 {
    margin: 8px 0 6px;
    font-size: 42px;
    line-height: 1.06;
  }

  .pricing-hero p {
    font-size: 15px;
    line-height: 1.45;
  }

  .pricing-hero-actions {
    margin-top: 12px;
  }

  .pricing-hero-note {
    margin-top: 5px;
  }

  .plan-card {
    padding: 20px;
  }

  .plan-card h2 {
    margin: 10px 0 4px;
    font-size: 27px;
  }

  .plan-card > div > p {
    min-height: 36px;
    font-size: 13px;
  }

  .plan-price {
    margin-top: 8px;
  }

  .plan-price strong {
    font-size: 34px;
  }

  .plan-price span {
    font-size: 11px;
  }

  .plan-list {
    margin: 12px 0;
    padding: 10px 0;
    gap: 7px;
  }

  .plan-list li {
    font-size: 13px;
  }

  .plan-list svg {
    width: 16px;
    height: 16px;
  }

  .pricing-action-note {
    margin-top: 8px !important;
  }

  .auth-panel {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .auth-main {
    padding: 18px 0;
  }

  .auth-main h1 {
    margin: 16px 0 6px;
  }

  .auth-intro {
    margin-bottom: 18px;
  }

  .auth-pending-note {
    margin-bottom: 14px;
    padding: 12px 14px;
  }

  .auth-main .form-stack {
    gap: 12px;
  }

  .auth-main .input {
    min-height: 46px;
  }

  .auth-switch {
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .legal-main {
    width: min(calc(100% - 28px), 900px);
    padding: 38px 0 62px;
  }

  .legal-hero h1 {
    font-size: 36px;
  }

  .legal-hero p {
    font-size: 15px;
  }

  .legal-article {
    padding: 28px 22px;
    border-radius: 19px;
  }

  .operator-grid > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .public-header,
  .hero,
  .section,
  .landing-footer {
    width: min(calc(100% - 32px), var(--content));
  }

  .app-shell-first-run .first-run-topbar {
    width: calc(100% - 28px);
    min-height: 64px;
    gap: 10px;
  }

  .first-run-topbar .brand-korean {
    display: none;
  }

  .first-run-nav {
    gap: 4px;
  }

  .first-run-nav .text-link,
  .first-run-nav .button {
    min-height: 44px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .brand-korean,
  .public-nav .text-link:first-child {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .simple-hero {
    width: min(calc(100% - 28px), 820px);
    min-height: calc(100svh - 68px);
    padding: 32px 0 48px;
  }

  .simple-logo {
    margin-bottom: 14px;
    font-size: 25px;
  }

  .simple-logo .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .simple-hero h1 {
    font-size: 36px;
  }

  .simple-hero-copy {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .landing-composer {
    padding: 9px;
    border-radius: 19px;
  }

  .landing-composer textarea {
    min-height: 128px;
    padding: 14px 12px 8px;
    font-size: 15px;
  }

  .composer-file {
    padding-right: 12px;
    padding-left: 12px;
  }

  .composer-shortcut {
    display: none;
  }

  .composer-actions {
    align-items: stretch;
    flex-direction: column;
    border-top: 0;
  }

  .composer-secondary-actions {
    display: grid;
    width: 100%;
    order: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .composer-actions .button {
    width: 100%;
  }

  .composer-actions > button {
    order: 0;
  }

  .composer-privacy {
    align-items: flex-start;
    text-align: left;
  }

  .format-bar {
    align-items: center;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .preview-card {
    inset: 30px 0 auto;
    padding: 16px;
  }

  .floating-card.one {
    top: 0;
    right: -4px;
  }

  .floating-card.two {
    right: -4px;
    bottom: 12px;
  }

  .section {
    padding: 76px 0;
  }

  .landing-cta {
    padding: 31px 24px;
  }

  .pricing-teaser {
    padding: 30px 24px;
  }

  .pricing-teaser .button {
    width: 100%;
  }

  .pricing-main {
    width: min(calc(100% - 28px), 1040px);
    padding: 50px 0 72px;
  }

  .pricing-hero {
    margin-bottom: 36px;
  }

  .pricing-hero h1 {
    font-size: clamp(32px, 9vw, 38px);
  }

  .pricing-hero p {
    font-size: 15px;
  }

  .pricing-hero-actions .button {
    width: 100%;
  }

  .plan-card {
    padding: 26px 22px;
  }

  .settings-plan-header,
  .plan-settings-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-grid {
    grid-template-columns: 1fr;
  }

  .plan-settings-footer .button {
    width: 100%;
  }

  .landing-footer nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .auth-panel {
    padding: 24px 22px;
  }

  .activation-auth {
    min-height: 100dvh;
    padding: 0;
    background: var(--ivory-50);
  }

  .activation-auth .auth-panel {
    width: 100%;
    min-height: 100dvh;
    padding: 22px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .activation-auth .auth-main {
    max-width: 480px;
    padding-top: 18px;
  }

  .activation-intent {
    padding: 13px 14px;
  }

  .auth-main {
    padding: 20px 0 12px;
  }

  .auth-main h1 {
    margin: 14px 0 6px;
    font-size: 31px;
  }

  .auth-intro {
    margin-bottom: 18px;
  }

  .auth-pending-note {
    margin-bottom: 16px;
    padding: 12px 14px;
  }

  .auth-main .form-stack {
    gap: 14px;
  }

  .activation-progress {
    padding: 12px;
  }

  .activation-progress li {
    align-items: flex-start;
    flex-direction: column;
    white-space: normal;
  }

  .activation-recovery {
    padding: 18px;
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .activation-recovery .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .auth-switch {
    margin-top: 16px;
  }

  .form-row,
  .segmented,
  .type-grid,
  .answer-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .page-actions {
    justify-content: flex-start;
  }

  .dashboard-page-header {
    margin-bottom: 18px;
    gap: 10px;
  }

  .dashboard-page-header .page-actions {
    display: none;
  }

  .dashboard-grid {
    display: block;
  }

  .dashboard-grid > * + * {
    margin-top: 14px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .continue-card {
    padding: 24px;
  }

  .continue-actions .button {
    width: 100%;
  }

  .dashboard-start-card {
    padding: 19px;
  }

  .dashboard-pro-launch {
    padding: 17px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .dashboard-pro-launch-copy {
    align-items: flex-start;
  }

  .dashboard-pro-launch .button {
    width: 100%;
  }

  .dashboard-summary-full .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-summary-full .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .dashboard-start-heading h2 {
    font-size: 22px;
  }

  .dashboard-start-card .landing-composer textarea {
    min-height: 116px;
  }

  .composer-course-row {
    padding: 6px 4px 12px;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 7px;
  }

  .composer-course-row label {
    padding-inline: 8px;
  }

  .composer-course-select {
    height: 46px;
  }

  .composer-course-help {
    max-width: none;
    padding-inline: 8px;
  }

  .card-pad,
  .question-card {
    padding: 19px;
  }

  .course-hero {
    padding: 20px;
  }

  .course-title-row {
    align-items: flex-start;
  }

  .course-metrics {
    justify-content: space-between;
    gap: 12px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .drop-zone {
    min-height: 260px;
    padding: 24px 18px;
  }

  .quiz-header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .quiz-header-inner .brand-name {
    display: none;
  }

  .quiz-header-center {
    overflow: hidden;
  }

  .quiz-header-center strong,
  .quiz-header-center span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .quiz-main {
    padding-top: 30px;
  }

  .question-card h1 {
    margin-bottom: 22px;
  }

  .quiz-footer-inner {
    justify-content: space-between;
  }

  .quiz-answer-progress {
    display: none;
  }

  .quiz-nav-actions {
    gap: 6px;
  }

  .quiz-nav-actions .button {
    min-height: 48px;
    padding-inline: 13px;
  }

  .result-hero {
    min-height: 285px;
    padding: 30px 20px;
  }

  .result-stats {
    margin-top: -20px;
    padding: 9px;
  }

  .result-stat {
    padding: 13px 7px;
  }

  .result-stat strong {
    font-size: 17px;
  }

  .result-feedback {
    padding: 16px;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .result-feedback-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .result-actions .button {
    width: 100%;
  }

  .feedback-button {
    min-height: 44px;
  }

  .review-card {
    padding: 18px;
  }

  .review-question {
    font-size: 14px;
    line-height: 1.55;
  }

  .review-toggle::before {
    content: "보기";
  }

  .review-card[open] .review-toggle::before {
    content: "접기";
  }

  .result-pro-card {
    padding: 20px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .result-pro-card .button {
    width: 100%;
  }

  .danger-row {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

@media (max-width: 480px) {
  .public-header {
    width: calc(100% - 28px);
  }

  .public-nav {
    gap: 4px;
  }

  .public-nav > .button {
    min-height: 38px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .public-nav .text-link {
    padding-inline: 6px;
    font-size: 12px;
  }

  .hero {
    width: calc(100% - 28px);
    padding-top: 42px;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 42px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-note {
    align-items: flex-start;
    text-align: left;
  }

  .hero-note svg {
    margin-top: 2px;
    flex: 0 0 auto;
  }

  .hero-visual {
    min-height: 390px;
  }

  .preview-card {
    inset: 12px 0 auto;
    transform: none;
  }

  .preview-question {
    padding: 17px;
  }

  .preview-question strong {
    font-size: 16px;
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 380px) and (max-height: 700px) {
  html {
    scrollbar-gutter: auto;
  }

  .public-header {
    height: 54px;
  }

  .simple-hero {
    min-height: calc(100svh - 54px);
    padding: 6px 0 28px;
    place-items: start center;
  }

  .simple-logo {
    margin-bottom: 6px;
    gap: 9px;
    font-size: 22px;
  }

  .simple-logo .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .simple-hero h1 {
    margin: 9px 0 8px;
    font-size: 31px;
    line-height: 1.08;
  }

  .simple-hero-copy {
    margin-bottom: 11px;
    font-size: 12px;
    line-height: 1.5;
  }

  .landing-composer {
    padding: 7px;
    border-radius: 17px;
  }

  .landing-composer textarea {
    min-height: 72px;
    max-height: 180px;
    padding: 9px 10px 4px;
    font-size: 14px;
    line-height: 1.45;
  }

  .composer-file {
    min-height: 24px;
    padding: 0 10px 4px;
    font-size: 10px;
  }

  .composer-actions {
    padding: 3px;
    gap: 6px;
  }

  .composer-actions .button {
    min-height: 42px;
  }

  .composer-privacy {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.35;
  }
}

/* Keep mobile form focus from triggering viewport zoom and horizontal drift. */
@media (max-width: 600px) {
  .input,
  .select,
  .textarea,
  .landing-composer textarea {
    font-size: 16px;
  }

  .public-nav > .button,
  .public-nav .text-link {
    min-height: 44px;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight;
  }

  .button,
  .icon-button,
  .password-toggle,
  .feedback-button,
  .question-dot,
  .composer-file-ready button {
    border: 1px solid ButtonText;
  }

  .question-dot::before {
    background: ButtonText;
  }

  .question-dot.answered::before {
    background: LinkText;
  }

  .question-dot.active::before,
  .progress > span,
  .usage-track > span,
  .weak-bar > span {
    background: Highlight;
  }

  .form-error,
  .pricing-result.error {
    border-color: Mark;
    color: MarkText;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Selected landing direction: Digital Notebook Remix */
@font-face {
  font-family: "NODI Black Han Sans";
  src: url("/assets/fonts/black-han-sans-korean.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "NODI Phosphor";
  src: url("/assets/fonts/phosphor-regular.woff2") format("woff2");
  font-display: block;
  font-style: normal;
  font-weight: 400;
}

.ph {
  display: inline-block;
  flex: 0 0 auto;
  font-family: "NODI Phosphor" !important;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  speak: never;
}

.ph-arrow-right::before { content: "\e06c"; }
.ph-file-arrow-up::before { content: "\e61e"; }
.ph-info::before { content: "\e2ce"; }
.ph-plus::before { content: "\e3d4"; }
.ph-shield-check::before { content: "\e40c"; }
.ph-sparkle::before { content: "\e6a2"; }

.landing-home {
  min-height: 100vh;
  color: #142449;
  background-color: #f6efdf;
  background-image: url("/assets/nodi-notebook-background.webp");
  background-repeat: no-repeat;
  background-position: center 12px;
  background-size: 104% auto;
}

.landing-home .public-header {
  width: min(calc(100% - 96px), 1440px);
  height: 120px;
  justify-content: space-between;
}

.landing-home .public-header .brand {
  display: inline-flex;
  gap: 12px;
}

.landing-home .public-header .brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.landing-home .public-header .brand-name {
  color: #112347;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.landing-home .public-header .brand-korean {
  display: none;
}

.landing-home .public-nav {
  gap: 14px;
  transform: translateX(-12px);
}

.landing-home .public-nav .text-link {
  min-height: 48px;
  padding: 10px 16px;
  color: #1c2d51;
  font-size: 15px;
  font-weight: 800;
}

.landing-home .public-nav .button {
  min-height: 50px;
  padding: 11px 24px;
  border: 2px solid #142449;
  border-radius: 12px;
  color: #ffffff;
  background: #142449;
  box-shadow: 4px 4px 0 #72d5bf;
  font-size: 15px;
}

.landing-home .simple-hero {
  display: block;
  width: min(calc(100% - 120px), 1376px);
  min-height: calc(100vh - 120px);
  min-height: calc(100dvh - 120px);
  padding: 26px 0 82px;
  text-align: left;
}

.landing-home .simple-hero-inner {
  width: 100%;
  max-width: none;
}

.landing-home .simple-hero h1 {
  max-width: 980px;
  margin: 0 0 56px 18px;
  color: #122348;
  font-family: "NODI Black Han Sans", var(--font);
  font-size: clamp(64px, 6.8vw, 106px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
  transform: scaleX(1.06);
  transform-origin: left center;
}

.landing-home .simple-hero h1 .accent {
  color: #43bda2;
  text-decoration: underline;
  text-decoration-color: rgba(67, 189, 162, 0.38);
  text-decoration-thickness: 5px;
  text-underline-offset: 10px;
}

.landing-home .simple-hero-copy {
  max-width: 630px;
  margin: 0 0 22px 22px;
  padding: 4px 0 4px 17px;
  border-left: 6px solid #63ceb7;
  color: #384665;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.landing-home .landing-composer {
  width: min(1324px, calc(100% - 10px));
  min-height: 474px;
  margin-left: 22px;
  padding: 30px 34px 34px;
  overflow: visible;
  border: 3px solid #142449;
  border-radius: 35px;
  outline: 2px dashed #62cdb6;
  outline-offset: -22px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 10px 0 #69cdb6, 0 24px 48px rgba(20, 36, 73, 0.11);
  text-align: center;
}

.landing-home .landing-composer:focus-within,
.landing-home .landing-composer.is-dragging {
  border-color: #142449;
  outline-color: #62cdb6;
  background: #fffdf7;
  box-shadow: 0 10px 0 #69cdb6, 0 24px 48px rgba(20, 36, 73, 0.14), 0 0 0 4px rgba(35, 84, 232, 0.1);
  transform: none;
}

.landing-home .landing-composer.is-dragging .composer-upload-symbol {
  color: #2354e8;
  transform: translateY(-4px);
}

.landing-home .landing-composer .form-error {
  position: relative;
  z-index: 2;
  margin: 0 38px 8px;
  text-align: left;
}

.landing-home .composer-upload-symbol {
  display: grid;
  width: 96px;
  height: 96px;
  margin: 37px auto 20px;
  place-items: center;
  color: #142449;
  transition: color 0.18s ease, transform 0.18s ease;
}

.landing-home .composer-upload-symbol .ph {
  font-size: 88px;
}

.landing-home .landing-composer textarea {
  min-height: 48px;
  max-height: 150px;
  padding: 14px 40px 6px;
  resize: none;
  color: #142449;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.5;
  text-align: center;
}

.landing-home .landing-composer textarea:not(:placeholder-shown) {
  min-height: 94px;
  text-align: left;
}

.landing-home .landing-composer textarea::placeholder {
  color: #192b50;
  opacity: 1;
}

.landing-home .composer-file {
  position: relative;
  z-index: 1;
  min-height: 34px;
  padding: 0 48px 10px;
  color: #58637b;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.landing-home .composer-file:not(:has(.composer-file-ready)) {
  height: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.landing-home .composer-hint {
  justify-content: center;
}

.landing-home .composer-hint svg {
  display: none;
}

.landing-home .notebook-composer-actions {
  position: static;
  display: grid;
  margin-top: -8px;
  padding: 0 25px 8px;
  grid-template-columns: 1fr;
  grid-template-areas:
    "secondary"
    "limit";
  align-items: end;
  border-top: 0;
  gap: 32px;
}

.landing-home .composer-secondary-actions {
  grid-area: secondary;
  align-self: center;
  justify-self: center;
  flex-wrap: nowrap;
  gap: 36px;
  transform: translateY(5px);
}

.landing-home .composer-secondary-actions .button {
  min-height: 64px;
  padding: 13px 24px;
  border: 2px solid #43bda2;
  border-radius: 11px;
  color: #142449;
  background: #e8f8f2;
  box-shadow: none;
  font-size: 17px;
  font-weight: 850;
}

.landing-home .composer-secondary-actions .composer-example {
  min-width: 228px;
  border-color: #2354e8;
  color: #2354e8;
  background: #fffdf7;
}

.landing-home .composer-secondary-actions .composer-attach {
  min-width: 196px;
}

.landing-home .composer-secondary-actions .button:hover:not(:disabled) {
  border-color: #2354e8;
  color: #2354e8;
  background: #ffffff;
}

.landing-home .composer-secondary-actions .ph {
  font-size: 19px;
}

.landing-home .notebook-file-limit {
  grid-area: limit;
  align-self: center;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #59657d;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.landing-home .notebook-file-limit .ph {
  color: #2354e8;
  font-size: 16px;
}

.landing-home .notebook-composer-actions > .button-primary {
  position: absolute;
  right: 43px;
  bottom: -48px;
  grid-area: submit;
  width: min(447px, 42vw);
  min-height: 110px;
  padding: 15px 27px;
  justify-content: space-between;
  border: 3px solid #142449;
  border-radius: 17px;
  color: #ffffff;
  background: #2354e8;
  box-shadow: 7px 7px 0 #f09a3e;
  font-size: 24px;
  font-weight: 900;
}

.landing-home .notebook-composer-actions > .button-primary:hover:not(:disabled) {
  background: #1946ce;
  box-shadow: 8px 9px 0 #f09a3e;
}

.landing-home .notebook-composer-actions > .button-primary .ph {
  font-size: 26px;
}

.landing-home .composer-privacy {
  max-width: calc(100% - 480px);
  margin: 37px 0 0 56px;
  justify-content: flex-start;
  color: #4d5a72;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(67, 189, 162, 0.38);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.landing-home .composer-privacy .ph {
  color: #45b99f;
  font-size: 19px;
}

.landing-home .format-bar,
.landing-home .section,
.landing-home .landing-footer {
  position: relative;
  background-color: #f8f5ed;
}

@media (max-width: 900px) {
  .landing-home {
    background-position: 44% top;
    background-size: auto 820px;
  }

  .landing-home .public-header {
    width: min(calc(100% - 44px), 820px);
  }

  .landing-home .simple-hero {
    width: min(calc(100% - 52px), 820px);
  }

  .landing-home .landing-composer {
    width: 100%;
    margin-left: 0;
  }

  .landing-home .simple-hero h1 {
    max-width: 720px;
    font-size: clamp(54px, 8.3vw, 74px);
  }

  .landing-home .notebook-composer-actions {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "secondary limit"
      "submit submit";
  }

  .landing-home .notebook-composer-actions > .button-primary {
    width: min(390px, 52vw);
  }
}

@media (max-width: 600px) {
  .landing-home {
    background-position: 46% top;
    background-size: auto 720px;
  }

  .landing-home .public-header {
    width: calc(100% - 28px);
    height: 78px;
  }

  .landing-home .public-header .brand {
    gap: 8px;
    transform: none;
  }

  .landing-home .public-header .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .landing-home .public-header .brand-name {
    font-size: 22px;
  }

  .landing-home .public-nav {
    gap: 3px;
    transform: none;
  }

  .landing-home .public-nav .text-link {
    min-height: 44px;
    padding: 8px 9px;
    font-size: 13px;
  }

  .landing-home .public-nav .button {
    min-height: 43px;
    padding: 8px 11px;
    border-width: 1px;
    font-size: 12px;
    box-shadow: 3px 3px 0 #72d5bf;
  }

  .landing-home .simple-hero {
    width: calc(100% - 28px);
    min-height: auto;
    padding: 25px 0 76px;
  }

  .landing-home .simple-hero h1 {
    margin-bottom: 17px;
    margin-left: 0;
    font-size: clamp(38px, 11vw, 50px);
    line-height: 1.04;
    transform: none;
  }

  .landing-home .simple-hero-copy {
    margin: 0 0 27px 2px;
    padding-left: 12px;
    border-left-width: 4px;
    font-size: 14px;
  }

  .landing-home .landing-composer {
    min-height: 440px;
    padding: 22px 18px 20px;
    border-radius: 27px;
    outline-offset: -16px;
    box-shadow: 0 7px 0 #69cdb6, 0 16px 35px rgba(20, 36, 73, 0.12);
  }

  .landing-home .composer-upload-symbol {
    width: 64px;
    height: 64px;
    margin-top: 30px;
  }

  .landing-home .composer-upload-symbol .ph {
    font-size: 59px;
  }

  .landing-home .landing-composer textarea {
    min-height: 86px;
    padding: 6px 20px;
    font-size: 17px;
    line-height: 1.45;
  }

  .landing-home .landing-composer textarea:not(:placeholder-shown) {
    min-height: 110px;
  }

  .landing-home .composer-file {
    padding: 0 18px 8px;
    font-size: 11px;
  }

  .landing-home .notebook-composer-actions {
    display: grid;
    margin-top: 0;
    padding: 0 13px 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "secondary secondary"
      "limit limit"
      "submit submit";
    gap: 10px;
  }

  .landing-home .composer-secondary-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    transform: none;
  }

  .landing-home .composer-secondary-actions .button {
    min-width: 0;
    min-height: 45px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .landing-home .notebook-file-limit {
    font-size: 11px;
  }

  .landing-home .notebook-composer-actions > .button-primary {
    position: static;
    width: 100%;
    min-height: 62px;
    border-width: 2px;
    border-radius: 14px;
    font-size: 17px;
    box-shadow: 5px 5px 0 #f09a3e;
  }

  .landing-home .composer-privacy {
    max-width: none;
    margin: 18px 7px 0;
    font-size: 11px;
  }
}
