:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #66716c;
  --cream: #f6f3ec;
  --paper: #fffdf8;
  --green: #145c43;
  --green-dark: #0e4231;
  --green-soft: #e7f2eb;
  --lime: #cde789;
  --line: #d9ded7;
  --danger: #a13a2a;
  --danger-soft: #fff0ec;
  --shadow: 0 24px 70px rgb(25 49 37 / 12%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-synthesis: none;
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 4%, rgb(205 231 137 / 30%), transparent 24rem),
    var(--cream);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.drop-zone:focus-within {
  outline: 3px solid #e5a933;
  outline-offset: 3px;
}

.site-header {
  width: min(1180px, calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: -0.03em;
  box-shadow: 0 8px 20px rgb(20 92 67 / 22%);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.language-toggle {
  min-width: 52px;
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  line-height: inherit;
  cursor: pointer;
}

.language-toggle:hover {
  background: var(--green-dark);
}

.privacy-pill,
.version-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: rgb(255 255 255 / 62%);
}

.privacy-pill > span[aria-hidden] {
  margin-right: 0.32rem;
  color: #4ca978;
  font-size: 0.65rem;
}

main {
  overflow: hidden;
}

.hero {
  width: min(1180px, calc(100% - 2rem));
  min-height: 650px;
  margin: 0 auto;
  padding: 5.5rem 0 6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 720px;
  margin-bottom: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7.2vw, 6.8rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.28rem;
}

.hero-lede {
  max-width: 650px;
  margin: 0;
  color: #4f5b56;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin: 2rem 0;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0.78rem 1.1rem;
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px rgb(20 92 67 / 22%);
}

.button.primary:hover:not(:disabled) {
  background: var(--green-dark);
}

.button.secondary {
  border-color: #aebdb4;
  background: #fff;
  color: var(--green-dark);
}

.button.ghost {
  border-color: var(--line);
  background: rgb(255 255 255 / 45%);
  color: var(--ink);
}

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

.trust-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: #53605a;
  list-style: none;
}

.trust-list > li > span[aria-hidden] {
  display: inline-grid;
  width: 1.4rem;
  height: 1.4rem;
  margin-right: 0.4rem;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 480px;
  padding-top: 1.5rem;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 2rem 0 0 2rem;
  border-radius: 42% 58% 50% 50% / 45% 41% 59% 55%;
  background: linear-gradient(150deg, #e2e9d2, #d4e4bb 58%, #bfd685);
  transform: rotate(-4deg);
}

.source-card,
.output-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgb(255 255 255 / 76%);
  background: rgb(255 253 248 / 94%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.source-card {
  width: 290px;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  border-radius: 17px;
  padding: 1rem;
}

.source-readwise {
  margin-left: 0;
  transform: rotate(-2deg);
}

.source-kindle {
  margin: 1rem 0 0 auto;
  transform: rotate(2deg);
}

.source-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #e6efe8;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.source-card small,
.output-card small {
  display: block;
  margin-top: 0.16rem;
  color: var(--muted);
}

.source-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
}

.flow-line {
  position: relative;
  z-index: 1;
  width: 2px;
  height: 48px;
  margin: 0 auto;
  background: var(--green);
  opacity: 0.32;
}

.output-card {
  width: 88%;
  margin: 0 auto;
  border-radius: 22px;
  padding: 1.3rem;
}

.output-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
}

.folder-icon {
  display: grid;
  width: 48px;
  height: 44px;
  place-items: center;
  border-radius: 9px;
  background: #f3d887;
  color: #775c14;
  font-size: 1.4rem;
  font-weight: 900;
}

.output-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid #e3e5df;
  color: #59645f;
}

.output-row.accent {
  color: var(--green);
}

.converter-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid #d6ddd5;
  border-radius: 28px;
  background: rgb(255 253 248 / 90%);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.1rem;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.converter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 1rem;
}

.upload-card,
.promise-card,
.processing-panel,
.error-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.upload-card,
.promise-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.step-label {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-label > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
}

.muted {
  color: var(--muted);
}

.drop-zone {
  min-height: 180px;
  margin: 1.25rem 0 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.36rem;
  border: 1.5px dashed #9caf9f;
  border-radius: 16px;
  background: #f8faf7;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-2px);
}

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

.drop-zone strong {
  color: var(--ink);
  font-size: 1.03rem;
}

.upload-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 0.3rem;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
}

.selection-list {
  min-height: 46px;
  margin-bottom: 1rem;
}

.empty-selection {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-shield {
  color: var(--green);
}

.selected-file {
  margin-bottom: 0.55rem;
  padding: 0.75rem 0.85rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.72rem;
  border: 1px solid #dce5dd;
  border-radius: 12px;
  background: #f8faf7;
}

.file-type {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 850;
}

.selected-file strong,
.selected-file small {
  display: block;
}

.selected-file small {
  color: var(--muted);
}

.selected-file .safe-check {
  color: var(--green);
  font-weight: 900;
}

.promise-card {
  background: var(--green-dark);
  color: #fff;
}

.promise-card .step-label {
  color: var(--lime);
}

.promise-card .step-label > span:first-child {
  background: var(--lime);
  color: var(--green-dark);
}

.promise-card h3 {
  margin-bottom: 1.6rem;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.promise-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.promise-item p {
  margin: 0.2rem 0 0;
  color: #bfd1c8;
  font-size: 0.9rem;
}

.promise-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: rgb(205 231 137 / 14%);
  color: var(--lime);
  font-size: 1.05rem;
}

.supported {
  margin-top: 1.1rem;
  padding: 1rem;
  display: grid;
  gap: 0.2rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 8%);
}

.supported span {
  color: #a9bdb3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.processing-panel,
.error-panel {
  margin-top: 1rem;
  padding: 1.25rem;
}

.processing-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  background: #f7faf7;
}

.processing-panel p {
  margin: 0.18rem 0 0;
  color: var(--muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #d7e4da;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.text-button {
  border: 0;
  padding: 0.45rem 0.2rem;
  background: transparent;
  color: var(--green);
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  cursor: pointer;
}

.error-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  border-color: #ecc9c0;
  background: var(--danger-soft);
}

.error-panel h3 {
  font-size: 1.5rem;
}

.error-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.error-code {
  color: #7d4b40;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.result-panel {
  margin-top: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.success-eyebrow {
  color: #35835e;
}

.success-mark {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 900;
}

.metric-grid {
  margin: 1.4rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

.metric {
  padding: 1rem;
  border: 1px solid #e0e5df;
  border-radius: 13px;
  background: #fafbf8;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  margin-bottom: 0.2rem;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
}

.metric span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.result-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 1rem;
}

.result-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.result-subhead h3 {
  margin-bottom: 0.9rem;
}

.result-subhead span {
  color: var(--muted);
  font-size: 0.8rem;
}

.preview-list {
  display: grid;
  gap: 0.65rem;
}

.preview-item {
  padding: 1rem;
  border: 1px solid #e0e5df;
  border-radius: 13px;
  background: #fafbf8;
}

.preview-item-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.preview-item h4,
.preview-item p {
  margin: 0;
}

.preview-item h4 {
  font-size: 0.98rem;
}

.preview-item p {
  margin-top: 0.45rem;
  color: #45524c;
  font-family: Georgia, serif;
  line-height: 1.48;
}

.preview-item small {
  color: var(--muted);
}

.source-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.25rem 0.48rem;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.67rem;
  font-weight: 850;
}

.package-card {
  align-self: start;
  padding: 1.2rem;
  border-radius: 17px;
  background: var(--green-dark);
  color: #fff;
}

.package-card ul {
  margin: 1rem 0 1.2rem;
  padding-left: 1.15rem;
  color: #c4d6ce;
}

.package-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 14px;
  background: var(--lime);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.full-width {
  width: 100%;
  background: var(--lime) !important;
  color: var(--green-dark) !important;
  box-shadow: none !important;
}

.centered {
  width: 100%;
  margin-top: 0.35rem;
  color: #d5e1db;
}

.status-line {
  min-height: 1.3rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.package-card .status-line {
  color: #d7e2dc;
}

.how-it-works {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.steps article {
  min-height: 220px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(255 253 248 / 72%);
}

.steps article > span {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.steps h3 {
  margin: 1.6rem 0 0.55rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.honesty-note {
  width: min(920px, calc(100% - 2rem));
  margin: 2rem auto 6rem;
  padding: 1.35rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  border: 1px solid #d6ddd5;
  border-radius: 18px;
  background: #fffdf8;
}

.honesty-note h2 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.honesty-note p {
  margin: 0;
  color: var(--muted);
}

.honesty-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-family: Georgia, serif;
  font-weight: 800;
}

footer {
  min-height: 130px;
  padding: 2rem max(1rem, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #d7dcd5;
  background: #efede6;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-brand {
  color: var(--ink);
}

.compact-hero {
  min-height: 610px;
  padding-top: 4rem;
}

.product-preview .source-card:first-child {
  top: 1.25rem;
}

.legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: #43504a;
}

.legal-consent input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.17rem;
  accent-color: var(--green);
}

.entitlement-status {
  margin: 0.8rem 0;
  color: #dce9e3;
  font-size: 0.88rem;
}

.fine-print {
  color: inherit;
  font-size: 0.78rem;
  opacity: 0.82;
}

.consent-banner {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 1.15rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid #9fb6a9;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 18px 55px rgb(14 66 49 / 24%);
}

.consent-banner p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a,
.legal-body a {
  color: var(--green);
}

.legal-body {
  min-height: 100vh;
  background: var(--cream);
}

.checkout-shell,
.legal-shell {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 7rem;
}

.checkout-card,
.legal-card {
  padding: clamp(1.3rem, 4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal-title {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 500;
}

.purchase-summary {
  margin: 1.4rem 0;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--green-soft);
}

.purchase-summary div {
  display: grid;
}

.purchase-summary span {
  color: var(--muted);
  font-size: 0.84rem;
}

.plain-list {
  padding-left: 1.3rem;
  color: #4e5a55;
}

.warning-box {
  padding: 0.9rem;
  border-left: 4px solid #d99c31;
  background: #fff6df;
}

.legal-card section + section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  font-size: 1.5rem;
}

.legal-card li + li {
  margin-top: 0.5rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }

  .hero-visual {
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .converter-grid,
  .result-body {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 92px;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .header-meta {
    align-items: flex-end;
    flex-direction: column;
  }

  .privacy-pill {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 3.4rem 0 4rem;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.7rem);
  }

  .hero-visual {
    min-height: 430px;
  }

  .source-card {
    width: min(290px, 88%);
  }

  .output-card {
    width: 94%;
  }

  .button-row,
  .hero-actions {
    flex-direction: column;
  }

  .button-row .button,
  .hero-actions .button {
    width: 100%;
  }

  .processing-panel {
    grid-template-columns: auto 1fr;
  }

  .processing-panel .text-button {
    grid-column: 2;
    justify-self: start;
  }

  .metric-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .result-header {
    flex-direction: column-reverse;
  }

  .result-subhead {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .consent-banner {
    max-height: 75vh;
    overflow: auto;
    grid-template-columns: 1fr;
  }
}

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