/* Krunch - the website's stylesheet.
   ------------------------------------------------------------
   Moved here from the krunch repo's public/styles.css (1 October 2026),
   keeping only what the three static pages use: the tokens, the top bar,
   the homepage ("farm as the hero ground", 29. 9. 2026) and the prose
   rules for /privacy/ and /support/. The app's own styles stayed behind
   with the app. */

:root {
  /* bright farm-stand label palette (light ground, crisp cards) */
  --paper: #FBF7EC;
  --paper-2: #EFE7D4;
  --card: #FFFDF8;
  --card-2: #F4EEDF;
  --line: #DCD0B4;
  --line-soft: #EAE1CD;
  --ink: #2A2014;
  --ink-2: #5E4A2B;
  --ink-3: #8A7757;
  --honey: #EAA613;
  --honey-deep: #C0820B;
  --leaf: #57A02B;
  --leaf-deep: #3F7A1B;
  --leaf-soft: #E7F4D4;
  --tomato: #DA4A2A;
  --tomato-deep: #B23417;
  --shadow-sm: 2px 2px 0 rgba(42,32,20,.15);
  --hard: 4px 4px 0 var(--ink);
  --hard-sm: 3px 3px 0 var(--ink);
  --frame: 1200px;
  --gutter: 22px;
  color-scheme: light;
}

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

body {
  font-family: 'Georgia', 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(49,35,15,.028) 1px, transparent 1.5px);
  background-size: 14px 14px;
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; }
.brand-name {
  font-family: 'Georgia','Iowan Old Style',serif; font-size: 26px; font-weight: 900;
  letter-spacing: -.5px; color: var(--ink);
}
/* The way back to the hub. Styled like the app's ghost button. */
.hub-link {
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; white-space: nowrap;
}
.hub-link:hover { background: var(--card-2); color: var(--ink); }
.hub-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--leaf) 45%, transparent); outline-offset: 2px; }

/* ---------- The sheet (privacy, support) ---------- */
.frame { max-width: var(--frame); margin-inline: auto; position: relative; background: var(--paper); }
@media (min-width: 1260px) { .frame { border: 3px solid var(--ink); } }
.lp-page .page-main { padding: 26px var(--gutter) 60px; max-width: 760px; }

.page-crumb { font-size: 11.5px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--tomato); }
.lp-page h1 { font-size: clamp(26px, 4.2vw, 38px); line-height: 1.12; font-weight: 800;
  color: var(--ink); margin: 8px 0 14px; }
.lp-page h2 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 34px 0 12px; }
.lp-page h3 { font-size: 17px; font-weight: 800; color: var(--ink); }
.lp-page p { font-size: 15px; line-height: 1.62; color: var(--ink-2); }
.lp-page p + p, .lp-page h3 + p { margin-top: 10px; }
.lp-page a:not(.btn):not(.brand):not(.hub-link) { color: var(--tomato-deep); }

/* The answer to the page's own question, before anything else. */
.page-answer { font-size: 18px; line-height: 1.55; color: var(--ink);
  border-left: 4px solid var(--leaf); padding-left: 14px; }
.page-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.page-steps li { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.page-safety { margin-top: 36px; font-size: 12.5px; font-style: italic; color: var(--ink-3); }

/* ============================================================
   HOME - "farm as the hero ground" (29. 9. 2026)
   ------------------------------------------------------------
   The whole homepage sells the app. Its own self-contained design
   (Fraunces display face, hard-shadow buttons, its own --ink/--cream/
   --yellow), scoped under .home2 so the tokens above - which the
   policy pages still use - are left alone.
   ============================================================ */
body:has(.home2) { background-color: #FBF8EE; background-image: none; }
/* From 1600px the homepage stops at 1440px and sits centred, like the hub. */
html:has(.home2) { overflow-x: clip; }
@media (min-width: 1600px) {
  html:has(.home2) { background: #E9E2CF; }
  .frame-home { max-width: 1440px; margin-inline: auto; background: #FBF8EE; min-height: 100vh; border-inline: 3px solid #1C1B18; }
}
.frame-home .topbar-inner { width: min(1080px, calc(100% - 40px)); margin-inline: auto; padding-inline: 0; }

.home2 {
  box-sizing: border-box;
  --cream:#FBF8EE; --paper2:#FFFFFF; --ink:#1C1B18; --taupe:#75694F;
  --yellow:#F5C400; --green:#1D9A3F; --green-soft:#D7ECC9;
  --sky:#C7E3EE;
  --shadow:4px 4px 0 var(--ink); --shadow-sm:2px 2px 0 var(--ink); --shadow-lg:7px 7px 0 var(--ink);
  --display2:"Fraunces",Georgia,"Times New Roman",serif;
  --body2:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background: var(--cream); color: var(--ink);
  font-family: var(--body2); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.home2 *, .home2 *::before, .home2 *::after { box-sizing: inherit; }
.home2 img { max-width: 100%; display: block; }
.home2 a { color: inherit; }
.home2 :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.home2 .wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.home2 h1, .home2 h2, .home2 h3 { font-family: var(--display2); font-weight: 800; margin: 0; letter-spacing: -.01em; line-height: 1.05; }
.home2 h2 { font-size: clamp(28px, 3.6vw, 40px); }
.home2 h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.home2 p { margin: 0; }
.home2 .muted { color: var(--taupe); }

.home2 .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  border: 2px solid var(--ink); box-shadow: var(--shadow);
  font-family: var(--display2); font-weight: 700; font-size: 18px; line-height: 1;
  text-decoration: none; cursor: pointer; background: var(--paper2); color: var(--ink);
  transition: transform .08s ease, box-shadow .08s ease; white-space: nowrap;
}
.home2 .btn:hover { transform: translate(1px,1px); box-shadow: 3px 3px 0 var(--ink); }
.home2 .btn:active { transform: translate(4px,4px); box-shadow: 0 0 0 var(--ink); }
.home2 .btn-ink { background: var(--ink); color: var(--cream); }
/* Until the App Store URL exists the button is a statement, not a link:
   visibly unclickable rather than a button that looks live and does nothing. */
.home2 .btn[aria-disabled="true"] { cursor: default; opacity: .7; }
.home2 .btn[aria-disabled="true"]:hover, .home2 .btn[aria-disabled="true"]:active { transform: none; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .home2 .btn { transition: none; } }

.home2 .sky { background: var(--sky); }
.home2 .sky .muted { color: #4A4A3E; }
.home2 .hero { padding: 72px 0 40px; text-align: center; }
.home2 .hero h1 { font-size: clamp(40px, 6.4vw, 76px); max-width: 18ch; margin: 0 auto; font-weight: 900; }
.home2 .hl { background: var(--yellow); color: #1C1B18; padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; border-radius: 4px; }
.home2 .hero .lead { max-width: 56ch; margin: 26px auto 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.home2 .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 34px; }
.home2 .fine { margin-top: 18px; font-size: 15px; }

/* Grows with the window up to a point, then the fields just continue off
   both edges rather than stretching the scene out of proportion. */
.home2 .farm { height: clamp(200px, 25vw, 400px); border-bottom: 2px solid var(--ink); background: var(--sky); overflow: hidden; display: flex; justify-content: center; }
.home2 .farm svg { flex: none; display: block; width: max(100%, 800px); height: 100%; overflow: visible; }

.home2 section { padding: 80px 0; }
.home2 .sec-head { max-width: 62ch; margin: 0 auto 48px; text-align: center; }
.home2 .sec-head h2 { text-wrap: balance; }
.home2 .sec-head p { max-width: 46ch; margin: 14px auto 0; font-size: 18px; }

.home2 .steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px 28px; align-items: start; }
.home2 .step { display: block; text-align: center; }
.home2 .phone {
  width: min(240px,100%); margin: 0 auto 26px; border: 3px solid var(--ink); border-radius: 30px;
  overflow: hidden; background: #000; box-shadow: var(--shadow-lg);
}
.home2 .phone img { width: 100%; height: auto; }
.home2 .step:nth-child(1) .phone { transform: rotate(-2deg); }
.home2 .step:nth-child(3) .phone { transform: rotate(2deg); }
.home2 .step h3 { margin-bottom: 10px; }
.home2 .step p { max-width: 32ch; margin: 0 auto; }
.home2 .stepnum {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--yellow); color: #1C1B18;
  font: 800 16px var(--display2); margin-bottom: 12px; box-shadow: var(--shadow-sm);
}

.home2 .why { background: var(--paper2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.home2 .why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.home2 .perk {
  border: 2px solid var(--ink); border-radius: 18px; padding: 22px 22px 24px; background: var(--cream);
  box-shadow: var(--shadow);
}
.home2 .perk .ico { font-size: 30px; line-height: 1; margin-bottom: 12px; }
.home2 .perk h3 { font-size: 20px; margin-bottom: 8px; }
.home2 .perk p { font-size: 16px; }
.home2 .perk.app-only { background: var(--green-soft); }
.home2 .why .cta { margin-top: 44px; }

.home2 footer { border-top: 2px solid var(--ink); padding: 28px 0 40px; font-size: 15px; }
.home2 .foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.home2 .foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.home2 .foot a { text-underline-offset: 4px; }

@media (max-width: 900px) {
  .home2 .steps, .home2 .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .home2 section { padding: 60px 0; }
  .home2 .hero { padding: 52px 0 36px; }
  .home2 .steps, .home2 .why-grid { grid-template-columns: 1fr; }
  .home2 .step .phone { transform: none !important; width: min(210px,100%); }
  .home2 .cta .btn { width: 100%; }
}

/* ---------- guides ---------- */
.page-table { width: 100%; border-collapse: collapse; border: 2px solid var(--ink); border-radius: 10px;
  overflow: hidden; box-shadow: var(--hard-sm); background: var(--card); margin-top: 6px; }
.page-table th, .page-table td { padding: 10px 14px; font-size: 15px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.page-table tr:last-child th, .page-table tr:last-child td { border-bottom: 0; }
.page-table th { font-weight: 700; color: var(--ink-2); background: var(--card-2); }
.page-table td { font-weight: 700; color: var(--ink); }
.page-cta { margin: 34px 0 8px; padding: 20px; border: 2px solid var(--ink); border-radius: 14px;
  background: var(--leaf-soft); box-shadow: var(--hard-sm); }
.page-cta h2 { margin: 0 0 6px; }
.page-cta p { margin: 0; }
.page-note { background: var(--card-2); border: 1.5px solid var(--line-soft); border-radius: 10px; padding: 14px 16px; margin-top: 12px; }
.page-note.stop { background: #F7DBCC; border-color: #E8B49C; }
.page-related { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.page-related a { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink) !important; }
.page-related a:hover { border-color: var(--leaf); background: var(--leaf-soft); }
.page-note + .page-steps, .lp-page p + .page-steps { margin-top: 12px; }
