/* 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: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 440px; 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: 24px 0 20px; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -0.03em; }
.lede { margin: 0 0 32px; font-size: 20px; color: var(--ink-2); max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.preview-card { flex: 1 1 520px; 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; flex-wrap: wrap; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line-2); background: #FBFAF7; }
.tab { 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; }
.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; min-height: 420px; }
.stage [hidden] { display: none !important; }

.mini-invoice { width: 100%; max-width: 400px; background: var(--white); padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 11px; }
.mini-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.mini-letter { width: 100%; max-width: 300px; aspect-ratio: 210/297; background: var(--white); padding: 26px; box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 9px; display: flex; flex-direction: column; gap: 10px; }
.bar { height: 6px; background: var(--paper-2); }
.mini-card { width: 340px; max-width: 100%; aspect-ratio: 85/55; background: var(--ink); color: var(--white); padding: 22px; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.25); display: flex; flex-direction: column; justify-content: space-between; }

/* 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; }
  .stage { padding: 16px; min-height: 320px; }
}
