/* Stitchen landing page — single-file CSS.
   Brand colors: cream #F7F2E8 background, navy #1F2C49 ink, salmon
   #D96A6A accent. Matches the Flutter app's theme so the page and
   the app feel like one product.

   Visual posture: toned down, not corporate-clinical. The brand
   banner does most of the lifting at the top; body type stays
   relaxed, with cross-stitch "x" accents standing in for bullets
   so the page reads like the app's adjacent surface rather than a
   generic SaaS one-pager. */

:root {
  --bg: #F7F2E8;
  --bg-card: #FBF6EC;
  --ink: #1F2C49;
  --ink-soft: #2E3E5E;
  --ink-muted: #5A6B86;
  --accent: #D96A6A;
  --accent-hover: #C95757;
  --rule: rgba(31, 44, 73, 0.14);
  --rule-soft: rgba(31, 44, 73, 0.08);
  --shadow: 0 1px 2px rgba(31, 44, 73, 0.06),
            0 8px 24px rgba(31, 44, 73, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A2436;
    --bg-card: #202C42;
    --ink: #F2E9D8;
    --ink-soft: #E3D8C5;
    --ink-muted: #A8B5C9;
    --rule: rgba(242, 233, 216, 0.18);
    --rule-soft: rgba(242, 233, 216, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.32),
              0 8px 24px rgba(0, 0, 0, 0.22);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, ui-rounded, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

/* -- hero / banner -- */

.hero {
  text-align: center;
  padding: 8px 0 28px;
}

.banner {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 460px;
  height: auto;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin: 14px 0 24px;
}

.lede {
  font-size: 22px;
  line-height: 1.45;
  max-width: 30em;
  margin: 0 auto;
  color: var(--ink-soft);
  font-weight: 500;
}

/* -- rules between sections, with a soft x in the middle -- */

.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 48px auto;
  max-width: 240px;
  position: relative;
}

.rule::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  padding: 0 12px;
  line-height: 1;
}

/* -- shared section styling -- */

h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

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

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

/* -- early access card -- */

.early-access {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px 24px 22px;
  box-shadow: var(--shadow);
}

.early-access h2 { margin-top: 0; }

#signup-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

#signup-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.15s ease, outline-color 0.15s ease;
}

#signup-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

#signup-form button {
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

#signup-form button:hover { background: var(--accent-hover); }
#signup-form button:active { transform: translateY(1px); }
#signup-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#signup-status {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 1.4em;
  color: var(--ink-muted);
}

#signup-status.success { color: #2E7D32; }
#signup-status.error { color: var(--accent-hover); }

@media (prefers-color-scheme: dark) {
  #signup-status.success { color: #7FCB7F; }
}

/* -- feature list with x-stitch bullets -- */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.feature-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-top: 1px solid var(--rule-soft);
  font-size: 17px;
  color: var(--ink-soft);
}

.feature-list li:last-child {
  border-bottom: 1px solid var(--rule-soft);
}

.feature-list .x {
  position: absolute;
  left: 0;
  top: 14px;
  width: 20px;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.55;
  font-family: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* -- who-it's-for -- */

.who p { font-size: 17px; }

.who .ps {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-muted);
}

/* -- footnotes (asterisked small-print disclaimers) -- */

/* Inline asterisk inside a bullet: small, muted, underlined link to the
   footnote below. Keeps the marketing copy confident while the caveat
   lives in the small print where caveats belong. */
.feature-list sup {
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
}

.feature-list sup a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0 1px;
}

.feature-list sup a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footnotes {
  margin-top: 48px;
  padding: 18px 20px;
  border-top: 1px solid var(--rule-soft);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.footnotes p {
  margin: 0;
  color: var(--ink-muted);
}

.footnotes .marker {
  display: inline-block;
  width: 14px;
  color: var(--accent);
  font-weight: 700;
  text-align: left;
}

.footnotes :target {
  background: rgba(217, 106, 106, 0.10);
  border-radius: 4px;
  padding: 6px 8px;
  margin: -6px -8px;
}

/* -- footer -- */

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
}

footer .status {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

footer .meta {
  margin: 0;
  font-size: 13px;
}

footer .meta a { text-decoration: none; }
footer .meta a:hover { text-decoration: underline; }

/* -- accessibility helper -- */

.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;
}

/* -- responsive trim -- */

@media (max-width: 520px) {
  main { padding: 36px 18px 48px; }
  .banner { max-width: 320px; }
  .lede { font-size: 19px; }
  .feature-list li { font-size: 16px; padding-left: 28px; }
  .rule { margin: 36px auto; max-width: 180px; }
}
