/* ==========================================================================
   Aegis Studio — Blog Post
   Editorial studio aesthetic: warm paper ground, Zodiak serif headlines,
   Switzer body, Space Mono technical labels, single cobalt ink accent.
   ========================================================================== */

:root {
  --paper:      #EFEBE0;
  --paper-card: #F6F2E9;
  --ink:        #1A1712;
  --ink-body:   #2B2822;
  --ink-soft:   #37332B;
  --muted:      #6A655B;
  --muted-2:    #8C857A;
  --hairline:   rgba(26, 23, 18, 0.18);
  --hairline-2: rgba(26, 23, 18, 0.14);
  --cobalt:     #2436CE;

  --serif: 'Zodiak', Georgia, 'Times New Roman', serif;
  --sans:  'Switzer', system-ui, -apple-system, sans-serif;
  --mono:  'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  --maxw-site:    1180px;
  --maxw-header:  760px;
  --maxw-body:    680px;
  --maxw-figure:  980px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cobalt); color: var(--paper); }

a { color: inherit; }

@keyframes riseUp { from { opacity: 1; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* ==========================================================================
   Site header (sticky)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: var(--sans);
}

.site-header__bar {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline-2);
}

/* Scroll shadow — toggled via .is-scrolled on .site-header */
.site-header__shadow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: none;
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled .site-header__shadow {
  box-shadow: 0 16px 32px -28px rgba(26, 23, 18, 0.6);
}

.site-header__inner {
  position: relative;
  max-width: var(--maxw-site);
  margin: 0 auto;
  padding: 17px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__logo { display: flex; align-items: center; text-decoration: none; }
.site-header__logo img { height: 34px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav__link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav__link:hover { color: var(--cobalt); }

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--ink);
  padding: 9px 16px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.site-nav__cta:hover { background: var(--ink); color: var(--paper); }

/* Hamburger (mobile only) */
.site-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(26, 23, 18, 0.22);
  border-radius: 2px;
  cursor: pointer;
  padding: 0 11px;
}
.site-header__hamburger span {
  display: block;
  width: 20px;
  height: 1.7px;
  background: var(--ink);
}
.site-header__hamburger span + span { margin-top: 5px; }

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline-2);
  box-shadow: 0 18px 34px -24px rgba(26, 23, 18, 0.5);
}
.site-header.is-menu-open .mobile-menu { display: block; }

.mobile-menu__inner {
  max-width: var(--maxw-site);
  margin: 0 auto;
  padding: 6px 32px 18px;
  display: flex;
  flex-direction: column;
}
.mobile-menu__link {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 0;
  border-bottom: 1px solid rgba(26, 23, 18, 0.1);
}
.mobile-menu__cta {
  margin-top: 14px;
  text-align: center;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 13px;
  border-radius: 2px;
}

/* Responsive switch: desktop nav above 880px, hamburger below */
@media (max-width: 880px) {
  .site-nav { display: none; }
  .site-header__hamburger { display: flex; }
}

/* ==========================================================================
   Page wrapper
   ========================================================================== */

.page {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}

/* ==========================================================================
   Article header
   ========================================================================== */

.article-header {
  padding: clamp(40px, 6vw, 72px) 32px clamp(28px, 4vw, 44px);
}
.article-header__inner {
  max-width: var(--maxw-header);
  margin: 0 auto;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: clamp(30px, 4vw, 48px);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cobalt); }
.breadcrumb__sep { color: #B8B2A4; }
.breadcrumb__current { color: var(--cobalt); }

.article-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 26px;
  color: var(--ink);
  text-wrap: balance;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.article-meta__author {
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 23, 18, 0.26);
  font-family: var(--serif);
  color: var(--ink);
}
.avatar--sm { width: 38px; height: 38px; font-size: 14px; }
.avatar--lg { width: 58px; height: 58px; font-size: 1.2rem; background: var(--paper); flex-shrink: 0; }
.article-meta__name { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.article-meta__detail {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   Cover figure
   ========================================================================== */

.cover {
  padding: 0 32px clamp(36px, 5vw, 56px);
}
.cover__figure {
  max-width: var(--maxw-figure);
  margin: 0 auto;
}
.cover__art {
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, #1A1712, #2c2a8a);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -22deg,
    transparent,
    transparent 58px,
    rgba(239, 235, 224, 0.08) 58px,
    rgba(239, 235, 224, 0.08) 116px
  );
}
.cover__art svg { position: relative; }
.cover__caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 12px;
}

/* ==========================================================================
   Article body
   ========================================================================== */

.article-body {
  padding: 0 32px clamp(52px, 7vw, 88px);
}
.article-body__inner {
  max-width: var(--maxw-body);
  margin: 0 auto;
}

.article-body p {
  font-size: 18px;
  line-height: 1.78;
  color: var(--ink-body);
  margin: 0 0 26px;
}

.dropcap {
  float: left;
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 0.82;
  padding: 6px 12px 0 0;
  color: var(--cobalt);
}

.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
  margin: clamp(36px, 4vw, 52px) 0 18px;
  color: var(--ink);
}

.pullquote {
  margin: clamp(34px, 4vw, 46px) 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--cobalt);
}
.pullquote p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.32;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}

.numbered-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  border-top: 1px solid rgba(26, 23, 18, 0.16);
}
.numbered-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(26, 23, 18, 0.16);
}
.numbered-list__index {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cobalt);
  flex-shrink: 0;
}
.numbered-list__text {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-body);
}
.numbered-list__text strong { color: var(--ink); font-weight: 600; }

.article-body a.inline-link {
  color: var(--cobalt);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(36, 54, 206, 0.4);
}
.article-body a.inline-link:hover { border-bottom-color: var(--cobalt); }

/* ==========================================================================
   Author card
   ========================================================================== */

.author {
  padding: 0 32px clamp(48px, 6vw, 80px);
}
.author__card {
  max-width: var(--maxw-body);
  margin: 0 auto;
  border: 1px solid rgba(26, 23, 18, 0.2);
  background: var(--paper-card);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.author__body { flex: 1; min-width: 200px; }
.author__name { font-weight: 600; font-size: 15.5px; color: var(--ink); margin-bottom: 3px; }
.author__bio { font-size: 14px; color: #4A4640; line-height: 1.55; }
.author__link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cobalt);
  text-decoration: none;
  white-space: nowrap;
}
.author__link:hover { text-decoration: underline; }

/* ==========================================================================
   More from the blog
   ========================================================================== */

.more {
  border-top: 1px solid rgba(26, 23, 18, 0.16);
  padding: clamp(48px, 6vw, 80px) 32px;
}
.more__inner { max-width: var(--maxw-site); margin: 0 auto; }
.more__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: clamp(22px, 3vw, 34px);
}
.more__list { border-top: 1px solid var(--hairline); }

.more-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  transition: padding 0.25s;
}
.more-item:hover { padding-left: 10px; }
.more-item__date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  width: 96px;
  flex-shrink: 0;
}
.more-item__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
  width: 120px;
  flex-shrink: 0;
}
.more-item__title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--ink);
  flex: 1;
  min-width: 240px;
  line-height: 1.2;
}
.more-item__arrow { color: var(--cobalt); font-size: 20px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  padding: clamp(56px, 7vw, 84px) 32px 40px;
}
.site-footer__inner { max-width: var(--maxw-site); margin: 0 auto; }

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 44px 28px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(239, 235, 224, 0.16);
}

.site-footer__brand { flex: 1 1 280px; min-width: 240px; max-width: 360px; }
.site-footer__lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}
.site-footer__wordmark {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.22em;
  color: var(--paper);
}
.site-footer__tagline {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  color: #D8D2C4;
  margin: 0 0 18px;
  max-width: 300px;
}
.site-footer__profile {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #9AA8F2;
  text-decoration: none;
}
.site-footer__profile:hover { text-decoration: underline; }

.site-footer__cols {
  flex: 2 1 440px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  justify-content: space-between;
}
.footer-col__heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col__links a {
  font-size: 15px;
  color: #CFC9BB;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col__links a:hover { color: #fff; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
}
.site-footer__copy {
  font-family: var(--mono);
  font-size: 12px;
  color: #7E776B;
}
.site-footer__legal { display: flex; gap: 24px; }
.site-footer__legal a {
  font-size: 13px;
  color: #7E776B;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer__legal a:hover { color: #CFC9BB; }

/* ==========================================================================
   Shared section scaffolding (home + app pages)
   ========================================================================== */

.section { padding: clamp(64px, 8vw, 110px) 32px; }
.section--hairline { border-top: 1px solid rgba(26, 23, 18, 0.16); }
.section__inner { max-width: var(--maxw-site); margin: 0 auto; }

/* Tinted section grounds */
.ground--blush  { background: #F0E4DB; }
.ground--lilac  { background: #E9EAF7; }
.ground--ink    { background: var(--ink); color: var(--paper); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 18px;
}
.eyebrow--terracotta { color: #C24A2C; }
.eyebrow--gold       { color: #E0B23F; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.section-title .accent { color: var(--cobalt); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(36px, 4vw, 54px);
}
.section-head__lead { max-width: 560px; }
.section-head__note { font-size: 16px; color: #4A4640; max-width: 320px; line-height: 1.6; margin: 0; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero { padding: clamp(46px, 7vw, 78px) 32px clamp(56px, 8vw, 96px); }
.hero__grid {
  max-width: var(--maxw-site);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 26px;
  color: var(--ink);
  text-wrap: balance;
  animation: riseUp 0.75s 0.08s both;
}
.hero__title .accent { color: var(--cobalt); }
.hero__lead {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: #4A4640;
  max-width: 480px;
  margin: 0 0 34px;
  animation: riseUp 0.75s 0.18s both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  animation: riseUp 0.75s 0.26s both;
}

/* Solid ink button */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 2px;
  transition: background 0.25s;
}
.btn-solid:hover { background: var(--cobalt); }

/* Underlined cobalt text link */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1.5px solid var(--cobalt);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.2s;
}
.link-underline:hover { color: var(--cobalt); }

.link-mono {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
}
.link-mono:hover { color: var(--cobalt); }

/* Featured app card */
.featured {
  border: 1px solid rgba(36, 54, 206, 0.28);
  background: #E9EAF7;
  padding: 26px;
  animation: riseUp 0.8s 0.34s both;
}
.featured__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.featured__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5A5F8C;
}
.status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: #1E7A45;
}
.status-live__dot { width: 6px; height: 6px; border-radius: 50%; background: #22A95B; display: inline-block; }

.featured__app { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.app-icon { border-radius: 13px; object-fit: cover; flex-shrink: 0; }
.featured__app .app-icon { width: 58px; height: 58px; box-shadow: 0 10px 22px -12px rgba(36, 54, 206, 0.4); }
.featured__name { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.featured__sub { font-size: 13.5px; color: #5A5F8C; margin-top: 3px; }
.featured__desc { font-size: 14.5px; line-height: 1.6; color: #454360; margin: 0 0 20px; }
.featured__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.featured__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Product thumbnail with overlay marks */
.thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #d8d2c6;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Higher specificity than `.thumb img` so the badge keeps its own size
   instead of being stretched to fill the tile with object-fit:cover. */
.thumb img.thumb__badge {
  position: absolute;
  z-index: 2;
  width: 57%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.watermark-tile {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22150%22%20height=%22100%22%3E%3Ctext%20x=%2276%22%20y=%2255%22%20font-family=%22Georgia,serif%22%20font-size=%2219%22%20font-weight=%22bold%22%20fill=%22%23000000%22%20fill-opacity=%220.18%22%20text-anchor=%22middle%22%20transform=%22rotate%28-22%2075%2050%29%22%3EAEGIS%3C/text%3E%3Ctext%20x=%2275%22%20y=%2254%22%20font-family=%22Georgia,serif%22%20font-size=%2219%22%20font-weight=%22bold%22%20fill=%22%23ffffff%22%20fill-opacity=%220.55%22%20text-anchor=%22middle%22%20transform=%22rotate%28-22%2075%2050%29%22%3EAEGIS%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 118px 78px;
  background-position: -30px 0;
  pointer-events: none;
}

/* ==========================================================================
   Apps list (home)
   ========================================================================== */

.apps-list { border-top: 1px solid var(--hairline); }
.app-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
}
.app-row__num {
  font-family: var(--mono);
  font-size: 13px;
  color: #9A958B;
  padding-top: 6px;
  width: 34px;
  flex-shrink: 0;
}
.app-row__icon { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.app-row__body { flex: 1; min-width: 240px; }
.app-row__head { display: flex; align-items: center; gap: 11px; margin-bottom: 7px; }
.app-row__title { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0; color: var(--ink); }
.app-row__desc { font-size: 15.5px; line-height: 1.6; color: #4A4640; margin: 0; max-width: 560px; }
.app-row__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding-top: 4px;
}
.badge-live {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1E7A45;
  border: 1px solid rgba(34, 169, 91, 0.45);
  padding: 3px 8px;
  border-radius: 2px;
}

/* ==========================================================================
   Colorful feature cards (Why Aegis / Features)
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 278px), 1fr));
  gap: 18px;
}
.feature-card {
  border: 1px solid rgba(26, 23, 18, 0.05);
  border-radius: 18px;
  padding: 30px 28px;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s;
}
.feature-card:hover { transform: translateY(-7px); }
.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floaty 4.6s ease-in-out infinite;
  margin-bottom: 20px;
}
.feature-card__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0 0 9px;
  color: var(--ink);
}
.feature-card__text { font-size: 14.5px; line-height: 1.6; color: #54504A; margin: 0; }

/* Color themes: card gradient ground, icon gradient, hover glow */
.theme-amber  { background: linear-gradient(150deg, #FBF3E4, #F6E7D2); }
.theme-amber:hover  { box-shadow: 0 24px 44px -26px rgba(224, 130, 43, 0.85); }
.theme-amber  .feature-card__icon { background: linear-gradient(140deg, #F0A14A, #E0822B); box-shadow: 0 10px 22px -10px rgba(224, 130, 43, 0.8); }

.theme-cobalt { background: linear-gradient(150deg, #EAEDFB, #DCE2F8); }
.theme-cobalt:hover { box-shadow: 0 24px 44px -26px rgba(36, 54, 206, 0.7); }
.theme-cobalt .feature-card__icon { background: linear-gradient(140deg, #5566E8, #2436CE); box-shadow: 0 10px 22px -10px rgba(36, 54, 206, 0.7); }

.theme-green  { background: linear-gradient(150deg, #E6F3EB, #D7EDDF); }
.theme-green:hover  { box-shadow: 0 24px 44px -26px rgba(31, 138, 76, 0.7); }
.theme-green  .feature-card__icon { background: linear-gradient(140deg, #3FB06A, #1F8A4C); box-shadow: 0 10px 22px -10px rgba(31, 138, 76, 0.7); }

.theme-red    { background: linear-gradient(150deg, #FBECEA, #F7DEDA); }
.theme-red:hover    { box-shadow: 0 24px 44px -26px rgba(194, 74, 44, 0.7); }
.theme-red    .feature-card__icon { background: linear-gradient(140deg, #E0654A, #C24A2C); box-shadow: 0 10px 22px -10px rgba(194, 74, 44, 0.7); }

.theme-purple { background: linear-gradient(150deg, #F0ECFB, #E5DCF7); }
.theme-purple:hover { box-shadow: 0 24px 44px -26px rgba(106, 79, 201, 0.7); }
.theme-purple .feature-card__icon { background: linear-gradient(140deg, #8E6CE8, #6A4FC9); box-shadow: 0 10px 22px -10px rgba(106, 79, 201, 0.7); }

.theme-gold   { background: linear-gradient(150deg, #FBF1E0, #F6E6CB); }
.theme-gold:hover   { box-shadow: 0 24px 44px -26px rgba(201, 138, 30, 0.75); }
.theme-gold   .feature-card__icon { background: linear-gradient(140deg, #E0B23F, #C98A1E); box-shadow: 0 10px 22px -10px rgba(201, 138, 30, 0.75); }

.theme-teal   { background: linear-gradient(150deg, #E2F1F2, #D0E8EA); }
.theme-teal:hover   { box-shadow: 0 24px 44px -26px rgba(20, 154, 166, 0.7); }
.theme-teal   .feature-card__icon { background: linear-gradient(140deg, #2BB7C4, #149AA6); box-shadow: 0 10px 22px -10px rgba(20, 154, 166, 0.7); }

.theme-pink   { background: linear-gradient(150deg, #FBEAF2, #F7D8E8); }
.theme-pink:hover   { box-shadow: 0 24px 44px -26px rgba(210, 63, 134, 0.7); }
.theme-pink   .feature-card__icon { background: linear-gradient(140deg, #EC6AA8, #D23F86); box-shadow: 0 10px 22px -10px rgba(210, 63, 134, 0.7); }

/* Staggered float */
.d1 { animation-delay: 0.4s; } .d2 { animation-delay: 0.8s; } .d3 { animation-delay: 1.2s; }
.d4 { animation-delay: 1.6s; } .d5 { animation-delay: 2s; } .d6 { animation-delay: 2.4s; } .d7 { animation-delay: 2.8s; }

/* ==========================================================================
   Partners (home)
   ========================================================================== */

.partners-head { text-align: center; max-width: 600px; margin: 0 auto clamp(40px, 5vw, 58px); }
.partners-head .section-title { margin-bottom: 16px; }
.partners-head p { font-size: 16px; color: #4A4640; line-height: 1.6; margin: 0; }
.partners-row { display: flex; justify-content: center; }
.partners-row a { display: inline-flex; text-decoration: none; }
.partners-row img { height: 42px; width: auto; opacity: 0.82; transition: opacity 0.25s; }
.partners-row a:hover img { opacity: 1; }

/* ==========================================================================
   Blog cards (home blog band)
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 880px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #FBF7EF;
  border: 1px solid rgba(26, 23, 18, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -30px rgba(26, 23, 18, 0.55); }
.blog-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: #e6ddd2; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card__meta {
  display: flex;
  gap: 12px;
  margin-bottom: 13px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-card__cat { color: var(--cobalt); }
.blog-card__date { color: #9A958B; }
.blog-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.32rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 11px;
  text-wrap: balance;
}
.blog-card__excerpt { font-size: 14.5px; line-height: 1.6; color: #54504A; margin: 0 0 18px; flex: 1; }
.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cobalt);
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   App detail page (Viking Watermark)
   ========================================================================== */

.app-hero { padding: clamp(40px, 6vw, 72px) 32px clamp(52px, 7vw, 84px); }
.app-hero__inner { max-width: var(--maxw-site); margin: 0 auto; }
.breadcrumb--app { margin-bottom: clamp(34px, 5vw, 56px); }
.breadcrumb--app .breadcrumb__current { color: var(--ink); }

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.split-grid--narrow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.split-grid__inner { max-width: var(--maxw-site); margin: 0 auto; }

.app-hero__id { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.app-hero__icon {
  width: 78px; height: 78px; border-radius: 18px; object-fit: cover;
  flex-shrink: 0; box-shadow: 0 16px 32px -16px rgba(36, 54, 206, 0.55);
}
.app-hero__status {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1E7A45;
  margin-bottom: 6px;
}
.app-hero__status .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22A95B; margin-right: 6px; }
.app-hero__cat { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.app-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.app-hero__lead {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: #4A4640;
  max-width: 480px;
  margin: 0 0 32px;
}
.app-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Section title used on app feature blocks */
.feature-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.07;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.feature-title .accent { color: var(--cobalt); }
.feature-copy { font-size: 16.5px; line-height: 1.7; color: #4A4640; margin: 0 0 28px; max-width: 460px; }

.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row__mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: #22A95B;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.check-row__text { font-size: 15px; color: var(--ink); font-weight: 500; line-height: 1.5; }

.figcaption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 12px;
}
.figcaption--ink { color: rgba(239, 235, 224, 0.45); }

/* App-detail tinted accents on dark section */
.feature-title--light { color: var(--paper); }
.feature-title--light .accent { color: #9AA8F2; }
.feature-copy--light { color: #B7B1A4; }
.note-callout {
  border-left: 2px solid #E0B23F;
  background: rgba(224, 178, 63, 0.09);
  padding: 16px 20px;
  max-width: 480px;
}
.note-callout p { font-size: 14.5px; line-height: 1.6; color: #CFC9BC; margin: 0; }
.note-callout strong { color: #E0B23F; font-weight: 700; }

/* How it works steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 18px;
}
.step-card {
  background: #FBF7EF;
  border: 1px solid rgba(26, 23, 18, 0.08);
  border-radius: 18px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s;
}
.step-card:hover { transform: translateY(-7px); }
.step-card--cobalt:hover { box-shadow: 0 24px 44px -26px rgba(36, 54, 206, 0.55); }
.step-card--red:hover    { box-shadow: 0 24px 44px -26px rgba(194, 74, 44, 0.55); }
.step-card--green:hover  { box-shadow: 0 24px 44px -26px rgba(31, 138, 76, 0.55); }
.step-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-card__num {
  width: 46px; height: 46px; border-radius: 50%;
  color: #fff; font-family: var(--serif); font-size: 1.35rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-card--cobalt .step-card__num { background: linear-gradient(140deg, #5566E8, #2436CE); box-shadow: 0 10px 22px -10px rgba(36, 54, 206, 0.7); }
.step-card--red    .step-card__num { background: linear-gradient(140deg, #E0654A, #C24A2C); box-shadow: 0 10px 22px -10px rgba(194, 74, 44, 0.7); }
.step-card--green  .step-card__num { background: linear-gradient(140deg, #3FB06A, #1F8A4C); box-shadow: 0 10px 22px -10px rgba(31, 138, 76, 0.7); }
.step-card__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.step-card--cobalt .step-card__label { color: var(--cobalt); }
.step-card--red    .step-card__label { color: #C24A2C; }
.step-card--green  .step-card__label { color: #1E7A45; }
.step-card__title { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; margin: 0 0 9px; color: var(--ink); }
.step-card__text { font-size: 14.5px; line-height: 1.6; color: #54504A; margin: 0 0 22px; flex-grow: 1; }

/* ==========================================================================
   CMS article content (TipTap HTML) — additive styles that match the blog
   aesthetic. Scoped to .cms-content so the hand-written sample pages are
   untouched. Paragraphs and H2 inherit the existing .article-body rules.
   ========================================================================== */
.cms-content h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  margin: clamp(28px, 3.4vw, 40px) 0 14px;
  color: var(--ink);
}
.cms-content ul,
.cms-content ol {
  margin: 0 0 26px;
  padding-left: 1.4em;
}
.cms-content li {
  font-size: 18px;
  line-height: 1.78;
  color: var(--ink-body);
  margin: 0 0 8px;
}
.cms-content li::marker { color: var(--cobalt); }
.cms-content blockquote {
  margin: clamp(30px, 4vw, 42px) 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--cobalt);
}
.cms-content blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.36;
  color: var(--ink);
  margin: 0;
}
.cms-content a {
  color: var(--cobalt);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(36, 54, 206, 0.4);
}
.cms-content a:hover { border-bottom-color: var(--cobalt); }
.cms-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: clamp(26px, 3.4vw, 38px) 0;
  border: 1px solid var(--hairline-2);
}
.cms-content figure { margin: clamp(26px, 3.4vw, 38px) 0; }
.cms-content pre {
  background: #1A1712;
  color: #EFEBE0;
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
}
.cms-content :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-card);
  border: 1px solid var(--hairline-2);
  padding: 1px 6px;
  border-radius: 5px;
}
.cms-content pre code { background: none; border: none; padding: 0; color: inherit; }
.cms-content hr { border: none; border-top: 1px solid var(--hairline); margin: clamp(34px, 4vw, 48px) 0; }
.cms-content strong { color: var(--ink); font-weight: 600; }

/* Article cover image (when a post has one) */
.cover__image {
  display: block;
  width: 100%;
  max-width: var(--maxw-figure);
  margin: 0 auto;
  height: auto;
  border-radius: 14px;
}

/* Blog card placeholder when a post has no cover image */
.blog-card__ph {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(36,54,206,0.10), transparent 60%),
    var(--paper-card);
}

.blog-empty {
  font-size: 16px;
  color: var(--muted);
  padding: 20px 0 60px;
}
