/* Public pages only (landing, login/register, legal, access denied): "Studio Akademik" (docs/17).
   Neutral canvas, white surfaces, hairlines, Woriset blue actions, Source Serif 4 display headings over Inter.
   Palette (light and dark) lives in brand.css; controls are 8 px and panels 12 px. Public pages allow no inline
   styles (style-src 'self'), so every look on these pages comes from this file. */

/* ---------- Tokens ---------- */

.public-site {
  /* Shared Tailwind aliases used by the account forms and legal pages. */
  --color-background: var(--pop-canvas);
  --color-surface-container-lowest: var(--pop-surface);
  --color-surface-container-low: var(--pop-surface);
  --color-surface-container: var(--pop-primary-soft);
  --color-on-surface: var(--pop-ink);
  --color-on-surface-variant: var(--pop-muted);
  --color-secondary-fixed: var(--pop-primary-soft);
  --color-primary: var(--pop-primary);
  --color-secondary: var(--pop-primary);
  --color-on-primary: var(--pop-on-primary);
  --color-on-secondary: var(--pop-on-primary);
  --color-navy: var(--pop-ink);
  --color-ink: var(--pop-ink);
  --color-muted: var(--pop-muted);
  --color-action: var(--pop-primary);
  --color-action-hover: var(--pop-primary-hover);
  --color-line: var(--pop-line);
  --color-outline-variant: var(--pop-line);
  --color-canvas: var(--pop-canvas);
  --color-soft: var(--pop-raised);
  /* The Premium column of the plan comparison. */
  --landing-premium: color-mix(in srgb, var(--pop-primary) 5%, var(--pop-surface));

  background: var(--pop-canvas);
  color: var(--pop-ink);
}

/* ---------- Base ---------- */

.public-site [hidden] {
  display: none !important;
}

.public-site :is(a, button, select, input, textarea, summary):focus-visible {
  outline: 2px solid var(--pop-primary);
  outline-offset: 2px;
}

/* Serif only for display headings; card and list titles stay Inter. */
.public-site :is(h1, h2) {
  font-family: var(--pop-serif);
  font-weight: 600;
  letter-spacing: -.02em;
}

.public-site h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -.01em;
}

.public-container {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.landing-shell {
  overflow-x: clip;
}

html:has(.public-site .pop-header) {
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.public-site .pop-header) {
    scroll-behavior: smooth;
  }
}

/* Section kicker above a heading. */
.public-eyebrow {
  margin: 0;
  color: var(--pop-primary);
  font-size: 13px;
  font-weight: 600;
}

/* Small label above a card title (account pages, legal pages, access denied). */
.public-site .eyebrow {
  margin: 0;
  color: var(--pop-primary);
  font-size: 12px;
  font-weight: 600;
}

.landing-italic {
  font-style: italic;
}

.public-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--pop-primary);
  font-weight: 500;
  text-decoration: none;
}

.public-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.landing-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--pop-primary-soft);
  color: var(--pop-primary);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}

/* ---------- Buttons ---------- */

.public-site .button,
.public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--pop-radius-control);
  box-shadow: 0 1px 1px rgb(15 23 42 / 4%);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* Main calls to action on the landing page. */
.public-button {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 9px;
  font-size: 15px;
}

.public-site .button-primary,
.public-button-primary {
  border-color: var(--pop-primary);
  background: var(--pop-primary);
  color: var(--pop-on-primary);
}

.public-site .button-primary:hover,
.public-button-primary:hover {
  border-color: var(--pop-primary-hover);
  background: var(--pop-primary-hover);
  color: var(--pop-on-primary);
}

.public-site .button-secondary,
.public-button-secondary {
  border-color: var(--pop-strong);
  background: var(--pop-surface);
  color: var(--pop-ink);
}

.public-site .button-secondary:hover,
.public-button-secondary:hover {
  background: var(--pop-raised);
  color: var(--pop-ink);
}

.public-button-dark {
  border-color: var(--pop-ink);
  background: var(--pop-ink);
  color: var(--pop-surface);
}

.public-button-dark:hover {
  border-color: color-mix(in srgb, var(--pop-ink) 85%, var(--pop-surface));
  background: color-mix(in srgb, var(--pop-ink) 85%, var(--pop-surface));
  color: var(--pop-surface);
}

/* On the dark closing band. */
.public-button-light {
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: #0F172A;
}

.public-button-light:hover {
  border-color: #E8EDFF;
  background: #E8EDFF;
  color: #0F172A;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ---------- Header ---------- */

/* Sticky and always visible on every public page; it never hides or resizes while scrolling. */
.pop-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--pop-line);
  background: color-mix(in srgb, var(--pop-surface) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
}

/* Brand left, section links centred, actions right. Auth pages have no centre column content. */
.pop-header-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  max-width: 1240px;
  min-height: 64px;
  margin-inline: auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* Scrolling only adds a soft shadow. */
.pop-header.is-scrolled {
  box-shadow: 0 6px 20px rgb(15 23 42 / 6%);
}

.pop-header-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--pop-primary);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  pointer-events: none;
}

.pop-header .pop-brand {
  grid-column: 1;
  justify-self: start;
}

.pop-header .pop-brand-mark {
  width: 30px;
  height: 30px;
}

.pop-header .pop-brand-name {
  font-size: 19px;
}

/* Section links; a blue underline marks the section in view. */
.pop-nav-links {
  position: relative;
  display: flex;
  grid-column: 2;
  align-items: center;
  gap: 2px;
}

.pop-nav-links .nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--pop-radius-control);
  background: transparent;
  color: var(--pop-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

.pop-nav-links .nav-link:hover,
.pop-nav-links .nav-link[aria-current="true"] {
  background: transparent;
  color: var(--pop-ink);
}

.pop-nav-indicator {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: var(--indicator-w, 0px);
  height: 2px;
  border-radius: 2px;
  background: var(--pop-primary);
  opacity: 0;
  transform: translateX(var(--indicator-x, 0px));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
  pointer-events: none;
}

.pop-nav-links[data-indicator] .pop-nav-indicator {
  opacity: 1;
}

.pop-nav-links .pop-menu-only {
  display: none;
}

.pop-nav-actions {
  display: flex;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  gap: 8px;
}

.pop-nav-actions form {
  display: inline-flex;
}

.pop-nav-actions .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--pop-radius-control);
  color: var(--pop-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.pop-nav-actions .nav-link:hover {
  background: var(--pop-raised);
  color: var(--pop-ink);
}

.pop-nav-actions .button-primary {
  border-color: var(--pop-ink);
  background: var(--pop-ink);
  color: var(--pop-surface);
}

.pop-nav-actions .button-primary:hover {
  border-color: var(--pop-primary);
  background: var(--pop-primary);
  color: var(--pop-on-primary);
}

.pop-nav-note {
  margin-inline: 4px;
  color: var(--pop-muted);
  font-size: 13px;
}

.pop-nav-actions .theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--pop-strong);
  border-radius: var(--pop-radius-control);
  background: var(--pop-surface);
  color: var(--pop-ink);
}

.pop-nav-actions .theme-toggle:hover {
  background: var(--pop-raised);
}

.pop-nav-actions .theme-toggle svg {
  width: 18px;
  height: 18px;
}

.pop-menu-button {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pop-strong);
  border-radius: var(--pop-radius-control);
  background: var(--pop-surface);
  color: var(--pop-ink);
  cursor: pointer;
}

.pop-menu-button > span {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.pop-menu-button i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: top .25s ease, transform .25s ease, opacity .2s ease;
}

.pop-menu-button i:nth-child(1) { top: 0; }
.pop-menu-button i:nth-child(2) { top: 5px; }
.pop-menu-button i:nth-child(3) { top: 10px; }

.pop-header[data-menu-open] .pop-menu-button i:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.pop-header[data-menu-open] .pop-menu-button i:nth-child(2) {
  opacity: 0;
}

.pop-header[data-menu-open] .pop-menu-button i:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.landing-hero {
  padding-top: clamp(56px, 8vw, 84px);
  text-align: center;
}

.landing-hero-copy {
  width: min(100%, 980px);
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--pop-line);
  border-radius: 999px;
  background: var(--pop-surface);
  color: var(--pop-ink);
  font-size: 13px;
  font-weight: 500;
}

.landing-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-success);
}

.landing-hero-title {
  max-width: 900px;
  margin: 24px auto 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.landing-lead {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--pop-muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
}

.landing-hero .public-actions {
  justify-content: center;
  margin-top: 30px;
}

.landing-perks {
  margin: 14px 0 0;
  color: var(--pop-muted);
  font-size: 13px;
}

/* A screen of the workspace; every word is an illustration (aria-hidden in the view). */
.landing-shot {
  margin-top: 44px;
  padding-bottom: clamp(56px, 8vw, 88px);
}

.landing-shot-frame {
  max-width: 1180px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--pop-line);
  border-radius: 16px;
  background: var(--pop-surface);
  box-shadow: 0 30px 60px -32px rgb(15 23 42 / 28%);
  text-align: left;
}

.landing-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--pop-line);
  background: var(--brand-soft);
}

.landing-shot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pop-line);
}

.landing-shot-bar span {
  margin-inline: auto;
  color: var(--pop-muted);
  font-size: 12px;
}

.landing-shot-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 270px;
  min-height: 440px;
}

.landing-shot-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px;
  border-right: 1px solid var(--pop-line);
  background: var(--brand-soft);
}

.landing-shot-project {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.landing-shot-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--pop-ink);
  font-size: 13px;
  font-weight: 500;
}

.landing-shot-nav b {
  color: var(--pop-muted);
  font-size: 12px;
  font-weight: 500;
}

.landing-shot-nav.is-current {
  background: var(--pop-surface);
  box-shadow: 0 0 0 1px var(--pop-line), 0 1px 2px rgb(15 23 42 / 5%);
}

.landing-shot-row {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 10px 0 22px;
  border-radius: 7px;
  color: var(--pop-ink);
  font-size: 12.5px;
}

.landing-shot-row.is-current {
  background: var(--pop-primary-soft);
  color: var(--pop-primary);
  font-weight: 500;
}

.landing-shot-row i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--pop-muted);
}

.landing-shot-row i.is-unsaved {
  background: #D97706;
  box-shadow: none;
}

.landing-shot-main {
  display: flex;
  flex-direction: column;
  background: var(--pop-canvas);
}

.landing-shot-crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--pop-line);
  background: var(--pop-surface);
  color: var(--pop-muted);
  font-size: 12px;
}

.landing-shot-crumbs b {
  color: var(--pop-ink);
  font-weight: 600;
}

.landing-shot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.landing-shot-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-warning-soft);
  color: var(--brand-warning);
  font-size: 12px;
  font-weight: 500;
}

.landing-shot-save {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--pop-primary);
  color: var(--pop-on-primary);
  font-size: 12px;
  font-weight: 500;
}

/* The manuscript paper stays white in both themes, like the editor. */
.landing-shot-paper {
  margin: 22px 26px;
  padding: 30px 36px;
  border: 1px solid var(--pop-line);
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgb(15 23 42 / 5%);
  color: #111111;
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  line-height: 1.85;
  text-align: justify;
}

.landing-shot-paper p {
  margin: 0 0 8px;
}

.landing-shot-paper .landing-shot-heading {
  margin-bottom: 6px;
  font-weight: 700;
  text-align: left;
}

.landing-shot-cite {
  color: #2443D6;
}

.landing-shot-paper del {
  color: #B42318;
}

.landing-shot-paper ins {
  background: #DDF1E4;
  color: #14532D;
  text-decoration: none;
}

.landing-shot-placeholder {
  color: #5B6B82;
}

.landing-shot-wori {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-left: 1px solid var(--pop-line);
  background: var(--pop-surface);
  font-size: 12.5px;
}

.landing-shot-wori-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.landing-shot-wori-head .landing-shot-tabs {
  margin-left: auto;
}

.landing-shot-tabs {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: var(--pop-raised);
}

.landing-shot-tabs span {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  color: var(--pop-muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.landing-shot-tabs .is-current {
  background: var(--pop-surface);
  box-shadow: 0 1px 2px rgb(15 23 42 / 10%);
  color: var(--pop-ink);
}

.landing-shot-message {
  margin-bottom: 4px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--pop-primary-soft);
  color: var(--brand-on-warm);
  font-size: 12px;
  line-height: 1.5;
}

.landing-shot-label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
}

.landing-shot-select,
.landing-shot-input {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--pop-strong);
  border-radius: 8px;
  background: var(--pop-surface);
  color: var(--pop-ink);
}

/* A drawn chevron keeps the illustration free of inline SVG for every field. */
.landing-shot-select::after {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1.5px solid var(--pop-muted);
  border-bottom: 1.5px solid var(--pop-muted);
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.landing-shot-input {
  align-items: flex-start;
  min-height: 48px;
  color: var(--pop-muted);
}

.landing-shot-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin-top: auto;
  border-radius: 8px;
  background: var(--pop-primary);
  color: var(--pop-on-primary);
  font-weight: 500;
}

.landing-shot figcaption {
  margin-top: 12px;
  color: var(--pop-muted);
  font-size: 12px;
  text-align: center;
}

.landing-wori-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pop-primary-soft);
  color: var(--pop-primary);
}

.landing-wori-avatar svg {
  width: 15px;
  height: 11px;
}

.landing-shot-wori .landing-wori-avatar {
  width: 26px;
  height: 26px;
}

/* ---------- Sections ---------- */

.landing-section {
  padding-block: clamp(64px, 8vw, 88px);
}

.landing-section-surface {
  border-block: 1px solid var(--pop-line);
  background: var(--pop-surface);
}

.landing-section-tight {
  padding-top: 0;
}

.landing-heading {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.landing-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.12;
  text-wrap: balance;
}

.landing-heading > p:not(.public-eyebrow) {
  margin: 14px auto 0;
  color: var(--pop-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Features ---------- */

.landing-features-wrap {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.landing-features-intro {
  position: sticky;
  top: 96px;
}

.landing-features-intro h2 {
  margin: 10px 0 26px;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.12;
  text-wrap: balance;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--pop-line);
}

.landing-feature-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--pop-primary-soft);
  color: var(--pop-primary);
}

.landing-feature-icon svg,
.landing-promise-icon svg,
.landing-yes svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-feature-icon svg {
  width: 17px;
  height: 17px;
}

.landing-feature h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.35;
}

.landing-feature p {
  margin: 5px 0 0;
  color: var(--pop-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Steps ---------- */

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.landing-steps li {
  padding: 24px;
  border: 1px solid var(--pop-line);
  border-radius: var(--pop-radius);
  background: var(--pop-surface);
}

.landing-step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pop-ink);
  color: var(--pop-surface);
  font-size: 13px;
  font-weight: 600;
}

.landing-steps h3 {
  margin: 16px 0 0;
  font-size: 17px;
}

.landing-steps p {
  margin: 6px 0 0;
  color: var(--pop-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Wori ---------- */

.landing-wori {
  padding-bottom: clamp(64px, 8vw, 88px);
}

.landing-wori-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--pop-line);
  border-radius: 16px;
  background: var(--pop-surface);
}

.landing-wori-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.15;
}

.landing-wori-copy > p:not(.public-eyebrow) {
  margin: 14px 0 0;
  color: var(--pop-muted);
  font-size: 15px;
  line-height: 1.7;
}

.landing-promises {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.landing-promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.landing-promise-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--pop-primary-soft);
  color: var(--pop-primary);
}

.landing-promise-icon svg {
  width: 14px;
  height: 14px;
}

.landing-wori-copy .landing-wori-note {
  margin-top: 18px;
  font-size: 14px;
}

.landing-wori-note strong {
  color: var(--pop-ink);
  font-weight: 600;
}

.landing-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--pop-line);
  border-radius: 12px;
  background: var(--pop-canvas);
}

.landing-chat figcaption {
  color: var(--pop-muted);
  font-size: 12px;
}

.landing-chat-user {
  align-self: flex-end;
  max-width: 80%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--pop-primary);
  color: var(--pop-on-primary);
  font-size: 14px;
  line-height: 1.55;
}

.landing-chat-wori {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.landing-chat-wori p {
  max-width: 84%;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--pop-line);
  border-radius: 14px 14px 14px 4px;
  background: var(--pop-surface);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Plan comparison ---------- */

/* The plan cards are the column heads and keep their h3; the table below compares features. Both share the
   same column widths (31% label column, three equal plan columns) and scroll together on narrow screens. */
.landing-compare {
  margin-top: 44px;
  overflow-x: auto;
  border: 1px solid var(--pop-line);
  border-radius: 14px;
  background: var(--pop-surface);
  box-shadow: 0 18px 40px -28px rgb(15 23 42 / 25%);
}

.landing-compare-inner {
  min-width: 860px;
}

.landing-plans {
  display: grid;
  grid-template-columns: 31% repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--pop-line);
}

.landing-plans-label {
  align-self: end;
  padding: 22px 20px 20px;
}

.landing-plans-title {
  margin: 0;
  color: var(--pop-muted);
  font-size: 12px;
  font-weight: 500;
}

.landing-plans-label p:last-child {
  max-width: 260px;
  margin: 6px 0 0;
  color: var(--pop-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.landing-plan {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
}

.landing-plan-premium {
  background: var(--landing-premium);
  box-shadow: inset 0 3px 0 var(--pop-primary);
}

.landing-plan-kicker {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin: 0 0 6px;
  color: var(--pop-muted);
  font-size: 12.5px;
}

.landing-plan h3 {
  margin: 0;
  font-size: 17px;
}

.landing-plan-meta {
  margin: 2px 0 0;
  color: var(--pop-muted);
  font-size: 13px;
}

.landing-plan-was {
  height: 18px;
  margin: 14px 0 0;
  color: var(--pop-muted);
  font-size: 12.5px;
}

.landing-plan-price {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.public-button.landing-plan-action {
  width: 100%;
  min-height: 40px;
  margin-top: 16px;
  padding: 0 14px;
  border-radius: var(--pop-radius-control);
  font-size: 14px;
}

.landing-compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.landing-compare-label {
  width: 31%;
}

.landing-compare-table :is(th, td) {
  padding: 14px 20px;
  border-top: 1px solid var(--pop-line);
  text-align: left;
  vertical-align: middle;
}

.landing-compare-table tbody tr:first-child > * {
  border-top: 0;
}

.landing-compare-table tbody th[scope="row"] {
  color: var(--pop-ink);
  font-weight: 400;
}

.landing-compare-group th {
  padding-block: 9px;
  background: var(--pop-canvas);
  color: var(--pop-muted);
  font-size: 12px;
  font-weight: 600;
}

.landing-compare-table tbody tr:not(.landing-compare-group) > :nth-child(4) {
  background: var(--landing-premium);
}

.landing-yes {
  display: inline-flex;
  color: var(--pop-primary);
}

.landing-yes svg {
  width: 18px;
  height: 18px;
}

.landing-no {
  color: var(--pop-muted);
}

.landing-note-line {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--pop-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- FAQ ---------- */

.landing-faq {
  max-width: 900px;
}

.landing-faq-list {
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--pop-line);
  border-radius: var(--pop-radius);
  background: var(--pop-surface);
}

.landing-faq-list details {
  padding: 18px 22px;
  border-top: 1px solid var(--pop-line);
}

.landing-faq-list details:first-child {
  border-top: 0;
}

.landing-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.landing-faq-list summary::-webkit-details-marker {
  display: none;
}

/* Chevron drawn from two borders; it turns when the answer opens. */
.landing-faq-list summary span {
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid var(--pop-muted);
  border-bottom: 1.5px solid var(--pop-muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.landing-faq-list details[open] summary span {
  transform: translateY(2px) rotate(-135deg);
}

.landing-faq-list details p {
  margin: 10px 0 0;
  color: var(--pop-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- Kontak ---------- */

.landing-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-contact-intro,
.landing-contact-item {
  padding: 26px;
  border: 1px solid var(--pop-line);
  border-radius: var(--pop-radius);
  background: var(--pop-surface);
}

.landing-contact-intro h2 {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.2;
}

.landing-contact-intro p:last-child {
  margin: 8px 0 0;
  color: var(--pop-muted);
  font-size: 14px;
  line-height: 1.6;
}

.landing-contact-item {
  display: flex;
  flex-direction: column;
  color: var(--pop-ink);
  text-decoration: none;
  transition: border-color .15s ease;
}

.landing-contact-item:hover {
  border-color: var(--pop-strong);
}

.landing-contact-label {
  margin-top: 14px;
  color: var(--pop-muted);
  font-size: 12px;
  font-weight: 500;
}

.landing-contact-value {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
}

.landing-contact-hint {
  margin-top: 4px;
  color: var(--pop-muted);
  font-size: 14px;
}

/* ---------- Final call to action ---------- */

.landing-final {
  padding-bottom: clamp(64px, 8vw, 88px);
}

.landing-final-band {
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 40px);
  border-radius: 20px;
  background: var(--pop-band);
  color: var(--pop-on-band);
  text-align: center;
}

.landing-final-band h2 {
  margin: 0;
  color: var(--pop-on-band);
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.15;
  text-wrap: balance;
}

.landing-final-band p {
  margin: 12px 0 0;
  color: var(--pop-band-muted);
  font-size: 16px;
}

.landing-final-band .public-button {
  margin-top: 28px;
}

/* ---------- Footer ---------- */

.pop-footer {
  border-top: 1px solid var(--pop-line);
  background: var(--pop-surface);
}

.pop-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 32px;
  align-items: center;
  padding-block: 28px;
}

.pop-footer .pop-brand-mark {
  width: 26px;
  height: 26px;
}

.pop-footer .pop-brand-name {
  font-size: 17px;
}

.pop-footer-tagline {
  margin: 4px 0 0;
  color: var(--pop-muted);
  font-size: 13px;
}

.pop-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.pop-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--pop-muted);
  font-size: 14px;
  text-decoration: none;
}

.pop-footer-links a:hover {
  color: var(--pop-ink);
}

.pop-footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--pop-line);
  color: var(--pop-muted);
  font-size: 13px;
}

/* ---------- Account pages ---------- */

.public-auth-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-block: clamp(32px, 6vw, 72px);
}

.public-auth-story {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.public-auth-story h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
}

.public-auth-story > p:not(.public-eyebrow) {
  max-width: 32rem;
  margin: 0;
  color: var(--pop-muted);
  font-size: 16px;
  line-height: 1.65;
}

.pop-auth-list {
  display: grid;
  gap: 8px;
  max-width: 30rem;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: auth;
}

.pop-auth-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--pop-line);
  border-radius: var(--pop-radius-control);
  background: var(--pop-surface);
  counter-increment: auth;
}

.pop-auth-list li::before {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pop-primary-soft);
  color: var(--pop-primary);
  content: counter(auth);
  font-size: 13px;
  font-weight: 600;
}

.pop-auth-list strong {
  font-size: 15px;
  font-weight: 600;
}

.pop-auth-list small {
  color: var(--pop-muted);
  font-size: 13px;
}

.pop-auth-bubble {
  max-width: 30rem;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--pop-primary-soft);
}

.pop-auth-bubble p {
  margin: 0;
  color: var(--brand-on-warm);
  font-size: 14px;
  line-height: 1.6;
}

.pop-auth-bubble .pop-auth-bubble-title {
  margin-bottom: 2px;
  color: var(--pop-primary);
  font-weight: 600;
}

.public-auth-card {
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--pop-line);
  border-radius: var(--pop-radius);
  background: var(--pop-surface);
  box-shadow: 0 24px 48px -32px rgb(15 23 42 / 25%);
}

.public-auth-card :is(h1, h2) {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.public-site .label {
  color: var(--pop-ink);
  font-size: 13px;
  font-weight: 500;
}

/* Sign-in forms are often opened on a phone: 44 px fields and 16 px text keep them easy to tap and stop
   mobile browsers from zooming in on focus. */
.public-site .field {
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--pop-strong);
  border-radius: var(--pop-radius-control);
  background: var(--pop-surface);
  box-shadow: none;
  color: var(--pop-ink);
  font-size: 16px;
}

.public-site .field:hover {
  border-color: color-mix(in srgb, var(--pop-strong) 60%, var(--pop-muted));
}

.public-site .field:focus {
  border-color: var(--pop-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--pop-primary-soft);
}

/* Unlayered rules beat the shared component padding, so keep room for icons. */
.public-site .field.pl-10 {
  padding-left: 2.5rem;
}

.public-site .auth-submit,
.public-site .auth-google {
  min-height: 44px;
  font-size: 15px;
}

.public-site .auth-google {
  gap: 10px;
}

/* "atau dengan kode email" between the Google button and the email form. */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 20px;
  color: var(--pop-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  border-top: 1px solid var(--pop-line);
  content: '';
}

.public-site .field.auth-code {
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .35em;
  text-align: center;
}

.public-site .notice {
  border: 0;
  border-radius: 9px;
  background: var(--pop-primary-soft);
  color: var(--brand-on-warm);
}

/* ---------- Legal and access pages ---------- */

.public-paper {
  width: calc(100% - 32px);
  margin-block: clamp(24px, 5vw, 56px);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--pop-line);
  border-radius: var(--pop-radius);
  background: var(--pop-surface);
}

.public-paper h1 {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.15;
}

.public-paper h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: -.01em;
}

/* Long legal pages (privacy, terms): summary box, contents list, subsection titles and lists. */
.legal-page .legal-summary {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: var(--pop-radius-control);
  background: var(--pop-raised);
  color: var(--pop-ink);
}

.legal-page .legal-list {
  margin-top: 8px;
  padding-left: 20px;
  list-style: disc;
}

.legal-page .legal-list li + li {
  margin-top: 6px;
}

.legal-page .legal-toc ol {
  columns: 2;
  column-gap: 32px;
}

.legal-page h3 {
  margin-top: 18px;
  color: var(--pop-ink);
  font-size: 15px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .landing-shot-body {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .landing-shot-wori {
    display: none;
  }

  .landing-features-wrap,
  .landing-wori-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-features-intro {
    position: static;
  }

  .landing-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-contact-intro {
    grid-column: 1 / -1;
  }

  .public-auth-frame {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }

  /* On smaller screens the form comes first. */
  .public-auth-card {
    order: -1;
  }
}

@media (max-width: 900px) {
  /* Brand left, actions right; the section links become a drop-down panel. */
  .pop-header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pop-nav-actions {
    grid-column: 2;
  }

  .pop-nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    grid-column: auto;
    gap: 0;
    padding: 8px clamp(16px, 4vw, 40px) 16px;
    border-bottom: 1px solid var(--pop-line);
    background: var(--pop-surface);
    box-shadow: 0 16px 32px rgb(15 23 42 / 10%);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s;
  }

  .pop-header[data-menu-open] .pop-nav-links {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
  }

  .pop-nav-links .nav-link {
    justify-content: space-between;
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--pop-line);
    border-radius: 0;
    color: var(--pop-ink);
    font-size: 16px;
  }

  .pop-nav-links .nav-link::after {
    color: var(--pop-muted);
    content: "\2192";
    font-size: 16px;
  }

  .pop-nav-indicator,
  .pop-nav-actions .pop-nav-login {
    display: none;
  }

  .pop-nav-links .pop-menu-only {
    display: flex;
  }

  .pop-menu-button {
    display: inline-grid;
  }

  .landing-shot-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .landing-shot-side {
    display: none;
  }

  .landing-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .landing-hero {
    text-align: left;
  }

  .landing-hero-title,
  .landing-lead {
    margin-inline: 0;
  }

  .landing-hero .public-actions {
    justify-content: flex-start;
  }

  .landing-hero .public-actions .public-button {
    flex: 1 1 100%;
  }

  .landing-shot-paper {
    margin: 14px;
    padding: 20px;
    font-size: 13px;
  }

  .landing-shot-crumbs > span:first-child {
    display: none;
  }

  .landing-features,
  .landing-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-heading {
    text-align: left;
  }

  .pop-nav-note {
    display: none;
  }

  .pop-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-page .legal-toc ol {
    columns: 1;
  }
}

@media (max-width: 400px) {
  /* Header only: the mark keeps the brand recognisable; the link keeps its accessible name. */
  .pop-header .pop-brand-name {
    display: none;
  }
}

/* ---------- Motion ---------- */
/* Blocks marked data-reveal rise in once when they scroll into view. landing-page.js sets html[data-reveal]
   only when motion is allowed, so content stays visible without JavaScript or with reduced motion. */

@media (prefers-reduced-motion: no-preference) {
  html[data-reveal] [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(14px);
  }

  html[data-reveal] [data-reveal] {
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
  }

  .landing-hero-copy > *,
  .landing-shot {
    animation: landing-rise .7s cubic-bezier(.2, .8, .2, 1) both;
  }

  .landing-hero-copy > :nth-child(2) { animation-delay: .06s; }
  .landing-hero-copy > :nth-child(3) { animation-delay: .12s; }
  .landing-hero-copy > :nth-child(4) { animation-delay: .18s; }
  .landing-hero-copy > :nth-child(5) { animation-delay: .24s; }
  .landing-shot { animation-delay: .2s; }
}

@keyframes landing-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
