/* thyme.ae: same palette and fonts as the app. No external requests. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f2f3f1;
  --surface: #fafaf8;
  --border: #e3e5e2;
  --text: #1a1f24;
  --text-muted: #5f6870;
  --brand: #2f7d5b;
  --brand-strong: #236247;
  --brand-soft: #eef6f2;
  --brand-deep: #1e3b2c;
  --amber: #e09b1a;
  --font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-strong);
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(242 243 241 / 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  border-radius: 8px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--brand-strong);
}

.btn:focus-visible {
  outline: 3px solid rgb(47 125 91 / 0.35);
  outline-offset: 2px;
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.btn-quiet {
  background: transparent;
  color: var(--brand-strong);
  border: 1px solid #cfd8d2;
}

.btn-quiet:hover {
  background: var(--brand-soft);
}

/* Hero */

.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lead {
  margin: 20px 0 0;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.lead-ar {
  margin: 10px 0 0;
  font-family: "IBM Plex Sans Arabic", var(--font);
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: start;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.fine {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero visual: notes → draft report */

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(30 59 44 / 0.06);
}

.card-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.notes {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.arrow {
  align-self: center;
  margin: 8px 0;
  color: var(--brand);
  font-size: 1.4rem;
  line-height: 1;
}

.report-card h3 {
  margin: 12px 0 2px;
  font-size: 0.9rem;
  color: var(--brand-strong);
}

.report-card h3:first-of-type {
  margin-top: 0;
}

.report-card p {
  margin: 0;
  font-size: 0.92rem;
}

.report-card .card-label {
  margin-bottom: 10px;
}

.report-card .check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff6e5;
  color: #7a4b00;
  font-size: 0.82rem;
  font-weight: 500;
}

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

/* Features */

.features {
  padding: 64px 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Privacy */

.privacy {
  padding: 64px 0;
  background: var(--brand-deep);
  color: #e8f0eb;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.privacy h2 {
  color: #fff;
  margin: 0;
}

.privacy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.privacy li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 1.02rem;
}

.privacy li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7fc6a1;
}

/* Call to action */

.cta {
  padding: 56px 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  border-radius: 18px;
  background: var(--brand-soft);
  border: 1px solid #d6e9de;
}

.cta h2 {
  margin: 0 0 4px;
}

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

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-row p {
  margin: 0;
}

/* Smaller screens */

@media (max-width: 960px) {
  .hero-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 48px 0;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .cta-row {
    padding: 24px;
  }
}

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

  .btn {
    transition: none;
  }
}
