/* Nostomic Technologies — shared stylesheet */

:root {
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --accent: #5b2bb0;
  --ink-deep: #1c1133;
  /* Nostomic brand (logo) */
  --brand-lilac: #A78BFA;
  --brand-coral: #FF7A59;
  --brand-deep: #3B2A6B;
  --brand-cream: #FFF6E8;

  /* Sampled from the actual app icons. Do not invent new values here —
     if an icon changes, re-sample it. */
  --loveblob: #6b4ae8;
  --loveblob-soft: #f2efff;
  --loveblob-grad: linear-gradient(135deg, #7d64fb, #f96880);
  --famzolearn: #7a3dcf;
  --famzolearn-soft: #f6f0fd;
  --famzolearn-grad: linear-gradient(135deg, #7a3dcf, #039ca3);
  --famzo: #540ab3;
  --famzo-soft: #f3edfc;
  --famzo-grad: linear-gradient(135deg, #540ab3, #f0697f);

  --radius: 12px;
  --maxw: 1080px;
  --maxw-read: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: 2.4rem; letter-spacing: -.02em; }
h2 { font-size: 1.5rem; margin-top: 2.2em; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; margin-top: 1.8em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(91,43,176,.28); }
a:hover { border-bottom-color: var(--accent); }
strong { color: var(--ink); font-weight: 620; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code { background: var(--bg-soft); padding: .15em .4em; border-radius: 4px; font-size: .9em; }

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

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px); z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 20px;
}
.brand {
  color: var(--ink); border: 0; display: flex; align-items: center; gap: 12px;
}
.brand img { width: auto; height: 44px; border-radius: 0; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 1.5rem; letter-spacing: .01em; color: var(--brand-deep); line-height: 1; }
.brand-rule { height: 1px; background: var(--brand-lilac); }
.brand-tag { font-size: .54rem; font-weight: 620; letter-spacing: .3em; text-transform: uppercase; color: var(--brand-coral); line-height: 1; padding-left: 1px; white-space: nowrap; }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.nav { display: flex; gap: 24px; align-items: center; }
.nav a {
  color: var(--muted); border: 0; font-size: .93rem; font-weight: 520; white-space: nowrap;
}
.nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 72px; position: relative; overflow: hidden;
  background:
    radial-gradient(60ch 46ch at 84% -18%, rgba(125,100,251,.28), transparent 62%),
    radial-gradient(54ch 40ch at 100% 48%, rgba(249,104,128,.26), transparent 60%),
    radial-gradient(52ch 42ch at 62% 118%, rgba(3,156,163,.20), transparent 60%),
    linear-gradient(180deg, #fcfbfe, #ffffff 72%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-visual { display: flex; justify-content: center; }
.hero-phone {
  width: 286px; height: 528px; box-sizing: border-box; position: relative;
  border: 7px solid var(--brand-lilac); border-radius: 54px;
  background: rgba(255,255,255,.6); backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(59,42,107,.16), inset 0 0 0 1px rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
}
.hero-phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--brand-lilac); }
.hero-phone::after  { content: ""; position: absolute; bottom: 20px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 3px; background: var(--brand-lilac); }
.hero-tiles { display: grid; grid-template-columns: 96px 96px; gap: 20px; }
.hero-tiles img { width: 96px; height: 96px; border-radius: 24px; display: block; box-shadow: 0 10px 26px rgba(28,17,51,.14); }
.hero-tiles .sun { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.hero .eyebrow {
  font-size: .78rem; font-weight: 640; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 18px;
}
.hero h1 { max-width: 14ch; margin-bottom: .45em; }
.hero .lede {
  font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin-bottom: 0;
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; margin: 44px 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: var(--bg);
  transition: border-color .18s, transform .18s, box-shadow .18s;
  display: block; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--card-grad, var(--line));
}
a.card:hover {
  border-color: transparent; transform: translateY(-3px);
  box-shadow: 0 14px 34px -14px rgba(15,23,42,.24);
}
.card-loveblob   { --card-grad: var(--loveblob-grad); }
.card-famzolearn { --card-grad: var(--famzolearn-grad); }
.card-famzo      { --card-grad: var(--famzo-grad); }

/* app icon tiles */
.app-icon {
  width: 60px; height: 60px; border-radius: 14px; display: block;
  margin-bottom: 18px; box-shadow: 0 6px 18px -6px rgba(15,23,42,.35);
}
.app-icon-lg {
  width: 88px; height: 88px; border-radius: 20px;
  box-shadow: 0 12px 30px -10px rgba(15,23,42,.4);
}
.icon-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.icon-head .kicker { margin-bottom: 0 !important; }

.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 99px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 .35em; font-size: 1.18rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card-link {
  display: block; margin-top: 16px; font-size: .88rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.005em;
}
.card-loveblob   .card-link { color: var(--loveblob); }
.card-famzolearn .card-link { color: var(--famzolearn); }
.card-link-soon { color: var(--faint) !important; font-weight: 520; }

.tag-loveblob { background: var(--loveblob-soft); color: var(--loveblob); }
.tag-famzolearn { background: var(--famzolearn-soft); color: var(--famzolearn); }
.tag-famzo { background: var(--famzo-soft); color: var(--famzo); }
.tag-soon { background: var(--bg-soft); color: var(--muted); }

/* ---------- app page hero accents ---------- */
.app-hero {
  padding: 72px 0 60px; border-bottom: 1px solid var(--line); position: relative;
}
.app-hero .kicker {
  font-size: .78rem; font-weight: 650; letter-spacing: .09em;
  text-transform: uppercase; margin-bottom: 16px;
}
.app-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px;
}
.app-loveblob .kicker { color: var(--loveblob); }
.app-loveblob {
  background: radial-gradient(64ch 44ch at 88% -14%, rgba(125,100,251,.30), transparent 62%),
              linear-gradient(180deg, var(--loveblob-soft), #fff 78%);
}
.app-loveblob::after { background: var(--loveblob-grad); }

.app-famzolearn .kicker { color: var(--famzolearn); }
.app-famzolearn {
  background: radial-gradient(64ch 44ch at 88% -14%, rgba(122,61,207,.26), transparent 62%),
              linear-gradient(180deg, var(--famzolearn-soft), #fff 78%);
}
.app-famzolearn::after { background: var(--famzolearn-grad); }

.app-famzo .kicker { color: var(--famzo); }
.app-famzo {
  background: radial-gradient(64ch 44ch at 88% -14%, rgba(84,10,179,.22), transparent 62%),
              linear-gradient(180deg, var(--famzo-soft), #fff 78%);
}
.app-famzo::after { background: var(--famzo-grad); }

.feature-list { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); margin: 44px 0; }
.feature {
  padding-left: 16px; border-left: 3px solid var(--line);
  border-image: var(--accent-grad, none) 1;
}
.feature h3 { margin-top: 0; font-size: 1.04rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }
.app-loveblob-body   .feature { border-left-color: #c4b5fd; }
.app-famzolearn-body .feature { border-left-color: #d8b4fe; }
.app-famzo-body      .feature { border-left-color: #c9aef5; }

.placeholder {
  border: 0; border-radius: var(--radius);
  padding: 64px 24px; text-align: center;
  color: #fff; font-size: .92rem; font-weight: 560; margin: 44px 0;
  letter-spacing: .01em; text-shadow: 0 1px 8px rgba(15,23,42,.28);
}
.ph-loveblob   { background: var(--loveblob-grad); }
.ph-famzolearn { background: var(--famzolearn-grad); }
.ph-famzo      { background: var(--famzo-grad); }

/* ---------- three-colour brand strip ---------- */
.strip { display: flex; height: 6px; border-radius: 99px; overflow: hidden; margin: 0 0 8px; }
.strip span { flex: 1; }
.strip .s1 { background: var(--loveblob-grad); }
.strip .s2 { background: var(--famzolearn-grad); }
.strip .s3 { background: var(--famzo-grad); }

/* ---------- colourful band ---------- */
.band {
  background: linear-gradient(135deg, #1c1133, #2e1b57 55%, #1c1133);
  color: #e2e8f0; padding: 64px 0; margin-top: 80px; position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50ch 34ch at 8% 0%, rgba(249,104,128,.34), transparent 60%),
              radial-gradient(48ch 32ch at 52% 110%, rgba(125,100,251,.34), transparent 60%),
              radial-gradient(48ch 32ch at 96% 10%, rgba(3,156,163,.28), transparent 60%);
}
.band .wrap { position: relative; z-index: 1; }
.band h2 { color: #fff; margin-top: 0; }
.band p { color: #cbd5e1; }
.band a { color: #fff; border-bottom-color: rgba(255,255,255,.4); }
.band-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px;
}
.band-stat strong {
  display: block; color: #fff; font-size: 1.6rem; font-weight: 680;
  letter-spacing: -.02em; margin-bottom: 4px;
}
.band-stat span { color: #94a3b8; font-size: .92rem; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 9px;
  font-size: .95rem; font-weight: 580; border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
}
.btn:hover { opacity: .88; border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); }

/* ---------- legal pages ---------- */
.legal { padding: 60px 0 40px; }
.legal h1 { font-size: 2rem; margin-bottom: .3em; }
.legal .meta {
  color: var(--faint); font-size: .9rem; margin-bottom: 2.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-size: 1.22rem; margin-top: 2.6em;
  padding-top: .2em;
}
.legal h2:first-of-type { margin-top: 1.6em; }
.legal ul li, .legal ol li { margin-bottom: .55em; }

.callout {
  border-left: 3px solid var(--accent); background: var(--bg-soft);
  padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 1.8em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--famzolearn); background: var(--famzolearn-soft); }

table.data {
  width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .94rem;
}
table.data th, table.data td {
  text-align: left; padding: 11px 13px; border: 1px solid var(--line); vertical-align: top;
}
table.data th { background: var(--bg-soft); font-weight: 620; color: var(--ink); }

.toc {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 22px 26px; margin: 0 0 2.5rem;
}
.toc p { font-weight: 620; color: var(--ink); margin: 0 0 .6em; font-size: .92rem; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .93rem; }
.toc li { margin-bottom: .3em; }
.toc a { color: var(--muted); border: 0; }
.toc a:hover { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 0; margin-top: 88px;
  padding: 44px 0 56px; font-size: .9rem; color: var(--muted);
  background: var(--bg-soft);
  border-image: linear-gradient(90deg, #f96880, #7d64fb 50%, #039ca3) 1;
  border-top: 3px solid transparent;
}
.band + .site-footer { margin-top: 0; }
.site-footer .brand-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.site-footer .brand-row img { width: auto; height: 26px; border-radius: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px;
}
.footer-grid h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--faint); font-weight: 640; margin-bottom: .9em;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5em; }
.footer-grid a { color: var(--muted); border: 0; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--faint); font-size: .85rem;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-phone { width: 224px; height: 412px; border-width: 6px; border-radius: 44px; }
  .hero-tiles { grid-template-columns: 72px 72px; gap: 16px; }
  .hero-tiles img, .hero-tiles .sun { width: 72px; height: 72px; border-radius: 18px; }
  .hero-tiles .sun svg { width: 46px; height: 46px; }
  .grid-3, .grid-2, .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .band-stats { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  h1 { font-size: 1.85rem; }
  .hero { padding: 56px 0 40px; }
  .brand-tag { display: none; }
  .brand-rule { display: none; }
  .brand img { height: 36px; }
  .site-header .wrap { height: 64px; }
  .icon-head { gap: 14px; }
  .app-icon-lg { width: 68px; height: 68px; border-radius: 16px; }
  .band { padding: 48px 0; }
  .hero .lede { font-size: 1.06rem; }
  .nav { gap: 16px; }
  .nav a { font-size: .88rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
