/* Polaris website: the same look as Budget App (Ledger theme, IBM Plex Sans). */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #f6f3ea; --surface: #fffdf7; --header: #ede7d8; --border: #dcd3bf;
  --text: #1f1d1a; --muted: #5c564c; --ink: #22303e; --on-ink: #fffdf7; --focus: #2b5c8c;
  --good: #1f6b3a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "IBM Plex Sans", system-ui, sans-serif; }
a { color: var(--ink); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

header.site { background: var(--surface); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand img { display: block; border-radius: 4px; }
.brand { font-weight: 600; font-size: 18px; text-decoration: none; color: var(--text); margin-right: auto; display: inline-flex; align-items: center; gap: 8px; }
.brand svg { flex-shrink: 0; }
nav.site { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
nav.site a { text-decoration: none; color: var(--muted); }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 4px; font-weight: 600; text-decoration: none; color: var(--ink); background: transparent; }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

.hero { padding-top: 64px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 16px; font-weight: 600; max-width: 760px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 680px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.small { font-size: 14px; color: var(--muted); }

.shot { border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 8px 28px rgba(31, 29, 26, 0.12); background: var(--surface); }
section { padding: 40px 0; }
section + section { border-top: 1px solid var(--border); }
h2 { font-size: 26px; line-height: 1.25; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 18px; margin: 0 0 6px; font-weight: 600; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.feature.flip > :first-child { order: 2; }
@media (max-width: 820px) { .feature, .feature.flip { grid-template-columns: 1fr; gap: 20px; } .feature.flip > :first-child { order: 0; } }
.feature ul { padding-left: 20px; margin: 12px 0 0; }
.feature li + li { margin-top: 6px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.price { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 28px; max-width: 560px; }
.price .amount { font-size: 40px; font-weight: 600; line-height: 1.1; }
.price ul { padding-left: 20px; }

.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

main.doc { padding: 48px 0 64px; }
main.doc .wrap { max-width: 780px; }
main.doc h1 { font-size: 34px; margin: 0 0 6px; }
main.doc h2 { font-size: 21px; margin: 32px 0 8px; }
main.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.note { background: var(--header); border-radius: 6px; padding: 14px 18px; }

footer.site { background: var(--surface); border-top: 1px solid var(--border); padding: 28px 0; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site .copy { margin-right: auto; }

/* Pricing and About: the plain facts, and the buying steps */
.facts { border-collapse: collapse; width: 100%; max-width: 860px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--border); }
.facts tr:first-child th, .facts tr:first-child td { border-top: 0; }
.facts th { width: 190px; font-weight: 600; }
@media (max-width: 600px) { .facts th, .facts td { display: block; width: auto; } .facts td { border-top: 0; padding-top: 0; } }
.steps { padding-left: 22px; max-width: 760px; }
.steps li + li { margin-top: 10px; }

/* Zoomable screenshots */
a.zoom { display: block; cursor: zoom-in; }
a.zoom:hover .shot { box-shadow: 0 10px 32px rgba(31, 29, 26, 0.2); }
.zoom-hint { margin: 10px 0 0; text-align: center; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: auto; }
dialog.lightbox::backdrop { background: rgba(20, 20, 18, 0.82); }
dialog.lightbox img { width: auto; max-width: 96vw; max-height: 88vh; border-radius: 6px; cursor: zoom-out; background: var(--surface); }
dialog.lightbox .lb-cap { color: #fffdf7; font-size: 14px; text-align: center; margin: 8px 0 0; }
dialog.lightbox .lb-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; font-size: 30px; line-height: 1; background: #fffdf7; color: var(--text); cursor: pointer; }
@media (max-width: 820px) { dialog.lightbox img { max-width: none; width: 1360px; max-height: none; } }

/* Video tour */
video.shot { width: 100%; height: auto; display: block; margin: 16px 0 10px; }

/* Questions, in groups, opened one at a time */
.faq-group { margin: 28px 0 4px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
details.faq { border-bottom: 1px solid var(--border); max-width: 820px; }
details.faq summary { cursor: pointer; font-weight: 600; padding: 14px 28px 14px 0; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--muted); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin: 0 0 16px; color: var(--muted); }
/* What people say (index.html) */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 20px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.review .stars { margin: 0; letter-spacing: 2px; }
.review blockquote { margin: 0; font-size: 16px; }
.review figcaption { color: var(--muted); font-size: 14px; }

/* PROMO: New Year launch price banner (remove with the PROMO blocks in the pages) */
.promo { background: var(--ink); color: var(--on-ink); font-size: 15px; padding: 10px 0; text-align: center; }
.promo .wrap { display: flex; gap: 6px 10px; flex-wrap: wrap; justify-content: center; align-items: baseline; }
.promo a { color: var(--on-ink); font-weight: 600; }
.promo-tag { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 999px; background: #f4d58d; color: #3d2c00; font-size: 13px; font-weight: 600; }
