/* =========================================================
   Graftr – styles.css  (v3 · single viewport · no scroll)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap");

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --green-action: #22c55e;
  --green-deep: #006e2f;
  --green-dark-txt: #004b1e;
  --green-pale: #d1fae5;

  --obsidian: #191c1b;
  --obsidian-soft: #2e3130;

  --paper: #f9faf8;
  --paper-low: #f3f4f2;
  --white: #ffffff;

  --text-primary: #191c1b;
  --text-secondary: #5f5e5e;

  --border-subtle: #bccbb9;
  --border-strong: #6d7b6c;

  --error-bg: #ffdad6;
  --error-txt: #93000a;

  --font-display: "Sora", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  --r-md: 0.5rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-primary);
}
img {
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  user-select: none;
}

/* ── Page shell – two columns, full viewport ───────────────── */
.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  width: 100vw;
}

/* ── Left – image panel ─────────────────────────────────────── */
.panel-image {
  position: relative;
  overflow: hidden;
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Subtle dark gradient so logo reads on any photo */
.panel-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.04) 60%,
    transparent 100%
  );
  pointer-events: none;
}

/* Logo watermark on image */
.panel-image__logo {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ── Right – content panel ──────────────────────────────────── */
.panel-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 48px;
  background: var(--paper);
  overflow: hidden;
}

/* Top row inside content panel */
.panel-content__top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Centre block */
.panel-content__centre {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 80%;
  margin: 0 auto;
}

/* Bottom row */
.panel-content__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  align-self: flex-start;
  background: var(--green-pale);
  color: var(--green-dark-txt);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-full);
}

/* ── Headline ───────────────────────────────────────────────── */
.headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 2.8vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text-primary);
}

/* ── Tagline ────────────────────────────────────────────────── */
.tagline {
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-secondary);
}



/* ── Blurb  ──────────────────────────────────────────────── */
.blurb-wrap {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.blurb {
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-secondary);
  border-left: 10px solid var(--green-action);
  padding-left: 16px;
  margin: 0;
}


/* ── Countdown ──────────────────────────────────────────────── */
.countdown {
  display: flex;
  gap: 10px;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--obsidian);
  padding: 10px 14px;
  border-radius: var(--r-lg);
  min-width: 64px;
}

.countdown__number {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.countdown__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Signup form ────────────────────────────────────────────── */
.signup-form {
  display: flex;
  gap: 8px;
}

.signup-form__input {
  flex: 3;
  height: 65px;
  background: var(--paper-low);
  border: 2px solid transparent;
  border-radius: var(--r-lg);
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}
.signup-form__input:focus {
  border-color: var(--green-action);
}
.signup-form__input::placeholder {
  color: var(--border-strong);
}

.signup-form__btn {
  flex: 1;
  height: 65px;
  background: var(--green-action);
  color: var(--green-dark-txt);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--r-lg);
  padding: 0 16px;j
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
}
.signup-form__btn:hover {
  background: var(--obsidian);
  color: var(--white);
}
.signup-form__btn:active {
  transform: scale(0.98);
}

/* ── Sub-hints ──────────────────────────────────────────────── */
.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-meta__hint {
  font-size: 12px;
  color: var(--text-secondary);
}
.form-meta__powered {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--border-strong);
}

/* ── Toast ──────────────────────────────────────────────────── */
.form-toast {
  display: none;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
}
.form-toast.success {
  background: var(--green-pale);
  color: var(--green-dark-txt);
}
.form-toast.error {
  background: var(--error-bg);
  color: var(--error-txt);
}
.form-toast.visible {
  display: block;
}

/* ── Footer strip ───────────────────────────────────────────── */
.footer-copy {
  font-size: 12px;
  color: var(--border-strong);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition:
    background 0.15s,
    color 0.15s;
}
.social-btn:hover {
  background: var(--obsidian);
  color: var(--white);
}
.social-btn .material-symbols-outlined {
  font-size: 18px;
}

/* ── Mobile: stack vertically ───────────────────────────────── */
@media (max-width: 767px) {
  html,
  body {
    overflow: auto;
    height: auto;
  }

  .page {
    grid-template-columns: 1fr;
    grid-template-rows: 45vh auto;
    height: auto;
    min-height: 100vh;
  }

  .panel-content {
    padding: 28px 24px 24px;
    gap: 32px;
  }

  .panel-content__centre {
    max-width: 100%;
  }

  .headline {
    font-size: 28px;
  }
}
