/*
Theme Name: Flow Source Media
Theme URI: https://flowsourcemedia.com
Author: Flow Source Media LLC
Description: One-page site for Flow Source Media: Turtle Scope, education, local media and consulting.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: flow-source-media
*/

body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: one long page that follows the customer's path — free content in at the top, consulting at the bottom — with Turtle Scope as the working centerpiece. Palette sampled from the wolf mark. */
:root {
  --ground: #F6F5F1;
  --surface: #FFFFFF;
  --sunk: #ECEDEA;
  --ink: #05264C;
  --ink-2: #4A5F78;
  --line: rgba(5, 38, 76, .13);
  --navy: #0C3762;
  --teal: #3690AA;
  --teal-text: #1E6E86;
  --cyan: #59C5C9;
  --btn-bg: #0C3762;
  --btn-fg: #F6F5F1;
  --tag-measured: #1E6E86;
  --tag-standard: #6B5FA8;
  --tag-estimated: #9A6A14;
  --roof-existing: #6D7480;
  --roof-proposed: #0C3762;
  --wall: #E4E7E8;
  --wall-line: #9AA7B3;

  --f-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 72rem;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #061A30; --surface: #0B2542; --sunk: #08203A; --ink: #E8F1F4; --ink-2: #9DB3C4;
    --line: rgba(160, 205, 220, .16); --navy: #0C3762; --teal: #4FA9C0; --teal-text: #7FD3D6; --cyan: #59C5C9;
    --btn-bg: #59C5C9; --btn-fg: #05264C;
    --tag-measured: #7FD3D6; --tag-standard: #B4A9EC; --tag-estimated: #E3B867;
    --roof-existing: #7C8592; --roof-proposed: #59C5C9; --wall: #1A3657; --wall-line: #4C6B8A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #061A30; --surface: #0B2542; --sunk: #08203A; --ink: #E8F1F4; --ink-2: #9DB3C4;
  --line: rgba(160, 205, 220, .16); --navy: #0C3762; --teal: #4FA9C0; --teal-text: #7FD3D6; --cyan: #59C5C9;
  --btn-bg: #59C5C9; --btn-fg: #05264C;
  --tag-measured: #7FD3D6; --tag-standard: #B4A9EC; --tag-estimated: #E3B867;
  --roof-existing: #7C8592; --roof-proposed: #59C5C9; --wall: #1A3657; --wall-line: #4C6B8A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(16px, 4vw); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--teal-text); }
.eyebrow {
  font: 600 .78rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--teal-text);
}
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 38rem; }
.muted { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 999px;
  font: 700 .95rem/1 var(--f-display); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font: 800 1rem/1 var(--f-display); letter-spacing: .02em; }
.brand-word span { font: 600 .62rem/1 var(--f-display); letter-spacing: .42em; margin-top: .3rem; color: var(--ink-2); }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font: 600 .9rem/1 var(--f-display); }
.nav a:hover { color: var(--teal-text); }
.nav .btn { padding: .6rem 1rem; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--teal-text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Turtle Scope sample report */
.report {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px -30px rgba(5, 38, 76, .45); min-width: 0; overflow: hidden;
}
.report-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.report-top .eyebrow { color: var(--ink-2); }
.sample-pill { font: 600 .7rem/1 var(--f-mono); padding: .35rem .55rem; border-radius: 999px; border: 1px dashed var(--tag-estimated); color: var(--tag-estimated); white-space: nowrap; }
.model { padding: 1rem 1.1rem .4rem; }
.model svg { display: block; width: 100%; height: auto; max-width: 100%; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; margin-top: .4rem; }
.toggle button {
  font: 600 .78rem/1 var(--f-display); padding: .45rem .8rem; border-radius: 999px; border: 0;
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.measures { width: 100%; border-collapse: collapse; font: 400 .86rem/1.3 var(--f-mono); font-variant-numeric: tabular-nums; }
.measures td { padding: .5rem 1.1rem; border-top: 1px solid var(--line); }
.measures td:nth-child(2) { text-align: right; font-weight: 600; white-space: nowrap; }
.measures td:last-child { text-align: right; width: 1%; }
.tag { font: 600 .66rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; padding: .28rem .45rem; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.tag.m { color: var(--tag-measured); } .tag.s { color: var(--tag-standard); } .tag.e { color: var(--tag-estimated); }
.report-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 1.1rem; background: var(--sunk); border-top: 1px solid var(--line); flex-wrap: wrap; }
.report-foot strong { font: 700 1.3rem/1 var(--f-mono); }
.report-foot span { font-size: .85rem; color: var(--ink-2); }

/* Sections */
section.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
section.band + section.band { border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: .9rem; max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Customer path */
.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.path::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1.05rem; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--teal), var(--navy)); opacity: .7;
}
.step { position: relative; padding-right: 1.5rem; display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.step .dot { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--ground); border: 2px solid var(--teal); display: grid; place-items: center; font: 700 .8rem/1 var(--f-mono); color: var(--teal-text); }
.step .price { font: 600 .85rem/1.2 var(--f-mono); color: var(--teal-text); }
.step p { color: var(--ink-2); font-size: .98rem; }
.path-aside { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .95rem; color: var(--ink-2); }
.path-aside b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .path::before { left: 1.05rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--cyan), var(--teal), var(--navy)); }
  .step { padding: 0 0 0 3.2rem; }
  .step .dot { position: absolute; left: 0; top: 0; }
}

/* Turtle Scope */
.scope { background: var(--navy); color: #EAF3F6; }
:root[data-theme="dark"] .scope { background: var(--sunk); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scope { background: var(--sunk); } }
.scope .eyebrow { color: var(--cyan); }
.scope .lede, .scope .muted { color: #B9CEDA; }
.scope-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.4rem; counter-reset: f; }
.flow li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 1rem; counter-increment: f; }
.flow li::before { content: counter(f); font: 700 .9rem/2.4rem var(--f-mono); text-align: center; border-radius: 8px; background: rgba(89, 197, 201, .14); color: var(--cyan); height: 2.4rem; }
.flow h3 { color: #FFFFFF; margin-bottom: .25rem; }
.flow p { color: #B9CEDA; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(185, 206, 218, .2); border: 1px solid rgba(185, 206, 218, .2); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--navy); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
:root[data-theme="dark"] .fact { background: var(--sunk); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fact { background: var(--sunk); } }
.fact b { font: 700 .95rem/1.3 var(--f-display); color: #FFFFFF; }
.fact span { font-size: .93rem; color: #B9CEDA; }
.scope-side { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.legend { display: flex; flex-direction: column; gap: .7rem; padding: 1.2rem; border-radius: var(--radius); border: 1px dashed rgba(185, 206, 218, .35); }
.legend div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .8rem; align-items: baseline; font-size: .95rem; color: #D5E3EA; }
.legend .tag.m { color: #7FD3D6; } .legend .tag.s { color: #C3B9F2; } .legend .tag.e { color: #EBC47A; }
.scope-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.scope-cta .btn-primary { background: var(--cyan); color: #05264C; }
.scope-cta .price { font: 600 .95rem/1.3 var(--f-mono); color: #EAF3F6; }
@media (max-width: 860px) { .scope-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } .legend div { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }

/* Divisions */
.divs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.div { display: flex; flex-direction: column; gap: .9rem; padding-top: 1.2rem; border-top: 3px solid var(--teal); min-width: 0; }
.div ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.div li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; border-bottom: 1px solid var(--line); font-size: .98rem; }
.div li span:last-child { font: 600 .82rem/1.6 var(--f-mono); color: var(--teal-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.div .note { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 900px) { .divs { grid-template-columns: minmax(0, 1fr); } }

/* Origin */
.origin { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.origin-mark { display: flex; flex-direction: column; gap: 1rem; }
.origin-mark img { width: min(240px, 60%); }
.origin-copy { display: flex; flex-direction: column; gap: 1.1rem; max-width: 40rem; }
.rules { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.rules li { padding-left: 1.4rem; position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: 2px; background: var(--teal); }
@media (max-width: 800px) { .origin { grid-template-columns: minmax(0, 1fr); } .origin-mark img { width: 140px; } }

/* Form */
.signup { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.2rem, 3vw, 1.8rem); display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label, legend { font: 600 .85rem/1.2 var(--f-display); color: var(--ink); }
input[type="text"], input[type="email"], select {
  font: inherit; font-size: 1rem; padding: .7rem .8rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--ground); color: var(--ink); width: 100%; min-width: 0;
}
input:focus, select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.check { display: flex; gap: .55rem; align-items: center; font: 400 .98rem/1.3 var(--f-body); padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.check input { accent-color: var(--teal); width: 1.05rem; height: 1.05rem; }
.form-msg { font-size: .95rem; padding: .8rem 1rem; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); }
.form-err { color: #B4382A; font-size: .9rem; }
:root[data-theme="dark"] .form-err { color: #F09A8C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-err { color: #F09A8C; } }
@media (max-width: 800px) { .signup { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .row2, .checks { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 2.5rem; }
.foot { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; font-size: .92rem; color: var(--ink-2); }
.foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--teal-text); }
