/* Ancient Calendars site: ranked guide pages ("best ... apps").
   Loaded after styles.css and uses its tokens (night darks, gold, parchment,
   Cinzel + Lora). Nothing here changes the home page. */

.review-page {
  --jade: #8fdcb0;          /* the app's Maya green, softened for text */
  --clay: #eaa98e;          /* terracotta for the "holds it back" marks */
  --panel: rgba(14, 12, 22, 0.78);
  --wrap: 1040px;
}
.review-page .container { max-width: var(--wrap); }

/* ------------------------------------------------------------------ hero */
.rv-hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 clamp(22px, 3vw, 36px);
  font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs [aria-current] { color: var(--gold); }

.rv-hero__grid { display: grid; gap: clamp(36px, 5vw, 56px); align-items: center; }
@media (min-width: 980px) { .rv-hero__grid { grid-template-columns: 1.15fr 0.85fr; } }

.rv-hero h1 { font-size: clamp(2.05rem, 4.4vw, 3.15rem); line-height: 1.1; max-width: 15em; margin-bottom: 0.5em; }
.rv-hero h1 em { font-style: normal; color: var(--gold); }
.rv-hero .lead { max-width: 36em; margin-bottom: 0; }
.rv-hero .lead strong { color: var(--parchment); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .rv-hero__copy { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .featured { animation: rise 1.2s 0.12s cubic-bezier(.2, .7, .2, 1) both; }
}

/* the #1 card */
.featured {
  position: relative;
  padding: 30px clamp(18px, 3vw, 28px) clamp(20px, 3vw, 26px);
  border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(420px 240px at 50% 0%, rgba(201, 168, 76, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(40, 33, 26, 0.88), rgba(14, 12, 22, 0.9));
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.1), 0 40px 80px -40px rgba(201, 168, 76, 0.4), var(--shadow);
  display: grid; gap: 22px; justify-items: center;
}
.featured__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 999px; white-space: nowrap;
  font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: #1a1408; background: linear-gradient(180deg, #e3c877, var(--gold) 60%, #b8963d);
  box-shadow: 0 8px 20px -8px rgba(201, 168, 76, 0.7);
}
.featured .device { --w: 168px; }
.featured__body { width: 100%; }
.featured__name { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.featured__name strong { font-family: var(--display); font-weight: 600; font-size: 1.32rem; line-height: 1.15; color: var(--parchment); letter-spacing: 0.02em; }
.featured__name small { display: block; font-family: var(--body); font-size: 0.86rem; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.featured__points { list-style: none; display: grid; gap: 9px; margin: 0 0 20px; font-size: 1rem; line-height: 1.45; }
.featured__points li { position: relative; padding-left: 26px; }
.featured__points li::before {
  content: ""; position: absolute; left: 3px; top: 0.5em; width: 8px; height: 8px; transform: rotate(45deg);
  border: 1px solid var(--gold); background: rgba(201, 168, 76, 0.35);
}
@media (min-width: 520px) {
  .featured { grid-template-columns: 150px 1fr; justify-items: stretch; align-items: center; }
  .featured .device { --w: 150px; }
}

.app-logo { flex: none; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-strong), 0 12px 24px -10px rgba(201, 168, 76, 0.55); }
.app-logo--sm { width: 28px; height: 28px; border-radius: 7px; }
.app-logo--md { width: 44px; height: 44px; border-radius: 11px; }
.app-logo--lg { width: 64px; height: 64px; border-radius: 16px; }

/* store buttons */
.store-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btns .btn { min-height: 46px; padding: 0.6em 1.3em; font-size: 0.86rem; }
.btn svg { flex: none; }
.btn--ghost {
  color: var(--parchment); background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { color: var(--parchment); background: rgba(201, 168, 76, 0.1); box-shadow: inset 0 0 0 1px var(--gold); }
.soon {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0.4em 1.1em;
  border: 1px dashed rgba(240, 230, 211, 0.38); border-radius: 999px;
  color: var(--muted); font-size: 0.88rem; line-height: 1.25; white-space: nowrap;
}
.soon strong { color: var(--parchment); font-weight: 600; }
.soon svg { color: var(--parchment); }

/* facts strip under the hero */
.rv-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(36px, 5vw, 56px) 0 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.rv-meta > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px 14px 0; }
.rv-meta > div:nth-child(even) { padding-left: 14px; border-left: 1px dashed var(--line); }
.rv-meta > div:nth-child(n+3) { border-top: 1px dashed var(--line); }
.rv-meta .k { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.rv-meta .v { color: var(--parchment); font-size: 0.98rem; }
@media (min-width: 760px) {
  .rv-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rv-meta > div { padding: 16px 16px 16px 0; }
  .rv-meta > div + div { padding-left: 18px; border-left: 1px dashed var(--line); }
  .rv-meta > div:nth-child(n+3) { border-top: 0; }
}

/* disclosure */
.note {
  display: grid; gap: 8px; padding: 18px 20px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(201, 168, 76, 0.06);
}
.note__tag {
  justify-self: start; padding: 2px 12px; border-radius: 999px;
  font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid var(--line-strong);
}
.note p { margin: 0; font-size: 1rem; color: var(--text); }
@media (min-width: 720px) { .note { grid-template-columns: auto 1fr; align-items: center; gap: 20px; } }

/* ------------------------------------------------------------------ section heads (left-aligned on guides) */
.rv-section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.rv-section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(560px, 70%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.rv-head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 40px); }
.rv-head h2 { margin-bottom: 0.4em; }
.rv-head p { color: var(--muted); font-size: 1.04rem; margin: 0; }
.rv-head .hi { color: var(--gold); }
.rv-head .lo { color: var(--clay); }

/* ------------------------------------------------------------------ ranking */
.ranking { list-style: none; display: grid; gap: 0; max-width: 900px; margin: 0; padding: 0; }
.rk a {
  display: grid; grid-template-columns: 48px 1fr 18px; gap: 14px; align-items: center;
  padding: 16px 6px 16px 0;
  border-top: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: background 0.25s ease;
}
.rk:last-child a { border-bottom: 1px solid var(--line); }
.rk a:hover { background: rgba(201, 168, 76, 0.05); color: var(--text); }
.rk a:hover .rk__arrow { color: var(--gold); transform: translateX(3px); }
.rk__n { display: grid; justify-items: center; gap: 6px; }
.rk__n b { font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--muted); }
.rk__n svg { display: block; width: 30px; height: auto; color: var(--gold-deep); }
.rk__main { display: grid; gap: 4px; min-width: 0; }
.rk__name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.25; color: var(--parchment); letter-spacing: 0.02em; }
.rk__name small { font-family: var(--body); font-weight: 400; font-size: 0.86rem; color: var(--muted); letter-spacing: 0; }
.rk__why { font-size: 0.98rem; line-height: 1.5; color: var(--muted); }
.rk__arrow { color: var(--muted); transition: transform 0.25s ease, color 0.25s ease; }
.rk--ours a {
  padding: 22px 16px 22px 10px; margin-bottom: 8px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.14), rgba(201, 168, 76, 0.02));
  box-shadow: 0 30px 60px -40px rgba(201, 168, 76, 0.5);
}
.rk--ours + .rk a { border-top: 0; }
.rk--ours .rk__n b { color: var(--gold); font-size: 2.4rem; }
.rk--ours .rk__n svg { color: var(--gold); }
.rk--ours .rk__name { font-size: 1.3rem; }
.rk--ours .rk__why { color: var(--text); }
@media (min-width: 640px) {
  .rk a { grid-template-columns: 64px 1fr 24px; gap: 20px; padding-right: 14px; }
}
.ours-tag {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  font-family: var(--display); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: #1a1408; background: var(--gold); vertical-align: 0.15em;
}
.maya-note { margin: 16px 0 0; font-size: 0.92rem; color: var(--muted); font-style: italic; }

/* ------------------------------------------------------------------ comparison table */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.table-wrap:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
table.compare { width: 100%; min-width: 940px; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px dashed var(--line); }
.compare thead th {
  font-family: var(--display); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap; border-bottom: 1px solid var(--line-strong);
}
.compare tbody th {
  font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--parchment); letter-spacing: 0.02em;
  min-width: 190px;
}
@media (max-width: 599px) {
  table.compare { min-width: 860px; font-size: 0.92rem; }
  .compare tbody th { min-width: 148px; max-width: 160px; font-size: 0.86rem; }
  .compare th, .compare td { padding: 12px 12px; }
  .compare .app-logo--sm { display: none; }
}
.compare tbody th small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.8rem; color: var(--muted); letter-spacing: 0; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td { color: var(--text); }
.compare td.good { color: var(--jade); }
.compare td.bad { color: var(--clay); }
.compare .tr-n { display: inline-block; width: 22px; color: var(--muted); }
.compare tr.ours .tr-n { color: var(--gold); }
.compare tr.ours { background: rgba(201, 168, 76, 0.08); }
.compare .cell-app { display: flex; align-items: center; gap: 10px; }
/* keep the app name in view while the table scrolls sideways */
.compare th:first-child { position: sticky; left: 0; z-index: 1; background: #110f19; box-shadow: 1px 0 0 var(--line-strong); }
.compare tr.ours th:first-child { background: #221d1d; }
.table-note { margin: 14px 0 0; font-size: 0.92rem; color: var(--muted); }

/* ------------------------------------------------------------------ reviews */
.app-review {
  display: grid; gap: 10px 28px;
  padding: clamp(36px, 5vw, 52px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.rv-head + .app-review { border-top: 0; padding-top: 0; }
.ar-num { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 2.6rem; line-height: 1; color: rgba(181, 170, 149, 0.55); }
.ar-num svg { width: 34px; height: auto; color: var(--gold-deep); }
@media (min-width: 760px) {
  .app-review { grid-template-columns: 96px 1fr; }
  .ar-num { flex-direction: column; align-items: flex-start; font-size: 3.4rem; gap: 14px; }
}
.ar-body { min-width: 0; }
.ar-for { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.app-review h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; font-size: clamp(1.45rem, 2.8vw, 1.95rem); margin-bottom: 14px; }
.app-review h3 small { font-family: var(--body); font-weight: 400; font-size: 0.55em; color: var(--muted); letter-spacing: 0; }
.ar-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.ar-facts li { padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; color: var(--text); background: rgba(14, 12, 22, 0.5); }
.ar-body > p { max-width: 66ch; }
.ar-body strong { color: var(--parchment); font-weight: 600; }

.proscons { display: grid; gap: 4px 32px; margin: 22px 0; max-width: 880px; }
@media (min-width: 720px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons ul { list-style: none; }
.proscons li { position: relative; padding: 9px 0 9px 26px; border-top: 1px dashed var(--line); line-height: 1.5; }
.proscons ul li:first-child { border-top: 0; }
.proscons .cons li:first-child { border-top: 1px dashed var(--line); }
@media (min-width: 720px) { .proscons .cons li:first-child { border-top: 0; } }
.proscons li::before { position: absolute; left: 2px; top: 11px; font-size: 0.8rem; }
.proscons .pros li::before { content: "▲"; color: var(--gold); }
.proscons .cons li::before { content: "▼"; color: var(--clay); }
.proscons .cons li { color: var(--muted); }

.ar-verdict {
  margin: 0; max-width: 64ch; padding: 14px 18px;
  border-left: 2px solid var(--gold); background: rgba(201, 168, 76, 0.06); border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--parchment);
}
.ar-verdict span {
  display: block; margin-bottom: 2px; font-style: normal;
  font-family: var(--display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}

.app-review--ours {
  margin: 0 calc(var(--gutter) * -0.5);
  padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 32px);
  border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 260px at 85% 0%, rgba(201, 168, 76, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(40, 33, 26, 0.6), rgba(14, 12, 22, 0.6));
}
.app-review--ours .ar-num { color: var(--gold); }
.app-review--ours .ar-num svg { color: var(--gold); }
.app-review--ours + .app-review { border-top: 0; }
.ar-shots { display: flex; justify-content: center; gap: clamp(14px, 3vw, 28px); margin: 8px 0 26px; }
.ar-shots .device { --w: min(40vw, 200px); }
.ar-shots .device + .device { margin-top: clamp(24px, 5vw, 44px); }
.ar-shots figcaption { margin-top: 10px; text-align: center; font-size: 0.85rem; color: var(--muted); }
.ar-cta { margin-top: 24px; }

/* ------------------------------------------------------------------ method */
.method { display: grid; gap: 28px 56px; }
@media (min-width: 880px) { .method { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.method-text p { max-width: 62ch; }
.method-list { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 6px 20px; }
.method-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--line); font-size: 0.98rem; }
.method-list li:first-child { border-top: 0; }
.method-list li span:first-child { font-family: var(--display); font-weight: 600; color: var(--parchment); letter-spacing: 0.04em; }
.method-list li span:last-child { color: var(--muted); text-align: right; }

/* ------------------------------------------------------------------ FAQ + CTA tweaks */
.review-page .faq-list { max-width: 860px; }
.review-page .faq-list details p { color: var(--text); font-size: 1.02rem; }
.rv-cta .cta__inner { margin: 0 auto; }
.rv-cta .store-btns { justify-content: center; }
.small-print { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 0.88rem; color: var(--muted); }

.site-nav a[aria-current] { color: var(--parchment); border-bottom-color: var(--gold); }

/* the guide has only four short nav links, so they fit from 920px */
@media (min-width: 920px) { .review-page .site-nav { display: block; } }
