/* The director subscription page (/subscribe), in Woodshed's design system:
   the tokens, Cabin, top bar, buttons and footer from the Woodshed app's
   css/style.css. Light and dark follow the device. The home page keeps its
   own style.css. */

@font-face { font-family: 'Cabin'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/cabin-latin-ext-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cabin'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/cabin-latin-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cabin Figures'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/cabin-figures-400.woff2') format('woff2'); unicode-range: U+0030-0039; }
@font-face { font-family: 'Cabin Figures'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/cabin-figures-500.woff2') format('woff2'); unicode-range: U+0030-0039; }
@font-face { font-family: 'Cabin Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo'); size-adjust: 94.74%; ascent-override: 101.86%; descent-override: 26.39%; line-gap-override: 0%; }

/* Tokens copied from the Woodshed app's css/style.css after the color redesign
   (2026-11-07, from the new logo): sage page, near-white cards, charcoal text,
   forest for the main action, teal success; charcoal, cream and sage in dark. */
:root {
  color-scheme: light dark;
  --font-sans: 'Cabin', 'Cabin Fallback', ui-sans-serif, system-ui, sans-serif;
  --font-heading: 'Cabin', 'Cabin Fallback', ui-sans-serif, system-ui, sans-serif;
  --font-numeric: 'Cabin Figures', 'Cabin', 'Cabin Fallback', ui-sans-serif, system-ui, sans-serif;
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --background: #e6ebdf;
  --foreground: #292d2a;
  --card: #fcfaf6;
  --card-foreground: #292d2a;
  --primary: #225d45;
  --primary-foreground: #f5efe5;
  --muted: #e0e6d8;
  --muted-foreground: #5a6058;
  --accent: #cfddc4;
  --accent-foreground: #1d4a37;
  --destructive: oklch(0.52 0.19 25);
  --border: #ddd6c9;
  --input-border: #80857c;
  --ring: #2e7556;
  --success: oklch(0.5 0.1 220);
  --shadow: 0 1px 2px oklch(0.28 0.018 210 / 6%), 0 4px 12px oklch(0.28 0.018 210 / 6%);
  /* The top bar is a forest band in both themes, with the cream W and its sage dot. */
  --topbar: #225d45;
  --topbar-foreground: #f5efe5;
  --topbar-muted: #c9d3c0;
  --topbar-hover: #2c6a51;
  --topbar-active: #1b4a37;
  --brand-mark-ink: #f5efe5;
  --brand-mark-dot: #a7b999;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #292d2a;
    --foreground: #f5efe5;
    --card: #323733;
    --card-foreground: #f5efe5;
    --primary: #a7b999;
    --primary-foreground: #292d2a;
    --muted: #3a3f3b;
    --muted-foreground: #c0c2b6;
    --accent: #35503f;
    --accent-foreground: #f5efe5;
    --destructive: oklch(0.74 0.14 25);
    --border: oklch(1 0 0 / 12%);
    --input-border: #80867d;
    --ring: #a7b999;
    --success: oklch(0.78 0.09 220);
    --shadow: 0 1px 2px oklch(0 0 0 / 40%), 0 6px 18px oklch(0 0 0 / 35%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--primary); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.column { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 1rem; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 10; padding: 0.75rem 1rem; background: var(--card); color: var(--foreground); border-radius: var(--radius-md); }
.skip:focus { top: 0.75rem; }

/* Top bar: the app's forest band, with its mark and name. */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem; background: var(--topbar); border-bottom: 1px solid var(--topbar); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--topbar-foreground); text-decoration: none; border-radius: var(--radius-sm); }
.brand-mark { width: 28px; height: 28px; display: block; }
.brand-mark .mark-w { fill: var(--brand-mark-ink); }
.brand-mark .mark-dot { fill: var(--brand-mark-dot); }
.brand-text { display: flex; flex-direction: column; gap: 0.2rem; }
.brand-name { font-family: var(--font-heading); font-weight: 500; font-size: 1.25rem; line-height: 1; }
.brand-by { font-size: 0.75rem; font-weight: 500; line-height: 1; color: var(--topbar-muted); white-space: nowrap; }
.topnav { display: flex; gap: 0.25rem; }
.topnav a { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.45rem 0.7rem; border-radius: var(--radius-md); color: var(--topbar-muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
.topnav a:hover { color: var(--topbar-foreground); background: var(--topbar-hover); }
.topbar :focus-visible { outline-color: var(--topbar-foreground); }

/* Page heading */
.page-head { margin-block: 2rem 1.5rem; }
.page-head > * { max-width: 640px; }
h1 { font-size: 34px; line-height: 1.15; }
.lead { font-size: 16px; line-height: 1.6; color: var(--muted-foreground); margin-top: 0.75rem; }

.notice { margin-bottom: 1.5rem; padding: 0.875rem 1rem; border-radius: var(--radius-lg); background: var(--muted); border-left: 4px solid var(--input-border); font-size: 14px; max-width: 640px; }
.notice-error { border-left-color: var(--destructive); }

/* Program Partner programs: Woodshed is included, so they needn't buy. Above the form, where
   they look first; a quiet panel, not a second main action. */
.pp-included { display: flex; gap: 0.875rem; align-items: flex-start; margin: 0 0 2rem; padding: 1rem 1.25rem; max-width: 760px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); }
.pp-mark { flex: none; width: 1.75rem; height: 1.75rem; padding: 0.3rem; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); }
.pp-included h2 { font-size: 16px; line-height: 1.4; }
.pp-included p { margin-top: 0.25rem; color: var(--muted-foreground); }
.pp-included a { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 44px; font-weight: 500; }
.pp-included .out { width: 0.85em; height: 0.85em; }

/* Two columns: the form, and the order beside it. On phones the order comes first. */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "form summary"; gap: 2.5rem; align-items: start; }
.summary { grid-area: summary; position: sticky; top: 1.5rem; }
.checkout-form { grid-area: form; }

.card { background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 1.5rem; }

/* Order summary */
.plan-name { font-size: 20px; line-height: 1.3; }
.plan-term { color: var(--muted-foreground); margin-top: 0.125rem; }
.price { margin-top: 1rem; display: flex; align-items: baseline; gap: 0.375rem; }
.price-amount { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; }
.price-per { font-size: 16px; color: var(--muted-foreground); }
.price-note { font-size: 12px; color: var(--muted-foreground); margin-top: 0.5rem; }
.included-title { font-size: 14px; font-weight: 600; color: var(--muted-foreground); margin-top: 1.5rem; }
.included { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.included li { position: relative; padding: 0.5rem 0 0.5rem 1.5rem; border-top: 1px solid var(--border); }
.included li:first-child { border-top: 0; }
.included li::before { content: ''; position: absolute; left: 0.25rem; top: 0.95rem; width: 0.5rem; height: 0.25rem; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }
.pill { display: inline-block; margin-left: 0.25rem; padding: 0.0625rem 0.5rem; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); font-size: 12px; font-weight: 500; white-space: nowrap; }
.beta-note { margin-top: 0.75rem; padding: 0.75rem; border-radius: var(--radius-lg); background: var(--muted); font-size: 12px; line-height: 1.5; color: var(--muted-foreground); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); font-weight: 500; }
.total-amount { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; font-size: 20px; }
.summary-small { font-size: 12px; color: var(--muted-foreground); margin-top: 0.375rem; }

/* Form */
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step + .step { margin-top: 2rem; }
.step-title { display: flex; align-items: center; gap: 0.625rem; font-size: 20px; font-weight: 500; line-height: 1.3; padding: 0; margin-bottom: 1rem; }
.step-number { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); font-family: var(--font-numeric); font-size: 14px; font-weight: 500; flex: none; }
.sub-title { font-size: 16px; font-weight: 500; padding: 0; margin-bottom: 0.75rem; }

.field + .field, .field + .field-row, .field-row + .field, .field-row + .field-row { margin-top: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field-row .field + .field { margin-top: 0; }
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 0.375rem; }
input[type="text"], input[type="email"], select {
  display: block; width: 100%; height: 2.75rem; padding: 0 0.75rem;
  font: inherit; font-size: 14px; color: var(--foreground);
  background: var(--card); border: 1px solid var(--input-border); border-radius: var(--radius-md);
  transition: border-color 0.15s;
}
select { padding-right: 2rem; }
input[aria-invalid="true"] { border-color: var(--destructive); border-width: 2px; }
.field-hint { font-size: 12px; color: var(--muted-foreground); margin-top: 0.375rem; }
.field-error, .form-error { display: flex; gap: 0.375rem; font-size: 14px; font-weight: 500; color: var(--destructive); margin-top: 0.375rem; }
.field-error::before, .form-error::before { content: '!'; display: inline-grid; place-items: center; flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.125rem; border-radius: 999px; background: var(--destructive); color: var(--card); font-size: 12px; font-weight: 600; line-height: 1; }
.form-error { margin-top: 1.5rem; padding: 0.75rem 1rem; border-radius: var(--radius-lg); background: var(--muted); }

.methods { display: grid; gap: 0.75rem; }
.method { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.875rem 1rem; background: var(--card); border: 1px solid var(--input-border); border-radius: var(--radius-md); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.method:hover { background: var(--muted); }
.method input { width: 1.125rem; height: 1.125rem; margin: 0.125rem 0 0; accent-color: var(--primary); flex: none; }
.method:has(input:checked) { border: 2px solid var(--primary); padding: calc(0.875rem - 1px) calc(1rem - 1px); background: var(--card); }
.method:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }
.method-title { display: block; font-weight: 500; }
.method-detail { display: block; color: var(--muted-foreground); margin-top: 0.125rem; }

.invoice-details { border: 0; margin: 1.25rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--border); min-width: 0; }
.invoice-details > legend { float: left; width: 100%; }
.invoice-details > legend + * { clear: both; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.submit-row { margin-top: 2rem; }
.fine { font-size: 12px; color: var(--muted-foreground); margin-top: 0.625rem; }

/* Buttons, as in the app: one filled action per view; the rest outline or ghost. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 2.25rem; padding: 0 1rem; border-radius: var(--radius-md);
  font: inherit; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer;
  background: var(--card); color: var(--foreground); border: 1px solid var(--input-border);
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.btn-ghost { background: transparent; color: var(--foreground); border-color: transparent; }
.btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); border-color: var(--input-border); opacity: 1; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
#submit { height: 2.75rem; width: 100%; font-size: 1rem; }
#submit[aria-busy="true"] { cursor: progress; }
@media (pointer: coarse) { .btn { height: auto; min-height: 44px; } }
/* The top bar's links, the confirmation line and the footer's Program Partner link, too (device pass at 375 by 812, 2026-11-24). */
@media (pointer: coarse), (max-width: 720px) { .topbar .brand, .topbar .topnav a, .footer-family-link { min-height: 44px; } .topbar .topnav a, .footer-family-link { display: inline-flex; align-items: center; } .director-confirm .check-label { min-height: 44px; align-items: center; } }

/* Endings */
.done { max-width: 640px; }
.done h2 { font-size: 24px; letter-spacing: -0.01em; }
.done h2:focus { outline: none; }
.done p { font-size: 16px; line-height: 1.6; margin-top: 0.5rem; }
.done-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Good to know */
.faq { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.faq h2 { font-size: 20px; }
.faq dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: 1rem; }
.faq dt { font-weight: 500; }
.faq dd { color: var(--muted-foreground); margin-top: 0.25rem; }

/* Footer, as in the app. */
.footer { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; margin-top: 3.5rem; padding: 1.75rem 1rem 1.25rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 0.75rem; }
.footer-family { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; max-width: 34rem; text-align: center; }
.footer-brand-link { display: inline-flex; align-items: center; border-radius: 4px; }
.footer-brand img { height: 24px; width: auto; display: block; }
.footer-brand .dark-only { display: none; }
@media (prefers-color-scheme: dark) { .footer-brand .light-only { display: none; } .footer-brand .dark-only { display: block; } }
.footer-family-text { font-size: 0.875rem; line-height: 1.55; text-wrap: pretty; }
.footer-family-link { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; border-radius: 4px; }
.footer-family-link:hover { text-decoration-thickness: 2px; }
.footer-out { width: 0.85em; height: 0.85em; flex: none; }
.footer-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: center; }
.footer-links { display: inline-flex; gap: 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--foreground); font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "summary" "form"; gap: 2rem; }
  .summary { position: static; }
  .faq dl { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  h1 { font-size: 24px; }
  .page-head { margin-block: 1.25rem 1rem; }
  input[type="text"], input[type="email"], select { font-size: 16px; }
  .price-amount { font-size: 40px; }
}

@media (max-width: 460px) {
  .topbar { flex-wrap: wrap; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .card { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Sign in first, and who subscribes (Activity Template Library launch, 2026-11-07). */
.audience-note { margin-top: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--radius-lg); background: var(--accent); color: var(--accent-foreground); font-size: 15px; line-height: 1.5; max-width: 640px; }
.trial-note { margin-top: 0.75rem; font-size: 16px; }
.signin-step { display: grid; gap: 0.75rem; justify-items: start; }
.signin-step p { margin: 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.5; }
.signin-step .signin-status { color: var(--foreground); font-weight: 500; }
.signin-step [hidden] { display: none; }
.director-confirm .check-label { display: flex; gap: 0.625rem; align-items: flex-start; font-weight: 500; line-height: 1.45; cursor: pointer; }
.director-confirm input[type='checkbox'] { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.15rem; accent-color: var(--primary); }
.director-confirm input[type='checkbox']:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
