/* PornProxy - modern, mobile-first theme. No frameworks. */
:root {
  --ink: #0b1020;
  --body: #1e293b;
  --muted: #475569;
  --faint: #64748b;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-tint: #eef0ff;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-2: #7c3aed;
  --line: #e5e7eb;
  --radius: 14px;
  --maxw: 1120px;
  --articlew: 780px;
  --header-h: 66px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 2px 8px rgba(15,23,42,.05);
  --shadow-md: 0 10px 30px rgba(15,23,42,.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
  line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; border-radius: var(--radius); }
:focus-visible { outline: 3px solid rgba(79,70,229,.45); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.3px; color: var(--ink); text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; box-shadow: 0 4px 12px rgba(79,70,229,.35);
}
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 9px 14px; border-radius: 10px; transition: background .15s, color .15s;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -8px;
  border: 0; background: transparent; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero + tool ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: 72px 0 80px;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(124,58,237,.45) 0%, transparent 60%),
    radial-gradient(50% 70% at 90% 100%, rgba(79,70,229,.55) 0%, transparent 60%),
    linear-gradient(160deg, #14123a 0%, #231f66 55%, #3a35b8 100%);
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(30px, 4.8vw, 48px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.8px; }
.hero .lede { color: #d7d9f5; font-size: 18px; max-width: 640px; margin: 0 auto 30px; }

.tool-card {
  background: #fff; border-radius: 20px; padding: 24px;
  max-width: 660px; margin: 0 auto; text-align: left;
  box-shadow: 0 24px 60px rgba(8,6,40,.45), 0 0 0 1px rgba(255,255,255,.08);
}
.tool-card label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 15px; }
.tool-row { display: flex; gap: 10px; }
.tool-field { position: relative; flex: 1; min-width: 0; }
.tool-row input {
  width: 100%; flex: 1; min-width: 0; height: 54px; padding: 0 16px;
  border: 2px solid var(--line); border-radius: 12px; background: #f8fafc;
  font: inherit; font-size: 16px; color: var(--ink);
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.tool-row input::placeholder { color: #94a3b8; }
.tool-row input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,.15); }
.tool-field input { padding-right: 92px; }
.field-btn {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  height: 40px; min-width: 40px; padding: 0 14px; border: 0; border-radius: 9px;
  background: var(--bg-tint); color: var(--brand-dark);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.field-btn:active { background: #dfe2ff; }
.tool-row.shake { animation: shake .35s; }
.tool-row.shake input { border-color: #ef4444; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; cursor: pointer; text-decoration: none; font-family: inherit;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  font-weight: 700; font-size: 16px; padding: 0 30px; height: 54px; border-radius: 12px;
  box-shadow: 0 6px 16px rgba(79,70,229,.35); transition: transform .12s, box-shadow .15s, filter .15s;
  -webkit-appearance: none; appearance: none;
}
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn:active { transform: scale(.98); box-shadow: 0 3px 8px rgba(79,70,229,.3); }
.tool-note { color: var(--faint); font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.tool-card.on-light { box-shadow: var(--shadow-md); border: 1px solid var(--line); margin: 8px 0 32px; }
.quick-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.quick-row span { color: #c9cdf3; font-size: 14px; }
.chip {
  font-family: inherit; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1);
  color: #fff; border-radius: 999px; padding: 0 16px; min-height: 38px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.chip:hover { background: rgba(255,255,255,.22); }
.chip:active { background: rgba(255,255,255,.3); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 28px; color: #d7d9f5; font-size: 14px; }
.trust-row b { color: #fff; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section h2 { font-size: clamp(25px, 3.2vw, 34px); line-height: 1.2; letter-spacing: -.5px; margin: 0 0 14px; }
.section .kicker { color: var(--brand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; margin: 0 0 10px; }
.narrow { max-width: var(--articlew); }
.center { text-align: center; }
.center .narrow, .narrow.center { margin-left: auto; margin-right: auto; }

/* article typography */
.article { max-width: var(--articlew); margin: 0 auto; }
.article h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.15; letter-spacing: -.7px; margin: 8px 0 16px; }
.article h2 { font-size: 27px; line-height: 1.25; margin: 48px 0 12px; letter-spacing: -.4px; }
.article h3 { font-size: 20px; margin: 30px 0 10px; }
.article p { margin: 0 0 18px; color: var(--body); }
.article ul, .article ol { margin: 0 0 20px; padding-left: 24px; color: var(--body); }
.article li { margin-bottom: 8px; }
.article figure { margin: 28px 0; }
.article figcaption { font-size: 13.5px; color: var(--faint); text-align: center; margin-top: 8px; }
.wrap.narrow > p, .wrap.narrow > ul, .wrap.narrow > ol { color: var(--body); }
.breadcrumb { font-size: 14px; color: var(--faint); margin: 26px 0 0; }
.breadcrumb a { color: var(--faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.post-meta { color: var(--faint); font-size: 14px; margin-bottom: 6px; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; font-size: 15.5px; }
.related-box { background: var(--bg-tint); border: 1px solid #dfe2ff; border-radius: var(--radius); padding: 22px 26px; margin: 40px 0; }
.related-box strong { display: block; margin-bottom: 10px; font-size: 17px; }
.related-box ul { margin: 0; padding-left: 20px; }
.related-box li { margin-bottom: 6px; }

/* feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .ico { font-size: 28px; display: inline-block; margin-bottom: 6px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.step .n {
  width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-weight: 800; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* comparison table */
.cmp { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15.5px; background: #fff; }
.cmp th, .cmp td { border: 1px solid var(--line); padding: 13px 16px; text-align: left; vertical-align: top; }
.cmp th { background: var(--bg-soft); font-size: 14.5px; }
.cmp tr:nth-child(even) td { background: #fafbff; }
.cmp td:first-child { font-weight: 600; }

/* faq */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 20px; box-shadow: var(--shadow-sm); }
.faq details[open] { border-color: #c7caf8; }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 16.5px; line-height: 1.4;
  min-height: 56px; padding: 15px 34px 15px 0; position: relative; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 500; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15,23,42,.12); }
.post-card img { border-radius: 0; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .pc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .pc-tag { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .9px; }
.post-card h3 { margin: 0; font-size: 18px; line-height: 1.35; color: var(--ink); }
.post-card p { margin: 0; font-size: 14.5px; color: var(--muted); flex: 1; }
.post-card .pc-more { font-weight: 700; font-size: 14.5px; color: var(--brand); }

/* cta band */
.cta-band {
  background: radial-gradient(60% 90% at 10% 0%, rgba(124,58,237,.5), transparent 60%), linear-gradient(135deg, #1b1850, #4f46e5);
  color: #fff; border-radius: 20px; padding: 48px 32px; text-align: center; margin: 20px 0 0;
}
.cta-band h2 { color: #fff; margin: 0 0 10px; }
.cta-band p { color: #d7d9f5; max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn { background: #fff; color: var(--brand-dark); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.cta-band .btn:hover { color: var(--brand-dark); }

/* page hero for subpages */
.page-hero { background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line); padding: 28px 0 48px; }
.page-hero h1 { margin: 6px 0 12px; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.15; letter-spacing: -.6px; }
.page-hero p { margin: 0; color: var(--muted); max-width: 660px; font-size: 17.5px; }
.page-hero .breadcrumb { margin: 0 0 8px; }

/* legal */
.legal { max-width: var(--articlew); margin: 0 auto; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: #334155; }
.legal ul { padding-left: 22px; }

/* site cards (homepage per-site tiles) */
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.site-card { display: block; border-radius: 14px; overflow: hidden; text-decoration: none; border: 1px solid #232c47; background: #10162a; transition: transform .2s ease, box-shadow .2s ease; }
.site-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(10,15,35,.45); }
.site-card img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; }
.site-card > span.lbl { display: block; padding: 11px 14px; font-weight: 600; font-size: 15px; color: #e8ecf8; background: #10162a; }
.site-card-text { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 18px; aspect-ratio: 16/9; background: radial-gradient(120% 130% at 50% 0%, #37306b 0%, #1a2140 55%, #0b0e1d 100%); }
.site-card-text .sc-title { font-size: 21px; font-weight: 700; color: #fff; }
.site-card-text .sc-sub { font-size: 11.5px; letter-spacing: .22em; color: #a5b0d4; margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: #0b1020; color: #94a3b8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 60px 20px 36px; }
.site-footer .logo { color: #fff; }
.f-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1.1px; margin: 0 0 14px; }
.f-col a { display: block; color: #94a3b8; text-decoration: none; font-size: 15px; margin-bottom: 9px; transition: color .15s; }
.f-col a:hover { color: #fff; }
.f-col a.logo { display: inline-flex; margin: 0; }
.f-blurb { font-size: 14.5px; margin: 14px 0; max-width: 340px; }
.f-18 { font-size: 13px; color: #8391a7; border: 1px solid #1e293b; border-radius: 8px; padding: 8px 12px; display: inline-block; }
.f-col h4.f-social-h { margin-top: 22px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: #1a2338; display: inline-flex; align-items: center; justify-content: center; margin: 0; color: #cbd5e1; transition: background .15s; }
.social a:hover { background: var(--brand); color: #fff; }
.footer-bottom { border-top: 1px solid #1a2338; padding: 20px; text-align: center; font-size: 13.5px; color: #7b8aa0; }
.footer-bottom p { margin: 0; }

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .grid, .steps, .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  :root { --header-h: 58px; }
  body { font-size: 16px; overflow-x: hidden; }
  .wrap { padding: 0 16px; }
  .site-cards { grid-template-columns: 1fr 1fr; }

  /* header: logo + menu button. Without JS the links fall back to a pill row. */
  .nav-row { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-top: 6px; padding-bottom: 6px; }
  .logo { font-size: 19px; min-height: 44px; }
  .logo-mark { width: 32px; height: 32px; font-size: 17px; }
  .main-nav { flex: 0 0 calc(100% + 32px); width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px 6px; gap: 6px; overflow-x: auto; scrollbar-width: none; order: 3; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: 0 0 auto; white-space: nowrap; height: 36px; line-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; }
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; margin: 0; order: 0;
    flex-direction: column; gap: 0; padding: 6px 16px 14px; overflow: visible;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(15,23,42,.12);
  }
  .js .site-header.open .main-nav { display: flex; }
  .js .main-nav a { height: 52px; line-height: 52px; padding: 0 6px; font-size: 17px; border-radius: 0; background: none; border: 0; border-bottom: 1px solid var(--line); }
  .js .main-nav a:last-child { border-bottom: 0; }
  .js .main-nav a:active { color: var(--brand); }

  /* hero + tool */
  .hero { padding: 38px 0 46px; }
  .hero h1 { font-size: 28px; line-height: 1.18; letter-spacing: -.5px; margin-bottom: 12px; }
  .hero .lede { font-size: 16px; line-height: 1.55; margin-bottom: 22px; }
  .tool-card { padding: 16px; border-radius: 18px; }
  .tool-card label { font-size: 14.5px; margin-bottom: 8px; }
  .tool-row { flex-direction: column; gap: 10px; }
  .tool-row input { flex: none; height: 52px; padding: 0 14px; }
  .tool-field { flex: none; width: 100%; }
  .tool-field input { padding-right: 88px; }
  .tool-row .btn { width: 100%; height: 52px; padding: 0 20px; }
  .tool-note { font-size: 12.5px; margin-top: 10px; }
  .tool-card.on-light { margin: 4px 0 24px; }
  .quick-row { margin-top: 16px; }
  .quick-row span { flex: 0 0 100%; text-align: center; font-size: 13px; }
  .chip { min-height: 40px; padding: 0 16px; }
  .trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; font-size: 12.5px; line-height: 1.3; }
  .trust-row span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 10px 6px; text-align: center; }
  .trust-row span:last-child { grid-column: 1 / -1; font-size: 13px; padding: 9px 10px; }

  /* content */
  .section { padding: 44px 0; }
  .section h2 { font-size: 25px; }
  .grid, .steps, .blog-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .card, .step { padding: 22px 20px; }
  .page-hero { padding: 6px 0 30px; }
  .page-hero p { font-size: 16.5px; }
  .article h2 { font-size: 23px; margin-top: 38px; }
  .cta-band { padding: 34px 22px; border-radius: 18px; }
  .cta-band .btn { width: 100%; }
  .related-box { padding: 18px 18px; }
  .cmp { font-size: 14px; }
  .cmp th, .cmp td { padding: 10px 9px; }
  .faq details { padding: 0 16px; }
  .faq summary { font-size: 16px; }

  /* footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding: 38px 16px 22px; }
  .footer-grid .f-col:first-child { grid-column: 1 / -1; }
  .f-blurb { font-size: 14px; margin: 12px 0; max-width: none; }
  .f-18 { font-size: 12.5px; }
  .f-col h4 { margin-bottom: 6px; }
  .f-col a { font-size: 14.5px; line-height: 1.35; padding: 8px 0; margin: 0; }
  .f-col a.logo { padding: 0; }
  .social { gap: 10px; }
  .social a { width: 44px; height: 44px; padding: 0; }
  .footer-bottom { padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); font-size: 12.5px; line-height: 1.55; }
}
@media (max-width: 460px) {
  .site-cards { grid-template-columns: 1fr; }
  .site-card-text { aspect-ratio: auto; min-height: 150px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 25px; }
  .tool-card { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
