/* Touching Grass — landing page. Values mirror the app's "Rustic Modern" tokens
   (docs/design/look-and-feel.md in tg-ios-app). Light theme only. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F2EEE6;
  --surface: #FFFFFF;
  --text: #211F1B;
  --text-2: #5B564C;
  --border: #D9D2C3;
  --accent: #A8672B;          /* fills */
  --on-accent: #FFFFFF;
  --accent-text: #975D27;     /* accent used as text: 4.6:1 on the background */
  --sage: #5C6B4F;
  --on-sage: #FFFFFF;
  --focus: #975D27;
  --shadow: 0 1px 2px rgba(33, 31, 27, .06), 0 10px 30px rgba(33, 31, 27, .12);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3, .wordmark { font-family: var(--serif); font-weight: 480; font-optical-sizing: auto; font-variation-settings: "SOFT" 0, "WONK" 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.08; margin: 0 0 20px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; margin: 0 0 14px; }
h3 { font-size: 1.35rem; line-height: 1.25; margin: 18px 0 8px; }
p { margin: 0 0 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--accent-text); margin-bottom: 14px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 34em; }
.section-lede { font-size: 1.15rem; color: var(--text-2); max-width: 38em; margin-inline: auto; }
.section-lede.left { margin-inline: 0; }
.fineprint { font-size: .85rem; color: var(--text-2); }

/* Header */
.site-header { padding: 18px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 1.4rem; color: var(--text); text-decoration: none; }
.leaf { color: var(--accent-text); }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: .98rem; }
.header-nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 640px) { .header-nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  background: var(--accent); color: var(--on-accent);
  border: 2px solid var(--accent); border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(.94); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--surface); filter: none; }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .cta-row, .cta-row.center { justify-content: center; }

/* Phones */
.phone {
  margin: 0; padding: 9px; background: #1b1a17; border-radius: 48px; box-shadow: var(--shadow);
  width: 100%; max-width: 300px;
}
.phone img { border-radius: 39px; width: 100%; }

/* Hero */
.hero { padding: 28px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-phones { position: relative; display: flex; justify-content: center; min-height: 560px; }
.hero-phones .phone { position: absolute; width: min(270px, 46%); }
.hero-phones .phone-a { left: 6%; top: 0; transform: rotate(-3deg); z-index: 2; }
.hero-phones .phone-b { right: 4%; top: 56px; transform: rotate(3deg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-phones { min-height: 520px; }
}
@media (max-width: 520px) { .hero-phones { min-height: 440px; } .hero-phones .phone { width: 47%; } }

/* Skills */
.skills { padding: 28px 0 8px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-weight: 500; }

/* Sections */
.section { padding: 72px 0; }
.section h2, .section > .wrap > .section-lede { text-align: center; }
.teach-copy h2, .teach-copy .section-lede { text-align: left; }

/* Steps */
.steps { list-style: none; margin: 44px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step .phone { max-width: 260px; }
.step p { color: var(--text-2); max-width: 22em; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 52px; } }

/* Mission band */
.band { background: var(--sage); color: var(--on-sage); padding: 72px 0; }
.band-inner { max-width: 760px; text-align: center; }
.band h2 { color: inherit; }
.band p { font-size: 1.2rem; }
.band-kicker { font-family: var(--serif); font-style: italic; font-size: 1.35rem !important; margin-top: 26px; margin-bottom: 0; }

/* Teach */
.teach-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.teach-phones { position: relative; display: flex; justify-content: center; min-height: 540px; }
.teach-phones .phone { position: absolute; width: min(260px, 46%); }
.teach-phones .phone-a { left: 6%; top: 40px; transform: rotate(-3deg); }
.teach-phones .phone-b { right: 4%; top: 0; transform: rotate(3deg); z-index: 2; }
.ticks { list-style: none; padding: 0; margin: 22px 0; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%; background: var(--sage); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.42em + 3px); width: 5px; height: 9px; border: solid var(--on-sage); border-width: 0 2px 2px 0; transform: rotate(40deg); }
@media (max-width: 860px) {
  .teach-grid { grid-template-columns: 1fr; gap: 36px; }
  .teach-phones { min-height: 460px; }
}

/* Sign-up */
.join { padding-bottom: 96px; }
.join-inner { max-width: 640px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 32px; margin-top: 30px; }
@media (max-width: 520px) { .card { padding: 22px 18px; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--bg); border-radius: 999px; margin-bottom: 24px; }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role span { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; font-weight: 600; cursor: pointer; text-align: center; padding: 0 10px; }
.role input:checked + span { background: var(--accent); color: var(--on-accent); }
.role input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.field { margin-bottom: 18px; }
.field.inner { margin-bottom: 18px; }
label, legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--text-2); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 2px solid var(--border); border-radius: 12px;
}
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--text-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
input:user-invalid { border-color: #A23B2A; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0; min-height: 40px; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
input.hp { position: absolute !important; left: -9999px; top: auto; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; pointer-events: none; }
.status { min-height: 1.5em; margin: 12px 0 4px; font-weight: 500; }
.status.error { color: #A23B2A; }
.success h3 { margin-top: 0; font-size: 1.8rem; }
.dev-note { background: var(--bg); border: 1px dashed var(--text-2); border-radius: 12px; padding: 10px 14px; font-size: .92rem; }
.share { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--text-2); font-size: .95rem; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row p { margin: 0 0 8px; }
.site-footer a { color: var(--text-2); }

/* ===== Share page (/share): warm, mobile first, light to load =====
   Uses only the site's existing colors. Alternating bands: parchment (--bg), white (--surface), sage. */
.share-page {
  /* Slightly deeper accent for better contrast outdoors on a phone (white on the button is 6.2:1). */
  --accent: #8E5322; --accent-text: #834B1D;
}
.s-wrap { width: min(680px, 100% - 40px); margin-inline: auto; }
.s-wrap--wide { width: min(1120px, 100% - 40px); }
.s-center { text-align: center; }
.s-band { padding: clamp(56px, 9vw, 104px) 0; }
.s-band--light { background: var(--surface); }
.s-band--sage { background: var(--sage); color: var(--on-sage); }
.s-band h2 { text-align: left; font-size: clamp(2rem, 3vw + 1rem, 3.1rem); margin-bottom: 22px; }
.s-band .s-center h2, .s-center h2 { text-align: center; }
.s-band--sage h2 { color: inherit; }

/* 1. Hero */
.s-hero { padding: clamp(24px, 5vw, 56px) 0 0; }
.s-hero h1 { font-size: clamp(2.5rem, 4vw + 1.6rem, 5.25rem); line-height: 1.04; margin: 0 0 22px; max-width: 13em; }
.s-hero .lede { font-size: clamp(1.1rem, 1vw + .9rem, 1.4rem); max-width: 34em; }
.s-hero .cta-row { margin-top: 26px; }
.photo-strip { list-style: none; margin: clamp(36px, 6vw, 64px) 0 0; padding: 0 0 clamp(40px, 7vw, 80px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-strip img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: var(--border); }
@media (min-width: 701px) { .photo-strip li:nth-child(even) { transform: translateY(18px); } .photo-strip { padding-bottom: clamp(56px, 8vw, 96px); } }
@media (max-width: 700px) { .photo-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; } .photo-strip img { border-radius: 14px; } }

/* 2. Does this sound like you? */
.you-list { list-style: none; margin: 8px 0 30px; padding: 0; }
.you-list li { position: relative; padding: 15px 0 15px 34px; border-bottom: 1px solid var(--border); font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); line-height: 1.4; }
.you-list li:first-child { border-top: 1px solid var(--border); }
.you-list li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--sage); }
.you-close { margin: 0; max-width: 28em; font-family: var(--serif); font-size: clamp(1.3rem, 1vw + 1.1rem, 1.75rem); line-height: 1.35; }

/* 3. Picture it */
.picture-text { margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 1.2vw + 1rem, 1.75rem); line-height: 1.5; }

/* 4. How someone might find you */
.find { margin: 32px auto 0; display: flex; flex-direction: column; align-items: center; }
.find .phone { max-width: 260px; }
.find figcaption { margin-top: 18px; font-size: .98rem; color: var(--text-2); }

/* 5. The form, with the founder note beside it */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 900px) { .form-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } .form-intro { position: sticky; top: 24px; } }
.form-lede { margin: 0 0 24px; font-size: 1.2rem; color: var(--text-2); }
.founder-block { margin: 0 0 12px; padding: 2px 0 2px 16px; border-left: 3px solid var(--accent); }
.founder-block p { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; }
.founder-contact { margin: 0 0 12px; padding-left: 19px; color: var(--text-2); }
.s-band--light .card { margin-top: 0; background: var(--bg); }
.s-band--light input[type="text"], .s-band--light textarea { background: var(--surface); }
.help { margin: 6px 0 0; font-size: .92rem; color: var(--text-2); }
.check-row { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; margin: 0 0 14px; font-weight: 400; cursor: pointer; }
.check-row input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.success-lead { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; margin: 0 0 14px; }

/* 6. Early ideas */
.s-band .ticks { margin: 18px 0 22px; }
.s-band .ticks li { font-size: clamp(1.05rem, .4vw + 1rem, 1.2rem); }
.considering-close { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; }

/* Stronger contrast and larger hit areas, because people will read this outdoors on a phone. */
.share-page input[type="text"], .share-page textarea { border-color: #8A8478; }
.share-page .wordmark { min-height: 44px; }
.share-page .skip { min-height: 44px; display: inline-flex; align-items: center; }
.share-page .site-footer { border-top: 0; }
