/* TemplateFinder website: one design for every page (landing, blog, posts,
   legal pages, template pages). Dark hero/header, light reading sections. */
:root {
  --brand: #6C5CE7;
  --brand-2: #9B8CFF;
  --brand-soft: #EEEBFF;
  --ink: #12101C;
  --night: #0B0912;
  --night-2: #16132A;
  --paper: #F7F6FB;
  --card: #FFFFFF;
  --text: #1C1A29;
  --muted: #6B6785;
  --line: #E7E4F2;
  --on-dark: #F4F2FF;
  --on-dark-muted: #B9B3D9;
  --telegram: #229ED9;
  --whatsapp: #25D366;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(28, 20, 80, .08);
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--text); font: 17px/1.6 var(--sans); }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(90deg, #B4A8FF, var(--brand) 60%, #E879F9);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }

/* Header (same on every page) */
.site-head { background: var(--night); color: var(--on-dark); position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.06); }
.site-head .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 4px 18px rgba(108,92,231,.5); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.on { color: #fff; }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px;
  border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 15px; border: 0; }
.btn-brand { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 6px 20px rgba(108,92,231,.45); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-line { color: var(--text); border: 1px solid var(--line); background: var(--card); }
.btn-tg { background: var(--telegram); color: #fff; }
.btn-wa { background: var(--whatsapp); color: #08311A; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 600; }
.pill-dark { background: rgba(155,140,255,.16); color: #CFC8FF; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: "— "; }

.play { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid #3A3550; }
.play svg { width: 26px; height: 26px; }
.play small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; letter-spacing: .04em; }
.play b { display: block; font-size: 18px; line-height: 1.2; }

/* Dark hero band (landing hero, and the title band of every inner page) */
.hero { background: var(--night); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 50% 0%, rgba(108,92,231,.38), transparent 70%),
              linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
              linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px; }
.hero > * { position: relative; }
.hero-home { text-align: center; padding: 64px 0 56px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; margin: 18px 0 16px; font-weight: 700; letter-spacing: -1px; }
.hero h1 .accent { font-size: 1.12em; }
.hero .lead { color: var(--on-dark-muted); font-size: 19px; max-width: 560px; margin: 0 auto 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.page-band { padding: 46px 0 40px; }
.page-band h1 { font-size: clamp(32px, 5vw, 48px); margin: 10px 0 6px; }
.page-band p { color: var(--on-dark-muted); margin: 0; }

/* Fanned phone cards */
.fan { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-top: 46px; height: 330px; }
.phone { width: 190px; height: 320px; border-radius: 26px; background: #1C1830; border: 1px solid rgba(255,255,255,.1);
  padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.phone .shot { flex: 1; border-radius: 18px; position: relative; display: grid; place-items: center; }
.phone .shot::after { content: "▶"; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.22); color: #fff; font-size: 14px; backdrop-filter: blur(4px); }
.phone .use { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; border-radius: 999px;
  text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 8px; }
.phone .tag { position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff; font-size: 10px;
  font-weight: 700; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; }
.phone.left { transform: rotate(-8deg) translate(28px, 10px); opacity: .85; }
.phone.right { transform: rotate(8deg) translate(-28px, 10px); opacity: .85; }
.phone.mid { z-index: 2; height: 340px; }
.s1 { background: linear-gradient(160deg, #FF7AB6, #6C5CE7); }
.s2 { background: linear-gradient(165deg, #3B2F8F, #9B8CFF 55%, #FFC2E2); }
.s3 { background: linear-gradient(160deg, #2EE6A6, #1A5BD8); }

/* Light sections */
.section { padding: 76px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; margin: 12px 0 10px; font-weight: 700; letter-spacing: -.5px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 12px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.num { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.ico { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 22px; }
.card-dark { background: var(--night-2); color: var(--on-dark); border-color: transparent; }
.card-dark p { color: var(--on-dark-muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Blog list */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card .cover { aspect-ratio: 16/10; overflow: hidden; }
.post-card .cover.tall { aspect-ratio: 4/5; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px 20px 22px; }
.post-card h3 { margin: 10px 0 6px; font-size: 19px; line-height: 1.3; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.meta { color: var(--muted); font-size: 14px; }

/* Article (blog post and legal pages) */
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 44px; margin: -28px auto 0; position: relative; }
.article h2 { font-size: 26px; margin: 34px 0 10px; letter-spacing: -.2px; }
.article h3 { font-size: 20px; margin: 26px 0 8px; }
.article p, .article li { color: #2E2B40; }
.article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.article blockquote { margin: 20px 0; padding: 12px 18px; border-left: 3px solid var(--brand); background: var(--brand-soft);
  border-radius: 0 12px 12px 0; color: #3B3560; }
.toc { font-size: 15px; }

/* Template page */
.tpl { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.tpl .cover { border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(28,20,80,.25); aspect-ratio: 9/16; background: #222; }
.tpl .cover img { width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }

/* App banner (inner pages) */
.app-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--night-2); color: var(--on-dark); border-radius: var(--radius); padding: 24px 28px; margin-top: 30px; }
.app-banner p { margin: 4px 0 0; color: var(--on-dark-muted); }

/* Footer (same on every page) */
.site-foot { background: var(--night); color: var(--on-dark-muted); padding: 40px 0 46px; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--on-dark-muted); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot .small { font-size: 13px; margin-top: 8px; opacity: .8; }

@media (max-width: 860px) {
  .grid-3, .grid-2, .posts { grid-template-columns: 1fr; }
  .tpl { grid-template-columns: 1fr; }
  .tpl .cover { max-width: 280px; margin: 0 auto; }
  .nav a:not(.btn) { display: none; }
  .article { padding: 26px 20px; }
  .fan { height: 270px; }
  .phone { width: 140px; height: 250px; }
  .phone.mid { height: 270px; }
  .phone .use { font-size: 9px; letter-spacing: .04em; white-space: nowrap; padding: 7px 4px; }
  .phone.left { transform: rotate(-8deg) translate(30px, 10px); }
  .phone.right { transform: rotate(8deg) translate(-30px, 10px); }
  .section { padding: 56px 0; }
}
