/* ===========================================================
   takeout.email — Gmail-inspired, conversion-focused styles
   =========================================================== */

:root{
  --blue:#1a73e8;  --blue-d:#1558b0;
  --red:#ea4335;   --yellow:#fbbc04;  --green:#34a853;
  --ink:#202124;   --muted:#5f6368;   --line:#dadce0;
  --bg:#ffffff;    --soft:#f8f9fa;    --soft-2:#f1f3f4;
  --radius:18px;   --radius-sm:12px;
  --shadow-sm:0 1px 2px rgba(60,64,67,.10), 0 1px 3px rgba(60,64,67,.08);
  --shadow:0 6px 24px rgba(60,64,67,.12), 0 2px 6px rgba(60,64,67,.08);
  --shadow-lg:0 24px 60px rgba(60,64,67,.18);
  --maxw:1140px;
  --ease:cubic-bezier(.4,0,.2,1);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth; -webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-size:17px; line-height:1.6; letter-spacing:-.01em;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img,svg{display:block; max-width:100%}
a{color:var(--blue); text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{letter-spacing:-.03em; line-height:1.12; margin:0}
strong{font-weight:700}

.wrap{width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px}
.wrap.narrow{max-width:780px}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  font-weight:600; font-size:16px; line-height:1;
  padding:15px 26px; border-radius:999px; border:1px solid transparent;
  cursor:pointer; transition:transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space:nowrap;
}
.btn:hover{text-decoration:none}
.btn-primary{background:var(--blue); color:#fff; box-shadow:var(--shadow-sm)}
.btn-primary:hover{background:var(--blue-d); box-shadow:var(--shadow); transform:translateY(-1px)}
.btn-ghost{background:transparent; color:var(--ink); border-color:var(--line)}
.btn-ghost:hover{background:var(--soft); border-color:#c4c7c9}
.btn-light{background:#fff; color:var(--blue); box-shadow:var(--shadow)}
.btn-light:hover{transform:translateY(-1px); box-shadow:var(--shadow-lg)}
.btn-sm{padding:11px 18px; font-size:14.5px}
.btn-lg{padding:18px 34px; font-size:17px}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.82); backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}
.nav{display:flex; align-items:center; gap:22px; height:66px}
.brand{display:inline-flex; align-items:center; gap:9px; color:var(--ink); font-weight:800}
.brand:hover{text-decoration:none}
.brand-mark{width:30px; height:30px}
.brand-name{font-size:19px; letter-spacing:-.04em}
.brand-dot{color:var(--blue)}
.nav-links{display:flex; gap:26px; margin-left:14px}
.nav-links a{color:var(--muted); font-weight:500; font-size:15.5px}
.nav-links a:hover{color:var(--ink); text-decoration:none}
.nav-cta{margin-left:auto}
.nav-toggle{display:none; margin-left:auto; flex-direction:column; gap:5px; background:none; border:0; padding:8px; cursor:pointer}
.nav-toggle span{width:22px; height:2px; background:var(--ink); border-radius:2px; transition:.25s var(--ease)}

/* ---------- Hero ---------- */
.hero{position:relative; overflow:hidden; padding:78px 0 70px}
.hero::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(60% 55% at 12% 8%, rgba(26,115,232,.10), transparent 60%),
    radial-gradient(55% 50% at 92% 4%, rgba(234,67,53,.08), transparent 60%),
    radial-gradient(50% 45% at 78% 96%, rgba(52,168,83,.08), transparent 60%);
}
.hero-grid{display:grid; grid-template-columns:1.06fr .94fr; gap:56px; align-items:center}
.eyebrow{
  display:inline-block; font-size:13px; font-weight:600; letter-spacing:.02em;
  color:var(--blue); background:rgba(26,115,232,.10);
  padding:7px 14px; border-radius:999px; margin-bottom:22px;
}
h1{font-size:clamp(38px,5.6vw,60px); font-weight:800}
.grad{background:linear-gradient(92deg,var(--blue),var(--green) 70%); -webkit-background-clip:text; background-clip:text; color:transparent}
.lede{font-size:19px; color:#3c4043; margin:22px 0 30px; max-width:36em}
.hero-cta{display:flex; gap:14px; flex-wrap:wrap; margin-bottom:26px}
.trust-row{display:flex; flex-wrap:wrap; gap:18px 24px; list-style:none; padding:0; margin:0}
.trust-row li{display:inline-flex; align-items:center; gap:8px; font-size:14.5px; font-weight:500; color:var(--muted)}
.ic{width:18px; height:18px; fill:none; stroke:var(--green); stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto}

/* Hero visual — inbox card */
.hero-visual{position:relative; perspective:1200px}
.inbox-card{
  position:relative; background:#fff; border:1px solid var(--line);
  border-radius:22px; box-shadow:var(--shadow-lg); padding:0 0 18px;
  overflow:hidden; transform:rotate(.6deg);
}
.inbox-top{display:flex; align-items:center; gap:14px; padding:16px 18px; border-bottom:1px solid var(--soft-2)}
.dots{display:flex; gap:7px}
.dots i{width:11px; height:11px; border-radius:50%; background:var(--soft-2)}
.dots i:nth-child(1){background:#febc2e}.dots i:nth-child(2){background:#28c840}.dots i:nth-child(3){background:#ff5f57}
.inbox-search{flex:1; background:var(--soft-2); color:var(--muted); font-size:13px; padding:9px 14px; border-radius:999px}
.inbox-head{display:flex; align-items:center; justify-content:space-between; padding:18px 20px 10px}
.inbox-title{font-weight:700; font-size:17px}
.inbox-count{
  font-variant-numeric:tabular-nums; font-weight:700; font-size:15px;
  color:var(--blue); background:rgba(26,115,232,.10); padding:4px 12px; border-radius:999px;
  transition:color .4s, background .4s;
}
.inbox-count.is-zero{color:var(--green); background:rgba(52,168,83,.12)}
.inbox-rows{list-style:none; margin:0; padding:4px 14px}
.inbox-rows li{display:flex; align-items:center; gap:14px; padding:13px 8px; border-radius:12px}
.inbox-rows li+li{border-top:1px solid var(--soft-2)}
.av{width:34px; height:34px; border-radius:50%; flex:0 0 auto; display:grid; place-items:center; color:#fff; font-weight:700; font-size:14px}
.av.red{background:var(--red)}.av.yel{background:var(--yellow); color:#5f4b00}.av.grn{background:var(--green)}.av.blu{background:var(--blue)}
.ln{flex:1; height:11px; border-radius:6px; background:linear-gradient(90deg,var(--soft-2),#eceff1); position:relative}
.ln::after{content:""; position:absolute; left:0; top:18px; width:62%; height:9px; border-radius:6px; background:var(--soft-2)}
.vanish{opacity:1; transition:opacity .5s var(--ease), transform .5s var(--ease)}
.is-clearing .vanish{opacity:0; transform:translateX(26px)}
.is-clearing .vanish.d1{transition-delay:.05s}.is-clearing .vanish.d2{transition-delay:.18s}
.is-clearing .vanish.d3{transition-delay:.31s}.is-clearing .vanish.d4{transition-delay:.44s}.is-clearing .vanish.d5{transition-delay:.57s}
.inbox-zero{
  position:absolute; inset:auto 14px 18px; padding:22px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:4px;
  background:#fff; border-radius:14px;
  opacity:0; transform:translateY(10px); pointer-events:none;
  transition:opacity .5s var(--ease) .5s, transform .5s var(--ease) .5s;
}
.is-clearing .inbox-zero{opacity:1; transform:translateY(0)}
.inbox-zero strong{font-size:18px}
.inbox-zero span{color:var(--muted); font-size:14px}
.zero-badge{width:48px; height:48px; border-radius:50%; background:rgba(52,168,83,.12); display:grid; place-items:center; margin-bottom:6px}
.zero-badge svg{width:26px; height:26px; fill:none; stroke:var(--green); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round}
.takeout-box{
  position:absolute; left:-18px; bottom:-22px; display:flex; align-items:center; gap:10px;
  background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px 16px;
  box-shadow:var(--shadow); font-weight:600; font-size:14px; transform:rotate(-2deg);
  animation:float 5s ease-in-out infinite;
}
.takeout-box svg{width:24px; height:24px; fill:none; stroke:var(--blue); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
@keyframes float{0%,100%{transform:rotate(-2deg) translateY(0)}50%{transform:rotate(-2deg) translateY(-7px)}}

/* ---------- Sections ---------- */
.section{padding:88px 0}
.section-soft{background:var(--soft)}
.kicker{font-size:13.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--blue); margin:0 0 12px}
.kicker.light{color:rgba(255,255,255,.9)}
.section-title{font-size:clamp(28px,3.6vw,40px); font-weight:800; max-width:18em}
.section-title.light{color:#fff}
.section-lede{font-size:19px; color:#3c4043; margin:18px 0 0; max-width:44em}
.section-lede.light{color:rgba(255,255,255,.92)}

/* Article pages */
.article-hero{padding:76px 0 54px; background:linear-gradient(180deg,#fff,#f8fafd)}
.article-hero .lede{max-width:46em}
.article-layout{display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:42px; align-items:start}
.article-body{display:grid; gap:34px}
.article-panel{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px; box-shadow:var(--shadow-sm)}
.article-panel h2{font-size:clamp(24px,3vw,34px); margin-bottom:14px}
.article-panel h3{font-size:20px; margin:22px 0 8px}
.article-panel p{margin:0 0 14px; color:#3c4043}
.article-panel ul,.article-panel ol{margin:14px 0 0; padding-left:22px; color:#3c4043}
.article-panel li+li{margin-top:8px}
.article-panel .mini-note{font-size:14.5px; color:var(--muted); margin-top:16px}
.sidebar-card{position:sticky; top:92px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow)}
.sidebar-card h2{font-size:22px; margin-bottom:10px}
.sidebar-card p{font-size:15.5px; color:var(--muted); margin:0 0 18px}
.sidebar-list{list-style:none; margin:18px 0 0; padding:0; display:grid; gap:10px}
.sidebar-list a{font-size:14.5px; font-weight:600}
.resource-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:32px}
.resource-card{display:block; background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); padding:20px; color:var(--ink); box-shadow:var(--shadow-sm)}
.resource-card:hover{text-decoration:none; border-color:rgba(26,115,232,.45); box-shadow:var(--shadow)}
.resource-card strong{display:block; font-size:17px; margin-bottom:6px}
.resource-card span{display:block; color:var(--muted); font-size:14.5px}

/* Why grid */
.why-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:48px}
.why-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px; box-shadow:var(--shadow-sm); transition:transform .2s var(--ease), box-shadow .2s var(--ease)}
.why-card:hover{transform:translateY(-4px); box-shadow:var(--shadow)}
.why-ic{width:52px; height:52px; border-radius:14px; display:grid; place-items:center; margin-bottom:18px}
.why-ic svg{width:26px; height:26px; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round}
.why-ic.blu{background:rgba(26,115,232,.12)} .why-ic.blu svg{stroke:var(--blue)}
.why-ic.grn{background:rgba(52,168,83,.12)} .why-ic.grn svg{stroke:var(--green)}
.why-ic.red{background:rgba(234,67,53,.12)} .why-ic.red svg{stroke:var(--red)}
.why-card h3{font-size:20px; margin-bottom:10px}
.why-card p{color:var(--muted); margin:0; font-size:16px}

/* Journey */
.journey{list-style:none; counter-reset:none; margin:48px 0 0; padding:0; display:grid; gap:18px}
.journey-step{display:flex; gap:22px; align-items:flex-start; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px 28px; box-shadow:var(--shadow-sm)}
.journey-step.highlight{border-color:rgba(26,115,232,.45); box-shadow:0 8px 30px rgba(26,115,232,.14); background:linear-gradient(180deg,#fff,#f7faff)}
.step-num{flex:0 0 auto; width:46px; height:46px; border-radius:50%; background:var(--ink); color:#fff; font-weight:800; font-size:20px; display:grid; place-items:center}
.journey-step.highlight .step-num{background:var(--blue)}
.step-body h3{font-size:21px; margin-bottom:7px}
.step-body p{color:var(--muted); margin:0 0 10px; font-size:16px}
.step-link{font-weight:600; font-size:15.5px}
.step-link.strong{color:var(--blue); font-weight:700}

/* Guide list */
.guide-list{list-style:none; counter-reset:g; margin:44px 0 0; padding:0; display:grid; gap:14px}
.guide-list li{counter-increment:g; position:relative; padding:24px 26px 24px 76px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm)}
.guide-list li::before{
  content:counter(g); position:absolute; left:24px; top:24px;
  width:34px; height:34px; border-radius:50%; background:var(--soft-2); color:var(--ink);
  font-weight:800; font-size:16px; display:grid; place-items:center;
}
.guide-list h3{font-size:19px; margin-bottom:6px}
.guide-list p{color:var(--muted); margin:0; font-size:16px}

/* Callout */
.callout{display:flex; gap:14px; align-items:flex-start; margin-top:26px; padding:20px 22px; border-radius:var(--radius); background:rgba(251,188,4,.12); border:1px solid rgba(251,188,4,.4)}
.callout.ok{background:rgba(52,168,83,.10); border-color:rgba(52,168,83,.35)}
.callout p{margin:0; font-size:15.5px; color:#3c4043}
.callout-ic{width:24px; height:24px; flex:0 0 auto; fill:none; stroke:#9a7400; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.callout.ok .callout-ic{stroke:var(--green); stroke-width:2.6}

/* Inbox zero cards */
.zero-steps{display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:44px}
.zero-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow-sm)}
.zero-card h3{font-size:19px; margin-bottom:10px}
.zero-card p{color:var(--muted); margin:0; font-size:16px}
.ops{margin:12px 0 0; padding:0; list-style:none; display:grid; gap:8px}
.ops li{font-size:14.5px; color:#3c4043}
code{font-family:'SFMono-Regular',ui-monospace,Menlo,Consolas,monospace; font-size:13.5px; background:var(--soft-2); color:var(--blue-d); padding:3px 8px; border-radius:7px}

/* Convert / conversion block */
.convert{position:relative; overflow:hidden; background:linear-gradient(135deg,#1558b0,#1a73e8 55%,#1b9c5a)}
.convert::after{content:""; position:absolute; inset:0; background:radial-gradient(50% 60% at 85% 10%, rgba(255,255,255,.14), transparent 60%); pointer-events:none}
.convert-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:54px; align-items:center; position:relative; z-index:1}
.convert-feats{list-style:none; padding:0; margin:24px 0 30px; display:grid; gap:12px}
.convert-feats li{display:flex; align-items:center; gap:11px; color:#fff; font-weight:500; font-size:16px}
.convert-feats .ic{stroke:#fff; width:20px; height:20px}
.micro{font-size:13.5px; margin:14px 0 0}
.micro.light{color:rgba(255,255,255,.8)}

/* Convert visual — mail preview */
.convert-visual{background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.22); border-radius:22px; padding:20px; backdrop-filter:blur(6px)}
.mail-row{display:flex; align-items:center; gap:14px; background:#fff; border-radius:14px; padding:14px 16px; margin-bottom:12px; box-shadow:var(--shadow)}
.mail-row.dim{opacity:.62; box-shadow:none}
.logo-av{width:42px; height:42px; border-radius:50%; flex:0 0 auto; display:grid; place-items:center; color:#fff; font-weight:700; background:linear-gradient(135deg,var(--red),var(--yellow))}
.logo-av.flat{background:var(--muted)} .logo-av.g2{background:#80868b}
.logo-av svg{width:24px; height:24px; fill:none; stroke:#fff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.logo-av.spin svg{animation:spin 3.2s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.mail-meta{flex:1; display:flex; flex-direction:column; line-height:1.3}
.mail-meta strong{font-size:15.5px}
.mail-meta span{font-size:13.5px; color:var(--muted)}
.mail-time{font-size:12.5px; color:var(--muted)}
.convert-caption{margin:6px 4px 2px; color:rgba(255,255,255,.85); font-size:13.5px; text-align:center}

/* FAQ */
.faq{margin-top:40px; display:grid; gap:12px}
.faq details{background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm); padding:0 22px; box-shadow:var(--shadow-sm)}
.faq summary{cursor:pointer; list-style:none; font-weight:600; font-size:17px; padding:20px 0; display:flex; align-items:center; justify-content:space-between; gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; font-weight:400; font-size:24px; color:var(--muted); transition:transform .2s var(--ease)}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{margin:0 0 20px; color:var(--muted); font-size:16px}

/* Final CTA */
.final{padding:96px 0; text-align:center}
.final-inner h2{font-size:clamp(30px,4vw,44px); font-weight:800}
.final-inner p{font-size:19px; color:var(--muted); margin:16px 0 32px}
.final-cta{display:flex; gap:14px; justify-content:center; flex-wrap:wrap}

/* Footer */
.site-footer{background:var(--ink); color:#bdc1c6; padding:56px 0 36px}
.footer-grid{display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:34px; border-bottom:1px solid rgba(255,255,255,.12)}
.footer-brand{max-width:340px}
.footer-brand .brand{color:#fff}
.footer-brand .brand-name{color:#fff}
.footer-brand p{margin:14px 0 0; font-size:14.5px; color:#9aa0a6}
.footer-links{display:flex; flex-wrap:wrap; gap:14px 26px; align-items:flex-start}
.footer-links a{color:#bdc1c6; font-size:15px}
.footer-links a:hover{color:#fff; text-decoration:none}
.footer-legal{padding-top:26px}
.footer-legal p{font-size:12.5px; color:#80868b; margin:0 0 10px; max-width:64em}

/* ---------- Responsive ---------- */
@media (max-width:920px){
  .hero-grid,.convert-grid{grid-template-columns:1fr; gap:40px}
  .article-layout{grid-template-columns:1fr}
  .sidebar-card{position:static}
  .resource-grid{grid-template-columns:1fr}
  .hero-visual{max-width:440px}
  .why-grid,.zero-steps{grid-template-columns:1fr}
  .nav-links{display:none}
  .nav-cta{display:none}
  .nav-toggle{display:flex}
  .site-header.menu-open .nav-links{
    display:flex; position:absolute; top:66px; left:0; right:0; flex-direction:column; gap:0;
    background:#fff; border-bottom:1px solid var(--line); padding:8px 24px 16px;
  }
  .site-header.menu-open .nav-links a{padding:12px 0; border-bottom:1px solid var(--soft-2)}
  .site-header.menu-open .nav-cta{display:inline-flex; position:absolute; top:78px; right:24px}
}
@media (max-width:560px){
  body{font-size:16px}
  .section{padding:62px 0}
  .hero{padding:48px 0 56px}
  .journey-step{flex-direction:column; gap:14px}
  .btn{width:100%; justify-content:center}
  .hero-cta .btn, .final-cta .btn{width:100%}
  .footer-grid{flex-direction:column; gap:28px}
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important}
}
