/* Roasters Pal website styles.
   Change the colours and fonts here; every page uses these variables. */
:root {
  --bg: #15110E;          /* page background */
  --card: #201A16;        /* cards and panels */
  --card-hi: #2A1E15;     /* highlighted card */
  --line: #2E2620;        /* borders */
  --line-2: #4A3E35;      /* input and button borders */
  --text: #F5EEE6;        /* main text */
  --text-2: #CFC3B6;      /* body copy */
  --muted: #BDB0A3;       /* small print */
  --accent: #EDB84A;      /* gold, from the Classic theme */
  --on-accent: #2A1A10;   /* text on gold */
  --green: #7FC8A9;       /* Roast Logger / hardware accent */
  --phone: #2A231E;       /* phone frame */
  --radius: 24px;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.01em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 64px; padding-bottom: 64px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.eyebrow.green { color: var(--green); }
.h2 { margin: 10px 0 16px; font-size: clamp(30px, 3.8vw, 46px); }
.lead { margin: 0; color: var(--text-2); font-size: 17px; }
.muted { color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.col { flex: 1 1 400px; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(21,17,14,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; }
.logo img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; font-size: 15px; }
.menu a { text-decoration: none; color: #D6CBBF; padding: 10px 0; }
.menu a[aria-current="page"] { color: var(--accent); }
.menu a.nav-cloud { color: var(--green); font-weight: 500; }   /* Roasters Pal Cloud has its own teal */
.menu a.nav-cloud:hover { color: #A6E0C8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); background: transparent; color: var(--text); }
.btn-gold, .menu a.btn-gold { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.menu a.btn { padding: 10px 18px; }
.btn-gold:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn-light { background: var(--text); color: var(--bg); border-color: var(--text); }

/* phones */
.phone { border-radius: 34px; border: 8px solid var(--phone); background: #0B0907; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
/* Every phone screen has the same shape (560 x 1045 px screenshots fit exactly); other sizes are cropped from the top */
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 1045; object-fit: cover; object-position: top; }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.phones .phone { width: 240px; max-width: 48%; }
.phones .drop { margin-top: 56px; }
.glow { position: absolute; width: 460px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; top: 30px; background: radial-gradient(circle, var(--glow, rgba(237,184,74,0.22)), transparent 70%); pointer-events: none; transition: background .4s; }

/* hero */
.hero { padding-top: 80px; padding-bottom: 56px; overflow-x: clip; }
.badge-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 14px; color: #E3D9CE; border: 1px solid #3A3029; border-radius: 999px; padding: 6px 14px; }
.tag { font-size: 12px; font-weight: 600; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 1px 9px; }
.hero h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.02em; }
.hero .lead { margin-top: 24px; font-size: 19px; max-width: 540px; }
.stores { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; padding: 12px 22px; border-radius: 14px; min-height: 44px; border: 1px solid var(--line-2); }
.store.light { background: var(--text); color: var(--bg); border-color: var(--text); }
.store small { display: block; font-size: 12px; line-height: 1.1; }
.store b { display: block; font-size: 17px; line-height: 1.2; }
.ticks { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--muted); }
.ticks span { display: flex; align-items: center; gap: 8px; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; padding-top: 20px; }
.hero-phones .phone.front { position: relative; z-index: 2; width: 260px; max-width: 58%; }
.hero-phones .phone.back { position: relative; z-index: 1; width: 230px; max-width: 50%; margin-left: -48px; margin-bottom: -28px; transform: rotate(4deg); }

/* cards */
/* the four tabs: 4 in a row, 2 x 2 on tablets, stacked on phones - always as one even block */
.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1060px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.card.hi { background: var(--card-hi); border-color: #4A3A28; }
.card h3 { margin: 18px 0 8px; font-size: 22px; }
.card p { margin: 0; color: var(--text-2); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--line); display: grid; place-items: center; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }

.checks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; margin-top: 3px; }
.chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.chip { flex: 1 1 160px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.chip b { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; }
.chip span { color: var(--muted); font-size: 14px; }
.wide-shot { border-radius: 22px; border: 8px solid var(--phone); overflow: hidden; background: #0B0907; box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.wide-shot img { display: block; width: 100%; }

/* AI list */
.ai-list { margin: 0; padding: 0; list-style: none; }
.ai-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ai-list svg { flex: none; margin-top: 3px; }
.ai-list b { display: block; font-weight: 600; }
.ai-list span { display: block; color: var(--muted); font-size: 15px; }
.ai-phones .phone { width: 220px; max-width: 32%; border-width: 7px; border-radius: 28px; }

/* themes */
/* six theme buttons: one row, or two even rows of three on narrower screens */
.theme-pills { display: grid; grid-template-columns: repeat(6, auto); justify-content: start; gap: 8px; }
@media (max-width: 1180px) { .theme-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 440px; } }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 14px; font-size: 15px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.pill[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); }
#themes .row { flex-wrap: wrap; }
.theme-text { flex: 3 1 480px; }
.theme-stage { position: relative; display: flex; justify-content: center; flex: 2 1 300px; }
.theme-stage .phone { position: relative; width: 300px; max-width: 80%; border-width: 9px; border-radius: 38px; }

/* dark / light curtain: the dark screenshot on the left of the line, the light one on the right */
.curtain { position: relative; user-select: none; }
.curtain .shot-dark { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.curtain-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,.5); pointer-events: none; }
.curtain-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(21,17,14,.55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.curtain-tag { position: absolute; bottom: 74px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px; pointer-events: none; }
.curtain-tag.dark { left: 12px; background: rgba(21,17,14,.75); color: #F5EEE6; }
.curtain-tag.light { right: 12px; background: rgba(245,238,230,.9); color: #15110E; }
.curtain-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.curtain-range:focus-visible + * , .curtain:has(.curtain-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.curtain.single .shot-dark, .curtain.single .curtain-line, .curtain.single .curtain-tag, .curtain.single .curtain-range { display: none; }
.thumbs { margin-top: 40px; display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.thumb { flex: 0 0 150px; padding: 0; border-radius: 20px; overflow: hidden; cursor: pointer; background: #0B0907; border: 4px solid var(--phone); opacity: .7; }
.thumb[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }
.thumb img { display: block; width: 100%; }

/* features grid in logger */
.facts { display: flex; flex-wrap: wrap; gap: 14px; }
.fact { flex: 1 1 220px; min-width: 0; border-top: 2px solid #3A3029; padding-top: 14px; }
.fact h3 { margin: 0 0 4px; font: 600 17px var(--body); letter-spacing: 0; }
.fact p { margin: 0; color: var(--muted); font-size: 15px; }
.stats { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 28px; }
.stats b { display: block; font-family: var(--display); font-size: 36px; color: var(--accent); line-height: 1.2; }
.stats span { color: var(--muted); font-size: 14px; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; text-decoration: none; font-weight: 600; padding: 10px 0; color: var(--accent); }
.more.green { color: var(--green); }

/* pricing */
.center { text-align: center; }
.plans { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; }
.plan { flex: 1 1 300px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.plan.best { background: var(--card-hi); border: 2px solid var(--accent); }
.plan h3 { margin: 0; font: 600 18px var(--body); color: var(--text-2); letter-spacing: 0; display: flex; justify-content: space-between; align-items: center; }
.price { margin: 0; font-family: var(--display); font-size: 48px; font-weight: 700; line-height: 1; }
.price small { font-size: 18px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #E3D9CE; flex: 1; }

/* blog cards */
.posts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 20px; }
.post-card { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; }
.post-card:hover { border-color: var(--line-2); color: var(--text); }
.post-card .pimg { aspect-ratio: 16 / 9; background: #2A231E center / cover no-repeat; }
.post-card .pbody { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.post-card time { font-size: 14px; color: var(--muted); }
.post-card h3 { margin: 0; font-size: 22px; }
.post-card p { margin: 0; color: var(--text-2); }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq .answer { padding: 0 0 20px; color: var(--text-2); }
.faq .answer p:first-child { margin-top: 0; }

/* video links */
.videos { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; }
.video { flex: 1 1 200px; min-width: 0; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.video .play { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.video span span { display: block; font-size: 14px; color: var(--muted); }

/* call to action */
.cta { border-radius: 28px; background: var(--accent); color: var(--on-accent); padding: clamp(32px, 5vw, 60px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); }
.cta a { text-decoration: none; background: var(--bg); color: var(--text); padding: 14px 24px; border-radius: 14px; font-weight: 600; }

/* forms */
.form { display: grid; gap: 14px; }
.form .two { display: flex; flex-wrap: wrap; gap: 14px; }
.form label { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.form input, .form textarea, .inline-form input { background: var(--card); border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit; }
.form textarea { resize: vertical; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input { flex: 1 1 220px; min-width: 0; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-size: 15px; min-height: 1.6em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #F2A08F; }
.fine { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* article pages (blog posts, about, privacy, guides) */
.article { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.article h1 { font-size: clamp(34px, 5vw, 52px); margin: 8px 0 10px; }
.article .meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.prose { color: var(--text-2); font-size: 17px; line-height: 1.7; }
.prose h2 { color: var(--text); font-size: 30px; margin: 44px 0 12px; }
.prose h3 { color: var(--text); font-size: 22px; margin: 32px 0 8px; }
.prose a { color: var(--accent); }
.prose img { display: block; border-radius: 14px; margin: 24px auto; }
.prose figure { margin: 28px 0; }
.prose figcaption { text-align: center; font-size: 14px; color: var(--muted); }
.prose blockquote { margin: 24px 0; padding: 16px 22px; border-radius: 14px; background: var(--card); color: var(--text); }
.prose blockquote p { margin: 0; }
.prose code { background: var(--card); border-radius: 6px; padding: 2px 6px; font-size: .9em; }
.prose pre { background: #0B0907; border: 1px solid var(--line); border-radius: 14px; padding: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; }

/* footer */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot a { color: var(--muted); }

@media (max-width: 560px) {
  .section { padding-top: 48px; padding-bottom: 48px; }
  .hero { padding-top: 48px; }
  .menu { gap: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .glow { transition: none; } }

/* AI section: phones with a landscape tablet under them (tablet screenshots 4:3, e.g. 1200 x 900; others are cropped) */
.ai-media { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.tablet { width: min(100%, 460px); border-radius: 26px; border: 12px solid var(--phone); background: #0B0907; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.tablet img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.ai-phones { width: 100%; }

/* highlighted note (Roast to target: Artisan / Aillio profiles) */
.callout { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  background: var(--card-hi); border: 1px solid #4A3A28; }
.callout svg { flex: none; margin-top: 2px; }
.callout p { margin: 0; color: var(--text-2); font-size: 15px; }
.callout strong { color: var(--text); }
.callout a { color: var(--accent); }

/* desktop monitor (Roasters Pal Cloud): screenshots 16:10, e.g. 1600 x 1000, dark and light */
.desktop-col { display: flex; justify-content: center; }
.desktop { width: min(100%, 620px); }
.desktop-screen { position: relative; border: 12px solid var(--phone); border-bottom-width: 22px; border-radius: 16px; overflow: hidden;
  background: #0B0907; box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.desktop-screen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.desktop-stand { width: 26%; height: 54px; margin: 0 auto; background: linear-gradient(#2A231E, #1D1814);
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.desktop-screen .curtain-tag { bottom: auto; top: 12px; }

/* Roast to target: the tablet fills its column; AI section: the wide phone sits under the phones */
.tablet.tablet-lg { width: 100%; max-width: 680px; margin: 0 auto; }
.ai-media .wide-shot { width: min(100%, 560px); }
