/* Fairhand's own layout (from Gaugewise's). The shared look (/_look/look.css) loads after this
   and sets the type, the colors and the buttons; this keeps to the layout and the tool. */
* { box-sizing: border-box; }
body { margin: 0; }
header.top, main, footer.site-footer { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 8px; }
img, svg { max-width: 100%; }
.small { font-size: 0.9rem; color: var(--muted); }

/* The faces of the preview: the same files the PDF embeds. */
@font-face { font-family: "FH Great Vibes"; src: url("/fonts/GreatVibes.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "FH Pinyon Script"; src: url("/fonts/PinyonScript.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "FH Allura"; src: url("/fonts/Allura.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "FH Cormorant"; src: url("/fonts/Cormorant.ttf") format("truetype"); font-display: block; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "h1 fig" "sub fig" "cta fig" "buy fig" "msg fig" "behind fig"; grid-template-rows: repeat(5, auto) 1fr; column-gap: 32px; align-items: start; margin: 4px 0 16px; }
body.look .hero { row-gap: 0; column-gap: 32px; }
.hero h1 { grid-area: h1; margin: 16px 0 8px; }
.hero .sub { grid-area: sub; font-size: 1.1rem; margin: 0 0 14px; }
.hero .shot { grid-area: fig; margin: 12px 0 0; }
.hero .shot img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.hero .shot figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.hero .cta { grid-area: cta; margin: 0 0 12px; }
.hero .buyline { grid-area: buy; margin: 0 0 8px; color: var(--muted); }
.hero [data-ventures-message] { grid-area: msg; }
.hero .behind-wrap { grid-area: behind; }
.look .button.big { display: inline-block; font-size: 1.1rem; padding: 12px 20px; }
.look .buy-small { margin-left: 6px; padding: 4px 12px; min-height: 0; font-size: 0.95rem; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "h1" "sub" "fig" "cta" "buy" "msg" "behind"; }
  .hero h1 { font-size: 1.7rem; margin-top: 8px; }
  .hero .sub { font-size: 1rem; margin-bottom: 8px; }
  .hero .shot { margin: 0 0 10px; }
  .hero .shot figcaption { display: none; }
}

.objections { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 24px 0 12px; }
.objections strong { display: block; }
@media (max-width: 760px) { .objections { grid-template-columns: 1fr; } }
.access { border-left: 4px solid var(--accent); padding: 6px 12px; background: var(--quiet); }
.access.ok { border-left-color: var(--right); }

.tool-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 16px; margin: 24px 0; }
.tool-wrap h3 { margin-top: 1.4rem; }
.tool-wrap textarea { width: 100%; font: 0.9rem/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg, #fff); color: var(--fg); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 8px 0; }
.file input { margin-left: 6px; max-width: 100%; }
.look button.quiet { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; }
.field { display: flex; flex-direction: column; gap: 3px; font-size: 0.95rem; }
.field.wide, .choices .wide { grid-column: 1 / -1; }
.row-problem { color: var(--wrong); font-size: 0.85rem; margin: 2px 0 0; }
.field select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); font: inherit; max-width: 100%; }
.count { font-weight: 600; }
.problems { border-left: 4px solid var(--wrong); padding: 2px 12px; background: var(--quiet); font-size: 0.92rem; }
.preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 12px 0; }
.preview svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.preview .paper { fill: #fffdf8; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 8px 0; }
.look button:disabled { opacity: 0.45; cursor: default; }
.wall, .paid { border: 2px solid var(--accent); border-radius: 12px; padding: 4px 16px 10px; margin: 16px 0; }
.wall[hidden], .paid[hidden] { display: none; }
.wall h3 { margin-top: 0.8rem; }
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.rows .row label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.look .small-button { min-height: 0; padding: 2px 10px; font-size: 0.85rem; margin-top: 4px; }
#status { min-height: 1.5em; }
.error { color: var(--wrong); }

table.forms { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
table.forms th, table.forms td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
@media (max-width: 640px) { table.forms { font-size: 0.85rem; } table.forms th, table.forms td { padding: 4px; } }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; }
@media (max-width: 640px) { .offer { grid-template-columns: 1fr; } }
.cta-end { margin: 24px 0; }
.box { border-left: 4px solid var(--accent); padding: 4px 12px; background: var(--quiet); }
input.email { padding: 8px 10px; width: min(22em, 100%); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); font: inherit; }
.ventures-ask { position: relative; margin: 1.5rem 0; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; }
.ventures-ask[hidden] { display: none; }
.ventures-ask-question { margin: 0 0 .5rem; font-weight: 600; }
.ventures-ask-answers { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
