:root {
  color-scheme: light;
  --paper: #f5f5ed;
  --ink: #202820;
  --accent: #2d5338;
  --border: #dce1d4;
  --white: #fffefa;
  font: 100%/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
.header {
  min-height: 4.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
  border-bottom: 1px solid var(--border);
  padding: .75rem max(1.25rem, calc((100% - 70rem) / 2));
  background: var(--white);
}
.brand { font-weight: 760; text-decoration: none; font-size: 1.25rem; color: var(--ink); }
.brand span { color: var(--accent); }
nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; }
main { width: min(100% - 2rem, 38rem); margin: clamp(2rem, 6vw, 5rem) auto 2rem; }
main.wide { width: min(100% - 2rem, 66rem); }
.funnel { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; gap: clamp(1.5rem, 5vw, 5rem); }
.intro { padding-top: clamp(.25rem, 5vw, 4rem); }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: 1rem; padding: clamp(1.1rem, 4vw, 2.5rem); }
h1, h2 { letter-spacing: -.035em; line-height: 1.1; margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); overflow-wrap: anywhere; }
.intro h1 { font: 500 clamp(2.4rem, 6vw, 4.9rem)/1.05 Georgia, serif; letter-spacing: -.06em; }
.byline { font-weight: 700; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
form, label { display: grid; gap: .5rem; }
form { gap: 1rem; }
label { font-weight: 650; }
.check { display: flex; align-items: baseline; font-weight: 400; }
input:not([type=checkbox]), textarea {
  border: 1px solid #aab5a8;
  border-radius: .45rem;
  font: inherit;
  font-weight: 400;
  background: #fff;
  color: inherit;
  padding: .65rem .75rem;
  width: 100%;
}
button { border: 0; background: var(--accent); color: white; border-radius: .45rem; padding: .65rem 1rem; width: fit-content; font: inherit; font-weight: 680; cursor: pointer; }
button.text { background: none; color: var(--accent); text-decoration: underline; padding: 0; font-weight: 500; }
:focus-visible { outline: 2px solid #35685a; outline-offset: 3px; }
.alert { border-left: 3px solid #9b3826; padding-left: .8rem; color: #762718; }
.actions { margin-top: 1rem; }
iframe, video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: .7rem; background: #202820; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .55rem .85rem .55rem 0; border-bottom: 1px solid var(--border); }
dt { font-weight: 650; }
dd { margin: 0 0 .8rem; overflow-wrap: anywhere; }
footer { text-align: center; padding: 1rem; }
@media (max-width: 44rem) {
  .funnel { grid-template-columns: 1fr; }
}
.header-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.25rem; }
.language { font-weight: 650; }
.class-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.15rem; }
.class-actions .class-contact { border: 1px solid var(--accent); background: var(--white); color: var(--accent); }
.class-actions a.button:not(.class-contact) { border: 1px solid transparent; }
.class-actions :is(a, button):hover { filter: brightness(.93); }
a.button { display: inline-block; border-radius: .45rem; background: var(--accent); color: white; padding: .65rem 1rem; text-decoration: none; font-weight: 680; }
.workspace-grid,.pipes { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); }
main.wide > section + section { margin-top:1.25rem; }
.pipes .pipe-card { display:grid; gap:.25rem; padding:1rem; color:inherit; text-decoration:none; }
.pipe-card h2 { font-size:1rem; margin:0; }
.pipe-card strong { font-size:1.7rem; }
fieldset { border:1px solid var(--border); border-radius:.5rem; margin:0; padding:1rem; }
select { font:inherit; color:inherit; background:var(--white); border:1px solid #abb5a9; border-radius:.35rem; padding:.5rem; }
.public-links { margin-top:1.25rem; }
#contact-composer { display:grid; gap:.75rem; }
.funnel form fieldset { display:grid; gap:1rem; border:0; margin:0; padding:0; }

body[data-funnel-theme="olive"] { --accent: #426039; --border: #d3dbcc; }
body[data-funnel-theme="ocean"] { --accent: #205477; --border: #d4e1ea; }
body[data-funnel-theme="plum"] { --accent: #704161; --border: #e0d4de; }
.funnel-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .85rem 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: .85rem;
  background: var(--white);
}
.funnel-identity-top { margin-bottom: clamp(1.25rem, 3vw, 2.2rem); }
.funnel-identity-bottom { margin-top: clamp(1.5rem, 4vw, 3rem); }
.funnel-host-photo {
  display: grid;
  place-items: center;
  width: 3.9rem;
  height: 3.9rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  color: var(--accent);
  font-weight: 740;
}
.funnel-host-text strong { font-size: 1.08rem; }
.funnel-host-text p { margin: .2rem 0 0; font-size: .92rem; }
.funnel-host-contact { font-size: .9rem; font-weight: 680; }
.funnel-page-photo { display: block; margin-top: 1.1rem; width: min(100%, 36rem); height: auto; border-radius: .75rem; object-fit: cover; }
@media (max-width: 40rem) {
  .funnel-identity { grid-template-columns: auto minmax(0, 1fr); gap: .65rem; }
  .funnel-host-contact { grid-column: 2; }
}

.signup-page { margin-top: clamp(1.4rem, 4vw, 3.25rem); }
.funnel-page-controls { display: flex; justify-content: flex-end; align-items: center; min-height: 2.6rem; margin-bottom: 1rem; gap: 1rem; }
.funnel-brand-mark { margin-inline-end: auto; color: var(--accent); display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .6rem; object-fit: contain; }
.funnel-brand-mark svg { width: 1.9rem; height: 1.9rem; }
#funnel-page-language { min-width: 7.5rem; border: 1px solid var(--border); border-radius: .65rem; padding: .5rem .65rem; color: var(--accent); font-weight: 650; cursor: pointer; }
@supports (appearance: base-select) and selector(select::picker(select)) {
  #funnel-page-language, #funnel-page-language::picker(select) { appearance: base-select; }
  #funnel-page-language { gap: .85rem; }
  #funnel-page-language::picker(select) { padding: .24rem; background: var(--white); border: 1px solid var(--border); border-radius: .65rem; box-shadow: 0 .4rem 1rem #18332620; color: var(--ink); }
  #funnel-page-language option { padding: .5rem .65rem; cursor: pointer; border-radius: .4rem; }
  #funnel-page-language option:is(:checked,:hover,:focus-visible) { background: var(--paper); color: var(--accent); }
}
.funnel-host-line { color: var(--accent); font-weight: 610; font-size: .87rem; margin-top: .1rem; }

.funnel-identity-top { display: block; }
.funnel-host { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.funnel-host-photo { flex: none; }
.funnel-host-text .funnel-host-contact { display: inline-block; margin-top: .25rem; }
.funnel-identity-bottom {
  display: flex;
  justify-content: space-between;
  background: #203b2e;
  border-color: #203b2e;
  color: #f5f8f3;
}
.funnel-identity-bottom .funnel-host-photo { width: 3rem; height: 3rem; background: #e2ecda; color: #214230; }
.funnel-identity-bottom :is(.funnel-host-contact, .funnel-host-line) { color: #cfe3d6; }
.funnel-host-actions { display: grid; gap: .15rem; justify-items: end; text-align: right; }
.funnel-host-actions a { font-size: .84rem; }
@media (max-width: 36rem) {
  .funnel-identity-bottom { flex-direction: column; align-items: flex-start; }
  .funnel-host-actions { justify-items: start; text-align: left; }
}
