/* Woodcraft Folk app website: the "Trail" design.
   Colours, fonts and shapes come from the app's brand pack
   (woodcraft-app/brand-packs/woodcraft-placeholder.json). Change them here, in one place. */
:root {
  --forest: #195A47;        /* primary */
  --forest-deep: #12352B;   /* text, dark sections */
  --forest-night: #0B241D;  /* footer, device frames */
  --forest-mid: #21775A;
  --leaf: #9FB929;
  --sun: #FCD85F;           /* accent */
  --sun-soft: #FEF0BF;      /* accentSoft */
  --sun-text: #5C4300;      /* warnText */
  --page: #F7F8EF;          /* background */
  --surface: #FFFFFF;
  --muted: #46574F;         /* textMuted */
  --subtle: #55655D;
  --border: #E0E6CF;
  --divider: #E7EBD6;
  --good-bg: #E2ECC0;
  --stand: #CBD3BC;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;

  --radius-box: 22px;
  --radius-pill: 999px;
  --wobble-small: 47% 53% 42% 58% / 55% 45% 55% 45%;
  --wobble-edge: 0 0 48px 120px / 0 0 104px 44px;

  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--forest-deep);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--forest); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2 { font-family: var(--font-heading); font-weight: 700; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.0; max-width: 900px; }
h2 { font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; }
p { margin: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.label {
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sun);
}

/* Buttons: the main one is always on the right */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; min-height: 48px;
  font-weight: 700; text-decoration: none;
  padding: 11px 26px; border-radius: var(--radius-pill);
  border: 2px solid currentColor;
}
.button--main { background: var(--forest); border-color: var(--forest); color: #FFFFFF; padding-inline: 28px; }
.button--main:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #FFFFFF; }
.button--outline { color: var(--forest); }
.button--outline:hover { background: var(--surface); }
.on-dark .button--main { background: var(--sun); border-color: var(--sun); color: var(--forest-deep); }
.on-dark .button--main:hover { background: #F0C73F; border-color: #F0C73F; }
.on-dark .button--outline { color: #FFFFFF; border-color: rgba(255,255,255,0.7); }
.on-dark .button--outline:hover { background: rgba(255,255,255,0.08); }

/* Hero */
.hero { background: var(--sun-soft); overflow: hidden; }
.topbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 22px; }
.wordmark { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--forest); text-decoration: none; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 600; }
.topbar nav a { color: var(--forest-deep); text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }
.hero__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding-top: 56px; }
.hero__kicker { font-family: var(--font-heading); font-style: italic; font-size: 22px; color: var(--forest-mid); }
.hero__lead { font-size: 20px; max-width: 34em; color: var(--muted); }
.hero__lead + .buttons { padding-top: 6px; }
.landscape { display: block; width: 100%; height: 220px; margin-top: 48px; }

/* Dark trail */
.trail { background: var(--forest-deep); color: #FFFFFF; padding-bottom: 96px; }
.trail p { color: var(--good-bg); }

.reel { padding-top: 72px; display: flex; flex-direction: column; gap: 16px; }
.reel iframe { display: block; width: 100%; height: 760px; border: 0; background: var(--forest-deep); }

.stop { display: flex; gap: 32px; }
.stop:first-of-type { padding-top: 72px; }
.stop__marker { flex: none; width: 56px; display: flex; flex-direction: column; align-items: center; }
.stop__icon {
  width: 56px; height: 56px; border-radius: var(--wobble-small); background: var(--sun);
  display: flex; align-items: center; justify-content: center;
}
.stop__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--forest-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stop__path { flex: 1; min-height: 80px; border-left: 3px dashed rgba(252,216,95,0.5); }
.stop__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-bottom: 72px; }
.stop:last-child .stop__body { padding-bottom: 0; }
.stop__body > p { max-width: 40em; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding-top: 4px; }
.card { background: var(--forest); border-radius: var(--radius-box); padding: 22px; }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin-top: 6px; font-size: 15px; }

/* "See it": drawn screens */
.see { display: flex; flex-direction: column; gap: 32px; padding-top: 48px; }
.see__intro { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.devices { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; }
.device figcaption { margin-top: 10px; font-size: 13px; color: var(--sun-soft); }
.phone { flex: 1 1 260px; max-width: 300px; min-width: 0; margin: 0 auto; }
.phone figcaption { text-align: center; }
.phone__frame { background: var(--forest-night); border-radius: 40px; padding: 10px; }
.screen { background: var(--page); color: var(--forest-deep); overflow: hidden; }
.phone .screen { border-radius: 32px; }
.screen__bar { background: var(--forest); color: #FFFFFF; padding: 20px 18px; font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.screen__list { padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; }
.tile b { display: block; }
.tile span { color: var(--muted); }
.tile--warn { background: var(--sun-soft); border-color: var(--sun-soft); color: var(--sun-text); }
.tile--warn span { color: var(--sun-text); }
.laptop { flex: 999 1 520px; min-width: 0; margin: 0; }
.laptop__frame { background: var(--forest-night); border-radius: 18px 18px 0 0; padding: 12px 12px 0; }
.laptop .screen { border-radius: 8px 8px 0 0; }
.laptop__stand { background: var(--stand); height: 14px; border-radius: 0 0 14px 14px; }
.laptop__top { background: var(--forest-deep); color: #FFFFFF; padding: 12px 20px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.laptop__top span:last-child { color: var(--sun); }
.register { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.register__head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.register__date { font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.chip { background: var(--good-bg); color: var(--forest); border-radius: var(--radius-pill); padding: 4px 12px; font-size: 13px; font-weight: 700; }
.rows { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; font-size: 14px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--divider); }
.rows div:last-child { border-bottom: 0; }
.here { color: var(--forest); font-weight: 700; }
.away { color: var(--sun-text); font-weight: 700; }
.notyet { color: var(--muted); }

/* Safety */
.safety-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--good-bg); max-width: 46em; }
.safety-list strong { color: #FFFFFF; }

/* Roadmap */
.road { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.road li { border: 2px dashed rgba(252,216,95,0.6); border-radius: var(--radius-box); padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.road .when { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sun); }
.road .what { font-size: 15px; color: var(--good-bg); }
.road li.now { background: var(--sun); border: 0; padding: 20px; color: var(--forest-deep); }
.road li.now .when, .road li.now .what { color: var(--forest-deep); }

.email { font-weight: 700; color: #FFFFFF; user-select: all; }

footer { background: var(--forest-night); color: var(--good-bg); font-size: 14px; }
footer .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-block: 28px; }

/* Phones */
@media (max-width: 640px) {
  .stop { gap: 16px; }
  .stop__marker { width: 40px; }
  .stop__icon { width: 40px; height: 40px; }
  .stop__icon svg { width: 20px; height: 20px; }
  .hero__text { padding-top: 32px; }
  .landscape { height: 140px; margin-top: 32px; }
  .reel { padding-top: 48px; }
}
