/* Extra Leaf on j2techlabs.com. Palette, type and wordmark follow
   app-foundry apps/extra-leaf/DESIGN.md: light only, olive for titles,
   Bree Serif headings, Figtree body, colour never carries meaning alone. */

@font-face {
  font-family: "Bree Serif";
  src: url("fonts/bree-serif-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --flax: #f6f2e8;
  --cream: #fffcf5;
  --ink: #30382b;
  --olive: #465238;
  --moss: #666a43;
  --sage-light: #dce3cf;
  --sage: #b8c5a3;
  --clay: #a46049;
  --clay-pale: #efddd2;
  --clay-text: #794632;
  --muted: #535c48;
  --line: #ddd5c3;
  --shadow: 0 24px 60px -28px rgba(70, 82, 56, 0.45), 0 4px 14px -6px rgba(121, 70, 50, 0.18);
  --heading: "Bree Serif", Georgia, serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--flax);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--olive); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  margin: 0;
  color: var(--olive);
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.12;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--olive);
  color: var(--cream);
  border-radius: 999px;
  z-index: 10;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}
.brand { display: inline-flex; }
.brand img { width: 178px; }
.site-header nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(48, 56, 43, 0.9);
  transition: background 0.2s ease, transform 0.2s ease;
}
.button:hover { background: var(--ink); transform: translateY(-1px); }
.text-link { font-weight: 600; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
  padding-block: 40px 96px;
}
.app-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.app-intro img { width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--shadow); }
.app-intro .eyebrow { margin: 0; }
.hero h1 { font-size: clamp(42px, 6vw, 70px); letter-spacing: -0.01em; }
.hero h1 span { color: var(--clay-text); }
.hero-description { max-width: 520px; margin: 24px 0 30px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 0;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: var(--sage-light);
  color: var(--ink);
  font-size: 15px;
}
.status strong {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Illustrative gathering card */
.preview { margin: 0; }
.gathering {
  position: relative;
  padding: 28px 26px 22px;
  border-radius: 30px;
  background: var(--cream);
  box-shadow: var(--shadow);
}
.gathering::before {
  /* the table leaf: a sage board dropped into the card's edge */
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: -9px;
  width: 18px;
  border-radius: 9px;
  background: var(--sage);
  border: 2px solid var(--olive);
}
.gathering-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.gathering h2 { font-size: 30px; }
.gathering .when { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.count {
  flex: none;
  min-width: 84px;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--clay);
  color: var(--cream);
  text-align: center;
  line-height: 1.15;
}
.count strong { display: block; font-family: var(--heading); font-size: 30px; font-weight: 400; font-variant-numeric: tabular-nums; }
.count span { font-size: 12px; }
.covers { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; padding: 0; list-style: none; }
.covers li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sage-light);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.menu-list { margin: 14px 0 0; padding: 0; list-style: none; }
.menu-list li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.menu-list img { width: 52px; height: 52px; }
.menu-list h3 { font-size: 18px; }
.menu-list p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.who { color: var(--olive); font-size: 14px; font-weight: 600; text-align: right; }
.open {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px dashed var(--clay-text);
  background: var(--clay-pale);
  color: var(--clay-text);
  font-size: 13px;
  font-weight: 600;
}
.preview figcaption { margin-top: 16px; color: var(--muted); font-size: 14px; text-align: center; }

/* Sections */
.section { padding-block: 96px; border-top: 1px solid var(--line); }
.section-intro { max-width: 640px; margin-bottom: 48px; }
.section-intro h2, .split h2, .care h2, .soon h2 { font-size: clamp(34px, 4.4vw, 50px); }
.section-intro p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps article {
  padding: 28px 26px 30px;
  border-radius: 26px;
  background: var(--cream);
  box-shadow: 0 1px 0 var(--line);
}
.steps img { display: block; width: 150px; height: 150px; margin: -6px 0 10px -6px; }
.step-number { color: var(--clay-text); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; }
.steps h3 { margin: 8px 0 10px; font-size: 25px; }
.steps p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 64px; }
.split-art { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-art img {
  width: 100%;
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 28px;
  background: var(--sage-light);
}
.split-art img + img { margin-top: 48px; background: var(--clay-pale); }
.split p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.note {
  padding: 14px 18px;
  border-left: 4px solid var(--olive);
  border-radius: 0 14px 14px 0;
  background: var(--cream);
  color: var(--ink) !important;
  font-size: 16px !important;
}

.care { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.care p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin-top: 0; }
.text-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; }

.soon {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 96px;
  padding: 44px 48px;
  border-radius: 34px;
  background: var(--olive);
  color: var(--cream);
}
.soon img { width: 200px; height: 200px; border-radius: 44px; }
.soon .eyebrow { color: var(--sage); }
.soon h2 { color: var(--cream); }
.soon p:not(.eyebrow) { max-width: 560px; color: #f1ecdf; font-size: 18px; }
.soon .button { background: var(--cream); color: var(--olive); }
.soon .button:hover { background: var(--flax); }

/* Footer */
.site-footer { padding-block: 44px 36px; border-top: 1px solid var(--line); font-size: 15px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand img { width: 140px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; color: var(--muted); }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .hero, .split, .care { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 16px; }
  .steps { grid-template-columns: 1fr; }
  .soon { grid-template-columns: 1fr; padding: 36px 28px; text-align: left; }
  .soon img { width: 150px; height: 150px; border-radius: 34px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 78px; }
  .brand img { width: 138px; }
  .site-header nav { gap: 16px; font-size: 14px; }
  .status { align-items: flex-start; border-radius: 18px; }
  .gathering { padding: 22px 18px 18px; border-radius: 24px; }
  .gathering h2 { font-size: 25px; }
  .menu-list li { grid-template-columns: 44px 1fr; }
  .menu-list img { width: 44px; height: 44px; }
  .menu-list .who, .menu-list .open { grid-column: 2; justify-self: start; text-align: left; }
  .section { padding-block: 72px; }
  .split-art img + img { margin-top: 28px; }
}

/* Document pages: privacy, terms, support, delete-account */
.page { max-width: 860px; padding-block: 24px 96px; }
.sheet {
  padding: 52px 56px 48px;
  border-radius: 30px;
  background: var(--cream);
  box-shadow: 0 1px 0 var(--line), 0 24px 60px -40px rgba(70, 82, 56, 0.45);
}
.sheet h1 { font-size: clamp(36px, 5.4vw, 56px); }
.sheet .updated { margin: 12px 0 34px; color: var(--muted); font-size: 15px; }
.sheet h2 { margin: 44px 0 12px; font-size: 27px; }
.sheet p, .sheet li { color: var(--ink); line-height: 1.75; }
.sheet ul { padding-left: 1.3em; }
.sheet li { margin-bottom: 6px; }
.sheet li::marker { color: var(--clay); }
.sheet strong { font-weight: 600; }
.sheet a:not(.button) { color: var(--olive); font-weight: 600; text-decoration: underline; }
.sheet .button { margin-block: 4px 8px; }
.page .back { display: inline-block; margin: 32px 0 0 8px; font-weight: 600; }
.site-header nav a[aria-current="page"], .site-footer nav a[aria-current="page"] { text-decoration: underline; }

@media (max-width: 560px) {
  .page { padding-top: 8px; }
  .sheet { padding: 32px 22px 30px; border-radius: 22px; }
  .sheet h2 { font-size: 23px; }
}
