/* shaper.xyz public site - hand-written CSS, no framework.
   One design system for every page (landing, auth, blog, /dev/):
   a light navy top bar, near-white ground, white rounded cards, the windzen
   green as the action colour and gold as the brand accent. Font: Inter,
   self-hosted (SIL OFL) - no third-party requests. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- tokens ---- */

:root {
  --navy: #26436e;          /* top bar */
  --navy-deep: #1a3358;     /* gradients, intro panels */
  --navy-soft: #35578a;
  --green: #00965e;         /* actions */
  --green-dark: #007a4d;
  --green-tint: #e8f6ef;
  --gold: #d9c85a;          /* brand accent on navy */
  --gold-ink: #8a7a12;      /* gold on white, readable */
  --ground: #f5f7fa;
  --card: #ffffff;
  --line: #dfe4ea;
  --field: #f3f6f9;
  --ink: #1e2a3a;
  --ink-soft: #5b6675;
  --danger: #b23a3a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(30, 42, 58, 0.08), 0 1px 2px rgba(30, 42, 58, 0.06);
  --shadow-sm: 0 1px 3px rgba(30, 42, 58, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--green-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }

/* ---- top bar ---- */

.site-header {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 2px 10px rgba(26, 51, 88, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 18px;
}

.brand img { border-radius: 6px; box-shadow: var(--shadow-sm); }
.brand .tld { color: var(--gold); font-weight: 500; }

.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; }
.site-header nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 500;
}
.site-header nav a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.site-header nav #nav-account {
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.site-header nav #nav-account:hover { background: #ffffff; color: var(--navy); border-color: #ffffff; }

/* ---- footer ---- */

.site-footer {
  margin-top: 72px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
.site-footer p { margin: 2px 0; }

/* ---- content ---- */

main { padding: 40px 0; }

h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 24px 0 12px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 44px 0 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

p { margin: 8px 0; max-width: 70ch; }

.pitch { font-size: 20px; color: var(--ink-soft); margin: 0 0 36px; max-width: 62ch; }

/* ---- screenshot cards ---- */

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 24px 0; }

.shot {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shot:hover { transform: translateY(-2px); }
.shot img { display: block; width: 100%; border-radius: 8px; }
.shot figcaption { font-size: 14px; color: var(--ink-soft); padding: 12px 6px 4px; }

@media (max-width: 900px) { .shots { grid-template-columns: 1fr; } }

/* ---- model cards (models page, workspace) ---- */

.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 16px 0 8px; }
.model {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; color: inherit; text-decoration: none;
  transition: transform 0.15s ease;
}
a.model:hover { transform: translateY(-2px); }
.model img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; border-bottom: 1px solid var(--line); }
.model-body { padding: 16px 18px 18px; }
.model-title { font-weight: 700; font-size: 17px; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.model-body p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---- model product page ---- */

.access-box { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; }
ul.plain { margin: 8px 0 12px 22px; }
ul.plain li { margin: 6px 0; max-width: 80ch; }

/* ---- pill links ---- */

.soon {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--green);
  color: var(--green-dark);
  background: #ffffff;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.soon:hover { background: var(--green); color: #ffffff; }

/* ---- cards and forms ---- */

.card {
  background: var(--card);
  padding: 34px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 24px 0;
}

.centered-wrapper { max-width: 460px; margin: 0 auto; }

.card h1 { font-size: 28px; margin: 0 0 6px; }
.card .lead { color: var(--ink-soft); margin: 0 0 24px; font-size: 15px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2b3a4e;
  margin-bottom: 7px;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--field);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.form-group input::placeholder { color: #9aa5b3; font-weight: 300; }
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 150, 94, 0.14);
}

.form-group .hint { font-size: 12.5px; font-weight: 300; color: var(--ink-soft); margin-top: 6px; }

.btn {
  display: inline-block;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #08a86b 0%, var(--green) 55%, #008a56 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 150, 94, 0.28), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 150, 94, 0.32); filter: brightness(1.03); }
.btn:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(0, 150, 94, 0.25); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn.block { width: 100%; margin-top: 6px; }
/* <a class="btn"> must look exactly like <button class="btn"> */
a.btn { text-decoration: none; line-height: 48px; text-align: center; }
a.btn.secondary, a.btn.danger { line-height: 45px; }
.btn.secondary { background: #ffffff; color: var(--green-dark); border: 1.5px solid var(--green); box-shadow: none; }
.btn.secondary:hover { background: var(--green-tint); }
.btn.danger { background: #ffffff; color: var(--danger); border: 1.5px solid var(--danger); box-shadow: none; }
.btn.danger:hover { background: #fdf0f0; }

.form-links { margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.form-links a { margin-right: 16px; font-weight: 500; text-decoration: none; }
.form-links a:hover { text-decoration: underline; }

.msg { display: none; margin: 0 0 18px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.msg.show { display: block; }
.msg.error { background: #fdecec; color: #8a1f1f; border: 1px solid #f3c4c4; }
.msg.ok { background: var(--green-tint); color: #0c5c3a; border: 1px solid #bfe6d2; }

/* ---- auth layout: intro panel + form (register, login) ---- */

.auth-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 0;
  max-width: 1040px;
  margin: 8px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--card);
}

.auth-intro {
  background: linear-gradient(160deg, var(--navy-soft) 0%, var(--navy-deep) 70%);
  color: #ffffff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-intro:after {
  /* a faint arc, purely decorative */
  content: "";
  position: absolute;
  right: -120px; bottom: -160px;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.05);
}
.auth-intro .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.auth-intro h2 { display: block; color: #ffffff; border: 0; padding: 0; margin: 0 0 12px; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.auth-intro p { color: rgba(255, 255, 255, 0.82); font-size: 15px; font-weight: 300; margin: 0 0 22px; }
.auth-intro ul { list-style: none; margin: 0; }
.auth-intro li { position: relative; padding-left: 28px; margin: 10px 0; font-size: 15px; color: rgba(255, 255, 255, 0.92); }
.auth-intro li:before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 150, 94, 0.25);
}
.auth-intro li:after {
  content: ""; position: absolute; left: 6px; top: 8px;
  width: 5px; height: 9px; border: solid #ffffff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.auth-layout > * { min-width: 0; }
.auth-layout .card { margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 44px 40px; }

@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; max-width: 520px; }
  .auth-intro { padding: 30px 26px; }
  .auth-intro h2 { font-size: 24px; }
  .auth-intro p { margin-bottom: 14px; }
  .auth-intro li { margin: 6px 0; font-size: 14px; }
  .auth-layout .card { padding: 30px 24px; }
}

/* ---- profile page ---- */

.centered-wrapper.wide { max-width: 720px; }
.card h3.section { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-soft); margin: 30px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.card h3.section:first-of-type { margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row .narrow { max-width: 200px; }
.inline { display: flex; gap: 10px; }
.inline input { flex: 1; min-width: 0; }
.inline .btn { height: 48px; white-space: nowrap; flex: 0 0 auto; }
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--field); resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.form-group textarea::placeholder { color: #9aa5b3; font-weight: 300; }
.form-group textarea:focus { outline: none; border-color: var(--green); background: #ffffff; box-shadow: 0 0 0 4px rgba(0, 150, 94, 0.14); }
.form-group select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b7683 50%), linear-gradient(135deg, #6b7683 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.map { height: 300px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); margin: 0 0 18px; overflow: hidden; background: #e9edf2; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row .narrow { max-width: none; }
  .inline { flex-direction: column; }
  .map { height: 240px; }
}

/* ---- account page ---- */

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; font-size: 15px; margin: 12px 0 24px; }
.kv dt { color: var(--ink-soft); font-weight: 500; }
.kv dd { margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--green-tint); color: #0c5c3a; }
.badge.warn { background: #fff5e0; color: #7a4d00; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- phone ---- */

@media (max-width: 600px) {
  h1 { font-size: 30px; }
  .pitch { font-size: 18px; }
  main { padding: 20px 0; }
  .container { padding: 0 16px; }
  .card { padding: 26px 20px; }
  .site-header nav { gap: 2px 0; font-size: 13px; }
  .site-header nav a { padding: 6px 8px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
  .actions .btn { width: 100%; }
}

/* ---- /dev/ - development log and rendered reference documents ---- */

.brand .devtag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; background: var(--gold); color: var(--navy-deep);
}

.prose-wrap { max-width: 900px; }

.devmeta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.devmeta .commits a { font-family: Consolas, "Courier New", monospace; font-size: 12px; margin-right: 6px; }

.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--green-tint); color: #0c5c3a; margin-right: 4px; }

.request { background: #fff9e6; border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 10px 16px; margin: 12px 0 24px; font-size: 15px; }
.request:empty { display: none; }
.request p { margin: 4px 0; }
.request:before { content: "Request"; display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }

.prose { font-size: 16px; line-height: 1.65; }
.prose h1 { font-size: 34px; margin: 8px 0 16px; }
.prose h2 { display: block; font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
.prose h4 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; }
.prose p, .prose li { max-width: none; }
.prose ul, .prose ol { margin: 8px 0 12px 24px; }
.prose li { margin: 3px 0; }
.prose blockquote { border-left: 4px solid var(--line); color: var(--ink-soft); padding: 4px 16px; margin: 12px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose img { display: block; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }

.prose code { font-family: Consolas, "Courier New", monospace; font-size: 0.9em; background: #eef1f4; padding: 1px 5px; border-radius: 4px; }
.prose pre { background: #1c2836; color: #e6e9ec; padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; margin: 12px 0 18px; font-size: 13.5px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

.prose table { border-collapse: collapse; margin: 12px 0 18px; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.prose th { background: #eef1f4; font-weight: 600; }
.prose tr:nth-child(even) td { background: #f7f8fa; }

.prose .katex-display { overflow-x: auto; padding: 4px 0; }

.source { font-size: 12px; margin-top: 32px; }

.devlist { list-style: none; margin: 8px 0 24px; }
.devlist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.devlist .date { font-family: Consolas, "Courier New", monospace; font-size: 13px; color: var(--ink-soft); margin-right: 10px; }
.devlist a { font-weight: 600; text-decoration: none; }
.devlist a:hover { text-decoration: underline; }
.devlist .summary { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.devlist .tags { margin-top: 4px; }
.devlist.docs li { padding: 6px 0; border: 0; }

/* footer link to windzen.com - reads as text, underlines on hover */
.site-footer .footer-brand { color: inherit; text-decoration: none; }
.site-footer .footer-brand:hover { color: var(--green-dark); text-decoration: underline; }
