/* ===========================================================================
   Oikos — Free Host Tools · shared stylesheet
   Applies the Oikos Property Ventures design system v1 tokens
   (_design_systems/oikos/v1/tokens.css). Light-only brand — Oikos has no dark
   token set and the taste profile rejects a "tech/dashboard" register, so there
   is no dark mode here by design. Self-contained: Inter requested first, then a
   system fallback stack (no external font fetch / no CDN).
   ========================================================================== */

:root {
  /* ─── Oikos brand colors (from oikos/v1/tokens.css) ─── */
  --forest:        #37453b;
  --forest-hover:  #2a3530;
  --forest-glow:   rgba(55, 69, 59, 0.15);
  --forest-muted:  rgba(55, 69, 59, 0.08);
  --sage:          #66806d;
  --sand:          #ebe5d3;
  --sand-dark:     #5a564c;
  --sky-blue:      #c3cfcf;
  --teal:          #517777;
  --grey:          #939184;

  /* ─── Neutrals ─── */
  --bg:            #fffefb;
  --surface:       #faf8f4;
  --surface-2:     #f1ede4;   /* slightly deeper sand tint for insets */
  --border:        #d8d2c4;
  --text:          #3e4044;
  --text-soft:     #5a564c;
  --text-dim:      #939184;
  --text-tertiary: #b5ae9f;

  /* ─── Semantic roles mapped onto brand tokens ─── */
  --brand:    var(--forest);
  --brand-2:  var(--forest-hover);
  --accent:   var(--teal);      /* positive numbers — calm teal, not neon green */
  --negative: #a8453a;          /* muted brick — stays in the warm film-stock register */

  --shadow:          0 2px 16px rgba(62, 64, 68, .08);
  --shadow-card:     0 2px 16px rgba(62, 64, 68, .08);
  --shadow-elevated: 0 4px 32px rgba(62, 64, 68, .12);
  --shadow-glow-sm:  0 0 12px rgba(55, 69, 59, .10);

  --radius:      16px;   /* cards (rounded-2xl) */
  --radius-sm:   12px;   /* buttons / inputs (rounded-xl) */
  --radius-pill: 9999px;
  --maxw:        980px;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header (matches oikospropertyventures.com) ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #000;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 14px;
}
.brand-mark { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand-mark img.logo { width: 34px; height: 34px; display: block; }
.brand-mark .wm { display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark .wm .name {
  font-weight: 600; font-size: 1.02rem; letter-spacing: .02em;
  text-transform: uppercase; color: #fff;
}
.brand-mark .wm .sub {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand); opacity: .75; font-weight: 600;
}
.header-cta {
  display: inline-block; background: transparent; color: var(--sand);
  border: 2px solid var(--sand); border-radius: var(--radius-pill);
  padding: 8px 22px; font-size: .88rem; font-weight: 500;
}
.header-cta:hover { background: var(--sand); color: #000; text-decoration: none; }
@media (max-width: 560px) { .header-cta { display: none; } }

/* ---- Hero ---- */
.hero { padding: 72px 0 32px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15;
  letter-spacing: -.01em; margin: 0 0 18px; font-weight: 700; color: var(--forest);
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--text-soft); max-width: 42ch; margin: 0; line-height: 1.6;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  font-weight: 600; color: var(--sage); margin: 0 0 16px;
}

/* ---- Tool grid (hub) ---- */
.tool-grid {
  display: grid; gap: 22px; padding: 28px 0 64px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.tool-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: var(--text);
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); border-color: var(--sage); text-decoration: none; }
.tool-card .ico { font-size: 1.7rem; margin-bottom: 14px; }
.tool-card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--forest); font-weight: 600; }
.tool-card p { margin: 0; color: var(--text-soft); font-size: .93rem; line-height: 1.55; }
.tool-card .cta { margin-top: 16px; font-size: .85rem; font-weight: 600; color: var(--teal); }

/* ---- Breadcrumb ---- */
.crumb { font-size: .82rem; color: var(--text-dim); padding: 26px 0 0; }
.crumb a { color: var(--text-dim); }
.crumb a:hover { color: var(--teal); }

/* ---- Tool page layout ---- */
.tool-head { padding: 16px 0 6px; }
.tool-head h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.01em; margin: 8px 0 10px; color: var(--forest); font-weight: 700; }
.tool-head .desc { color: var(--text-soft); font-size: 1.05rem; margin: 0; max-width: 62ch; line-height: 1.6; }

.layout { display: grid; gap: 30px; grid-template-columns: 1fr; padding: 30px 0 44px; }
@media (min-width: 880px) {
  .layout.has-aside { grid-template-columns: minmax(0,1fr) 290px; align-items: start; }
}

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card);
}
.card + .card { margin-top: 24px; }
.card h2 { margin: 0 0 18px; font-size: 1.15rem; color: var(--forest); font-weight: 600; }

/* ---- Forms ---- */
.field-grid { display: grid; gap: 18px 20px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.field .hint { font-size: .72rem; color: var(--text-dim); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .affix { position: absolute; color: var(--text-dim); font-size: .9rem; pointer-events: none; }
.input-wrap .affix.pre { left: 13px; }
.input-wrap .affix.post { right: 13px; }
input[type="number"], input[type="text"], select {
  width: 100%; font: inherit; font-size: .98rem;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 13px;
}
.input-wrap.has-pre input { padding-left: 27px; }
.input-wrap.has-post input { padding-right: 40px; }
input:focus, select:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; background: var(--bg); }
.seg button { border: 0; background: transparent; color: var(--text-soft); padding: 9px 18px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.seg button.active { background: var(--forest); color: var(--bg); }

/* ---- Results ---- */
.results { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.metric { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.metric .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); font-weight: 600; }
.metric .v { font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; margin-top: 5px; color: var(--forest); }
.metric .v.pos { color: var(--accent); }
.metric .v.neg { color: var(--negative); }
.metric.hero-metric { background: var(--forest); border-color: var(--forest); box-shadow: var(--shadow-glow-sm); }
.metric.hero-metric .k { color: var(--sand); }
.metric.hero-metric .v { color: var(--bg); }

/* ---- Tables ---- */
table.breakdown { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.breakdown th, table.breakdown td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
table.breakdown th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 600; }
table.breakdown td.num, table.breakdown th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.breakdown tr.total td { font-weight: 700; border-top: 2px solid var(--border); border-bottom: 0; color: var(--forest); }
table.breakdown .pos { color: var(--accent); }
table.breakdown .neg { color: var(--negative); }

/* ---- How-to + FAQ ---- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: var(--bg); font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.steps li strong { display: block; margin-bottom: 4px; color: var(--forest); }
.steps li span { color: var(--text-soft); font-size: .9rem; }

.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--forest); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sage); font-weight: 700; font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 14px; color: var(--text-soft); }

/* ---- Affiliate / aside ---- */
.aff { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 18px; }
.aff .tag { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sage); font-weight: 700; }
.aff h4 { margin: 7px 0 5px; font-size: .98rem; color: var(--forest); }
.aff p { margin: 0 0 12px; font-size: .85rem; color: var(--text-soft); line-height: 1.5; }
.aff a.btn { display: inline-block; background: var(--sand); color: var(--forest); padding: 9px 16px; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 600; border: 1px solid var(--border); }
.aff a.btn:hover { background: #e2dbc5; text-decoration: none; }
aside.sidebar { position: sticky; top: 86px; }

/* ---- Oikos co-hosting CTA (native primary) ---- */
.oikos-handoff {
  background: var(--forest); color: var(--sand);
  border-radius: var(--radius); padding: 30px 32px; margin: 36px 0 0;
  box-shadow: var(--shadow-glow-sm);
}
.oikos-handoff .label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--sky-blue); font-weight: 600; }
.oikos-handoff h3 { margin: 8px 0 8px; font-size: 1.35rem; color: var(--bg); font-weight: 600; line-height: 1.25; }
.oikos-handoff p { margin: 0 0 18px; color: var(--sand); max-width: 56ch; font-size: .98rem; line-height: 1.6; opacity: .92; }
.oikos-handoff a.btn { display: inline-block; background: var(--sand); color: var(--forest); padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; }
.oikos-handoff a.btn:hover { background: #f1ecdc; text-decoration: none; }

/* ---- Related tools ---- */
.related-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.related-grid a { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--text); }
.related-grid a:hover { border-color: var(--sage); box-shadow: var(--shadow-card); text-decoration: none; }
.related-grid a strong { display: block; font-size: .95rem; color: var(--forest); }
.related-grid a span { font-size: .82rem; color: var(--text-soft); }

/* ---- Footer (matches oikospropertyventures.com) ---- */
.site-footer { background: var(--forest); color: var(--sand); padding: 60px 0 40px; margin-top: 64px; font-size: .9rem; }
.site-footer a { color: var(--sand); }
.site-footer .foot-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 44px; }
.site-footer .foot-cta h2 { color: #fffefb; font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 10px; letter-spacing: -.01em; font-weight: 600; }
.site-footer .foot-cta p { color: var(--sand); opacity: .85; max-width: 52ch; margin: 0; line-height: 1.55; }
.foot-pill { flex-shrink: 0; display: inline-block; border: 2px solid var(--sand); color: var(--sand); border-radius: var(--radius-pill); padding: 12px 26px; font-weight: 500; }
.foot-pill:hover { background: var(--sand); color: var(--forest); text-decoration: none; }
.site-footer .foot-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-top: 1px solid rgba(235,229,211,.25); padding-top: 36px; }
.site-footer .foot-brand { display: inline-flex; align-items: center; gap: 10px; color: #fffefb; font-weight: 600; font-size: 1.05rem; }
.site-footer .foot-brand img { width: 26px; height: 26px; }
.site-footer .foot-addr { color: var(--sand); opacity: .8; margin: 10px 0 0; line-height: 1.6; }
.site-footer .foot-social { display: flex; align-items: center; gap: 16px; }
.site-footer .foot-social a { display: inline-flex; opacity: .85; }
.site-footer .foot-social a:hover { opacity: 1; }
.site-footer .foot-social svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer .foot-contact { font-weight: 500; }
.disclaimer { font-size: .78rem; color: var(--sand); opacity: .6; max-width: 72ch; margin-top: 28px; line-height: 1.55; }

.section-title { font-size: 1.3rem; letter-spacing: -.01em; margin: 44px 0 16px; color: var(--forest); font-weight: 600; }

.site-footer .foot-links { margin-top: 12px; opacity: .75; }
.site-footer .foot-links a { color: var(--sand); margin-right: 16px; font-size: .8rem; }
@media (max-width: 720px) {
  .site-footer .foot-cta { flex-direction: column; align-items: flex-start; }
  .site-footer .foot-info { flex-direction: column; align-items: flex-start; }
}

/* ---- Nav links (header) ---- */
.nav-links { display: inline-flex; align-items: center; gap: 20px; }
.nav-links a.nav { color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 500; }
.nav-links a.nav:hover { color: #fff; text-decoration: none; }
@media (max-width: 640px) { .nav-links a.nav { display: none; } }

/* ---- Email signup (Mailchimp) ---- */
.mc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-card); }
.mc-card.mc-inline { padding: 18px 20px; }
.mc-h { display: block; color: var(--forest); font-size: 1.05rem; font-weight: 600; }
.mc-card.mc-inline .mc-h { font-size: .98rem; }
.mc-blurb { margin: 7px 0 16px; color: var(--text-soft); font-size: .92rem; line-height: 1.55; max-width: 54ch; }
.mc-copy { margin-bottom: 14px; }
.mc-card.mc-inline .mc-copy { margin-bottom: 10px; }
.mc-label { position: absolute; left: -9999px; }
.mc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mc-input { flex: 1 1 200px; font: inherit; font-size: .96rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; }
.mc-input:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.mc-btn { background: var(--forest); color: var(--bg); border: 0; border-radius: var(--radius-sm); padding: 11px 22px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-glow-sm); }
.mc-btn:hover { background: var(--forest-hover); }
.mc-note { margin: 10px 0 0; font-size: .82rem; color: var(--sage); min-height: 1em; }

/* hub email block sits on sand for a warm, calm full-width moment */
.email-band { background: var(--sand); border-radius: var(--radius); padding: 8px; margin: 8px 0 54px; }
.email-band .mc-card { background: transparent; border: 0; box-shadow: none; padding: 22px 24px; }

/* ---- Course CTA (secondary) ---- */
.course-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--sage);
  border-radius: var(--radius); padding: 22px 26px; margin: 26px 0 0; }
.course-cta .ct { max-width: 60ch; }
.course-cta .label { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sage); font-weight: 700; }
.course-cta h3 { margin: 6px 0 5px; font-size: 1.12rem; color: var(--forest); font-weight: 600; }
.course-cta p { margin: 0; color: var(--text-soft); font-size: .92rem; line-height: 1.5; }
.course-cta a.btn { display: inline-block; white-space: nowrap; background: var(--sand); color: var(--forest); border: 1px solid var(--border); padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; }
.course-cta a.btn:hover { background: #e2dbc5; text-decoration: none; }

/* ---- Guides ---- */
.guide-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); padding: 24px 0 40px; }
.guide-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); color: var(--text); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); border-color: var(--sage); text-decoration: none; }
.guide-card .kicker { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sage); font-weight: 700; }
.guide-card h3 { margin: 8px 0 7px; font-size: 1.1rem; color: var(--forest); font-weight: 600; line-height: 1.3; }
.guide-card p { margin: 0; color: var(--text-soft); font-size: .9rem; line-height: 1.5; }

.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--forest); letter-spacing: -.01em; line-height: 1.2; margin: 10px 0 8px; font-weight: 700; }
.article .meta { color: var(--text-dim); font-size: .85rem; margin-bottom: 28px; }
.article h2 { font-size: 1.35rem; color: var(--forest); margin: 36px 0 12px; font-weight: 600; letter-spacing: -.01em; }
.article h3 { font-size: 1.08rem; color: var(--forest); margin: 26px 0 8px; font-weight: 600; }
.article p { margin: 0 0 16px; color: var(--text); line-height: 1.7; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; color: var(--text); line-height: 1.7; }
.article li { margin-bottom: 7px; }
.article .lead { font-size: 1.12rem; color: var(--text-soft); line-height: 1.6; }
.article blockquote { margin: 0 0 18px; padding: 14px 20px; background: var(--surface); border-left: 3px solid var(--sage); border-radius: var(--radius-sm); color: var(--text-soft); }
.tool-callout { background: var(--forest); color: var(--sand); border-radius: var(--radius); padding: 24px 26px; margin: 28px 0; box-shadow: var(--shadow-glow-sm); }
.tool-callout .label { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sky-blue); font-weight: 700; }
.tool-callout h3 { margin: 7px 0 7px; color: var(--bg); font-size: 1.2rem; font-weight: 600; }
.tool-callout p { margin: 0 0 16px; color: var(--sand); opacity: .92; font-size: .95rem; line-height: 1.55; }
.tool-callout a.btn { display: inline-block; background: var(--sand); color: var(--forest); padding: 11px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; }
.tool-callout a.btn:hover { background: #f1ecdc; text-decoration: none; }
