@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --bg: #f3f7f6;
  --panel: rgba(255, 255, 255, 0.92);
  --text: #14303a;
  --muted: #5a6d75;
  --line: #d5e2e4;
  --primary: #0f6a6a;
  --primary-dark: #0b5252;
  --accent: #c45c26;
  --danger: #b42318;
  --success: #1b7a3d;
  --shadow: 0 16px 36px rgba(20, 48, 58, 0.08);
  --radius: 18px;
  --font: "DM Sans", "Segoe UI", sans-serif;
  font-family: var(--font);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(15, 106, 106, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(196, 92, 38, 0.08), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%230f6a6a' stroke-opacity='0.06' stroke-width='1'%3E%3Ccircle cx='18' cy='30' r='7'/%3E%3Ccircle cx='38' cy='90' r='7'/%3E%3Ccircle cx='60' cy='36' r='7'/%3E%3Ccircle cx='82' cy='90' r='7'/%3E%3Ccircle cx='102' cy='30' r='7'/%3E%3Cpath d='M18 30L38 90L60 36L82 90L102 30'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.portal-shell {
  width: 100%;
  max-width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 56px) 72px;
  position: relative;
}

.portal-nav {
  position: relative;
  z-index: 2000;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

a.brand:hover {
  text-decoration: none;
  color: var(--primary);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-height: calc(100vh - 80px);
  width: 100%;
  max-width: min(1280px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 48px) 48px;
}

.auth-visual {
  padding: 12px 8px;
}

.auth-visual h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.auth-visual h1.tagline {
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: baseline;
  gap: 0.28em;
  max-width: 100%;
  font-size: clamp(1.55rem, 3.5vw, 2.6rem);
}

.auth-visual h1.tagline .tagline-arrow {
  color: var(--accent);
  font-weight: 600;
  opacity: 0.9;
}

.auth-visual p {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 38ch;
  line-height: 1.55;
}

.auth-illustration {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.auth-card h1,
.auth-card h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.auth-card > p {
  margin: 0 0 20px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

input, textarea, select, button {
  font: inherit;
}

input, textarea, select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  background: white;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(15, 106, 106, 0.25);
  border-color: var(--primary);
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn.secondary { background: #e7f1f1; color: var(--text); }
.btn.secondary:hover { text-decoration: none; }
.btn.danger { background: #fdecea; color: var(--danger); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.status.error { color: var(--danger); }
.status.success { color: var(--success); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.panel h2 { margin: 0 0 8px; letter-spacing: -0.02em; }
.panel .subtitle { margin: 0 0 16px; color: var(--muted); }

.hero-strip {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(15, 106, 106, 0.08), rgba(255, 255, 255, 0.9)),
    white;
  box-shadow: var(--shadow);
}

.hero-strip h1 {
  margin: 0 0 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.hero-strip p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.mini-stat {
  display: grid;
  gap: 4px;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 106, 106, 0.08);
  text-align: center;
}

.mini-stat strong {
  font-size: 1.4rem;
  color: var(--primary);
}

.mini-stat span {
  font-size: 12px;
  color: var(--muted);
}

.project-grid {
  display: grid;
  gap: 14px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fbfefe;
  display: grid;
  gap: 10px;
}

.project-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.project-card h3 { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.analysis-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.analysis-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.empty {
  color: var(--muted);
  padding: 12px 0;
}

.create-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr auto;
  gap: 10px;
  align-items: end;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 14px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-tabs button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}

.admin-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.admin-section { display: none; }
.admin-section.active { display: block; }

.table-wrap {
  overflow-x: auto;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.data-table th,
table.data-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.data-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.check-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 4px;
}

.check-row label {
  display: flex;
  gap: 8px;
  align-items: center;
  grid-auto-flow: column;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e7f1f1;
  color: var(--primary);
}

.badge.warn {
  background: #fff4e8;
  color: var(--accent);
}

.rights-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

/* Account avatar menu — keep above panels/hero (those use backdrop-filter stacking) */
.account-menu-root {
  position: relative;
  z-index: 2100;
}

.account-menu {
  position: relative;
  z-index: 2100;
}

.account-menu-trigger {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-menu-trigger:hover,
.account-menu:focus-within .account-menu-trigger,
.account-menu.is-open .account-menu-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 106, 106, 0.12);
}

.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(145deg, #0f6a6a, #1a8f8f);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 2200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

.account-menu:hover .account-menu-panel,
.account-menu:focus-within .account-menu-panel,
.account-menu.is-open .account-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.account-menu-meta {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.account-menu-meta strong {
  font-size: 13px;
}

.account-menu-meta span {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.account-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}

a.account-menu-item:hover,
button.account-menu-item:hover {
  background: #eef6f6;
  color: var(--primary);
  text-decoration: none;
}

.account-menu-signout {
  color: var(--danger);
  margin-top: 4px;
}

.account-menu-signout:hover {
  background: #fff1f0;
  color: var(--danger);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  gap: 16px;
  justify-content: center;
  justify-items: stretch;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}

.plan-card.current {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(15, 106, 106, 0.2);
}

.plan-card .price {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.plan-card .plan-actions {
  margin-top: auto;
  padding-top: 10px;
}

.pricing-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.payment-options-panel {
  margin-top: 28px;
}

.payment-options-panel h2 {
  margin: 0 0 6px;
}

.payment-options-panel h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

.pay-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 14px;
  margin: 14px 0 8px;
  justify-content: center;
}

.pay-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #f8fbfb;
}

.pay-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.pay-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.pay-card-meezan {
  text-align: center;
}

.pay-card-meezan p {
  text-align: left;
}

.meezan-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 12px;
}

.meezan-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.contact-form-wrap {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer {
  margin-top: 40px;
  padding: 20px 16px 32px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.site-footer-inner {
  width: 100%;
  max-width: min(1920px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.site-footer .brand-mark {
  width: 28px;
  height: 28px;
}

.site-footer-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font);
}

.site-footer-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.site-footer-text a:hover {
  text-decoration: underline;
}

/* —— Marketing landing —— */
.landing-body {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(15, 106, 106, 0.1), transparent 55%),
    var(--bg);
}

.landing-wrap {
  width: min(1280px, calc(100% - 2 * clamp(20px, 4vw, 56px)));
  margin: 0 auto;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.landing-nav-links {
  display: flex;
  gap: 22px;
}

.landing-nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.landing-nav-links a:hover {
  color: var(--primary);
}

.landing-nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.landing-hero {
  padding: clamp(28px, 5vh, 48px) 0 0;
}

.landing-hero-inner {
  text-align: center;
  animation: landing-rise 0.7s ease both;
}

.landing-hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 8px;
  width: 100%;
}

.landing-hero-logo .brand-mark {
  width: 52px;
  height: 52px;
}

.landing-hero-name {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
}

.landing-tagline {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.28em;
  width: 100%;
  margin: 0 0 12px;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.landing-hero .tagline-arrow {
  color: var(--accent);
  font-weight: 600;
  flex: 0 0 auto;
}

.landing-lead {
  margin: 0 auto 20px;
  max-width: 52ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  color: var(--muted);
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.landing-hero-stage {
  margin-top: clamp(22px, 4vh, 36px);
  padding: 0 clamp(16px, 3vw, 40px);
  animation: landing-rise 0.9s ease 0.12s both;
}

.landing-hero-screen {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(20, 48, 58, 0.1);
  overflow: hidden;
  position: relative;
}

.landing-slides {
  position: relative;
  height: 168px;
  overflow: hidden;
}

.landing-slide {
  display: none;
  height: 100%;
}

.landing-slide.is-active {
  display: block;
  animation: landing-rise 0.4s ease both;
}

.landing-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 12px;
}

.landing-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #c9d8d8;
  cursor: pointer;
}

.landing-dot.is-active {
  background: var(--primary);
}

.check-inline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--muted);
}

.check-inline input {
  width: auto;
  margin: 0;
}

.landing-hero-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
}

.landing-hero-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d5e2e4;
}

.landing-hero-chrome span:nth-child(1) { background: #e8b4a4; }
.landing-hero-chrome span:nth-child(2) { background: #e6d39a; }
.landing-hero-chrome span:nth-child(3) { background: #a8d0b4; }

.landing-hero-chrome em {
  margin-left: 8px;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}

.landing-hero-diagram {
  display: block;
  width: 100%;
  height: 168px;
  background:
    linear-gradient(180deg, #fbfdfc, #f3f7f6);
}

.landing-feature-list a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.landing-feature-list a:hover {
  text-decoration: underline;
}

.landing-feature-list p a {
  font-weight: 600;
}

.landing-band {
  padding: clamp(56px, 9vh, 96px) 0;
}

.landing-band-soft {
  background: rgba(15, 106, 106, 0.045);
  border-block: 1px solid var(--line);
}

.landing-band-head {
  max-width: 56ch;
  margin-bottom: 32px;
}

.landing-band-head-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.landing-band-head-row > div {
  max-width: 48ch;
}

.landing-band-head h2,
.landing-close h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}

.landing-band-head p,
.landing-close p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.landing-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 36px;
}

.landing-feature-list article {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--line);
}

.landing-feature-list article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.landing-feature-list h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.landing-feature-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.landing-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: flow;
}

.landing-flow li {
  counter-increment: flow;
  padding-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.landing-flow li::before {
  content: counter(flow);
  display: block;
  margin-bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 106, 106, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.landing-flow strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1.05rem;
}

.landing-video-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.landing-video-feature,
.landing-video-thumb {
  min-width: 0;
}

.landing-video-frame,
.landing-video-thumb-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #123038;
  border: 1px solid var(--line);
}

.landing-video-frame iframe,
.landing-video-thumb-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.landing-video-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.landing-video-side {
  display: grid;
  gap: 14px;
}

.landing-video-thumb {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.landing-video-thumb:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.landing-video-thumb-title {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text);
  font-weight: 600;
}

.landing-video-empty {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 220px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.landing-close {
  text-align: center;
  padding: clamp(36px, 6vh, 56px) clamp(18px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(15, 106, 106, 0.08), rgba(255, 255, 255, 0.95));
}

.landing-close p {
  margin: 0 auto 20px;
  max-width: 42ch;
}

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

/* —— Method guides —— */
.guide-page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.guide-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.guide-tab:hover {
  color: var(--primary);
  background: rgba(15, 106, 106, 0.06);
}

.guide-tab.is-active {
  color: #fff;
  background: var(--primary);
}

.guide-panel {
  display: none;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 28px);
}

.guide-panel.is-active {
  display: block;
  animation: landing-rise 0.35s ease both;
}

.guide-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
}

.guide-panel h3 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
}

.guide-lead {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 70ch;
}

.guide-flow {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.55;
}

.guide-flow li + li {
  margin-top: 8px;
}

.guide-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 560px;
}

.guide-table th,
.guide-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.guide-table th {
  background: rgba(15, 106, 106, 0.07);
  font-weight: 700;
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-refs,
.guide-bullets {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
}

.guide-refs li + li,
.guide-bullets li + li {
  margin-top: 8px;
}

.guide-disclaimer {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .auth-layout,
  .hero-strip,
  .two-col,
  .create-row,
  .landing-feature-list,
  .landing-flow,
  .landing-video-layout {
    grid-template-columns: 1fr;
  }

  .landing-nav-links {
    display: none;
  }

  .landing-feature-list article + article {
    padding-left: 0;
    border-left: 0;
  }

  .landing-band-head-row {
    flex-direction: column;
    align-items: start;
  }

  .auth-visual {
    text-align: center;
  }

  .auth-visual p {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-illustration {
    margin: 0 auto;
  }
}
