/* ============================================================
   Accounting Leo — Coming Soon
   Polished, minimal, accounting-education tone.
   Brand palette derived from the Leo mascot:
     leaf green  #9BC026  (primary accent)
     amber       #F26B1F  (highlight only)
     cream       #FAF7EF  (background)
   ============================================================ */

:root {
  /* Brand */
  --leo-green: #9bc026;
  --leo-green-deep: #7ea01b;
  --leo-amber: #f26b1f;
  --leo-cream: #faf7ef;
  --leo-cream-soft: #f4efdf;
  --leo-ink: #2a2620;
  --leo-ink-muted: #6c665b;
  --leo-ink-faint: #aaa599;
  --leo-line: #e6dfcc;
  --leo-surface: #ffffff;

  /* Semantic */
  --color-bg: var(--leo-cream);
  --color-surface: var(--leo-surface);
  --color-text: var(--leo-ink);
  --color-text-muted: var(--leo-ink-muted);
  --color-border: var(--leo-line);
  --color-primary: var(--leo-green-deep);
  --color-primary-hover: #6a880f;
  --color-error: #b3261e;

  /* Type */
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --text-xs: 0.8125rem; /* 13 */
  --text-sm: 0.9375rem; /* 15 */
  --text-base: 1.0625rem; /* 17 */
  --text-lg: 1.25rem; /* 20 */
  --text-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-hero: clamp(2.25rem, 1.6rem + 3.6vw, 4rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radii / shadow */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(42, 38, 32, 0.04),
    0 2px 6px rgba(42, 38, 32, 0.04);
  --shadow-md: 0 4px 12px rgba(42, 38, 32, 0.06),
    0 12px 32px rgba(42, 38, 32, 0.06);

  --container: min(100% - 2.5rem, 720px);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input {
  font: inherit;
  color: inherit;
}

/* ---- Body ---- */
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";

  /* Subtle background interest — a soft conic glow behind the hero */
  background-image: radial-gradient(
      900px 600px at 50% -10%,
      rgba(155, 192, 38, 0.12),
      transparent 60%
    ),
    radial-gradient(
      700px 500px at 100% 110%,
      rgba(242, 107, 31, 0.08),
      transparent 60%
    );
  background-attachment: fixed;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
}

/* ---- Page layout ---- */
.page {
  flex: 1;
  width: var(--container);
  margin-inline: auto;
  padding-block: clamp(var(--space-6), 4vh, var(--space-10));
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-6), 4vh, var(--space-10));
}

/* ---- Brand header ---- */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}
.brand__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.brand__name-accent {
  color: var(--leo-green-deep);
}

@media (min-width: 720px) {
  .brand__logo {
    width: 64px;
    height: 64px;
  }
}

/* ---- Hero ---- */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-top: clamp(var(--space-2), 3vh, var(--space-8));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  align-self: flex-start;
  padding: 0.4rem 0.7rem 0.4rem 0.55rem;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leo-amber);
  box-shadow: 0 0 0 4px rgba(242, 107, 31, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(242, 107, 31, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(242, 107, 31, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow__dot {
    animation: none;
  }
}

.hero__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-wrap: balance;
  max-width: 22ch;
}

.hero__sub {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 52ch;
}

/* ---- Signup form ---- */
.signup {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
  max-width: 520px;
}
.signup__label {
  /* Visually hidden but available to assistive tech */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.signup__row {
  display: flex;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.signup__row:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(155, 192, 38, 0.22);
}
.signup__row.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.14);
}

.signup__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.85rem;
  font-size: var(--text-base);
  color: var(--color-text);
  outline: none;
}
.signup__input::placeholder {
  color: var(--leo-ink-faint);
}

.signup__button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.05rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.signup__button:hover {
  background: var(--color-primary-hover);
}
.signup__button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}
.signup__button:active {
  transform: translateY(1px);
}
.signup__button:disabled .signup__button-arrow {
  transform: none;
}
.signup__button:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}
.signup__button-arrow {
  transition: transform 0.2s ease;
}
.signup__button:hover .signup__button-arrow {
  transform: translateX(2px);
}

.signup__help {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.signup__status {
  margin: 0;
  min-height: 1.2em;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.signup__status.is-error {
  color: var(--color-error);
}
.signup__status.is-success {
  color: var(--leo-green-deep);
}

/* On very narrow screens stack the input + button */
@media (max-width: 460px) {
  .signup__row {
    flex-direction: column;
    padding: 8px;
  }
  .signup__input {
    padding: 0.7rem 0.5rem;
  }
  .signup__button {
    justify-content: center;
    padding: 0.85rem 1rem;
  }
}

/* ---- Footer ---- */
.site-footer {
  width: var(--container);
  margin-inline: auto;
  padding-block: var(--space-6) calc(var(--space-8) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-6);
}
.site-footer__text {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 80ch;
}

/* ---- Print friendliness ---- */
@media print {
  body {
    background: #fff;
  }
  .signup__button {
    display: none;
  }
}
