:root {
  --ink: #17241f;
  --muted: #68756f;
  --brand: #267365;
  --brand-dark: #1f5e48;
  --mint: #e7f3ee;
  --wash: #f5f8f6;
  --line: #dce7e1;
  --danger: #fff0ec;
  --danger-line: #f0c3b7;
  --shadow: 0 18px 48px rgba(18, 31, 26, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7faf9;
}

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

button,
.button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  border: 0;
  padding: 12px 15px;
  font-weight: 850;
  cursor: pointer;
}

a {
  color: inherit;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 12px 15px;
  font-weight: 850;
  text-decoration: none;
}

.marketing-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 52px;
}

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  background: rgba(247, 250, 249, 0.92);
  backdrop-filter: blur(12px);
}

.marketing-brand {
  line-height: 0;
  text-decoration: none;
}

.marketing-logo {
  width: clamp(155px, 17vw, 210px);
}

.marketing-nav nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 800;
}

.marketing-nav nav a {
  color: #3d4b45;
  text-decoration: none;
}

.marketing-nav nav a:hover {
  color: var(--brand-dark);
}

.marketing-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(340px, 1fr) minmax(320px, 390px);
  gap: 22px;
  align-items: center;
  padding: 78px 0 86px;
}

.hero-copy h1 {
  max-width: 590px;
  margin: 0 0 18px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.product-preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(18, 31, 26, 0.14);
}

.preview-header,
.preview-drop,
.preview-list div,
.preview-claim {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.preview-header strong {
  color: var(--ink);
}

.preview-drop {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.preview-plus {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: var(--mint);
  font-size: 24px;
  font-weight: 900;
}

.preview-drop p,
.preview-claim p,
.summary-card p,
.section-heading p,
.contact-section p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.preview-list {
  display: grid;
  gap: 8px;
}

.preview-list div {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.preview-list span {
  color: var(--muted);
  font-size: 13px;
}

.preview-claim {
  padding: 14px;
  border-color: rgba(38, 115, 101, 0.28);
  background: #f0f7f4;
}

.marketing-section,
.contact-section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(280px, 0.38fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.summary-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.summary-card,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.summary-card h3,
.price-card h3 {
  margin: 0;
  font-size: 22px;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.price-card {
  display: grid;
  gap: 22px;
}

.enterprise-plan {
  grid-column: 1 / -1;
}

.personal-plan {
  border-color: rgba(38, 115, 101, 0.4);
  box-shadow: 0 18px 54px rgba(38, 115, 101, 0.12);
}

.price {
  margin: 18px 0 6px;
  color: var(--muted);
}

.price span {
  color: var(--ink);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0;
}

.compact-price span {
  font-size: 34px;
}

.price-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: #34413c;
  line-height: 1.45;
}

.contact-section {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(38, 115, 101, 0.28);
  border-radius: 8px;
  padding: 15px 18px;
  color: var(--brand-dark);
  background: #fff;
  font-weight: 900;
  text-decoration: none;
}

.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(38, 115, 101, 0.22);
}

.secondary {
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.ghost {
  color: var(--brand-dark);
  background: transparent;
  border: 1px solid transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 520px);
  gap: 34px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 900;
  line-height: 0;
}

.brand-home {
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-home:hover {
  color: var(--brand-dark);
}

.brand-logo {
  display: block;
  width: min(280px, 72vw);
  height: auto;
}

.auth-brand-logo {
  width: min(320px, 78vw);
}

.app-brand-logo {
  width: clamp(150px, 18vw, 205px);
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
}

.auth-copy h1 {
  max-width: 650px;
  margin: 30px 0 18px;
  font-size: 58px;
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-copy p,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill,
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--brand-dark);
  background: var(--mint);
  font-size: 12px;
  font-weight: 850;
}

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 24px;
}

.marketing-hero .auth-card {
  align-self: center;
  box-shadow: 0 18px 48px rgba(18, 31, 26, 0.1);
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.15;
}

.auth-note {
  margin-bottom: 0;
  font-size: 13px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 11px;
  background: #edf3ef;
  margin-bottom: 18px;
}

.tabs button {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}

.tabs button.active {
  color: var(--brand-dark);
  background: #fff;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 145px;
  resize: vertical;
}

.full {
  width: 100%;
}

.message {
  display: none;
  margin: 12px 0 0;
  border: 1px solid rgba(31, 94, 72, 0.16);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--brand-dark);
  background: var(--mint);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.message.show {
  display: block;
}

.message.error {
  border-color: var(--danger-line);
  color: #80372b;
  background: var(--danger);
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 46px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 22px;
}

.profile {
  position: relative;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.menu {
  position: absolute;
  top: 50px;
  right: 0;
  display: grid;
  gap: 4px;
  width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 4;
}

.menu[hidden] {
  display: none;
}

.menu button {
  justify-content: flex-start;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  width: 100%;
}

.page-head h1,
.home-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 18px;
}

.upload-panel {
  min-height: 340px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(300px, 1.1fr);
  gap: 26px;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 285px;
  border: 1px dashed #9fb1aa;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(231, 243, 238, 0.92), rgba(255, 255, 255, 0.78));
  text-align: center;
  padding: 22px;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 18px;
  color: var(--brand-dark);
  background: #fff;
  font-size: 36px;
  font-weight: 900;
}

.info-grid,
.claim-options,
.settings-grid,
.billing-grid,
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.billing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.receipt-card,
.record-row,
.history-row,
.detail-card,
.settings-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.billing-card {
  display: grid;
  gap: 12px;
}

.billing-status {
  width: fit-content;
  border: 1px solid var(--danger-line);
  border-radius: 999px;
  padding: 8px 11px;
  color: #80372b;
  background: var(--danger);
  font-size: 12px;
  font-weight: 850;
}

.billing-status.active {
  border-color: rgba(31, 94, 72, 0.18);
  color: var(--brand-dark);
  background: var(--mint);
}

.claim-panel,
.history-panel,
.library-panel {
  padding: 20px;
}

.claim-panel {
  display: grid;
  gap: 14px;
  background: linear-gradient(135deg, rgba(231, 243, 238, 0.96), rgba(255, 255, 255, 0.96));
}

.claim-option {
  display: grid;
  gap: 8px;
}

.row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.library-grid,
.history-list,
.records-list,
.timeline {
  display: grid;
  gap: 10px;
}

.record-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 150px 160px auto;
  gap: 12px;
  align-items: center;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.value {
  display: block;
  margin-top: 3px;
  font-weight: 760;
}

.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.table-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.photo-frame {
  display: grid;
  place-items: center;
  min-height: 200px;
  border: 1px dashed rgba(31, 94, 72, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: #f7faf8;
  color: var(--muted);
  text-align: center;
}

.photo-frame img,
.camera-video {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 33, 29, 0.45);
  z-index: 10;
}

.sheet {
  width: min(100%, 560px);
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.timeline-time {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 900px) {
  .auth-screen,
  .marketing-hero,
  .marketing-nav,
  .section-heading,
  .summary-grid,
  .pricing-grid,
  .upload-panel,
  .info-grid,
  .claim-options,
  .settings-grid,
  .billing-grid,
  .detail-grid,
  .record-row,
  .history-row,
  .timeline-entry,
  .table-row {
    grid-template-columns: 1fr;
  }

  .auth-copy h1 {
    font-size: 44px;
  }

  .topbar,
  .row-head,
  .contact-section {
    flex-direction: column;
  }

  .marketing-nav {
    position: static;
    justify-items: start;
  }

  .marketing-nav nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .marketing-hero {
    min-height: auto;
    padding-top: 26px;
  }

  .hero-copy h1 {
    font-size: 50px;
  }
}
