/* Kawaii Pose Studio website. Direction A "Plum Glow": dark plum, soft pink glow, cream text. */

@font-face { font-family: "Baloo 2"; src: url("../fonts/Baloo2-Variable.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-Variable.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #2E1B27;
  --bg-hero: #3A2331;
  --card: #43293A;
  --card-2: #4A2D3D;
  --line: #A9728C;
  --text: #FBEFF3;
  --muted: #E9C9D6;
  --pink: #FFC2DA;
  --plum: #3A2331;
  --foot: #24151F;
  --radius: 22px;
  --wrap: 1120px;
  --display: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p, ul, ol { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-weight: 800; color: var(--pink); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: 36ch; }
h1.lead { font-family: inherit; font-weight: inherit; }  /* home: the tagline is the h1, styled as the lead text */
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--text); color: var(--plum); padding: 8px 14px; z-index: 10; }

/* Header and navigation */
.site-head { background: var(--bg-hero); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; gap: 6px 22px; flex-wrap: wrap; font-weight: 700; }
.nav-links a { text-decoration: none; color: var(--text); padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--pink); }

/* Hero */
.hero { background: radial-gradient(ellipse 60% 70% at 70% 45%, rgba(232,140,180,.42) 0%, rgba(160,80,120,.22) 57%, rgba(58,35,49,0) 100%), var(--bg-hero); padding-bottom: 96px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 40px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-logo { width: 100%; max-width: 560px; }
.hero-art { flex: 1 1 260px; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 300px; }
.page-hero { background: radial-gradient(circle 460px at 78% 45%, rgba(232,140,180,.34) 0%, rgba(160,80,120,.16) 50%, rgba(58,35,49,0) 100%), var(--bg-hero); padding: 40px 0 72px; }  /* a fixed size, so a low, wide hero does not squash the glow */
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
.page-hero p.lead { max-width: 52ch; }

/* Store buttons (replace with the official badges before launch) */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 22px; border-radius: 14px; background: var(--text); color: var(--plum); text-decoration: none; font-weight: 800; line-height: 1.1; }
.store small { font-size: .72rem; font-weight: 600; }
.store.outline { background: transparent; color: var(--text); border: 2px solid var(--text); }
.store:hover { background: #fff; color: var(--plum); }
.store.soon { opacity: .6; cursor: default; }
.store.soon:hover { background: var(--text); color: var(--plum); }
.store.outline.soon:hover { background: transparent; color: var(--text); }

/* Screenshots and placeholders */
.shot { border-radius: 24px; overflow: hidden; background: var(--card-2); }
.shot img { display: block; width: 100%; height: auto; }
.shot img[role="button"] { cursor: zoom-in; }
.shot img:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; }
/* Screenshot zoom (zoom.js) */
dialog.zoom { border: 0; padding: 0; margin: auto; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; cursor: zoom-out; }
dialog.zoom:focus, dialog.zoom:focus-visible { outline: none; }
dialog.zoom::backdrop { background: rgba(20, 10, 16, .88); }
dialog.zoom img { display: block; max-width: 96vw; max-height: 96vh; width: auto; height: auto; border-radius: 12px; }
.shot-todo { border: 2px dashed var(--line); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-weight: 700; padding: 24px; min-height: 280px; }
.showcase { margin-top: -48px; }
.showcase .shot-todo { min-height: 520px; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .95rem; margin-top: 10px; }

/* Sections */
.section { padding: 104px 0 0; }
.section:last-of-type { padding-bottom: 104px; }
.center { text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); }
/* Small pictures on top of cards */
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 8px; background: var(--card-2); }
.card-img[role="button"] { cursor: zoom-in; }
.card h3 { color: var(--pink); }
a.card:hover { background: var(--card-2); color: var(--text); }
a.card .more { margin-top: auto; font-weight: 800; color: var(--pink); }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split.reverse { flex-wrap: wrap-reverse; }
.feature-list { display: grid; gap: 72px; }

/* Article pages */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 16px; color: var(--pink); }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: #fff; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faq details { background: var(--card); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; }
.faq details p { margin-top: 10px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.plan { background: var(--card); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.plan.pro { background: var(--text); color: var(--plum); }
.plan.pro a { color: #8E2A5A; }
.plan ul { padding-left: 20px; line-height: 1.9; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.table-box { overflow-x: auto; background: var(--card); border-radius: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid #5A3A4C; vertical-align: top; }
thead th { font-family: var(--display); font-size: 1.1rem; color: var(--pink); }
tbody tr:last-child td { border-bottom: none; }

/* Call to action and footer */
.cta { background: var(--card); border-radius: 28px; padding: 48px 32px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.site-foot { background: var(--foot); padding: 48px 0; margin-top: 104px; color: var(--muted); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-grid nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 32px; flex: 1 1 420px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: #fff; }

/* Numbers strip under the showcase */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; text-align: center; }
.stats li { background: var(--card); border-radius: 18px; padding: 20px 16px; color: var(--muted); font-weight: 700; }
.stats strong { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1.1; color: var(--pink); }

/* Guides */
.guide-cards .card { gap: 8px; }
.guide-card:hover { background: var(--card-2); }
.crumbs { font-size: .95rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.prose ol.steps { list-style: none; counter-reset: step; padding-left: 0; gap: 14px; }
.prose ol.steps > li { counter-increment: step; position: relative; padding-left: 44px; }
.prose ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: var(--plum); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.note { background: var(--card); border-left: 4px solid var(--pink); border-radius: 12px; padding: 14px 18px; }
.note p + p { margin-top: 8px; }
.toc { background: var(--card); border-radius: 16px; padding: 18px 22px; }
.toc ol { margin-top: 8px; }
.guide-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.guide-nav a { display: flex; flex-direction: column; gap: 2px; background: var(--card); border-radius: 16px; padding: 14px 20px; text-decoration: none; color: var(--text); font-weight: 800; }
.guide-nav a small { color: var(--muted); font-weight: 600; }
.guide-nav .guide-next { text-align: right; margin-left: auto; }
kbd { font-family: inherit; font-size: .9em; background: var(--card-2); border-radius: 6px; padding: 1px 7px; }

/* Page heads: the wooden mannequin from the home page on the right, in the glow (decorative) */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; top: 24px; bottom: 16px; right: max(24px, calc(50% - 560px)); width: 200px; background: url("../img/mannequin.webp") no-repeat center bottom / contain; pointer-events: none; }
.page-hero .wrap > * { max-width: min(52ch, calc(100% - 230px)); }
.page-hero .wrap > h1 { max-width: calc(100% - 230px); }
@media (max-width: 900px) { .page-hero::after { display: none; } .page-hero .wrap > *, .page-hero .wrap > h1 { max-width: none; } }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--card-2); vertical-align: top; }
.prose th { font-weight: 600; color: var(--muted); }
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--card-2); border-radius: 6px; padding: 1px 6px; }
