/*
 * Cedraa coming-soon page. Colours mirror the brand tokens in packages/ui/src/styles/globals.css
 * (the comments name the brand token); keep the two in step. Every text pair meets WCAG 2.2 AA.
 */
:root {
  color-scheme: light dark;
  --background: #f7f6f3; /* surface-page */
  --foreground: #1b1d1a; /* ink */
  --card: #ffffff; /* surface-raised */
  --primary: #1f5a44; /* brand */
  --secondary: #e2eee7; /* brand-tint */
  --secondary-foreground: #16412f; /* on-brand-tint */
  --muted-foreground: #5f625c; /* ink-muted */
  --brand-deep: #12352a;
  --on-deep: #ffffff;
  --on-deep-muted: #d2e2d9;
  --oil: #c9a227; /* the one accent: fills only, with --oil-foreground text */
  --oil-foreground: #1b1d1a;
  --border: #d9d6cf; /* line */
  --ring: #1f5a44; /* focus */
  --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --radius-md: 8px;
  --radius-lg: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f1311;
    --foreground: #edf0ed;
    --card: #161b18;
    --primary: #7cc9a3;
    --secondary: #1c2f26;
    --secondary-foreground: #bfe3cf;
    --muted-foreground: #a2aaa4;
    --brand-deep: #1f5a44;
    --on-deep: #ffffff;
    --on-deep-muted: #e2eee7;
    --oil: #e3c25a;
    --oil-foreground: #141611;
    --border: #2c332f;
    --ring: #7cc9a3;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

a {
  color: inherit;
}

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

.page {
  display: flex;
  flex-direction: column;
  gap: 72px;
  min-height: 100svh;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

@media (min-width: 640px) {
  .page {
    padding: 32px 32px 40px;
  }
}

main {
  display: grid;
  gap: 72px;
  flex: 1;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1.25rem;
  text-decoration: none;
}

.mark {
  width: 1.4em;
  height: 1.4em;
  flex-shrink: 0;
  fill: var(--primary);
}

.wordmark {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wordmark-suffix {
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted-foreground);
}

.header-link {
  font-weight: 500;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}

.header-link:hover {
  text-decoration-color: currentColor;
}

/* Hero */

.hero {
  display: grid;
  gap: 24px;
  max-width: 760px;
  padding-top: 24px;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 56px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oil);
}

h1 {
  font-size: clamp(2.25rem, 6vw + 0.5rem, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  max-width: 640px;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  text-wrap: pretty;
}

/* What's coming */

.steps {
  display: grid;
  gap: 24px;
}

.steps h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps ol {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps ol {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.step-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 600;
}

.steps h3 {
  font-size: 1rem;
  font-weight: 600;
}

.steps li p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Contact */

.contact {
  position: relative;
  overflow: hidden;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--brand-deep);
  color: var(--on-deep);
  scroll-margin-top: 24px;
}

@media (min-width: 640px) {
  .contact {
    padding: 48px;
  }
}

.contact-mark {
  display: none;
  position: absolute;
  right: -40px;
  bottom: -56px;
  width: 280px;
  height: 280px;
  fill: var(--on-deep);
  opacity: 0.07;
  pointer-events: none;
}

/* Decorative only; on narrow screens it would sit behind the text and buttons. */
@media (min-width: 768px) {
  .contact-mark {
    display: block;
  }
}

.contact-body {
  position: relative;
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.contact h2 {
  font-size: clamp(1.75rem, 3vw + 0.75rem, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact p {
  color: var(--on-deep-muted);
  font-size: 1.0625rem;
}

.contact :focus-visible {
  outline-color: var(--on-deep);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    filter 120ms ease,
    background-color 120ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--oil);
  color: var(--oil-foreground);
  overflow-wrap: anywhere;
}

.button-primary:hover {
  filter: brightness(1.06);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.site-footer a {
  text-underline-offset: 3px;
}
