/* Shared styles for morphix.si app pages and /privacy/ */
@font-face { font-family: "Neo-Sans-Pro"; src: url(../fonts/Neo-Sans-Pro-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Neo-Sans-Pro"; src: url(../fonts/Neo-Sans-Pro.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neo-Sans-Pro"; src: url(../fonts/Neo-Sans-Pro-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #333; font-family: "Neo-Sans-Pro", "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: #0e76bc; text-decoration: none; }
a:hover { color: #0a5a8f; text-decoration: underline; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: #373f4d; }
strong { font-weight: 700; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.site-header .logo img { width: 80px; height: auto; display: block; }
.badge { display: block; }
.badge img { display: block; width: auto; }
.badge-sm { padding: 10px 0; }
.badge-sm img { height: 40px; }
.badge-lg { padding: 14px; }
.badge-lg img { height: 56px; }

/* Hero */
.hero { max-width: 880px; margin: 0 auto; padding: 72px 24px 56px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-icon { width: 200px; height: 200px; display: block; margin-bottom: 4px; }
.hero h1 { font-size: 64px; line-height: 1.05; font-weight: 300; }
.app-name { font-size: 22px; font-weight: 700; color: #373f4d; letter-spacing: .02em; margin-top: -6px; }
.tagline { font-size: 21px; line-height: 1.45; color: #1f5f6b; font-weight: 400; max-width: 600px; }
.lead { font-size: 21px; line-height: 1.5; color: #4a525a; max-width: 600px; }
.meta { font-size: 15px; color: #5f676c; }

/* Mock windows */
.stage { max-width: 1000px; margin: 0 auto; padding: 0 24px 120px; }
.stage-bg { background: #c9e6d6; border-radius: 28px; padding: 56px 40px 0; overflow: hidden; }
.win { background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.win-open { border-bottom: 0; border-radius: 12px 12px 0 0; }
.stage .win { max-width: 780px; margin: 0 auto; box-shadow: 0 24px 60px rgba(30,45,40,.22); }
.win-bar { height: 36px; background: #ececec; border-bottom: 1px solid #d6d6d6; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.win-bar i:nth-child(1) { background: #ff5f57; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-title { flex: 1; text-align: center; margin-right: 60px; font: 600 13px -apple-system, "Helvetica Neue", sans-serif; color: #4a4a4a; }
.win pre { margin: 0; padding: 18px 20px; font: 14px/1.6 Menlo, Consolas, monospace; color: #1d1d1f; white-space: pre; overflow: hidden; text-align: left; }
.win-status { height: 30px; background: #f5f5f5; border-top: 1px solid #dedede; display: flex; align-items: center; justify-content: flex-end; font: 12px -apple-system, "Helvetica Neue", sans-serif; color: #4a4a4a; overflow: hidden; white-space: nowrap; }
.win-status span { padding: 0 14px; border-left: 1px solid #dedede; }
.win.dark { background: #1e1e1e; border-color: rgba(255,255,255,.1); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.win.dark .win-bar { background: #323232; border-bottom-color: #111; }
.win.dark pre { color: #e2e2e2; }
.wrap-text pre { white-space: pre-wrap; }

/* Feature blocks */
.feature { padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.feature-head { max-width: 680px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #0e76bc; }
.feature-head h2 { font-size: 40px; line-height: 1.15; font-weight: 700; }
.feature-head p { font-size: 18px; color: #4a525a; }
.grid { width: 100%; display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.panel { border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.panel-mint { background: #eef8f9; }
.panel-grey { background: #f4f6f8; }
.panel-dark { background: #2b3038; }
.panel figcaption { font-size: 15px; color: #3c5257; text-align: center; }
.menu { width: 220px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 6px; font: 13px -apple-system, "Helvetica Neue", sans-serif; color: #1d1d1f; }
.menu div { padding: 5px 10px 5px 26px; }
.menu .on { padding-left: 10px; background: #0a64d6; color: #fff; border-radius: 5px; }
.menu .on::before { content: "✓"; display: inline-block; width: 16px; }
.alert { width: 260px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 18px; font: 13px -apple-system, "Helvetica Neue", sans-serif; color: #1d1d1f; display: flex; flex-direction: column; gap: 10px; }
.alert small { color: #555; font-size: 12px; line-height: 1.4; }
.alert-actions { display: flex; gap: 8px; justify-content: flex-end; }
.alert-actions span { padding: 4px 12px; border-radius: 6px; background: #e8e8e8; }
.alert-actions .primary { background: #0a64d6; color: #fff; }
.tabs-win { width: 100%; max-width: 300px; border-radius: 14px; }
.tabs-win .win-bar { height: auto; background: #fff; border-bottom: 0; gap: 6px; padding: 9px 10px 6px; }
.tabs-win .win-bar i { width: 9px; height: 9px; }
.tabs-win .win-bar b { margin-left: 8px; font: 700 12px -apple-system, "Helvetica Neue", sans-serif; color: #3a3a3c; }
.tabrow { display: flex; align-items: center; gap: 5px; padding: 0 8px 7px; border-bottom: 1px solid #ececec; }
.tabbar { flex: 1; display: flex; background: #e6e6e6; border-radius: 999px; padding: 2px; font: 10px -apple-system, "Helvetica Neue", sans-serif; color: #7a7a7e; }
.tabbar span { flex: 1; text-align: center; padding: 3px 4px; border-radius: 999px; }
.tabbar .on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tab-add { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid #dcdcdc; box-shadow: 0 1px 2px rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; font: 13px/1 -apple-system, sans-serif; color: #3a3a3c; }
.panel .win.tabs-win pre { font-size: 11px; height: 74px; padding: 10px 12px; }
.split { width: 100%; display: flex; flex-wrap: wrap; gap: 24px; }
.split-main { flex: 999 1 520px; min-width: 0; background: #f4f6f8; border-radius: 20px; padding: 36px 32px 0; overflow: hidden; }
.split-main pre { font-size: 13px; height: 240px; }
.split-side { flex: 1 1 280px; min-width: 0; background: #f4f6f8; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.keys div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border-radius: 10px; font-size: 15px; }
.keys kbd { font-family: Menlo, monospace; color: #5f676c; }
.sel { background: #b3d7ff; }
.panel .win { width: 100%; max-width: 420px; align-self: center; }
.panel .win pre { font-size: 13px; height: 170px; }

/* Trust */
.trust { background: #f4f6f8; }
.trust .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.trust h2 { font-size: 36px; line-height: 1.2; font-weight: 300; text-align: center; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.point { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.point h3 { font-size: 18px; }
.point p, .trust-note { font-size: 15px; color: #4a525a; }
.trust-note { font-size: 16px; text-align: center; }

/* Footer */
.site-footer { background: #373f4d; color: #c3c9cd; font-size: 14px; }
.site-footer .wrap, .site-footer .wrap-narrow { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer-brand img { width: 72px; height: 35px; display: block; filter: brightness(0) invert(1); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: #e3e7ea; padding: 10px 0; }

/* Legal page */
.legal { padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; line-height: 1.65; }
.legal h1 { font-size: 48px; line-height: 1.1; font-weight: 700; }
.legal-head { display: flex; flex-direction: column; gap: 12px; }
.summary { background: #eef8f9; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.summary h2 { font-size: 22px; }
.legal section { display: flex; flex-direction: column; gap: 10px; }
.legal section h2 { font-size: 26px; }
.legal section h3 { font-size: 18px; margin-top: 12px; }
.legal .contact { border-top: 1px solid #e1e5e8; padding-top: 32px; }
.legal code { font-family: Menlo, Consolas, monospace; font-size: .9em; background: #f4f6f8; padding: 1px 5px; border-radius: 4px; }

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 44px; }
  .hero-icon { width: 160px; height: 160px; }
  .feature-head h2 { font-size: 30px; }
  .stage-bg { padding: 32px 16px 0; border-radius: 20px; }
  .win pre { font-size: 12px; }
  .win-status span:nth-child(-n+3) { display: none; }
  .legal h1 { font-size: 38px; }
}
