/* Forge App Studio
   Layout: a dark "forge" hero carries the logo and the promise; light bands below hold the apps,
   the principles, the person behind them, and contact. Ember is the one warm accent. */
:root {
  /* the forge: always dark, in both themes */
  --iron-950: #0E1419;
  --iron-900: #141B21;
  --iron-800: #1C262E;
  --on-dark: #EEF1F3;
  --on-dark-muted: #AEB8C1;
  --ember: #F28A2E;
  --ember-ink: #1A0E06;
  --ember-light: #F7A55B;
  --steel: #9DB0BF;

  /* page surfaces (light theme) */
  --bg: #FFFFFF;
  --mist: #ECEEF1;
  --surface: #FFFFFF;
  --ink: #1D2830;
  --muted: #56616B;
  --line: #DCE0E4;
  --accent-text: #A84C0C;
  --ember-soft: rgba(242, 138, 46, 0.16);
  --shadow: 0 1px 2px rgba(20, 27, 33, 0.05), 0 14px 34px -20px rgba(20, 27, 33, 0.28);
  --focus: #2F6FD0;

  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  --step-3: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem);
  --radius: 18px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1519; --mist: #141C22; --surface: #182129; --ink: #E7ECEF; --muted: #A3AEB7;
    --line: #2A353E; --accent-text: #F7A55B; --ember-soft: rgba(247, 165, 91, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); --focus: #8DB8FF; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1519; --mist: #141C22; --surface: #182129; --ink: #E7ECEF; --muted: #A3AEB7;
  --line: #2A353E; --accent-text: #F7A55B; --ember-soft: rgba(247, 165, 91, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); --focus: #8DB8FF; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.028em; line-height: 1.05; }
h2 { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.022em; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.prose-width { max-width: 62ch; }

/* eyebrow pill: a short label that says what a section is */
.eyebrow {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  background: var(--ember-soft); color: var(--accent-text);
}
.dark .eyebrow { background: rgba(247, 165, 91, 0.14); color: var(--ember-light); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--ember); color: var(--ember-ink); }
.btn-primary:hover { background: var(--ember-light); }
.btn-ghost { border-color: rgba(238, 241, 243, 0.55); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { opacity: 0.9; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- dark forge band (hero, page heads, about band) ---------- */
.dark {
  background:
    radial-gradient(ellipse 60% 70% at 88% 115%, rgba(242, 138, 46, 0.15), transparent 70%),
    linear-gradient(160deg, var(--iron-950) 0%, #162028 55%, var(--iron-800) 100%);
  color: var(--on-dark);
}
.dark a:not(.btn) { color: var(--ember-light); }
.dark .muted { color: var(--on-dark-muted); }

.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 28px;
  flex-wrap: wrap; padding-block: 22px;
}
.brand { display: inline-flex; flex: none; }
.brand img { height: 64px; width: auto; display: block; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 26px; }
.nav a:not(.btn) { color: var(--on-dark); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.nav a:not(.btn):hover { color: var(--ember-light); }
.nav .btn { min-height: 46px; padding: 10px 22px; }
@media (max-width: 680px) {
  .nav a.nav-link { display: none; }
  .brand img { height: 52px; }
}

.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px; align-items: center; padding-block: 36px 88px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--steel); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--on-dark-muted); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* the "shelf" of apps in the hero */
.shelf { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.shelf-item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 18px; border-radius: var(--radius);
  background: rgba(238, 241, 243, 0.06); border: 1px solid rgba(238, 241, 243, 0.12);
  color: var(--on-dark); text-decoration: none;
}
a.shelf-item:hover { background: rgba(238, 241, 243, 0.1); }
.shelf-item strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.shelf-item span.muted { display: block; font-size: 0.95rem; }
.status {
  display: inline-block; margin-top: 8px; font-family: var(--font-display); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.status.live { background: rgba(126, 200, 160, 0.16); color: #9BD9B6; }
.status.soon { background: rgba(157, 176, 191, 0.18); color: #C7D3DD; }
.app-glyph { width: 64px; height: 64px; border-radius: 15px; display: block; }
.page-icon { width: 72px; height: 72px; border-radius: 17px; display: block; box-shadow: 0 6px 18px -8px rgba(0,0,0,0.5); }

/* ---------- light sections ---------- */
.section { padding-block: 88px; }
.section.mist { background: var(--mist); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; max-width: 70ch; }
.section-head p { color: var(--muted); }

.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.app-card {
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.app-card .top { display: flex; align-items: center; gap: 16px; }
.app-card h3 { font-size: 1.5rem; }
.app-card p { color: var(--muted); }
.app-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }
.app-card .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-top: 6px; }
.app-card .links a:not(.btn) { font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.app-card .links a:not(.btn):hover { text-decoration: underline; }
.tag {
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.principle {
  background: var(--surface); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
}
.principle .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ember-soft); color: var(--accent-text);
}
.principle .icon svg { width: 24px; height: 24px; }
.principle p { color: var(--muted); }

.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; padding-block: 80px; }
.about p + p { margin-top: 16px; }
.about .copy { color: var(--on-dark-muted); font-size: 1.1rem; }
.about .copy strong { color: var(--on-dark); font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.contact-card p { color: var(--muted); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.email {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink);
  text-decoration: none; overflow-wrap: anywhere;
}
.email:hover { color: var(--accent-text); }
.copy-btn {
  font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer;
}
.copy-btn:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- footer ---------- */
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 28px; }
.site-foot img { height: 56px; width: auto; }
.site-foot h4 { margin: 0 0 10px; font: 700 0.78rem/1.2 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a:not(.btn) { color: var(--on-dark); text-decoration: none; }
.site-foot a:not(.btn):hover { color: var(--ember-light); }
.site-foot .legal {
  grid-column: 1 / -1; border-top: 1px solid rgba(238, 241, 243, 0.12); padding-top: 20px;
  font-size: var(--step--1); color: var(--on-dark-muted);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}

/* ---------- inner pages ---------- */
.page-head .wrap { padding-block: 24px 64px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
.crumbs { font-size: var(--step--1); color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted) !important; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feature ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.facts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.facts svg { width: 22px; height: 22px; margin-top: 3px; color: var(--accent-text); }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.price .amount { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.02em; line-height: 1; }
.price .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.note { font-size: var(--step--1); color: var(--muted); }
.callout {
  border-radius: var(--radius); padding: 22px 24px; background: var(--mist);
  color: var(--ink); display: grid; gap: 6px;
}

/* legal documents */
.doc { padding-block: 64px 88px; }
.doc .wrap { max-width: 820px; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.doc h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc .caps { text-transform: none; font-weight: 600; }
.doc .updated { color: var(--muted); font-size: var(--step--1); margin-bottom: 24px; }
.doc .fill { background: var(--ember-soft); color: var(--accent-text); padding: 0 4px; border-radius: 4px; font-weight: 700; }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: 18px; color: var(--muted); display: grid; gap: 10px; }

/* waitlist form */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.form label, .form legend { font-weight: 700; }
.form .hint { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.form input[type="email"] { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; font-weight: 400 !important; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font-size: var(--step--1); }
.option input:checked + span { border-color: var(--accent-text); background: var(--ember-soft); font-weight: 700; }
.option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent-text); }
.status-msg { padding: 14px 16px; border-radius: 12px; background: var(--ember-soft); }

@media (max-width: 900px) {
  .hero .wrap, .about .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .site-foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .apps, .contact-grid, .features { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 60px; }
  .hero .wrap { padding-block: 24px 64px; }
}
@media (max-width: 480px) {
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ================= App themes =================
   The studio frame (fonts, layout, footer) stays the same; each app's pages take that app's colors.
   Did I Take It?: the app's slate-blue header (#3D5A80 / #2C4A6E) and primary blue (#2C7BE5).
   Leanto: the calm green-gray ground (#F2F4F1) and teal (#2F6B63) from the Leanto designs. */

.theme-diti {
  --bg: #FFFFFF; --mist: #EEF3FB; --surface: #FFFFFF; --ink: #1A1A2E; --muted: #5C6573; --line: #E0E7F2;
  --accent-text: #1F62C2; --ember-soft: rgba(44, 123, 229, 0.12);
  --app-btn: #2466C8; --app-btn-ink: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-diti {
    --bg: #0F1620; --mist: #131D2A; --surface: #172231; --ink: #E6ECF5; --muted: #A5B3C6; --line: #26354A;
    --accent-text: #8DB6F2; --ember-soft: rgba(141, 182, 242, 0.14); --app-btn: #8DB6F2; --app-btn-ink: #0F1620;
  }
}
:root[data-theme="dark"] .theme-diti {
  --bg: #0F1620; --mist: #131D2A; --surface: #172231; --ink: #E6ECF5; --muted: #A5B3C6; --line: #26354A;
  --accent-text: #8DB6F2; --ember-soft: rgba(141, 182, 242, 0.14); --app-btn: #8DB6F2; --app-btn-ink: #0F1620;
}
.theme-diti .dark:not(.site-foot) {
  background:
    radial-gradient(ellipse 55% 80% at 92% 0%, rgba(91, 130, 184, 0.55), transparent 70%),
    linear-gradient(160deg, #22405F 0%, #2C4A6E 45%, #3D5A80 100%);
  --on-dark-muted: #D7E3F3;
}
.theme-diti .dark:not(.site-foot) .eyebrow { background: rgba(184, 212, 232, 0.18); color: #E3EDF8; }
.theme-diti .dark:not(.site-foot) h1 em { color: #B8D4E8 !important; }
.theme-diti .dark:not(.site-foot) a:not(.btn) { color: #E3EDF8; }
.theme-diti .dark:not(.site-foot) .nav a:not(.btn):hover { color: #B8D4E8; }
.theme-diti .dark:not(.site-foot) .btn-primary { background: #FFFFFF; color: #2C4A6E; }
.theme-diti .dark:not(.site-foot) .btn-primary:hover { background: #EBF2FF; }
.theme-diti .btn-ink { background: var(--app-btn); color: var(--app-btn-ink); }

.theme-leanto {
  --bg: #F2F4F1; --mist: #E7EDE9; --surface: #FFFFFF; --ink: #1F2B29; --muted: #55625F; --line: #D5DCD8;
  --accent-text: #2F6B63; --ember-soft: #E1ECE8;
  --app-btn: #2F6B63; --app-btn-ink: #FFFFFF; --calm-head: #E4ECE8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-leanto {
    --bg: #131A19; --mist: #172120; --surface: #1B2422; --ink: #E6ECE9; --muted: #A3B1AD; --line: #2C3835;
    --accent-text: #7FBDB2; --ember-soft: #1F3330; --app-btn: #7FBDB2; --app-btn-ink: #0F1716; --calm-head: #18211F;
  }
}
:root[data-theme="dark"] .theme-leanto {
  --bg: #131A19; --mist: #172120; --surface: #1B2422; --ink: #E6ECE9; --muted: #A3B1AD; --line: #2C3835;
  --accent-text: #7FBDB2; --ember-soft: #1F3330; --app-btn: #7FBDB2; --app-btn-ink: #0F1716; --calm-head: #18211F;
}
.theme-leanto .btn-ink { background: var(--app-btn); color: var(--app-btn-ink); }
.calm { background: var(--calm-head); color: var(--ink); }
.calm .nav a:not(.btn) { color: var(--ink); }
.calm .nav a:not(.btn):hover { color: var(--accent-text); }
.calm .btn-primary { background: var(--app-btn); color: var(--app-btn-ink); }
.calm .btn-primary:hover { opacity: 0.9; background: var(--app-btn); }
.calm .crumbs, .calm .crumbs a { color: var(--muted) !important; }
.calm h1 em { color: var(--accent-text) !important; }
.calm .lede { color: var(--muted); }
.calm .eyebrow { background: var(--surface); color: var(--accent-text); }
