/* SiteAngle — studio ink theme */
:root {
  --ink: #10161d;
  --ink-soft: #243040;
  --mist: #e8eef3;
  --paper: #f5f7f9;
  --line: #c9d4de;
  --mint: #1f9e8a;
  --mint-deep: #147a6a;
  --mint-glow: #b8efe4;
  --amber: #d97706;
  --warn: #9a3412;
  --max: 68rem;
  --text: 1.0625rem;
  --leading: 1.65;
  --radius: 0.35rem;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  /* weights: Figtree 400/500/600/700; Syne 700/800 via Google Fonts */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #cfe8e2 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #d6e2f0 0%, transparent 50%),
    linear-gradient(180deg, #eef3f6 0%, var(--paper) 28%, var(--paper) 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: var(--text);
  line-height: var(--leading);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--mint-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(245, 247, 249, 0.86);
  border-bottom: 1px solid rgba(201, 212, 222, 0.7);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--mint);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--mint-deep);
}

.hero {
  padding: 4.5rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% auto auto 58%;
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  border-radius: 42% 58% 55% 45%;
  background:
    linear-gradient(145deg, rgba(31, 158, 138, 0.28), rgba(36, 48, 64, 0.12)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 10px,
      rgba(16, 22, 29, 0.04) 10px,
      rgba(16, 22, 29, 0.04) 11px
    );
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(-1.5rem, 1rem) rotate(4deg);
  }
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-deep);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--mint-deep);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--mint-deep);
  border-color: var(--mint);
}

.section {
  padding: 2.75rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.guide-list li {
  border-bottom: 1px solid var(--line);
}

.guide-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0.15rem;
  text-decoration: none;
  color: inherit;
}

.guide-list a:hover .guide-title {
  color: var(--mint-deep);
}

.guide-index {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--mint);
  font-size: 0.95rem;
}

.guide-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.guide-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.pillar {
  padding: 0.25rem 0;
}

.pillar h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.page-hero .lede {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.meta-row strong {
  color: var(--ink);
  font-weight: 600;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin: 2.2rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.prose h3 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.08rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--mint);
  background: rgba(184, 239, 228, 0.35);
}

.callout.todo {
  border-left-color: var(--amber);
  background: rgba(217, 119, 6, 0.1);
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 36rem;
}

th,
td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--mist);
  font-weight: 600;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.verdict {
  margin: 2rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--ink);
  color: #eef4f2;
  border-radius: calc(var(--radius) + 0.15rem);
}

.verdict h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
}

.verdict p {
  margin: 0;
  color: #c9d8d3;
}

.verdict a {
  color: var(--mint-glow);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 0.25rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  padding: 1.75rem 0 2.25rem;
  display: grid;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--mint-deep);
}

.footer-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  max-width: 42rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 700ms ease forwards;
}

.reveal-delay {
  animation-delay: 120ms;
}

.reveal-delay-2 {
  animation-delay: 220ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .guide-list a {
    grid-template-columns: auto 1fr;
  }

  .guide-meta {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.35rem 0 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .hero::before {
    inset: auto -20% 10% auto;
    width: 16rem;
    height: 16rem;
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::before,
  .reveal,
  .reveal-delay,
  .reveal-delay-2,
  .btn {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
