:root {
  --ink: #14201c;
  --ink-soft: #4d5a55;
  --paper: #f3f1e9;
  --card: #fffef8;
  --line: #d5d7ca;
  --lime: #d8ff62;
  --lime-dark: #b8e43b;
  --forest: #1b352b;
  --error: #ad3328;
  --shadow: 0 28px 70px rgb(27 53 43 / 13%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgb(216 255 98 / 28%), transparent 25rem),
    var(--paper);
}

button,
input,
select {
  font: inherit;
}

button,
.drop-zone,
.limit-tabs label {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 820;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--lime);
  background: var(--forest);
  font-family: Georgia, serif;
  font-style: italic;
}

.brand--small {
  margin-bottom: 40px;
}

.header-note {
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding: 58px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 0.78fr);
  gap: clamp(56px, 9vw, 130px);
  align-items: center;
}

.intro {
  padding-bottom: 24px;
}

.eyebrow,
.step-label {
  margin: 0 0 18px;
  color: #5a685e;
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-label span {
  color: var(--forest);
}

.intro h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(4.4rem, 8vw, 7.8rem);
  font-weight: 730;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.intro h1 em {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.intro-copy {
  max-width: 510px;
  margin: 36px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.trust-list {
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.trust-list li {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgb(255 254 248 / 52%);
  font-size: 0.78rem;
  font-weight: 720;
}

.upload-card,
.share-card {
  border: 1px solid rgb(20 32 28 / 9%);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.upload-card {
  padding: clamp(28px, 4vw, 46px);
}

.upload-card h2,
.result h2 {
  margin: -3px 0 26px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.drop-zone {
  min-height: 160px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #99a28b;
  border-radius: 18px;
  background: #f8f8f0;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--forest);
  background: #f0f5db;
  transform: translateY(-1px);
}

.drop-zone.has-file {
  border-style: solid;
  border-color: #70835d;
  background: #f2f7df;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.drop-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: var(--lime);
  font-size: 1.6rem;
  font-weight: 400;
}

.drop-zone strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-zone small {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 0.77rem;
}

fieldset {
  min-width: 0;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

legend,
.limit-panel > label {
  margin: 0 0 11px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.limit-tabs {
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #eeeee5;
}

.limit-tabs input {
  position: absolute;
  opacity: 0;
}

.limit-tabs span {
  min-height: 42px;
  padding: 8px 10px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #68726c;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 760;
  text-align: center;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.limit-tabs input:checked + span {
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 2px 8px rgb(27 53 43 / 10%);
}

.limit-tabs input:focus-visible + span {
  outline: 3px solid rgb(184 228 59 / 65%);
  outline-offset: 2px;
}

.limit-panel {
  margin-top: 18px;
}

.limit-panel > label {
  display: block;
}

.number-input {
  width: 154px;
  height: 46px;
  display: grid;
  grid-template-columns: 43px 1fr 43px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.number-input button {
  border: 0;
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
}

.number-input button:hover {
  background: #f1f3e8;
}

.number-input input {
  min-width: 0;
  border: 0;
  border-inline: 1px solid var(--line);
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  text-align: center;
  appearance: textfield;
}

.number-input input::-webkit-inner-spin-button {
  appearance: none;
}

select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-weight: 700;
}

.button {
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 820;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.text-button:focus-visible,
select:focus-visible,
.number-input:focus-within,
.drop-zone:focus-within {
  outline: 3px solid rgb(184 228 59 / 70%);
  outline-offset: 3px;
}

.button--primary {
  color: var(--lime);
  background: var(--forest);
}

.button--primary:hover {
  background: #25483a;
}

.button--secondary {
  color: var(--ink);
  background: var(--lime);
}

.submit-button {
  width: 100%;
  margin-top: 27px;
  justify-content: space-between;
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.58;
}

.form-status {
  min-height: 18px;
  margin: 10px 0 -6px;
  color: var(--error);
  font-size: 0.78rem;
  font-weight: 680;
}

.upload-card.is-complete > .step-label,
.upload-card.is-complete > h2 {
  display: none;
}

.result {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.success-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: var(--lime);
  font-size: 1.4rem;
  font-weight: 900;
}

.copy-row {
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f1f2e9;
}

.copy-row input {
  min-width: 0;
  padding: 0 8px;
  border: 0;
  outline: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.82rem;
}

.button--copy {
  min-height: 40px;
  color: var(--ink);
  background: var(--lime);
  font-size: 0.78rem;
}

.result-meta,
.privacy-note {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.5;
}

.text-button {
  align-self: flex-start;
  margin: 30px 0 0;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: #748079;
  font-size: 0.72rem;
}

footer span {
  padding: 0 6px;
  color: #a0a99e;
}

.share-shell {
  width: min(580px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.share-card {
  padding: clamp(32px, 7vw, 58px);
  text-align: center;
}

.share-card h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 7vw, 3.4rem);
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.share-card .eyebrow {
  margin-bottom: 14px;
}

.file-seal {
  width: 72px;
  height: 82px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border: 1px solid #bac2ac;
  border-radius: 10px 10px 18px 10px;
  color: var(--forest);
  background: var(--lime);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  transform: rotate(-2deg);
}

.share-lead {
  margin: 18px 0 28px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.button--download {
  width: 100%;
}

@media (max-width: 840px) {
  .home-shell {
    padding-top: 34px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .intro {
    text-align: center;
  }

  .intro h1,
  .intro-copy {
    margin-inline: auto;
  }

  .trust-list {
    justify-content: center;
  }

  .intro h1 {
    font-size: clamp(4.2rem, 15vw, 6.5rem);
  }
}

@media (max-width: 520px) {
  .site-header,
  .home-shell,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding-top: 20px;
  }

  .header-note {
    display: none;
  }

  .home-shell {
    padding: 32px 0 40px;
  }

  .intro h1 {
    font-size: clamp(3.7rem, 20vw, 5.2rem);
  }

  .intro-copy {
    margin-top: 26px;
  }

  .trust-list {
    margin-top: 24px;
  }

  .upload-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .drop-zone {
    min-height: 150px;
    padding-inline: 16px;
  }

  .limit-tabs span {
    font-size: 0.72rem;
  }

  .share-shell {
    width: min(100% - 28px, 580px);
    padding-block: 24px;
  }

  .brand--small {
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
