/* RockFinder — limestone & marble */
:root {
  --limestone: #E9E5DC;      /* page background */
  --limestone-deep: #DDD7CB; /* bands, hover */
  --marble: #F8F7F3;         /* panels */
  --vein: #B9B4AA;           /* lines, borders */
  --basalt: #24272A;         /* text */
  --basalt-soft: #585B5C;    /* secondary text */
  --lapis: #2B4A61;          /* dark blue marble: actions */
  --lapis-deep: #1F3749;
  --gold: #B08D57;           /* calacatta vein: focus, small accents */

  --display: "Unbounded", "DM Sans", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .30 0 0 0 0 .27 .2 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--basalt);
  background: var(--limestone) var(--grain);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--lapis); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--lapis-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

/* Header + tabs */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--basalt); text-decoration: none; font: 700 1.15rem/1 var(--display); letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; }
.tabs { display: flex; gap: 4px; }
.tabs a { position: relative; padding: 10px 12px; color: var(--basalt-soft); text-decoration: none; font-weight: 550; font-size: 0.97rem; border-radius: 10px; }
.tabs a:hover { color: var(--basalt); background: var(--limestone-deep); }
.tabs a[aria-current="page"] { color: var(--basalt); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px; }

/* Headings */
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; color: var(--basalt); }
h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; color: var(--basalt); }
h1 { font-size: clamp(1.9rem, 6.4vw, 3.1rem); line-height: 1.08; margin: 0 0 16px; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.8rem); line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 6px; }
.lead { font-size: 1.12rem; color: var(--basalt-soft); max-width: 34ch; margin: 0 0 26px; }

/* Marble slab (the hero surface) */
.slab {
  position: relative;
  background: var(--marble) url("/img/marble.svg?v=1") center / cover no-repeat;
  border: 1px solid rgba(185, 180, 170, 0.7);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 56px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -28px rgba(36, 39, 42, 0.45);
}
.slab[hidden], .panel[hidden] { display: none; }
/* Hero: specimen photos + copy */
.hero { display: grid; gap: 26px; align-items: center; }
.specimens { position: relative; height: 196px; }
.spec { position: absolute; object-fit: cover; border: 4px solid #FCFBF8; box-shadow: 0 0 0 1px rgba(185, 180, 170, 0.8), 0 18px 30px -18px rgba(36, 39, 42, 0.6); background: var(--limestone-deep); }
.spec.main { width: 176px; height: 176px; border-radius: 26px; left: calc(50% - 150px); top: 4px; transform: rotate(-4deg); }
.spec.small { width: 96px; height: 96px; border-radius: 50%; }
.spec.one { left: calc(50% + 34px); top: 0; }
.spec.two { left: calc(50% + 58px); top: 98px; }
.tag { position: absolute; left: calc(50% - 104px); bottom: 0; display: grid; gap: 1px; padding: 7px 12px; background: #FCFBF8; border: 1px solid var(--basalt); border-radius: 5px; box-shadow: inset 0 0 0 3px #FCFBF8, inset 0 0 0 4px var(--vein), 0 10px 20px -14px rgba(36, 39, 42, 0.6); font-size: 0.8rem; color: var(--basalt-soft); }
.tag strong { font: 700 0.92rem/1.2 var(--display); color: var(--basalt); }
.hero-copy .actions { max-width: 460px; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .specimens { order: 2; height: 400px; }
  .spec.main { width: 300px; height: 300px; border-radius: 34px; left: 6%; top: 34px; }
  .spec.small { width: 140px; height: 140px; }
  .spec.one { left: auto; right: 4%; top: 6px; }
  .spec.two { left: auto; right: 0; top: 170px; }
  .tag { left: auto; right: 16%; bottom: 18px; padding: 10px 16px; font-size: 0.88rem; }
  .tag strong { font-size: 1.05rem; }
}

/* Buttons */
.actions { display: grid; gap: 12px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 14px 20px;
  border-radius: 14px; border: 1.5px solid var(--basalt);
  background: rgba(248, 247, 243, 0.7); color: var(--basalt);
  font: 600 1.02rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn:hover { background: var(--marble); color: var(--basalt); }
.btn.primary { background: var(--lapis) url("/img/blue-marble.svg?v=1") center / cover; border-color: var(--lapis); color: #fff; box-shadow: 0 10px 22px -14px rgba(31, 55, 73, 0.9); }
.btn.primary:hover { background-color: var(--lapis-deep); border-color: var(--lapis-deep); color: #fff; filter: brightness(0.92); }
.btn:active { transform: translateY(1px); }
.btn:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn.inline { display: inline-flex; width: auto; }

.tips { list-style: none; margin: 18px 0 0; padding: 0; color: var(--basalt-soft); font-size: 0.95rem; }
.tips li { padding-left: 18px; position: relative; margin: 4px 0; }
.tips li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 2px; background: var(--vein); transform: rotate(45deg); }

/* Screens appear with a short settle when the user acts */
.enter { animation: settle 0.38s ease-out; }
@keyframes settle { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }

/* Analyzing: small photo inside a scanning ring */
.analyzing { display: grid; justify-items: center; text-align: center; gap: 16px; padding-block: clamp(36px, 8vw, 72px); }
.scan { position: relative; width: min(240px, 62vw); aspect-ratio: 1; }
.scan-photo { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: cover; border-radius: 50%; background: var(--limestone-deep); box-shadow: 0 0 0 4px #FCFBF8, 0 18px 30px -16px rgba(36, 39, 42, 0.6); }
.ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 8%, var(--lapis) 30%, var(--gold) 55%, transparent 75% 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); animation: spin 1.6s linear infinite; }
.ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(185, 180, 170, 0.7); }
.beam { position: absolute; inset: 14px; border-radius: 50%; overflow: hidden; pointer-events: none; }
.beam::before { content: ""; position: absolute; left: 0; right: 0; height: 28%; top: -30%; background: linear-gradient(to bottom, transparent, rgba(248, 247, 243, 0.5) 60%, rgba(176, 141, 87, 0.9) 62%, transparent 64%); animation: sweep 1.9s ease-in-out infinite; }
.facets { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); fill: none; stroke: rgba(252, 251, 248, 0.85); stroke-width: 1.2; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 3.2s ease-in-out infinite; filter: drop-shadow(0 0 2px rgba(31, 55, 73, 0.6)); }
.scan-step { margin: 8px 0 0; font: 600 1.05rem/1.4 var(--sans); min-height: 1.5em; }
.scan-step.swap { animation: settle 0.3s ease-out; }
.scan-dots { display: flex; gap: 8px; }
.scan-dots span { width: 8px; height: 8px; background: var(--lapis); transform: rotate(45deg); border-radius: 2px; opacity: 0.25; animation: blink 1.2s ease-in-out infinite; }
.scan-dots span:nth-child(2) { animation-delay: 0.15s; }
.scan-dots span:nth-child(3) { animation-delay: 0.3s; }
.scan-dots span:nth-child(4) { animation-delay: 0.45s; background: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { 0% { top: -30%; } 100% { top: 102%; } }
@keyframes draw { 0% { stroke-dashoffset: 520; opacity: 0; } 15% { opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* Result: small centered photo mounted on a museum specimen label */
.result-wrap { padding-block: clamp(28px, 6vw, 52px); }
.result { width: min(640px, 100%); margin-inline: auto; display: grid; }
.result > * { min-width: 0; }
.result-photo { justify-self: center; position: relative; z-index: 1; width: 156px; height: 156px; object-fit: cover; border-radius: 50%; border: 5px solid #FCFBF8; box-shadow: 0 0 0 1px var(--vein), 0 16px 30px -16px rgba(36, 39, 42, 0.65); margin-bottom: -60px; background: var(--limestone-deep); }
.label {
  background: #FCFBF8;
  border: 1px solid var(--basalt);
  border-radius: 6px;
  padding: 76px clamp(18px, 4vw, 30px) 20px;
  text-align: center;
  box-shadow: inset 0 0 0 4px #FCFBF8, inset 0 0 0 5px var(--vein), 0 14px 30px -24px rgba(36, 39, 42, 0.6);
}
.label h2, h1 { overflow-wrap: break-word; hyphens: auto; }
.label .kind { margin: 0 0 4px; color: var(--basalt-soft); font: 500 0.95rem/1.3 var(--sans); }
.label h2 { font-size: clamp(1.5rem, 5.5vw, 2.1rem); margin: 0 0 10px; }
.sure { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--basalt-soft); }
.sure::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.sure.high::before { background: var(--lapis); }
.sure.low::before { background: #A8584A; }
.label .summary { margin: 14px auto 0; max-width: 48ch; }
.props { margin: 18px 0 0; border-top: 1px solid var(--vein); text-align: left; }
.props div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--vein); }
.props dt { color: var(--basalt-soft); font-size: 0.9rem; }
.props dd { margin: 0; }
.more { display: grid; gap: 12px; margin-top: 16px; }
.more section { background: rgba(252, 251, 248, 0.82); border: 1px solid rgba(185, 180, 170, 0.8); border-radius: 14px; padding: 16px 18px; }
.more h3 { font-size: 1.02rem; margin: 0 0 6px; }
.more ul { margin: 0; padding-left: 20px; }
.more li { margin: 4px 0; }
.more p { margin: 0; }
@media (min-width: 700px) { .more { grid-template-columns: 1fr 1fr; } .more section:first-child { grid-column: 1 / -1; } }
.result-actions { text-align: center; margin-top: 24px; }
.result-actions .btn { min-width: 240px; }
.error-wrap { text-align: center; }

.error-msg { font-weight: 600; margin: 0 0 18px; }

/* Sections */
.section { padding: clamp(48px, 9vw, 88px) 0 0; }
.section > h2, .section-head { margin-bottom: 22px; }
.section-head p { color: var(--basalt-soft); margin: 0; max-width: 52ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { counter-increment: step; padding-top: 14px; border-top: 1px solid var(--vein); }
.steps li::before { content: counter(step); display: block; font: 700 2rem/1 var(--display); color: var(--gold); margin-bottom: 10px; }
.steps p { margin: 0; color: var(--basalt-soft); }

.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--vein); }
.guide-list li { border-bottom: 1px solid var(--vein); }
.guide-list a { display: grid; gap: 4px; padding: 18px 4px; color: inherit; text-decoration: none; }
.guide-list a:hover h3 { color: var(--lapis); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.guide-list p { margin: 0; color: var(--basalt-soft); max-width: 62ch; }
.guide-list .meta { font-size: 0.85rem; color: var(--basalt-soft); }

.faq details { border-bottom: 1px solid var(--vein); padding: 4px 0; }
.faq details:first-of-type { border-top: 1px solid var(--vein); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font: 700 1.08rem/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 400 1.5rem/1 var(--sans); color: var(--basalt-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--basalt-soft); max-width: 64ch; }

/* Articles */
.crumb { font-size: 0.92rem; margin: 18px 0 18px; color: var(--basalt-soft); }
.article-head { padding: 8px 0 26px; border-bottom: 1px solid var(--vein); margin-bottom: 28px; }
.article-head .intro { font: 400 1.2rem/1.55 var(--sans); color: var(--basalt-soft); margin: 0 0 14px; }
.article-head .meta { font-size: 0.88rem; color: var(--basalt-soft); margin: 0; }
.prose { font: 400 1.08rem/1.75 var(--sans); }
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.25rem; margin: 28px 0 6px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 700; }
.prose .note { font: 400 1rem/1.6 var(--sans); background: var(--marble); border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font: 400 0.98rem/1.45 var(--sans); }
.prose th, .prose td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--vein); vertical-align: top; }
.prose th { font-weight: 650; }
.table-wrap { overflow-x: auto; }

.cta { margin: 44px 0 0; display: grid; gap: 16px; }
.cta h2 { margin: 0; }
.cta p { margin: 0; color: var(--basalt-soft); max-width: 46ch; }
@media (min-width: 700px) { .cta { grid-template-columns: 1fr auto; align-items: center; } }

/* Plain pages */
.page { padding-bottom: 8px; }
.page .prose { margin-top: 8px; }

/* Footer */
.site-footer { margin-top: clamp(56px, 10vw, 96px); padding: 28px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--vein); color: var(--basalt-soft); font-size: 0.9rem; }
.site-footer .container { display: grid; gap: 14px; }
@media (min-width: 760px) { .site-footer .container { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { color: var(--basalt); }
.site-footer p { margin: 0; max-width: 60ch; }

@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; padding: 14px 0 16px; row-gap: 12px; }
  .tabs { width: 100%; gap: 4px; padding: 4px; background: rgba(221, 215, 203, 0.7); border-radius: 13px; }
  .tabs a { flex: 1; text-align: center; padding: 9px 6px; font-size: 0.95rem; }
  .tabs a:hover { background: rgba(248, 247, 243, 0.6); }
  .tabs a[aria-current="page"] { background: var(--marble); box-shadow: 0 1px 2px rgba(36, 39, 42, 0.12); }
  .tabs a[aria-current="page"]::after { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .brand { font-size: 1.08rem; }
  .brand img { width: 30px; height: 30px; }
  .slab { border-radius: 22px; }
  .props div { grid-template-columns: 7.5em 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .enter, .scan-step.swap, .beam::before, .facets { animation: none; }
  .facets { stroke-dashoffset: 0; opacity: 0.6; }
  .ring { animation-duration: 6s; }
}

/* Photos in articles */
.cover { margin: 0 0 30px; }
.cover img, .prose figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--limestone-deep); box-shadow: 0 18px 34px -26px rgba(36, 39, 42, 0.7); }
.prose figure { margin: 30px 0; }
.cover figcaption, .prose figure figcaption { margin-top: 10px; font: 400 0.9rem/1.5 var(--sans); color: var(--basalt-soft); }
.credit { display: inline-block; font-size: 0.8rem; opacity: 0.85; }

/* Guides list with photo cards */
.guide-list.cards { border-top: 0; display: grid; gap: 18px; }
@media (min-width: 720px) { .guide-list.cards { grid-template-columns: 1fr 1fr; gap: 24px; } }
.guide-list.cards li { border-bottom: 0; }
.guide-list.cards a { height: 100%; padding: 0; gap: 0; background: var(--marble); border: 1px solid rgba(185, 180, 170, 0.8); border-radius: 20px; overflow: hidden; box-shadow: 0 14px 30px -26px rgba(36, 39, 42, 0.7); }
.guide-list.cards img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--limestone-deep); }
.guide-list.cards a > div { display: grid; gap: 6px; padding: 18px 20px 20px; }
.guide-list.cards h3 { font-size: 1.12rem; }

/* Very small phones */
.props dd { overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .specimens { height: 176px; }
  .spec.main { width: 148px; height: 148px; left: calc(50% - 124px); }
  .spec.small { width: 82px; height: 82px; }
  .spec.one { left: calc(50% + 26px); }
  .spec.two { left: calc(50% + 40px); top: 86px; }
  .tag { left: calc(50% - 92px); }
  .props div { grid-template-columns: 6.5em 1fr; gap: 8px; }
}

/* Free scans left, limit reached */
.quota { margin: 16px 0 0; font-size: 0.95rem; color: var(--basalt-soft); }
.error-sub { margin: -6px auto 18px; max-width: 40ch; color: var(--basalt-soft); }
.error-wrap .btn + .btn { margin-left: 8px; }
@media (max-width: 420px) { .error-wrap .btn { display: flex; width: 100%; } .error-wrap .btn + .btn { margin: 10px 0 0; } }

/* Pricing */
.interval { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 22px; background: rgba(221, 215, 203, 0.7); border-radius: 13px; }
.interval button { border: 0; background: none; padding: 10px 16px; border-radius: 10px; font: 600 0.97rem/1.2 var(--sans); color: var(--basalt-soft); cursor: pointer; }
.interval button[aria-pressed="true"] { background: var(--marble); color: var(--basalt); box-shadow: 0 1px 2px rgba(36, 39, 42, 0.12); }
.interval .save { margin-left: 4px; font-size: 0.8rem; color: var(--gold); font-weight: 700; }
.plans { display: grid; gap: 18px; }
@media (min-width: 680px) { .plans { grid-template-columns: 1fr 1fr; align-items: start; } }
.plan { position: relative; display: grid; gap: 4px; padding: 26px 24px 24px; background: var(--marble); border: 1px solid rgba(185, 180, 170, 0.8); border-radius: 22px; box-shadow: 0 14px 30px -26px rgba(36, 39, 42, 0.7); }
.plan.pro { background: var(--marble) url("/img/marble.svg?v=1") center / cover no-repeat; border: 1.5px solid var(--lapis); }
.plan h2 { margin: 0; font-size: 1.4rem; }
.plan .badge { position: absolute; top: -12px; right: 20px; margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #fff; font: 700 0.75rem/1.4 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; }
.price { margin: 6px 0 4px; color: var(--basalt-soft); }
.price[hidden] { display: none; }
.price strong { font: 700 2.1rem/1.1 var(--display); color: var(--basalt); letter-spacing: -0.02em; }
.price .per { display: block; font-size: 0.9rem; }
.ticks { list-style: none; margin: 10px 0 20px; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 28px; border-top: 1px solid rgba(185, 180, 170, 0.6); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.75em; width: 12px; height: 6px; border-left: 2px solid var(--lapis); border-bottom: 2px solid var(--lapis); transform: rotate(-45deg); }
.ticks em { color: var(--basalt-soft); font-size: 0.9em; }
.btn:disabled { opacity: 0.55; cursor: default; }
.signin-box { margin-top: 14px; padding: 14px; background: rgba(252, 251, 248, 0.9); border: 1px solid var(--vein); border-radius: 14px; }
.signin-box[hidden] { display: none; }
.signin-box p { margin: 0 0 10px; font-size: 0.95rem; }
.small-msg { margin: 10px 0 0; font-size: 0.92rem; color: var(--basalt-soft); min-height: 1em; }
.narrow-faq { margin-top: 40px; max-width: 720px; }

/* Account */
.account-box { display: grid; gap: 14px; }
.account-box p { margin: 0; }
.plan-box { padding: 18px 20px; background: var(--marble); border: 1px solid rgba(185, 180, 170, 0.8); border-radius: 18px; display: grid; gap: 4px; }
.plan-line { font-size: 1.1rem; }
.welcome { padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--marble); border-radius: 8px; font-weight: 600; }
.account-actions { display: grid; gap: 10px; max-width: 360px; }
.btn.quiet { border-color: transparent; background: none; color: var(--basalt-soft); min-height: 44px; }

/* Article FAQ + Keep reading (added 2026-11-16) */
.article-faq { margin: 44px 0 0; }
.article-faq h2, .keep-reading h2 { font-size: 1.35rem; margin: 0 0 14px; }
.keep-reading { margin: 48px 0 0; }
@media (min-width: 720px) { .keep-reading .guide-list.cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.keep-reading .guide-list.cards h3 { font-size: 1rem; }
.keep-reading .guide-list.cards p { font-size: 0.92rem; }

/* Library (Pro) */
.lib-item { background: var(--marble); border: 1px solid var(--vein); border-radius: 12px; padding: 12px 16px; margin: 0 0 10px; }
.lib-item summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.lib-name { font-weight: 700; }
.lib-meta { color: var(--basalt-soft); font-size: 0.9rem; }
.lib-item[open] summary { margin-bottom: 8px; }

/* Sign in / Account button in the header (text switches to "Account" when signed in) */
.account-pill { padding: 8px 16px; border: 1px solid var(--lapis); border-radius: 999px; color: var(--lapis); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; background: var(--marble); }
.account-pill:hover { background: var(--lapis); color: #fff; }
.site-header .tabs { margin-left: auto; }
@media (max-width: 600px) {
  .site-header .tabs { order: 3; margin-left: 0; }
  .account-pill { padding: 6px 14px; }
}
