/* ============================================================
   FREE BRAND TOOLS — design system
   Aesthetic: Apple. Elegant, simple, San Francisco type, Liquid Glass.
   Shared by: home, all 8 tool pages, about/contact/privacy/terms.
   ============================================================ */

:root {
  /* Apple palette */
  --white:       #ffffff;
  --bg:          #ffffff;
  --bg-gray:     #f5f5f7;   /* Apple's signature section gray */
  --bg-gray-2:   #fafafc;
  --text:        #1d1d1f;   /* near-black */
  --text-2:      #6e6e73;   /* secondary */
  --text-3:      #86868b;   /* tertiary / captions */
  --blue:        #0071e3;   /* primary button */
  --blue-hover:  #0077ed;
  --blue-link:   #0066cc;   /* text links */
  --hairline:    #d2d2d7;
  --hairline-soft: rgba(0,0,0,.08);

  /* Liquid Glass */
  --glass-bg:     rgba(255,255,255,.65);
  --glass-bg-strong: rgba(255,255,255,.8);
  --glass-stroke: rgba(255,255,255,.7);
  --glass-edge:   rgba(255,255,255,.9);   /* top specular highlight */
  --glass-blur:   saturate(180%) blur(20px);
  --glass-shadow: 0 8px 30px rgba(0,0,0,.08), 0 1px 0 rgba(255,255,255,.6) inset;

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 28px;
  --pill: 980px;

  --maxw: 1024px;
  --maxw-wide: 1180px;
  --gutter: clamp(22px, 5vw, 48px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.28,.11,.32,1);
  --shadow-card: 0 4px 20px rgba(0,0,0,.06);
  --shadow-pop:  0 18px 60px rgba(0,0,0,.18);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  font-size: 17px;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { padding: 0; list-style: none; }

/* ---- LAYOUT ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.wide { max-width: var(--maxw-wide); }
.section { padding-block: clamp(64px, 10vw, 130px); }
.section--tight { padding-block: clamp(44px, 7vw, 84px); }
.section.gray { background: var(--bg-gray); }
.divider { height: 1px; background: var(--hairline); border: 0; }
.center { text-align: center; }

/* ---- TYPE ---- */
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.07; letter-spacing: -.022em; }
.display { font-size: clamp(40px, 6.4vw, 80px); font-weight: 700; letter-spacing: -.025em; line-height: 1.04; }
h2.headline { font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; letter-spacing: -.022em; }
h3 { font-size: clamp(21px, 2.2vw, 28px); }
.eyebrow { font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; color: var(--blue-link); letter-spacing: -.01em; }
.intro { font-size: clamp(19px, 2vw, 27px); font-weight: 500; line-height: 1.32; color: var(--text); letter-spacing: -.014em; }
.intro.muted, .sub { color: var(--text-2); }
.sub { font-size: clamp(17px, 1.5vw, 21px); font-weight: 400; line-height: 1.42; color: var(--text-2); }
.section-head { max-width: 720px; margin-inline: auto; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 { margin-bottom: 16px; }
.text-grad { background: linear-gradient(120deg,#0071e3,#9f5cf0 60%,#ff5e8a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- BUTTONS / LINKS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-size: 17px; font-weight: 400; letter-spacing: -.01em;
  padding: 11px 22px; border-radius: var(--pill);
  transition: background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease), color .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:active { transform: scale(.98); }
.btn-glass {
  background: var(--glass-bg-strong); color: var(--text);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--hairline-soft); box-shadow: 0 1px 0 var(--glass-edge) inset;
}
.btn-glass:hover { background: #fff; box-shadow: var(--shadow-card), 0 1px 0 var(--glass-edge) inset; }
.btn-lg { font-size: 19px; padding: 13px 28px; }
.btn-block { width: 100%; }

/* Apple chevron text link */
.link { color: var(--blue-link); font-size: 17px; display: inline-flex; align-items: center; gap: 3px; }
.link::after { content: "›"; font-size: 1.25em; line-height: 0; transform: translateY(1px); transition: transform .2s var(--ease); }
.link:hover { text-decoration: underline; }
.link:hover::after { transform: translate(3px,1px); }
.link-lg { font-size: 19px; }

/* ---- TAGS ---- */
.tag {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  color: var(--text-2); padding: 5px 11px; border-radius: var(--pill);
  background: var(--bg-gray); border: 1px solid var(--hairline-soft);
}
.tag--doc   { color: #b65a00; background: #fff3e6; border-color: #ffd9ab; }
.tag--brand { color: #0071e3; background: #e8f2ff; border-color: #bcdcff; }
.tag--asset { color: #7d3bd6; background: #f2ebff; border-color: #d9c6ff; }

/* ============================================================
   NAVIGATION — Liquid Glass
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; }
.nav-bar {
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: .55em; font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.brand .logomark { width: 27px; height: 27px; flex: none; border-radius: 7px; }
.brand .free { font-weight: 600; }

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 400; color: var(--text); opacity: .85;
  padding: 8px 14px; border-radius: 10px; letter-spacing: -.01em;
  transition: opacity .15s, background .15s;
}
.nav-link:hover { opacity: 1; background: rgba(0,0,0,.04); }
.nav-link .chev { width: 11px; height: 11px; transition: transform .2s var(--ease); opacity: .6; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { font-size: 14px; padding: 7px 16px; }

/* Tools dropdown (glass mega panel) */
.has-dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(680px, 90vw); padding: 22px;
  background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-stroke); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop), 0 1px 0 var(--glass-edge) inset;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-dd:hover .dd-panel, .dd-panel.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.has-dd:hover .nav-link .chev, .nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 22px; }
.dd-col h5 { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: .02em; text-transform: uppercase; padding: 6px 10px; }
.dd-link { display: block; padding: 8px 10px; border-radius: 10px; font-size: 15px; color: var(--text); transition: background .14s; }
.dd-link span { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.dd-link:hover { background: rgba(0,0,0,.05); }

.nav-toggle { display: none; width: 38px; height: 38px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu { display: none; }   /* hidden on desktop; shown in the breakpoint below */

@media (max-width: 900px) {
  .nav-menu, .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  /* mobile glass sheet */
  .mobile-menu {
    display: block;
    position: fixed; inset: 56px 0 0 0; z-index: 90;
    background: var(--glass-bg-strong); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
    padding: 18px var(--gutter) 40px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  }
  .mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .mm-link { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; padding: 14px 4px; border-bottom: 1px solid var(--hairline-soft); }
  .mm-group h5 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--text-3); margin: 22px 4px 6px; }
  .mm-tool { display: block; font-size: 19px; padding: 10px 4px; color: var(--text); border-bottom: 1px solid var(--hairline-soft); }
  .mm-tool span { color: var(--text-3); font-size: 14px; }
  .mm-cta { margin-top: 24px; }
}
body.menu-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; text-align: center; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero .eyebrow { margin-bottom: 14px; }
.hero h1 { margin-inline: auto; max-width: 16ch; }
.hero .intro { margin: 22px auto 0; max-width: 30ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
/* soft Apple gradient wash behind hero */
.hero-wash { position: absolute; inset: -20% -10% auto -10%; height: 520px; z-index: -1;
  background:
    radial-gradient(40% 60% at 22% 30%, rgba(0,113,227,.16), transparent 70%),
    radial-gradient(38% 55% at 78% 22%, rgba(159,92,240,.16), transparent 70%),
    radial-gradient(45% 60% at 60% 65%, rgba(255,94,138,.12), transparent 70%);
  filter: blur(8px);
}

/* glass showcase card under hero */
.showcase { margin-top: clamp(34px, 5vw, 64px); }
.glass-panel {
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-stroke); border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* ============================================================
   TOOL GRID
   ============================================================ */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px,1fr)); gap: 16px; }
.tool-card {
  position: relative; display: flex; flex-direction: column; min-height: 188px;
  padding: 24px; border-radius: var(--radius-lg); background: var(--bg-gray);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); background: #fff; border-color: var(--hairline-soft); }
.tool-card .tc-top { display: flex; align-items: center; justify-content: space-between; }
.tool-card .num { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tool-card h3 { font-size: 22px; margin-top: 16px; letter-spacing: -.02em; }
.tool-card p { margin-top: 7px; font-size: 15px; color: var(--text-2); line-height: 1.4; }
.tool-card .go { margin-top: auto; padding-top: 16px; }

/* ---- FEATURES ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: clamp(24px,3vw,44px); }
.feature { text-align: center; }
.feature .ico { width: 52px; height: 52px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 15px; background: #fff; box-shadow: var(--shadow-card); color: var(--blue); }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 21px; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* ---- STEPS ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; counter-reset: s; }
.step { padding: 28px 24px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 17px; font-weight: 600; }
.step h3 { margin-top: 16px; font-size: 20px; }
.step p { margin-top: 7px; color: var(--text-2); font-size: 16px; }

/* ---- GLASS CTA BAND ---- */
.cta-band { position: relative; text-align: center; border-radius: var(--radius-lg); padding: clamp(40px,6vw,72px); overflow: hidden;
  background: linear-gradient(180deg,#f5f7fb,#eef1f8); }
.cta-band::before { content:""; position:absolute; inset:0; z-index:0; background:
  radial-gradient(40% 70% at 20% 10%, rgba(0,113,227,.18), transparent 70%),
  radial-gradient(40% 70% at 85% 30%, rgba(159,92,240,.16), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-inline: auto; max-width: 20ch; }
.cta-band .sub { margin: 14px auto 0; max-width: 46ch; }
.cta-band .hero-cta { margin-top: 26px; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 4px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 300; color: var(--text-2); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 4px 24px; color: var(--text-2); font-size: 17px; max-width: 68ch; }

/* ---- FOOTER (Apple style) ---- */
.site-footer { background: var(--bg-gray); color: var(--text-2); font-size: 12px; line-height: 1.5; padding-block: 40px 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--hairline); }
.footer-brand .brand { font-size: 17px; color: var(--text); }
.footer-brand p { margin-top: 12px; max-width: 32ch; color: var(--text-3); }
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 22px; color: var(--text-3); }
@media (max-width: 760px){ .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ============================================================
   TOOL PAGE LAYOUT (wrapper the generator mounts into)
   ============================================================ */
.breadcrumb { font-size: 13px; color: var(--text-3); padding-top: 22px; }
.breadcrumb a:hover { color: var(--blue-link); }
.breadcrumb span { margin: 0 .45em; }
.tool-hero { text-align: center; padding-block: 14px clamp(18px,3vw,30px); }
.tool-hero .eyebrow { display:block; margin-bottom: 10px; }
.tool-hero h1 { font-size: clamp(34px,5vw,60px); font-weight: 700; letter-spacing: -.025em; max-width: 18ch; margin-inline: auto; }
.tool-hero .sub { margin: 16px auto 0; max-width: 60ch; }

.tool-mount { margin-block: clamp(22px,3vw,40px); min-height: 220px; }
.tool-mount:empty::before, .mount-placeholder {
  display: grid; place-items: center; text-align: center; gap: 8px; min-height: 360px; padding: 48px;
  border-radius: var(--radius-lg); color: var(--text-3); font-size: 15px;
  background: var(--bg-gray); border: 1px dashed var(--hairline);
}
.tool-mount:empty::before { content: "Tool mounts here — generator code loads inside #tool-mount"; }
.mount-placeholder .mp-badge { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.mount-placeholder strong { font-size: 22px; color: var(--text); font-weight: 600; letter-spacing: -.02em; }

/* ---- LONG-FORM CONTENT ---- */
.prose { max-width: 700px; margin-inline: auto; }
.prose.wide { max-width: 820px; }
.prose h2 { font-size: clamp(26px,3vw,38px); font-weight: 600; letter-spacing: -.02em; margin-top: 1.5em; }
.prose h3 { font-size: 23px; margin-top: 1.4em; }
.prose p { margin-top: 1em; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.prose ul, .prose ol { margin-top: 1em; padding-left: 1.3em; display: grid; gap: .5em; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before { content:""; position:absolute; left:-1.15em; top:.62em; width:6px; height:6px; border-radius:50%; background: var(--blue); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--text-3); }
.prose a { color: var(--blue-link); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { margin: 1.3em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--blue); color: var(--text-2); }
.prose code { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: .88em; background: var(--bg-gray); border-radius: 6px; padding: .12em .42em; }
.answer-capsule { background: var(--bg-gray); border-radius: var(--radius); padding: 20px 24px; margin-top: 18px; font-size: 18px; color: var(--text); line-height: 1.5; }

.related { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; margin-top: 20px; }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-gray); font-weight: 500; transition: background .15s, transform .15s; }
.related a:hover { background: #fff; box-shadow: var(--shadow-card); transform: translateY(-2px); }
.related a .go::after { content:"›"; color: var(--blue-link); }

/* ---- MOTION ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---- A11Y ---- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
