/* AnRoll & AnRoll2 styles:
   - /anroll          (body.anroll): warm parchment and terracotta, like the painted pottery it unrolls.
   - /anroll2         (body.anroll.anroll2): refined kiln-copper and modern studio-slate evolution.
   - /projects/anroll (body.anroll-compare): dual-palette comparison page bridging both generations. */

/* ================================================================================================
   AnRoll (v1) — parchment & terracotta
   ================================================================================================ */
body.anroll {
  --bg: #f6efe4;
  --fg: #2a1f16;
  --muted: #6e5b4b;
  --accent: #b5532c;
  --accent-soft: #efd9c4;
  --card: #fffaf3;
  --line: #e2cdb6;
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.anroll {
    --bg: #1d1510; --fg: #f3e7d8; --muted: #c6b09a; --accent: #e8905f;
    --accent-soft: #3a2a20; --card: #261d16; --line: #47362a;
  }
}
/* The switch on the header chooses the theme with data-theme on <html>, so the explicit choice is needed too. */
:root[data-theme="dark"] body.anroll {
  --bg: #1d1510; --fg: #f3e7d8; --muted: #c6b09a; --accent: #e8905f;
  --accent-soft: #3a2a20; --card: #261d16; --line: #47362a;
}

/* ================================================================================================
   AnRoll2 — modern studio-slate & kiln-copper
   ================================================================================================ */
body.anroll.anroll2 {
  --bg: #f4f4f1;
  --fg: #18202a;
  --muted: #56606d;
  --accent: #b85228;
  --accent-soft: #f2dfd2;
  --card: #ffffff;
  --line: #dcdde2;
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.anroll.anroll2 {
    --bg: #11161d; --fg: #eceef2; --muted: #a2adba; --accent: #eb9362;
    --accent-soft: #2e231d; --card: #181f29; --line: #2a3442;
  }
}
:root[data-theme="dark"] body.anroll.anroll2 {
  --bg: #11161d; --fg: #eceef2; --muted: #a2adba; --accent: #eb9362;
  --accent-soft: #2e231d; --card: #181f29; --line: #2a3442;
}

/* ================================================================================================
   Comparison page (/projects/anroll)
   ================================================================================================ */
body.anroll-compare {
  --bg: #f5f2ec;
  --fg: #1d1b18;
  --muted: #5e5a54;
  --accent: #b5532c;
  --accent-soft: #efe1d3;
  --v2-accent: #27537d;
  --v2-soft: #dfe9f5;
  --card: #ffffff;
  --line: #e1dbd1;
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.anroll-compare {
    --bg: #121419; --fg: #eef0f3; --muted: #a4a8b3; --accent: #e8905f;
    --accent-soft: #33251d; --v2-accent: #8cb6e2; --v2-soft: #1b2838;
    --card: #191d25; --line: #2c313d;
  }
}
:root[data-theme="dark"] body.anroll-compare {
  --bg: #121419; --fg: #eef0f3; --muted: #a4a8b3; --accent: #e8905f;
  --accent-soft: #33251d; --v2-accent: #8cb6e2; --v2-soft: #1b2838;
  --card: #191d25; --line: #2c313d;
}
body.anroll-compare::before { display: none; }
body.anroll-compare .site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); }
body.anroll-compare h2 { border-bottom: 0; font-family: Georgia, "Times New Roman", serif; }
body.anroll-compare .site-footer { display: none; }

body.anroll h2 { border-bottom: 0; font-family: Georgia, "Times New Roman", serif; }
body.anroll .site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); }

/* ================================================================================================
   Heroes
   ================================================================================================ */
.ar-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(181, 83, 44, .22), transparent 40%),
    repeating-radial-gradient(circle at 50% 120%, transparent 0 22px, rgba(181, 83, 44, .08) 22px 24px),
    linear-gradient(160deg, #3a1f12 0%, #7a3a20 55%, #b5532c 100%);
  color: #fbeee0;
  padding: 56px 0 64px;
}
.ar2-hero {
  background:
    radial-gradient(circle at 84% 18%, rgba(235, 147, 98, .26), transparent 42%),
    radial-gradient(circle at 12% 90%, rgba(71, 131, 194, .22), transparent 46%),
    repeating-radial-gradient(circle at 72% 130%, transparent 0 24px, rgba(235, 147, 98, .08) 24px 26px),
    linear-gradient(148deg, #111b27 0%, #1d3147 54%, #6a331d 100%);
}
.ar-hero .wrap { max-width: 980px; }
.ar-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; opacity: .85; margin-bottom: .6em; }
.ar-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 12vw, 6rem); margin: 0; line-height: 1; }
.ar2-title-row { display: flex; align-items: center; gap: clamp(14px, 3vw, 24px); flex-wrap: wrap; }
.ar2-hero-icon {
  width: clamp(56px, 9vw, 86px); height: clamp(56px, 9vw, 86px); flex: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35));
}
.ar-hero-icon-v1 { border-radius: 20%; }
.ar-lead { font-size: clamp(1.05rem, 2.6vw, 1.35rem); max-width: 38em; margin: .6em 0 1.2em; opacity: .95; }
.ar-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ar-btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px; text-decoration: none;
  border: 2px solid #fbeee0; color: #fbeee0; font-weight: 600;
  transition: filter .2s var(--ease), transform .2s var(--ease);
}
.ar-btn.primary { background: #fbeee0; color: #5a2817; }
.ar2-hero .ar-btn.primary { background: #f8e9dc; color: #192838; border-color: #f8e9dc; }
.ar-btn:hover, .ar-btn:focus-visible { filter: brightness(1.08); transform: translateY(-1px); }

/* ================================================================================================
   Subtle successor hint bar (on /anroll and mirrored on /anroll2)
   ================================================================================================ */
.ar-next-wrap { padding-top: 22px; }
.ar-next-hint {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.ar-next-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; flex: 1 1 320px; min-width: 0; }
.ar-next-body p { margin: 0; font-size: .95rem; color: var(--fg); line-height: 1.5; }
.ar-next-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em; padding: 1px 5px; border-radius: 5px; background: var(--accent-soft);
}
.ar-next-pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px; flex: none;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
}
.ar-next-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; flex: none; }
.ar-next-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: .9rem;
  background: var(--accent); color: #fffaf3;
  transition: filter .2s var(--ease), transform .2s var(--ease);
}
:root[data-theme="dark"] .ar-next-primary { color: #1b120d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ar-next-primary { color: #1b120d; }
}
.ar-next-primary .arrow { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ar-next-primary:hover, .ar-next-primary:focus-visible { filter: brightness(1.08); transform: translateY(-1px); }
.ar-next-secondary { font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.ar-next-secondary:hover, .ar-next-secondary:focus-visible { color: var(--accent); text-decoration: underline; }

/* ================================================================================================
   Shared AnRoll content sections
   ================================================================================================ */
.ar-section { padding-top: 40px; }
.ar-columns { columns: 1; }
@media (min-width: 720px) { .ar-columns { columns: 2; column-gap: 40px; } }
.ar-columns p { color: var(--fg); }
.ar-media { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ar-media { grid-template-columns: 1fr 1fr; } }
.ar-media figure { margin: 0; }
.ar-media figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.ar-media video { border: 6px solid var(--card); box-shadow: 0 8px 24px rgba(42, 31, 22, .18); }

.ar-variants { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ar-variants { grid-template-columns: 1fr 1fr; } }
.ar-variant {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.ar-variant p { color: var(--muted); }
.ar-variant .download { margin-top: 10px; }
.ar-sub { margin-top: 32px; font-family: Georgia, serif; }
.ar-older { margin-top: 18px; color: var(--muted); }
.ar-older summary { cursor: pointer; color: var(--accent); }
.ar-footer { color: var(--muted); padding-bottom: 36px; }
body.anroll .download { border-color: var(--line); }
body.anroll .download:hover { border-color: var(--accent); }
body.anroll .site-footer { display: none; }

/* ================================================================================================
   AnRoll2 highlights, video feature, gallery & lightbox
   ================================================================================================ */
.ar2-highlights {
  display: grid; gap: 16px; margin-top: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ar2-highlights { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ar2-highlights { grid-template-columns: repeat(3, 1fr); } }
.ar2-hl {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 20px 18px; box-shadow: var(--shadow-sm);
}
.ar2-hl-num {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px;
  margin-bottom: 10px;
}
.ar2-hl h3 { font-size: 1.02rem; margin: 0 0 6px; }
.ar2-hl p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

.ar2-video-feature {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; box-shadow: var(--shadow-md);
}
.ar2-video-feature video {
  display: block; width: 100%; border-radius: 10px; background: #0e1116;
}
.ar2-video-feature figcaption {
  padding: 12px 6px 4px; color: var(--muted); font-size: .92rem; line-height: 1.5;
}
.ar2-video-feature figcaption strong { color: var(--fg); }

.ar2-gallery-hint { color: var(--muted); font-size: .9rem; margin: -4px 0 14px; }
.ar2-gallery {
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .ar2-gallery { grid-template-columns: repeat(2, 1fr); } }
.ar2-shot {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.ar2-shot:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.ar2-shot:first-child { grid-column: 1 / -1; }
.ar2-shot-btn {
  display: block; width: 100%; padding: 0; border: 0; background: #11151b; cursor: zoom-in;
  overflow: hidden;
}
.ar2-shot-btn img {
  display: block; width: 100%; height: auto;
  transition: transform .35s var(--ease);
}
.ar2-shot:hover .ar2-shot-btn img { transform: scale(1.015); }
.ar2-shot figcaption {
  padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px;
}
.ar2-shot figcaption strong { font-size: .98rem; color: var(--fg); }
.ar2-shot figcaption span { font-size: .89rem; color: var(--muted); line-height: 1.48; }

.ar2-lightbox {
  max-width: min(94vw, 1240px); max-height: 92vh; padding: 0; border: 1px solid var(--line);
  border-radius: 16px; background: var(--card); color: var(--fg); box-shadow: var(--shadow-lg);
}
.ar2-lightbox::backdrop { background: rgba(10, 12, 16, .78); backdrop-filter: blur(4px); }
.ar2-lb-inner { position: relative; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ar2-lb-inner img { max-height: 74vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 10px; }
.ar2-lb-text { padding: 0 4px 4px; }
.ar2-lb-text strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.ar2-lb-text p { margin: 0; color: var(--muted); font-size: .92rem; }
.ar2-lb-close {
  position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--fg);
  font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.ar2-lb-close:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================================================================
   Comparison page (/projects/anroll)
   ================================================================================================ */
.cmp-hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(209, 108, 62, .28), transparent 44%),
    radial-gradient(circle at 86% 24%, rgba(84, 146, 209, .26), transparent 46%),
    repeating-radial-gradient(circle at 50% 135%, transparent 0 24px, rgba(255, 240, 224, .05) 24px 26px),
    linear-gradient(125deg, #4b2414 0%, #6c331c 38%, #1e3148 74%, #111c29 100%);
  color: #f8efe6;
  padding: 40px 0 88px;
}
.cmp-crumb { margin: 0 0 14px; font-size: .88rem; }
.cmp-crumb a {
  color: rgba(251, 238, 224, .82); text-decoration: none; font-weight: 500;
}
.cmp-crumb a:hover { color: #ffffff; text-decoration: underline; }
.cmp-hero-inner {
  display: grid; gap: 28px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .cmp-hero-inner { grid-template-columns: 1.2fr .95fr; gap: 36px; }
}
.cmp-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4.1rem); line-height: 1.05; margin: 0 0 .35em;
}
.cmp-amp { color: #e89a6a; font-style: italic; font-weight: 400; }
.cmp-lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 38em; margin: 0; opacity: .93; line-height: 1.55; }
.cmp-motif {
  background: rgba(14, 18, 26, .28);
  border: 1px solid rgba(255, 238, 224, .16);
  border-radius: 18px; padding: 14px 16px 10px;
  backdrop-filter: blur(6px);
}
.cmp-motif svg { display: block; width: 100%; height: auto; }

.cmp-stage { margin-top: -54px; position: relative; z-index: 2; }
.cmp-choices {
  display: grid; gap: 18px; align-items: stretch;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .cmp-choices { grid-template-columns: 1fr auto 1fr; gap: 16px; }
}
.cmp-vs {
  display: none;
}
@media (min-width: 820px) {
  .cmp-vs {
    display: flex; align-items: center; justify-content: center;
  }
  .cmp-vs span {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 11px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line);
    color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em;
    box-shadow: var(--shadow-sm); white-space: nowrap;
  }
}

.cmp-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px 24px; box-shadow: var(--shadow-md);
  border-top-width: 4px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cmp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cmp-card-v1 { border-top-color: var(--accent); }
.cmp-card-v2 { border-top-color: var(--v2-accent); }

.cmp-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cmp-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .03em;
}
.cmp-badge.v1 { background: var(--accent-soft); color: var(--accent); }
.cmp-badge.v2 { background: var(--v2-soft); color: var(--v2-accent); }
.cmp-app-icon {
  width: 36px; height: 36px; flex: none;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .18));
}
.cmp-app-icon-v1 { border-radius: 20%; }

.cmp-card h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.3rem); margin: 0 0 8px; line-height: 1.1;
}
.cmp-card-sub { color: var(--muted); font-size: .96rem; line-height: 1.55; margin: 0 0 18px; }

.cmp-points { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cmp-points li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; line-height: 1.45; }
.cmp-points .icon { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.cmp-card-v1 .cmp-points .icon { color: var(--accent); }
.cmp-card-v2 .cmp-points .icon { color: var(--v2-accent); }

.cmp-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: auto; }
.cmp-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: .95rem;
  transition: filter .2s var(--ease), transform .2s var(--ease);
}
.cmp-cta .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-cta.v1 { background: var(--accent); color: #fffaf3; }
.cmp-cta.v2 { background: var(--v2-accent); color: #ffffff; }
:root[data-theme="dark"] .cmp-cta.v1 { color: #1b120d; }
:root[data-theme="dark"] .cmp-cta.v2 { color: #0e141c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cmp-cta.v1 { color: #1b120d; }
  :root:not([data-theme="light"]) .cmp-cta.v2 { color: #0e141c; }
}
.cmp-cta:hover, .cmp-cta:focus-visible { filter: brightness(1.08); transform: translateY(-1px); }
.cmp-sublink { font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.cmp-sublink:hover { color: var(--fg); text-decoration: underline; }

/* Scenarios */
.cmp-scenarios {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 780px) { .cmp-scenarios { grid-template-columns: repeat(3, 1fr); } }
.cmp-scenario {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.cmp-scenario:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.cmp-sc-tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  margin-bottom: 10px;
}
.cmp-sc-tag.v1 { background: var(--accent-soft); color: var(--accent); }
.cmp-sc-tag.v2 { background: var(--v2-soft); color: var(--v2-accent); }
.cmp-scenario h3 { font-size: 1.02rem; margin: 0 0 6px; color: var(--fg); }
.cmp-scenario p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* Visual previews */
.cmp-preview-grid {
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .cmp-preview-grid { grid-template-columns: 1.18fr .82fr; } }
.cmp-preview-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.cmp-preview-card:hover { transform: translateY(-2px); border-color: var(--v2-accent); box-shadow: var(--shadow-md); }
.cmp-preview-card img { display: block; width: 100%; height: auto; background: #12161c; }
.cmp-preview-card span { padding: 12px 14px; font-size: .88rem; color: var(--muted); line-height: 1.45; }

/* Comparison table */
.cmp-table-wrap {
  overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.cmp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cmp-table th, .cmp-table td {
  padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line);
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table thead th {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  background: color-mix(in srgb, var(--bg) 55%, var(--card));
}
.cmp-table thead th.col-v1 { color: var(--accent); }
.cmp-table thead th.col-v2 { color: var(--v2-accent); }
.cmp-table tbody th { font-weight: 650; color: var(--fg); width: 22%; min-width: 140px; }
.cmp-table tbody td { color: var(--fg); line-height: 1.5; }
.cmp-table tbody td.cmp-muted { color: var(--muted); }

/* Bottom CTA strip */
.cmp-bottom-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.cmp-bottom-inner p { margin: 0; font-weight: 600; color: var(--fg); }
.cmp-bottom-actions { display: flex; flex-wrap: wrap; gap: 12px; }
