/* Phapur – shared styles */
:root {
  --ink: #15171C;
  --ink-2: #45474D;
  --ink-3: #5B5E66;
  --paper: #F7F6F2;
  --paper-2: #ECEAE3;
  --line: #D6D3CA;
  --line-2: #E6E3DA;
  --white: #FFFFFF;
  --accent: #2747D6;
  --radius: 10px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 12px 16px; z-index: 10; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 24px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-weight: 500; font-size: 15px; }
.nav a { padding: 12px 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: 600 16px/1 var(--body); border: 1px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
.btn:hover { color: var(--ink); background: var(--paper-2); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2B2E36; color: var(--white); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-accent:hover { background: #1E39B0; color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: 8px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.hero-copy { min-width: 0; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--white); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.lede { margin: 0 0 28px; font-size: 19px; color: var(--ink-2); max-width: 500px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; flex: none; }

.preview-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(21,23,28,.35); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line-2); background: #FBFAF7; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; background: transparent; font: 600 14px var(--body); color: var(--ink); cursor: pointer; white-space: nowrap; }
.tab:hover { background: var(--paper-2); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.stage { padding: 28px; background: var(--paper-2); display: flex; justify-content: center; align-items: center; height: 400px; }
.stage > [role=tabpanel] { width: 100%; display: flex; justify-content: center; }
.stage [hidden] { display: none !important; }
.preview-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.preview-foot a { font-weight: 600; color: var(--accent); min-height: 32px; display: inline-flex; align-items: center; }

.mini-doc { width: 100%; max-width: 410px; background: var(--white); padding: 24px 26px; box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 11px; line-height: 1.45; }
.mini-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 3px solid var(--accent); }
.mini-biz { font: 700 15px var(--head); }
.mini-muted { color: var(--ink-3); margin-top: 3px; }
.mini-right { text-align: right; }
.mini-word { font: 700 19px var(--head); color: var(--accent); letter-spacing: .02em; }
.mini-to { margin: 12px 0 10px; display: flex; flex-direction: column; }
.mini-to span { font-size: 8.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mini-to strong { font-size: 12px; }
.mini-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.mini-th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.mini-totals { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.mini-totals > div { margin-left: auto; width: 150px; }
.mini-tl { display: flex; justify-content: space-between; padding: 2px 0; color: var(--ink-2); }
.mini-grand { color: var(--ink); font-weight: 700; font-size: 13px; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 5px; }
.mini-paid { font: 700 16px var(--head); letter-spacing: .14em; color: var(--accent); border: 2px solid var(--accent); border-radius: 5px; padding: 3px 12px; transform: rotate(-6deg); }
.mini-cardwrap { display: flex; flex-direction: column; gap: 14px; align-items: center; width: 100%; }
.mini-card { width: 340px; max-width: 100%; aspect-ratio: 85/55; background: var(--white); padding: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.18); display: flex; flex-direction: column; justify-content: space-between; }
.mini-card-biz { font: 700 14px var(--head); }
.mini-card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.mini-card-name { font: 700 18px var(--head); }
.mini-card-title { font-size: 11px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.mini-card-lines { font-size: 10.5px; color: var(--ink-2); line-height: 1.5; }
.mini-qr { width: 64px; height: 64px; flex: none; }
.mini-caption { font-size: 12px; color: var(--ink-2); }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; }
  .hero h1 { font-size: clamp(38px, 8vw, 56px); }
}
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 14px; }
  .site-header .nav a:not(.btn) { display: none; }
  .logo { font-size: 22px; }
  .hero h1 { margin-top: 18px; }
  .lede { font-size: 17px; }
  .stage { height: auto; min-height: 340px; padding: 16px; }
  .mini-doc { padding: 18px; }
  .preview-foot span { display: none; }
}

/* Sections */
.band { background: var(--white); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section { padding-top: 64px; padding-bottom: 64px; }
.section h2 { font-size: 40px; margin-bottom: 8px; }
.section-lede { margin: 0 0 32px; font-size: 18px; color: var(--ink-2); }
.grid { display: flex; flex-wrap: wrap; gap: 20px; }

.tpl { flex: 1 1 240px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; position: relative; }
.tpl:hover { border-color: var(--ink); color: var(--ink); }
.tpl-thumb { height: 160px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; }
.tpl-page { width: 96px; height: 128px; background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.12); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.tpl-page span { height: 4px; background: var(--line-2); }
.tpl-page span:first-child { height: 6px; width: 60%; background: var(--accent); }
.tpl-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.tpl-body strong { font-family: var(--head); font-size: 20px; }
.tpl-body span { font-size: 15px; color: var(--ink-2); }
.soon { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 600; background: var(--white); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

.steps { display: flex; flex-wrap: wrap; gap: 32px; }
.step { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font: 700 18px var(--head); }
.step strong { font: 700 22px var(--head); }
.step span:last-child { color: var(--ink-2); }
.chips { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; }
.chips li { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--white); display: inline-flex; gap: 8px; align-items: center; }

.studio { background: var(--ink); color: var(--white); }
.studio .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.studio h2 { font-size: 44px; margin: 0 0 12px; }
.studio p { margin: 0; font-size: 18px; color: #C9CBD1; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #A9ACB4; margin-bottom: 12px; }
.studio .btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.studio .btn-ghost:hover { background: #2B2E36; }

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; padding-top: 32px; padding-bottom: 48px; font-size: 14px; color: var(--ink-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 500; }

@media (max-width: 600px) {
  .section h2, .studio h2 { font-size: 32px; }
}

/* FAQ + articles */
.faq { background: var(--white); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary { cursor: pointer; padding: 18px 0; font: 700 19px var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--ink-2); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 20px; color: var(--ink-2); max-width: 70ch; }
.faq h2 { font-size: 40px; margin-bottom: 8px; }
.article { max-width: 760px; }
.article h1 { font-size: clamp(36px, 5vw, 56px); margin: 8px 0 20px; }
.article h2 { font-size: 28px; margin: 40px 0 12px; }
.article p, .article li { font-size: 18px; line-height: 1.65; color: #2D2F35; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 6px; }
.article a { text-decoration: underline; }
.crumbs { font-size: 14px; color: var(--ink-2); }
.callout { margin: 40px 0; padding: 28px; border-radius: 16px; background: var(--ink); color: var(--white); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.callout p { color: #C9CBD1; margin: 6px 0 0; font-size: 16px; }
.callout strong { font: 700 22px var(--head); }
.callout a.btn, .article a.tpl { text-decoration: none; }
