/* ==========================================================================
   FLYWYL — design system
   Light background · greyscale typography · purple brand accent (#643DC3)
   ========================================================================== */

:root {
  --purple:        #643DC3;
  --purple-dark:   #4f2ea3;
  --purple-tint:   #f3f0fb;
  --purple-tint-2: #ece7f9;

  --bg:            #ffffff;
  --bg-soft:       #faf9f7;
  --bg-softer:     #f5f4f1;

  --ink:           #1f1f22;  /* near-black grey, headings */
  --ink-2:         #3a3a3e;  /* primary body */
  --grey:          #5c5c63;  /* secondary body */
  --grey-2:        #8a8a91;  /* muted / captions */
  --grey-3:        #b6b6bc;  /* faint */
  --line:          #e7e6e3;  /* hairlines */
  --line-2:        #efeeeb;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,31,34,.04), 0 8px 28px rgba(31,31,34,.06);
  --shadow-lift: 0 2px 6px rgba(31,31,34,.06), 0 18px 50px rgba(80,46,163,.10);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 480; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.08rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; color: var(--ink); }

p { margin: 0 0 1.15em; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

.lead { font-size: 1.28rem; line-height: 1.6; color: var(--grey); }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 650;
  letter-spacing: .16em; text-transform: uppercase; color: var(--purple);
  margin: 0 0 1rem;
}
.muted { color: var(--grey-2); }
.serif-quote { font-family: var(--serif); font-style: italic; color: var(--grey); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; display: block; }
.brand .wordmark { font-family: var(--serif); font-size: 1.42rem; font-weight: 500; color: var(--ink); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: .94rem; font-weight: 500; color: var(--grey);
  letter-spacing: .01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { color: var(--purple); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--grey-3); color: var(--ink); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 76px; }
.hero .wrap { position: relative; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 60ch; margin-top: 1.4rem; }
.hero-cta { display: flex; gap: 14px; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-quote {
  margin-top: 3.2rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: 1.16rem; color: var(--grey);
  max-width: 62ch;
}
.hero-quote span { display: block; font-style: normal; font-family: var(--sans); font-size: .85rem; letter-spacing: .04em; color: var(--grey-2); margin-top: .6rem; }

/* ---------- Pillar cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.pillar .num {
  font-family: var(--serif); font-size: .95rem; color: var(--purple);
  border: 1px solid var(--purple-tint-2); background: var(--purple-tint);
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
  margin-bottom: 22px;
}
.pillar h3 { margin-bottom: .5rem; }
.pillar p { color: var(--grey); font-size: 1rem; flex: 1; }
.pillar .more { font-size: .94rem; font-weight: 600; color: var(--purple); margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; }
.pillar:hover .more .arrow { transform: translateX(3px); }

/* ---------- Generic content blocks ---------- */
.kicker-head { max-width: 64ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.prose p { color: var(--ink-2); }
.prose h3 { margin-top: 2.2rem; }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin: 8px 0; }
.stat { }
.stat .figure { font-family: var(--serif); font-size: 2.5rem; color: var(--purple); line-height: 1; }
.stat .label { font-size: .92rem; color: var(--grey-2); margin-top: 8px; }

.feature-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: 1.1rem; color: var(--ink-2); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border-radius: 3px; background: var(--purple); transform: rotate(45deg);
}
.feature-list li strong { color: var(--ink); }

.callout {
  background: var(--purple-tint); border: 1px solid var(--purple-tint-2);
  border-radius: var(--radius); padding: 28px 30px; margin: 2rem 0;
}
.callout p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.18rem; color: var(--ink-2); }
.callout span { display:block; font-family: var(--sans); font-style: normal; font-size:.85rem; letter-spacing:.04em; color: var(--grey-2); margin-top:.7rem; }

/* ---------- Owned-business example ---------- */
.owned {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
}
.owned .label { font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.owned h3 { font-size: 1.9rem; margin-bottom: .5rem; }
.owned p { color: var(--grey); margin-bottom: 1.2rem; }
.owned .url { font-size: .92rem; color: var(--grey-2); }
.owned-facts { background: var(--purple-tint); border: 1px solid var(--purple-tint-2); border-radius: 12px; padding: 26px 28px; }
.owned-facts .row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--purple-tint-2); }
.owned-facts .row:last-child { border-bottom: 0; }
.owned-facts .k { color: var(--grey); font-size: .92rem; }
.owned-facts .v { font-family: var(--serif); color: var(--ink); font-size: 1rem; text-align: right; }
@media (max-width: 880px) { .owned { grid-template-columns: 1fr; gap: 30px; padding: 30px; } }

/* ---------- Page header band ---------- */
.page-head { padding: 72px 0 28px; background: var(--bg-soft); border-bottom: 1px solid var(--line-2); }
.page-head .crumb { font-size: .85rem; color: var(--grey-2); margin-bottom: 1rem; }
.page-head .crumb a { color: var(--grey); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 1rem; max-width: 60ch; }

/* ---------- Portfolio table ---------- */
.holdings { width: 100%; border-collapse: collapse; margin-top: 8px; }
.holdings thead th {
  text-align: left; font-family: var(--sans); font-size: .76rem; font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase; color: var(--grey-2);
  padding: 0 18px 14px; border-bottom: 1px solid var(--line);
}
.holdings tbody tr { border-bottom: 1px solid var(--line-2); transition: background .15s ease; }
.holdings tbody tr:hover { background: var(--bg-soft); }
.holdings td { padding: 18px; vertical-align: middle; }
.holdings .tkr { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); font-weight: 500; }
.holdings .co { font-size: .9rem; color: var(--grey-2); margin-top: 2px; }
.holdings .thesis { color: var(--grey); font-size: .97rem; max-width: 46ch; }
.holdings .view { white-space: nowrap; font-weight: 600; font-size: .9rem; }
.holdings .view .arrow { transition: transform .18s ease; display:inline-block; }
.holdings tbody tr:hover .view .arrow { transform: translateX(3px); }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.tag-buy   { background: #e9f5ee; color: #1f7a44; }
.tag-hold  { background: #fbf3e0; color: #9a6a12; }
.tag-watch { background: var(--purple-tint); color: var(--purple-dark); }
.tag-core  { background: #eef0f4; color: #44505f; }

/* ---------- Report page ---------- */
.report { padding: 56px 0 96px; }
.report .wrap { max-width: 800px; }
.report-meta { display: flex; flex-wrap: wrap; gap: 26px; align-items: baseline; margin: 4px 0 28px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.report-meta .m { }
.report-meta .m .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-2); }
.report-meta .m .v { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.report h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.report .ticker-line { font-family: var(--sans); font-weight: 600; letter-spacing: .02em; color: var(--grey-2); font-size: 1rem; margin-bottom: .4rem; }
.report h2 { margin-top: 2.4rem; font-size: 1.55rem; }
.report h3 { margin-top: 1.8rem; }
.report p, .report li { color: var(--ink-2); }
.report ul { padding-left: 0; list-style: none; }
.report ul li { position: relative; padding-left: 26px; margin-bottom: .7rem; }
.report ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--purple); border-radius: 2px; transform: rotate(45deg); }
.report blockquote { margin: 1.8rem 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--purple); font-family: var(--serif); font-style: italic; color: var(--grey); }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin: 1.6rem 0 .4rem; }
.metric { background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 12px; padding: 18px; }
.metric .k { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-2); }
.metric .v { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-top: 4px; }
.rec-box { background: var(--purple-tint); border: 1px solid var(--purple-tint-2); border-radius: var(--radius); padding: 26px 28px; margin: 2rem 0; }
.rec-box .head { display:flex; align-items:center; gap:14px; margin-bottom: .6rem; }
.rec-box h3 { margin: 0; }
.back-link { font-size: .92rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.disclaimer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--grey-2); }

/* ---------- Rich research report (e.g. ADBE) ---------- */
.report.report-wide .wrap { max-width: 940px; }
.metric .sub { font-size: .78rem; color: var(--grey-2); margin-top: 5px; line-height: 1.4; }
.metric.pos   { border-left: 3px solid #1f7a44; }
.metric.neg   { border-left: 3px solid #b3261e; }
.metric.amber { border-left: 3px solid #c79a3a; }
.metric.brand { border-left: 3px solid var(--purple); }
.metric .v.purple { color: var(--purple); }
.metric .v.pos { color: #1f7a44; }
.metric .v.neg { color: #b3261e; }

.val-pos    { color: #1f7a44; font-weight: 600; }
.val-neg    { color: #b3261e; font-weight: 600; }
.val-amber  { color: #9a6a12; font-weight: 600; }
.val-purple { color: var(--purple); font-weight: 700; }

.rpt-flash {
  background: #fbf3e0; border: 1px solid #f0e2c0; border-left: 3px solid #c79a3a;
  border-radius: 10px; padding: 14px 18px; font-size: .92rem; color: var(--grey);
  margin: 4px 0 26px; line-height: 1.6;
}
.rpt-flash strong { color: var(--ink); }

.rpt-sec { margin-top: 2.8rem; }
.rpt-sec-head {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px; padding-bottom: 11px; border-bottom: 1px solid var(--line);
}
.rpt-sec-head .n {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  background: var(--purple-tint); color: var(--purple); border: 1px solid var(--purple-tint-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: .95rem; font-weight: 600;
}
.rpt-sec-head h2 { margin: 0; font-size: 1.4rem; }

.rpt-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 6px 0 10px; }
.rpt-table th {
  text-align: left; font-family: var(--sans); font-size: .72rem; font-weight: 650;
  letter-spacing: .1em; text-transform: uppercase; color: var(--grey-2);
  padding: 0 12px 12px; border-bottom: 1px solid var(--line);
}
.rpt-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
.rpt-table tbody tr:hover td { background: var(--bg-soft); }
.rpt-table td.b { font-weight: 650; color: var(--ink); }

.rpt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 4px 0; }
.rpt-ind {
  display: flex; align-items: center; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--line-2); font-size: .94rem;
}
.rpt-ind .nm { color: var(--grey); }
.rpt-ind .vl { font-weight: 600; color: var(--ink); margin-left: auto; }
.rpt-ind .sg { font-size: .7rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; }
.sg-b { background: #e9f5ee; color: #1f7a44; }
.sg-s { background: #fbecea; color: #b3261e; }
.sg-n { background: #fbf3e0; color: #9a6a12; }

.signal-wrap { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0; }
.pill { display: inline-block; font-size: .82rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; }
.pill-bull { background: #e9f5ee; color: #1f7a44; }
.pill-bear { background: #fbecea; color: #b3261e; }
.pill-neutral { background: #fbf3e0; color: #9a6a12; }

.conv { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.conv .lab { font-size: .85rem; color: var(--grey-2); white-space: nowrap; }
.conv .bar { flex: 1; height: 10px; background: var(--bg-softer); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.conv .fill { height: 100%; background: linear-gradient(90deg, var(--purple), #9a7be6); }
.conv .score { font-family: var(--serif); font-size: 1.3rem; color: var(--purple); font-weight: 600; white-space: nowrap; }

.rec-box .verdict { font-family: var(--serif); font-size: 1.95rem; color: var(--ink); margin: 2px 0 8px; }

.rpt-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 14px; }
.opt-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.opt-card .tier { font-size: .74rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); padding-bottom: 9px; border-bottom: 1px solid var(--line); margin-bottom: 11px; }
.opt-card .nm { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin-bottom: 9px; }
.opt-card p { font-size: .87rem; color: var(--grey); margin: 0 0 6px; line-height: 1.55; }
.opt-card p strong { color: var(--ink); }

@media (max-width: 880px) {
  .rpt-opts { grid-template-columns: 1fr; }
  .rpt-grid2 { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line-2); padding: 56px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand img { height: 26px; }
.footer .tag-line { color: var(--grey-2); font-size: .95rem; max-width: 34ch; margin-top: 14px; }
.footer-nav { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-2); margin: 0 0 14px; font-weight: 650; }
.footer-col a { display: block; color: var(--grey); font-size: .95rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display:flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--grey-2); font-size: .84rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  body { font-size: 17px; }
  .pillars { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .stat-row { grid-template-columns: 1fr; gap: 22px; }
  .nav-links { gap: 18px; }
  .nav-links a.hide-sm { display: none; }
  section { padding: 60px 0; }
  .holdings .thesis { display: none; }
}
@media (max-width: 560px) {
  .brand .wordmark { font-size: 1.2rem; }
  .holdings .co { display:none; }
}
