/* pattern3d.com: the website around the app. The sister of patternsplit.com: the same
   palette, buttons, nav bar and footer, without its framework (plain CSS, no build). */
:root {
  --primary: #17253f;
  --primary-dark: #151a26;
  --secondary: #f8fafc;
  --secondary-hover: #f1f5f9;
  --accent: #314a68;
  --accent-dark: #2d3748;
  --bg: #ffffff;
  --text: #1a202c;
  --muted: rgb(26 32 44 / 0.7);
  --faint: rgb(26 32 44 / 0.6);
  --border: rgb(26 32 44 / 0.12);
  --radius: 0.75rem;
  --container: 1280px;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- buttons (patternsplit's .btn-primary / -secondary / -accent) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font: inherit; font-weight: 500; font-size: 16px; text-decoration: none;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.btn-secondary { background: var(--secondary); color: var(--text); border-color: var(--primary); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.btn-secondary:hover { background: var(--secondary-hover); box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-lg { font-size: 18px; padding: 18px 32px; }

/* ---- nav bar (patternsplit's) ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08); border-bottom: 1px solid rgb(26 32 44 / 0.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.logo img { width: 36px; height: 36px; transition: transform 0.2s; }
.logo:hover img { transform: scale(1.05); }
.logo .word span { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--text); }
.nav-toggle:hover { background: var(--secondary); }
.site-nav ul { display: flex; align-items: center; gap: 32px; }
.site-nav a.link { text-decoration: none; font-weight: 500; }
.site-nav a.link:hover { color: var(--accent); }
.nav-auth { display: flex; gap: 16px; }
.nav-auth .btn { padding: 8px 18px; }

/* ---- hero ---- */
.hero { position: relative; padding: 64px 0 128px; overflow: hidden; background: linear-gradient(to bottom right, #fff, #fff, rgb(248 250 252 / 0.9)); }
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: radial-gradient(circle at 2px 2px, currentColor 1px, transparent 0); background-size: 32px 32px;
}
.hero .container { position: relative; display: flex; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 50%; display: grid; gap: 32px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.hero h1 .line2 { display: block; color: var(--accent); margin-top: 8px; }
.summary { border-left: 4px solid var(--primary); background: rgb(23 37 63 / 0.05); border-radius: 0 8px 8px 0; padding: 20px; max-width: 42rem; }
.summary p { color: rgb(26 32 44 / 0.8); line-height: 1.65; font-size: 16px; }
.hero .free { font-size: 14px; color: var(--faint); font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 8px; font-size: 14px; color: var(--faint); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .icon { width: 16px; height: 16px; }
.hero-visual { flex: 1 1 50%; display: flex; justify-content: center; position: relative; }
.hero-visual .glow { position: absolute; inset: 0; background: rgb(49 74 104 / 0.2); border-radius: 24px; filter: blur(64px); transform: rotate(6deg) scale(1.1); }
.shot { position: relative; z-index: 1; border-radius: 16px; overflow: hidden; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); border: 1px solid var(--border); background: #fff; }
.hero-visual .drape { position: absolute; z-index: 2; right: -12px; bottom: -48px; width: 34%; border-radius: 14px; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35); border: 4px solid #fff; background: #e9e7e3; }

/* ---- sections ---- */
.section { padding: 80px 0; }
.section.alt { background: rgb(248 250 252 / 0.5); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(30px, 3.5vw, 36px); font-weight: 700; margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--muted); max-width: 42rem; margin: 0 auto; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.feature { text-align: center; }
.tile { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: rgb(23 37 63 / 0.1); border-radius: 16px; margin-bottom: 16px; color: var(--primary); transition: background 0.2s; }
.feature:hover .tile { background: rgb(23 37 63 / 0.2); }
.tile .icon { width: 32px; height: 32px; }
.feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps::before { content: ''; position: absolute; top: 96px; left: 16%; right: 16%; height: 1px; background: linear-gradient(to right, transparent, rgb(23 37 63 / 0.3), transparent); }
.step { position: relative; background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 32px; transition: box-shadow 0.3s, border-color 0.3s; }
.step:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); border-color: rgb(23 37 63 / 0.2); }
.step .num { position: absolute; top: -16px; left: 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--secondary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.step .inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step .tile { width: auto; height: auto; padding: 16px; margin-bottom: 24px; }
.step .tile .icon { width: 48px; height: 48px; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.step ul { display: grid; gap: 8px; text-align: left; color: rgb(26 32 44 / 0.8); }
.step li { display: flex; gap: 8px; align-items: flex-start; }
.step li .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--primary); }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.showcase figure { margin: 0; display: grid; gap: 14px; }
.showcase figcaption { color: var(--muted); font-size: 15px; }
.showcase figcaption strong { color: var(--text); display: block; font-size: 17px; margin-bottom: 2px; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 32px; justify-content: center; }
.tier { border: 2px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 20px; background: #fff; }
.tier.featured { border-color: var(--primary); box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); }
.tier .badge { align-self: flex-start; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; background: rgb(23 37 63 / 0.08); color: var(--primary); }
.tier h3 { font-size: 22px; }
.tier .price { font-size: 40px; font-weight: 700; color: var(--primary); }
.tier .price small { font-size: 16px; font-weight: 500; color: var(--faint); }
.tier ul { display: grid; gap: 10px; color: rgb(26 32 44 / 0.8); flex: 1; }
.tier li { display: flex; gap: 8px; }
.tier li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--primary); }
.tier .btn { width: 100%; }

.faq { max-width: 56rem; margin: 0 auto; display: grid; gap: 16px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); transition: box-shadow 0.2s; }
.faq details:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 24px; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .icon { transition: transform 0.2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 24px 24px; color: rgb(26 32 44 / 0.8); line-height: 1.65; }
.faq a { color: var(--accent); }

.cta-band { background: var(--primary); color: var(--secondary); padding: 80px 0; text-align: center; }
.cta-band h2 { font-size: clamp(30px, 3.5vw, 36px); font-weight: 700; margin-bottom: 16px; }
.cta-band p { font-size: 18px; max-width: 42rem; margin: 0 auto 8px; }
.cta-band .free { font-size: 14px; font-weight: 500; margin-bottom: 24px; opacity: 0.9; }
.cta-band .buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 24px; }

/* ---- footer (patternsplit's) ---- */
.site-footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid .about { color: var(--muted); max-width: 28rem; margin-top: 16px; }
.footer-grid h4 { font-weight: 600; margin-bottom: 16px; font-size: 16px; }
.footer-grid ul { display: grid; gap: 8px; color: var(--muted); }
.footer-grid a, .footer-bottom a { text-decoration: none; }
.footer-grid a:hover, .footer-bottom a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--faint); }
.footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---- legal pages ---- */
.legal { max-width: 52rem; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.legal .effective { color: var(--faint); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 32px 0 12px; }
.legal h3 { font-size: 17px; margin: 20px 0 8px; }
.legal p, .legal li { color: rgb(26 32 44 / 0.85); line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 24px; display: grid; gap: 6px; margin: 8px 0; }
.legal .box { background: rgb(248 250 252); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin: 12px 0 20px; }
.legal a { color: var(--accent); }
.legal table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* ---- small screens ---- */
@media (max-width: 1023px) {
  .hero .container { flex-direction: column; }
  .hero-visual { width: 100%; max-width: 640px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); border-bottom: 1px solid var(--border); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 16px; padding: 24px; }
  .nav-auth { flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 16px; }
  .nav-auth .btn { width: 100%; }
  .hero { padding: 40px 0 96px; }
  .hero-ctas .btn { width: 100%; }
  .features, .steps, .pricing { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual .drape { right: 4px; bottom: -40px; }
}
