/* Aurifexia website. One stylesheet for every page; colours and type follow the app and the logo. */
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/CormorantGaramond.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #0e1014;
  --panel: #16191f;
  --panel-2: #1c2028;
  --line: #2a2f3a;
  --text: #e8eaef;
  --muted: #a3aab8;
  --gold: #d8b46c;
  --gold-hi: #f6e2a8;
  --gold-lo: #a47a2c;
  --gold-ink: #1a1408;
  --wide: 1160px;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
.wrap { width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }
.eyebrow { font: 600 0.74rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.1em; }
.gold { background: linear-gradient(120deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.82em 1.4em; border-radius: 999px; font: 600 0.95rem/1 var(--sans); border: 1px solid var(--line); color: var(--text); background: transparent; transition: transform 0.15s, border-color 0.15s, background 0.15s; }
.btn:hover { border-color: var(--gold); color: var(--text); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(120deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo)); color: var(--gold-ink); border-color: transparent; }
.btn.primary:hover { color: var(--gold-ink); filter: brightness(1.06); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(14, 16, 20, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.5rem/1 var(--serif); color: var(--text); letter-spacing: 0.04em; }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--gold); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.nav a[aria-current='page'] { box-shadow: 0 2px 0 var(--gold); }
.nav .btn { color: var(--gold-ink); padding: 0.7em 1.15em; }
.nav .signin { color: var(--text); padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 44px; height: 44px; font-size: 1.2rem; }
@media (max-width: 1040px) {
  .menu-btn { display: block; }
  .nav .signin { padding-inline-start: 0; border-inline-start: 0; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current='page'] { box-shadow: none; color: var(--gold); }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
}

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
section.tight { padding: clamp(36px, 5vw, 60px) 0; }
.band { background: var(--panel); border-block: 1px solid var(--line); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Home hero */
.hero { padding-top: clamp(48px, 7vw, 88px); background: radial-gradient(900px 480px at 78% 10%, rgba(216, 180, 108, 0.13), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-art { position: relative; }
.clip { display: block; width: 100%; height: auto; background: #0e1014; }
.hero-art img, .hero-art video { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.ticker { position: absolute; left: -14px; bottom: 26px; display: grid; gap: 4px; padding: 14px 18px; background: rgba(22, 25, 31, 0.94); border: 1px solid var(--gold-lo); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); font-size: 0.86rem; }
.ticker b { font: 600 1.5rem/1.1 var(--serif); color: var(--gold); }
.ticker span { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 1.8em; color: var(--muted); font-size: 0.92rem; }
.facts li { list-style: none; display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.facts { padding: 0; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .ticker { left: 12px; bottom: 12px; } }

/* Cards and grids */
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g3, .g4, .g2 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.band .card { background: var(--panel-2); }
.card h3 { font-size: 1.36rem; margin-bottom: 0.4em; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.num { font: 600 2.6rem/1 var(--serif); color: var(--gold); display: block; margin-bottom: 0.3em; }

/* A row with words on one side and a picture on the other */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.row + .row { margin-top: clamp(56px, 8vw, 100px); }
.row.flip > :first-child { order: 2; }
.tour video { margin-top: 34px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.row img, .row video { border-radius: 16px; border: 1px solid var(--line); background: #0b0d10; }
.row ul { padding: 0; margin: 1.2em 0 0; }
.row li { list-style: none; padding: 9px 0 9px 26px; position: relative; color: var(--muted); border-top: 1px solid var(--line); }
.row li::before { content: ''; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--gold); }
.row li b { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; } .row.flip > :first-child { order: 0; } }

/* Page headers of the inner pages */
.page-head { padding: clamp(52px, 7vw, 92px) 0 clamp(20px, 3vw, 36px); background: radial-gradient(800px 380px at 50% -10%, rgba(216, 180, 108, 0.12), transparent 70%); }

/* Gallery */
.pieces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pieces { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pieces { grid-template-columns: 1fr; } }
.piece { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.piece img, .piece video { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: #0b0d10; display: block; }
.piece div { padding: 16px 18px 18px; display: grid; gap: 4px; }
.piece h3 { font-size: 1.22rem; margin: 0; }
.piece small { color: var(--muted); font-size: 0.86rem; }
.piece a { font-size: 0.9rem; font-weight: 600; margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.filters button { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 500 0.9rem var(--sans); cursor: pointer; }
.filters button[aria-pressed='true'] { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.plan.now { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-lo), 0 24px 60px rgba(0, 0, 0, 0.4); }
.plan .tag { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.plan .price { font: 600 2.6rem/1.1 var(--serif); margin: 0.35em 0 0.1em; }
.plan .price small { font: 400 1rem var(--sans); color: var(--muted); }
/* Monthly or yearly prices on the plan cards, chosen with the switch above them (monthly until it is moved). */
.billing { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 26px; flex-wrap: wrap; }
.billing-word { color: var(--muted); font-weight: 600; cursor: pointer; transition: color 0.2s; }
.billing-word b { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-lo); border-radius: 999px; padding: 4px 8px; margin-left: 6px; vertical-align: 2px; }
.billing-word.on { color: var(--text); }
.billing-switch { position: relative; width: 56px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; padding: 0; flex: none; }
.billing-switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); transition: transform 0.2s ease; }
.billing-switch[aria-checked="true"] span { transform: translateX(26px); }
.billing-switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.plan .by-year { display: none; }
.plans.yearly .plan .by-year { display: inline; }
.plans.yearly .plan .by-month { display: none; }
.plan ul { padding: 0; margin: 1.2em 0 1.6em; flex: 1; }
.plan li { list-style: none; padding: 8px 0 8px 24px; position: relative; color: var(--muted); font-size: 0.96rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); }
.note-box { border: 1px dashed var(--gold-lo); border-radius: 14px; padding: 18px 22px; color: var(--muted); background: rgba(216, 180, 108, 0.05); }

/* Questions and answers */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 1.28rem var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--gold); font-family: var(--sans); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin: 0.8em 0 0; }

/* Help */
.help-layout { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
.help-nav { position: sticky; top: 92px; display: grid; gap: 2px; font-size: 0.93rem; max-height: calc(100vh - 120px); overflow: auto; }
.help-nav a { color: var(--muted); padding: 7px 12px; border-inline-start: 2px solid var(--line); }
.help-nav a:hover { color: var(--text); border-color: var(--gold); }
.help-nav strong { margin: 14px 0 6px; font: 600 0.72rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.guide { padding: 0 0 38px; margin: 0 0 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.guide ol, .guide ul { padding-inline-start: 1.25em; color: var(--muted); }
.guide li { margin-bottom: 0.55em; }
.search { width: 100%; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 1rem var(--sans); margin-bottom: 30px; }
.search:focus { outline: none; border-color: var(--gold); }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; } .help-nav { position: static; max-height: none; } }
.guide h3 { font-size: 1.6rem; }

/* Learn: the three parts, the lesson cards, and one tool's lesson */
.learn-find { max-width: 720px; margin-top: 26px; }
.learn-find .search { margin-bottom: 0; }
.find-none { color: var(--muted); margin-top: 14px; }
.learn-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; max-width: 860px; }
.learn-parts a { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--panel); color: var(--text); display: grid; gap: 4px; }
.learn-parts a:hover { border-color: var(--gold); }
.learn-parts b { font: 600 1.3rem var(--serif); }
.learn-parts span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 600px) { .learn-parts { grid-template-columns: 1fr; } }
#tutorials, #help, #faq { scroll-margin-top: 80px; }
.lesson-group { margin-top: 44px; }
.lesson-group-title { font-size: 1.7rem; margin: 0; }
.lesson-group-intro { color: var(--muted); margin: 0.3em 0 18px; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.lesson-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--panel); color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.lesson-card:hover { border-color: var(--gold); color: var(--text); transform: translateY(-2px); }
.lesson-card h3 { font-size: 1.3rem; margin: 0; }
.lesson-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.lesson-where { font: 600 0.7rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.lesson-where i, .crumbs i, .lesson-path i { font-style: normal; color: var(--muted); margin: 0 0.3em; }
.crumbs { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.2em; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.plan-note { display: inline-block; margin-top: 10px; padding: 6px 12px; border: 1px solid var(--gold-lo); border-radius: 999px; color: var(--gold); font-size: 0.85rem; }
.lesson { display: grid; gap: 54px; max-width: 900px; }
.lesson h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 0.5em; }
.lesson article p { color: var(--muted); max-width: 70ch; }
.lesson article .note-box ul { margin: 0.6em 0 0; padding-inline-start: 1.2em; }
.lesson-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text) !important; margin-bottom: 18px; }
.lesson-path span { border: 1px solid var(--gold-lo); border-radius: 8px; padding: 5px 11px; background: rgba(216, 180, 108, 0.07); font-weight: 600; font-size: 0.95rem; }
.lesson-film { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #0b0d10; margin: 4px 0 18px; box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4); }
.lesson-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lesson-next a { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; color: var(--text); display: grid; gap: 2px; font-weight: 600; }
.lesson-next a:hover { border-color: var(--gold); }
.lesson-next small { color: var(--muted); font-weight: 400; }
.lesson-next .to-next { text-align: end; }
[data-find][hidden], [data-find-group][hidden], [data-find-hide][hidden] { display: none !important; }
.learn-parts.big { grid-template-columns: repeat(3, 1fr); max-width: none; margin-top: 0; gap: 18px; }
.learn-parts.big a { padding: 26px 28px; gap: 8px; }
.learn-parts.big b { font-size: 1.9rem; }
.learn-parts.big em { font-style: normal; color: var(--gold); font-weight: 600; font-size: 0.92rem; margin-top: 6px; }
@media (max-width: 700px) { .learn-parts.big { grid-template-columns: 1fr; } }
.find-results { display: grid; gap: 10px; max-width: 860px; }
.find-hit { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--panel); color: var(--text); }
.find-hit:hover { border-color: var(--gold); color: var(--text); }
.find-hit small { font: 600 0.7rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.find-hit b { font: 600 1.2rem var(--serif); }
.find-hit span { color: var(--muted); font-size: 0.92rem; }
.courses { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .courses { grid-template-columns: 1fr; } }
.course { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--panel); color: var(--text); }
a.course { border-color: var(--gold-lo); box-shadow: 0 0 0 1px var(--gold-lo), 0 20px 50px rgba(0, 0, 0, 0.35); }
a.course:hover { border-color: var(--gold); color: var(--text); transform: translateY(-2px); }
.course h2 { font-size: 2.2rem; margin: 0; }
.course p { color: var(--muted); margin: 0; }
.course ul { margin: 6px 0 0; padding-inline-start: 1.1em; color: var(--muted); font-size: 0.94rem; }
.course em { font-style: normal; color: var(--gold); font-weight: 600; margin-top: auto; padding-top: 8px; }
.course-tag { align-self: flex-start; font: 600 0.7rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-lo); border-radius: 999px; padding: 5px 10px; }
.course.soon { opacity: 0.72; }
.course.soon .course-tag { color: var(--muted); border-color: var(--line); }
ol.how { padding-inline-start: 1.4em; color: var(--muted); max-width: 70ch; }
ol.how li { margin-bottom: 0.6em; padding-inline-start: 0.3em; }
ol.how li::marker { color: var(--gold); font-weight: 600; }
.lesson-group { scroll-margin-top: 80px; }

/* The Learn drop-down in the site's menu */
.drop { position: relative; }
.drop-btn { display: inline-flex; align-items: center; gap: 6px; }
.drop-btn .caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.drop:hover .caret, .drop:focus-within .caret, .drop.open .caret { transform: translateY(1px) rotate(225deg); }
.drop-panel { position: absolute; top: calc(100% + 10px); left: -18px; min-width: 300px; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s; z-index: 60; }
.drop-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* the gap the pointer crosses */
.drop:hover .drop-panel, .drop:focus-within .drop-panel, .drop.open .drop-panel { opacity: 1; visibility: visible; transform: none; }
.drop-panel a { display: grid; gap: 2px; padding: 11px 14px; border-radius: 10px; border: 0 !important; color: var(--text) !important; }
.drop-panel a:hover { background: rgba(216, 180, 108, 0.08); }
.drop-panel b { font-weight: 600; font-size: 0.98rem; }
.drop-panel small { color: var(--muted); font-size: 0.84rem; }
@media (max-width: 900px) {
  .drop-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 12px; min-width: 0; }
  .drop-panel::before { display: none; }
  .drop-btn .caret { display: none; }
}

/* The closing call on every page */
.cta { text-align: center; background: radial-gradient(700px 300px at 50% 100%, rgba(216, 180, 108, 0.16), transparent 70%); }
.cta .btns { justify-content: center; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 46px 0 34px; color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-foot h4 { font: 600 0.74rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); margin: 0 0 12px; }
.site-foot a { display: block; color: var(--muted); padding: 4px 0; }
.site-foot a:hover { color: var(--gold); }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.84rem; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }
table.compare { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 0.96rem; }
table.compare th, table.compare td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { color: var(--gold); font: 600 0.74rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
table.compare td:first-child { color: var(--text); font-weight: 600; }
table.compare td { color: var(--muted); }
.scroll-x { overflow-x: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
