/* Deelay — deelayapp.com
   Palette matches the app (lib/config/constants/colors.dart). */

:root {
  --base-900: #0f1311;
  --base-800: #161b18;
  --base-700: #1e2521;
  --base-600: #2c3630;
  --sage: #8fc5a9;
  --sage-deep: #4a7c63;
  --text: #f0f3f0;
  --text-dim: #a3afa7;
  --edge: rgba(255, 255, 255, 0.08);
  --measure: 62ch;
}

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

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

body {
  margin: 0;
  background: var(--base-900);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

/* ---------- header ---------- */

header {
  padding: 34px 0;
}

.logo {
  display: block;
  width: 132px;
  height: auto;
}

.logo-lg {
  width: min(260px, 72%);
  margin: 0 auto 34px;
}

/* ---------- hero ---------- */

.hero {
  padding: 40px 0 76px;
  text-align: center;
}

h1 {
  margin: 0 auto 20px;
  max-width: 17ch;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lede {
  margin: 0 auto;
  max-width: 46ch;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text-dim);
}

.cta {
  margin-top: 34px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--base-900);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: var(--text);
  color: var(--base-900);
}

.btn-note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ---------- shots ---------- */

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding-bottom: 80px;
}

.shots figure {
  margin: 0;
  flex: 0 1 280px;
  min-width: 0;
  text-align: center;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--edge);
}

.shots figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ---------- features ---------- */

.features {
  padding: 76px 0;
  border-top: 1px solid var(--edge);
}

.grid {
  display: grid;
  gap: 22px;
  /* min() so the track can fall below its ideal width on a narrow screen
     instead of forcing the page to scroll sideways. */
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.card {
  padding: 26px;
  border-radius: 18px;
  background: var(--base-800);
  border: 1px solid var(--edge);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
}

/* ---------- how ---------- */

.how {
  padding: 76px 0;
  border-top: 1px solid var(--edge);
}

h2 {
  margin: 0 0 30px;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  letter-spacing: -0.02em;
}

ol.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

ol.steps li {
  counter-increment: step;
  padding-top: 18px;
  border-top: 2px solid var(--sage-deep);
  color: var(--text-dim);
}

ol.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 6px;
  color: var(--sage);
  font-weight: 700;
  font-size: 0.92rem;
}

ol.steps strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ---------- beta ---------- */

.beta {
  padding: 76px 0;
  border-top: 1px solid var(--edge);
}

.beta-lede {
  max-width: var(--measure);
  margin: -14px 0 34px;
  color: var(--text-dim);
}

.signup {
  margin-top: 38px;
  max-width: 560px;
}

.signup label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.signup input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--base-600);
  background: var(--base-800);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.signup input[type="email"]::placeholder {
  color: #6c7a72;
}

.signup input[type="email"]:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-color: transparent;
}

.signup .btn {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
}

/* The honeypot: out of sight and out of the tab order, but not
   display:none, which some bots know to skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- privacy note ---------- */

.note {
  padding: 60px 0;
  border-top: 1px solid var(--edge);
}

.note p {
  max-width: var(--measure);
  color: var(--text-dim);
}

/* ---------- article (privacy page) ---------- */

.article {
  padding: 20px 0 80px;
}

.article h1 {
  max-width: none;
  text-align: left;
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

.article .updated {
  margin: 0 0 40px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.article h2 {
  margin: 46px 0 12px;
  font-size: 1.35rem;
}

.article h3 {
  margin: 30px 0 8px;
  font-size: 1.08rem;
}

.article p,
.article li {
  max-width: var(--measure);
  color: var(--text-dim);
}

.article strong {
  color: var(--text);
}

.article ul {
  padding-left: 20px;
}

.article li {
  margin-bottom: 6px;
}

.article code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--base-700);
  color: var(--text);
  font-size: 0.88em;
}

.callout {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--sage);
  border-radius: 0 12px 12px 0;
  background: var(--base-800);
}

.callout p {
  margin: 0;
  color: var(--text);
}

/* ---------- footer ---------- */

footer {
  padding: 34px 0 56px;
  border-top: 1px solid var(--edge);
  color: var(--text-dim);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}

footer .spacer {
  flex: 1;
}

@media (max-width: 560px) {
  .shots figure {
    flex-basis: 100%;
    max-width: 320px;
  }
}
