/* AguMail coming soon page.
   Palette and type are the app's "Bold" warm identity tokens
   (tailwind.config.js in the AguMail app repo). Keep them in sync. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-latin-ext.woff2') format('woff2');
  font-weight: 400 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-latin.woff2') format('woff2');
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-latin-ext.woff2') format('woff2');
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --sand: #FCFBF9;
  --peach: #F6C99A;
  --ink: #1C1917;
  --ink-soft: #57534E;
  --amber: #B45309;
  --amber-deep: #92400E;
  --line: #EBE2D2;
  --line-strong: #E4D7BF;

  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  position: relative;
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

p, h1, ul { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* The honeypot. Off screen rather than display:none, which more bots skip. */
.trap {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* One warm wash, top right, so the page is not flat white.
   The clip keeps it from widening the document. */
.wash-clip {
  position: absolute; inset: 0 0 auto 0;
  height: min(50rem, 92vh);
  overflow: hidden; pointer-events: none;
}

.wash {
  position: absolute; top: -26rem; right: -16rem;
  width: min(56rem, 130vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(246, 201, 154, 0.42), rgba(246, 201, 154, 0));
  pointer-events: none;
}

.shell {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 5vw, 3rem) clamp(2rem, 4vw, 2.75rem);
}

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

.wordmark {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--display);
  font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.035em;
}

.mark { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

.soon { font-size: 0.875rem; color: var(--ink-soft); }

main {
  flex: 1 1 auto;
  padding-block: clamp(3.5rem, 11vh, 6.5rem) clamp(3rem, 7vh, 4.5rem);
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7.2vw, 4.5rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: balance;
}
h1 .accent { color: var(--amber); }

.sub {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.15rem);
  line-height: 1.6; color: var(--ink-soft);
}

/* Two quiet columns under the headline: what it is on the left, what you
   get on the right. They stack on anything narrow. */
.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2rem, 4vh, 3rem);
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

/* Form -------------------------------------------------------------------- */

form { margin-top: 2.25rem; max-width: 31rem; }

.field {
  display: flex; gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.35rem;
  transition: border-color 0.18s ease;
}
.field:focus-within { border-color: var(--amber); }
form.is-invalid .field { border-color: #B02A2A; }

.field input {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: transparent;
  font: inherit; color: var(--ink);
  padding: 0.7rem 0.5rem 0.7rem 0.8rem;
}
.field input::placeholder { color: #A8A29E; }
.field input:focus { outline: none; }

.field button {
  flex: 0 0 auto;
  font: inherit; font-weight: 600;
  color: #fff; background: var(--amber);
  border: 0; border-radius: 9px;
  padding: 0.72rem 1.1rem;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.field button:hover { background: var(--amber-deep); }
.field button[disabled] { opacity: 0.6; cursor: default; }

form.is-done .field button { opacity: 1; background: #F1E7D5; color: var(--amber-deep); }

.note, .status { margin-top: 0.8rem; font-size: 0.9rem; color: var(--ink-soft); }
.status:empty { display: none; }
.status { margin-top: 0.45rem; font-weight: 600; color: var(--amber-deep); }
.status[data-tone="error"] { color: #B02A2A; }

/* Benefits ---------------------------------------------------------------- */

.benefits {
  padding: 0; list-style: none;
  display: grid; gap: 1rem;
  max-width: 30rem;
  align-content: start;
}
.benefits li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1rem; line-height: 1.55;
}
.benefits li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
}

/* The person building it -------------------------------------------------- */

.me {
  margin-top: clamp(3.5rem, 8vh, 5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.me p { max-width: 46rem; font-size: 0.95rem; line-height: 1.65; color: var(--ink-soft); }
.me p + p { margin-top: 0.8rem; }
.me a {
  color: var(--amber-deep); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
.me a:hover { text-decoration-color: currentColor; }

footer {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  font-size: 0.85rem; color: var(--ink-soft);
}
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Motion ------------------------------------------------------------------ */

main, header, footer {
  animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
main { animation-delay: 60ms; }
footer { animation-delay: 120ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  main, header, footer { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

@media (max-width: 30rem) {
  .field { flex-direction: column; padding: 0.45rem; }
  .field input { padding: 0.6rem 0.5rem 0.35rem; }
  .field button { width: 100%; }
}
