:root {
  --color-primary: #1f7a47;
  --color-primary-hover: #155c34;
  --color-primary-focus: #3eb972;
  --color-primary-light: #e3f4ea;
  --color-primary-tint: #f2faf5;
  --color-focus-ring: rgba(62, 185, 114, 0.18);

  --color-bg-white: #ffffff;
  --color-bg-card: #fafafa;

  --color-text-title: #14181d;
  --color-text-body: #2b3138;
  --color-text-secondary: #3a414a;
  --color-text-muted: #5f6873;

  --color-border-input: #d3d9de;
  --color-border-subtle: #eef0f2;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-serif: "STIX Two Text", Georgia, serif;

  --radius-md: 8px;
  --radius-xl: 18px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  width: 100%;
  background-color: var(--color-bg-white);
  color: var(--color-text-body);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-white);
}

@media (min-width: 901px) and (min-height: 600px) {
  .page-wrapper {
    height: 100vh;
    overflow-y: hidden;
  }
}

/* Header */
.header {
  border-bottom: 1px solid var(--color-border-subtle);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-link:hover {
  opacity: 0.9;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* Main */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  min-height: 0;
}

.main-container {
  max-width: 1120px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Side-by-Side Card */
.card {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: 30px 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  box-shadow: 0 2px 12px rgba(20, 24, 29, 0.03);
}

/* Left Column: Illustration */
.illustration-col {
  flex: 0 0 405px;
  max-width: 405px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.engine-illustration {
  width: 100%;
  height: auto;
  max-height: 405px;
  object-fit: contain;
  display: block;
}

/* Right Column: Text & Form */
.content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

/* Status Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary-focus);
  box-shadow: 0 0 0 0 rgba(62, 185, 114, 0.55);
  animation: sompulse 1.8s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
  }
}

@keyframes sompulse {
  0% {
    box-shadow: 0 0 0 0 rgba(62, 185, 114, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(62, 185, 114, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(62, 185, 114, 0);
  }
}

/* Typography */
.title {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 33px;
  line-height: 1.18;
  color: var(--color-text-title);
  text-wrap: balance;
}

.description {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--color-text-secondary);
  max-width: 580px;
}

.return-date {
  margin: 11px 0 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.return-date strong {
  font-weight: 600;
  color: var(--color-text-title);
}

/* Subscription Form */
.subscribe-form {
  margin-top: 18px;
  width: 100%;
  max-width: 490px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.email-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  color: var(--color-text-title);
  font-family: var(--font-sans);
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-input::placeholder {
  color: #828c96;
}

.email-input:focus {
  outline: none;
  border-color: var(--color-primary-focus);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 1px 2px rgba(31, 122, 71, 0.2);
}

.submit-btn:hover:not(:disabled) {
  background: var(--color-primary-hover);
  box-shadow: 0 2px 6px rgba(31, 122, 71, 0.3);
}

.submit-btn:focus-visible {
  outline: 2px solid var(--color-primary-focus);
  outline-offset: 2px;
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.turnstile-wrapper {
  width: 100%;
  min-height: 65px;
}

.form-feedback {
  min-height: 20px;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
}

.form-feedback.success {
  color: var(--color-primary);
}

.form-feedback.error {
  color: #b42318;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border-subtle);
  margin-top: auto;
  background: var(--color-bg-white);
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--color-text-muted);
}

.footer-logo {
  width: 26px;
  height: auto;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-size: 13.5px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-text-title);
  text-decoration: underline;
}

/* Compact 13" desktop displays */
@media (max-height: 780px) and (min-width: 901px) {
  .card {
    padding: 20px 32px;
    gap: 28px;
  }

  .illustration-col {
    flex: 0 0 355px;
    max-width: 355px;
  }

  .engine-illustration {
    max-height: 355px;
  }

  .title {
    font-size: 28px;
    margin-top: 10px;
  }

  .description {
    font-size: 14.5px;
    line-height: 1.5;
    margin-top: 8px;
  }

  .return-date {
    margin-top: 8px;
    font-size: 13.5px;
  }

  .subscribe-form {
    margin-top: 14px;
    gap: 8px;
  }

  .email-input,
  .submit-btn {
    height: 40px;
  }
}

@media (max-width: 1080px) {
  .card {
    gap: 28px;
    padding: 26px 30px;
  }

  .illustration-col {
    flex: 0 0 340px;
    max-width: 340px;
  }

  .engine-illustration {
    max-height: 340px;
  }

  .title {
    font-size: 28px;
  }

  .description {
    font-size: 14.5px;
  }
}

/* Tablet & Mobile */
@media (max-width: 900px) {
  .main {
    padding: 24px 16px;
    align-items: flex-start;
  }

  .card {
    flex-direction: column;
    padding: 28px 20px 24px;
    gap: 22px;
    text-align: center;
    border-radius: 14px;
  }

  .illustration-col {
    flex: initial;
    max-width: 270px;
    width: 100%;
  }

  .engine-illustration {
    max-height: 260px;
  }

  .content-col {
    align-items: center;
    text-align: center;
  }

  .subscribe-form {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .pill {
    font-size: 11px;
    padding: 4px 12px;
    letter-spacing: 0.08em;
  }

  .title {
    font-size: 24px;
    margin-top: 12px;
  }

  .description {
    font-size: 14px;
    margin-top: 10px;
  }

  .return-date {
    font-size: 13px;
  }

  .input-row {
    flex-direction: column;
  }

  .submit-btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 12px 16px;
  }
}
