/* TemplateCut website, "Night Cut" design (owner's choice, 23 Nov 2026):
   one dark page throughout, one hot-pink highlight, Exo headings, Inter text.
   Same class names as before, so every page the seo function renders
   (landing, blog, posts, legal pages, template pages) takes this look. */
:root {
  --brand: #E61355;
  --brand-2: #FF4D81;
  --brand-text: #FF8FAE;
  --brand-soft: #3A1222;
  --night: #0A0A0F;
  --night-2: #101016;
  --card: #16161F;
  --raised: #1E1E2D;
  --text: #F0F0F5;
  --muted: #A0A0B8;
  --line: #23232F;
  --line-2: #2A2A3A;
  --on-dark: #F0F0F5;
  --on-dark-muted: #A0A0B8;
  --telegram: #229ED9;
  --whatsapp: #25D366;
  --radius: 20px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Exo", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--night); color: var(--text); font: 17px/1.6 var(--sans); }
a { color: var(--brand-text); }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.accent { color: var(--brand-2); }

/* Header (same on every page) */
.site-head { background: rgba(10,10,15,.92); color: var(--on-dark); position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.site-head .wrap { height: 68px; 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-family: var(--display); font-weight: 700; font-size: 21px; }
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; border-radius: 10px; background: #fff; padding: 2px; }
.nav { display: flex; align-items: center; gap: 24px; }
.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: 14px 26px;
  border-radius: 999px; font-family: var(--display); font-weight: 700; text-decoration: none; font-size: 15px; border: 0; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: #FF2F6D; color: #fff; }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-line { color: var(--text); border: 1px solid #3A3A50; background: transparent; }
.btn-line:hover { color: #fff; border-color: var(--brand-2); }
.btn-tg { background: var(--telegram); color: #fff; }
.btn-wa { background: var(--whatsapp); color: #08311A; }
.btn-tg:hover, .btn-wa:hover { filter: brightness(1.08); }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text);
  font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.pill-dark { background: var(--brand-soft); color: var(--brand-text); }
.eyebrow { color: var(--brand-text); font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; }

.play { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 16px; border-radius: 999px;
  background: transparent; color: #fff; text-decoration: none; border: 1px solid #3A3A50; }
.play:hover { color: #fff; border-color: var(--brand-2); }
.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; font-family: var(--display); }

/* Hero band (landing hero, and the title band of every inner page) */
.hero { background: var(--night); color: var(--on-dark); position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line); }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(40px, 6.5vw, 80px); line-height: 1.02; margin: 18px 0 16px; font-weight: 800; letter-spacing: -1.5px; }
.hero .lead { color: var(--on-dark-muted); font-size: 19px; line-height: 1.55; max-width: 540px; margin: 0 0 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Landing hero: words on the left, the fanned phones on the right */
.hero-home { padding: 72px 0 72px; }
.hero-home .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 48px; align-items: center; }
.hero-home .wrap > .pill, .hero-home .wrap > h1, .hero-home .wrap > .lead, .hero-home .wrap > .ctas { grid-column: 1; }
.hero-home .wrap > .pill { justify-self: start; }
.hero-home .wrap > h1 { margin: 0; }
.hero-home .wrap > .lead { margin: 0; }
.hero-home .fan { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }

.page-band { padding: 52px 0 44px; background: var(--night-2); }
.page-band h1 { font-size: clamp(32px, 5vw, 52px); margin: 12px 0 6px; letter-spacing: -.8px; }
.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: 360px; }
.phone { width: 180px; height: 320px; border-radius: 24px; background: var(--card); border: 1px solid var(--line-2);
  padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.phone .shot { flex: 1; border-radius: 16px; position: relative; display: grid; place-items: center; }
.phone .shot::after { content: "▶"; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 15px; }
.phone .use { background: var(--brand); color: #fff; border-radius: 999px; text-align: center;
  font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 9px; }
.phone .tag { position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff; font-size: 10px;
  font-family: var(--display); font-weight: 700; letter-spacing: .08em; padding: 4px 9px; border-radius: 6px; }
.phone.left { transform: rotate(-8deg) translate(28px, 10px); opacity: .8; }
.phone.right { transform: rotate(8deg) translate(-28px, 10px); opacity: .8; }
.phone.mid { z-index: 2; height: 350px; border: 2px solid var(--brand-2); }
.s1 { background: #22304A; }
.s2 { background: #3A2140; }
.s3 { background: #2B3A2F; }

/* Sections */
.section { padding: 80px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; margin: 10px 0 10px; font-weight: 800; letter-spacing: -.6px; }
.section-head p { color: var(--muted); max-width: 600px; margin: 0; }
.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: 28px; }
.card h3 { margin: 14px 0 8px; font-size: 22px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.num { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid;
  place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 22px; }
.card-dark { background: var(--brand); border-color: var(--brand); color: #fff; }
.card-dark p { color: #FFE1EA; }
.card-dark .pill-dark { background: rgba(255,255,255,.18); color: #fff; }
.card-dark .btn-brand { background: #fff; color: #16161F; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Blog list */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .15s; }
.post-card:hover { color: inherit; border-color: var(--brand); }
.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: 20px 22px 24px; }
.post-card h3 { margin: 12px 0 6px; font-size: 20px; line-height: 1.25; font-weight: 700; }
.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: transparent; padding: 40px 0 8px; margin: 0 auto; position: relative; }
.article h2 { font-size: 28px; margin: 38px 0 12px; letter-spacing: -.3px; font-weight: 800; }
.article h3 { font-size: 21px; margin: 28px 0 8px; font-weight: 700; }
.article p, .article li { color: #D6D6E2; font-size: 18px; line-height: 1.75; }
.article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.article blockquote { margin: 22px 0; padding: 14px 20px; border: 1px solid var(--line-2); background: var(--card);
  border-radius: 14px; color: #E0E0EA; }
.article img { border-radius: 18px; }
.toc { font-size: 15px; }

/* Template page */
.tpl { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.tpl .cover { border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 9/16; background: var(--card); }
.tpl .cover img { width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.tags .pill { background: var(--card); color: var(--text); border: 1px solid var(--line-2); font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

/* App banner (inner pages) */
.app-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--brand); color: #fff; border-radius: 24px; padding: 26px 30px; margin-top: 34px; }
.app-banner h3 { margin: 0; font-size: 22px; }
.app-banner p { margin: 4px 0 0; color: #FFE1EA; }
.app-banner .btn-brand { background: #fff; color: #16161F; }

/* Footer (same on every page) */
.site-foot { background: var(--night); color: var(--on-dark-muted); padding: 40px 0 46px; font-size: 15px;
  border-top: 1px solid var(--line); }
.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 .brand { font-size: 18px; }
.site-foot .small { font-size: 13px; margin-top: 8px; opacity: .85; }

@media (max-width: 860px) {
  .grid-3, .grid-2, .posts { grid-template-columns: 1fr; }
  .hero-home { padding: 48px 0 40px; }
  .hero-home .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-home .fan { grid-column: 1; grid-row: auto; margin-top: 16px; }
  .tpl { grid-template-columns: 1fr; }
  .tpl .cover { max-width: 280px; margin: 0 auto; }
  .nav a:not(.btn) { display: none; }
  .article { padding: 26px 0 4px; }
  .article p, .article li { font-size: 17px; }
  .fan { height: 280px; }
  .phone { width: 130px; height: 240px; }
  .phone.mid { height: 262px; }
  .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; }
}
