/* Export Declaration Form — soft violet SaaS theme */
:root {
  --ink: #1c1633;
  --ink-2: #4a4366;
  --muted: #7a7396;
  --line: #e7e2f7;
  --bg: #fbfaff;
  --lav: #f3effe;
  --lav-2: #e9e2ff;
  --violet: #6b4eff;
  --violet-d: #5236e6;
  --pink: #ff7ac3;
  --mint: #2fc4a4;
  --amber: #ffb547;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(40, 20, 110, .05), 0 12px 40px -12px rgba(80, 50, 200, .18);
  --grad: linear-gradient(135deg, #6b4eff 0%, #a35bff 55%, #ff7ac3 100%);
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--violet-d); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.alt { background: var(--lav); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--violet-d); background: var(--lav-2); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 14px;
  padding: 15px 26px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px -8px rgba(107, 78, 255, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(107, 78, 255, .7); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-sm { padding: 10px 18px; font-size: .92rem; border-radius: 12px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 255, .82); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-size: 1.05rem; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--violet-d); }

/* Hero */
.hero { position: relative; padding: 80px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(163, 91, 255, .28), transparent 70%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(255, 122, 195, .18), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: .93rem; }
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }

/* Sample EDF mock */
.mock {
  position: relative; background: var(--card); border-radius: 26px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 22px; transform: rotate(1deg);
}
.mock-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--lav-2); display: block; }
.tag {
  font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px; background: #fff3dd; color: #a86500; border: 1px solid #ffe2ad;
}
.mock h3 { font-size: 1.05rem; margin-bottom: 2px; }
.mock .sub { color: var(--muted); font-size: .82rem; margin-bottom: 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.field { background: var(--lav); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.field small { display: block; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field b { font-size: .9rem; font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv { width: 100%; border-collapse: collapse; font-size: .82rem; }
.inv th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.inv td { padding: 9px 4px; border-bottom: 1px dashed var(--line); white-space: nowrap; }
.inv td:last-child, .inv th:last-child { text-align: right; }
.mock-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: #138a70; background: #e3f8f2; padding: 6px 10px; border-radius: 999px; }
.dl { font-size: .8rem; font-weight: 700; color: #fff; background: var(--violet); padding: 8px 12px; border-radius: 10px; }
.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 14px; padding: 10px 14px; font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.float-chip.one { left: -28px; bottom: -22px; transform: rotate(-3deg); }
.float-chip.two { left: 42%; top: -22px; transform: rotate(3deg); }
.chip-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: .75rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; position: relative; }
.step .num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lav-2); color: var(--violet-d); font-weight: 800; margin-bottom: 16px; font-family: var(--mono);
}
.step p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.step.you { background: linear-gradient(180deg, #fff, #fff6fb); border-style: dashed; border-color: #ffc2e3; }
.step.you .num { background: #ffe3f2; color: #c2187a; }
.who { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.steps-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.steps-cta p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Where to file */
.where { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.where-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.where-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; }
.where-ico svg { width: 26px; height: 26px; }
.where-card .to { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.where-card .dest { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.where-card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.note {
  margin-top: 24px; display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--amber); border-radius: 16px; padding: 16px 20px; color: var(--ink-2); font-size: .95rem;
}
.note strong { color: var(--ink); }

/* Deadlines */
.deadlines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl-card { border-radius: var(--radius); padding: 30px 28px; color: #fff; position: relative; overflow: hidden; }
.dl-card:nth-child(1) { background: linear-gradient(140deg, #6b4eff, #8d6bff); }
.dl-card:nth-child(2) { background: linear-gradient(140deg, #8a4dff, #c25cff); }
.dl-card:nth-child(3) { background: linear-gradient(140deg, #c25cff, #ff7ac3); }
.dl-card .big { font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.dl-card .unit { font-size: 1rem; font-weight: 700; opacity: .9; margin: 6px 0 16px; }
.dl-card p { margin: 0; opacity: .92; font-size: .95rem; }
.dl-card .who { color: rgba(255, 255, 255, .8); }

/* Checklist */
.check-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.check-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.check-card h3 { display: flex; align-items: center; gap: 10px; }
.pill { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; font-weight: 500; }
.pill.req { background: var(--lav-2); color: var(--violet-d); }
.pill.opt { background: #e3f8f2; color: #138a70; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; padding-bottom: 0; }
.checklist .box { width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid var(--violet); margin-top: 2px; display: grid; place-items: center; }
.checklist .box svg { width: 14px; height: 14px; }
.check-card.opt .box { border-color: var(--mint); }
.checklist b { display: block; }
.checklist span { color: var(--muted); font-size: .9rem; }

/* Slip */
.slip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.slip-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.slip-card .if { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #c2187a; margin-bottom: 6px; }
.slip-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.slip-card p { margin: 0; color: var(--ink-2); font-size: .94rem; }

/* Blog teaser */
.teaser {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--shadow);
}
.teaser h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.teaser p { color: var(--ink-2); margin: 0; }
.teaser-art { width: 180px; height: 140px; border-radius: 20px; background: var(--lav); display: grid; place-items: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--lav);
  color: var(--violet-d); display: grid; place-items: center; font-size: 1.2rem; font-weight: 600; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--ink-2); }

/* Final CTA */
.final {
  background: var(--grad); color: #fff; border-radius: 32px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
}
.final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .22), transparent 40%), radial-gradient(circle at 85% 90%, rgba(255, 255, 255, .15), transparent 40%);
}
.final > * { position: relative; }
.final p { opacity: .92; max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.final .btn { background: #fff; color: var(--violet-d); }
.final .btn:hover { transform: translateY(-2px); }
.powered { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; margin-top: 18px; }
.final .powered { color: rgba(255, 255, 255, .85); }
.final .powered a { color: #fff; font-weight: 700; }

/* Footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer p { color: var(--muted); font-size: .9rem; max-width: 460px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; }
.footer-links a:hover { color: var(--violet-d); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem; }
.footer .powered a { color: var(--ink-2); font-weight: 700; }

/* Blog */
.post-hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--lav), var(--bg)); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.post-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 880px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; font-family: var(--mono); }
.post-layout { padding-bottom: 96px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 48px; align-items: start; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; font-size: .9rem; }
.toc .label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; }
.toc li a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; line-height: 1.35; }
.toc li a::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); color: var(--violet); font-weight: 500; font-size: .78rem; padding-top: 1px; }
.toc li a:hover { background: var(--lav); color: var(--violet-d); }
.toc .btn { width: 100%; margin-top: 14px; }
.article { max-width: 740px; }
.article h2 { font-size: 1.8rem; margin-top: 56px; scroll-margin-top: 90px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 28px; }
.article p, .article li { color: var(--ink-2); }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .45em; }
.article strong { color: var(--ink); }
.tl-dr { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 28px; margin-bottom: 40px; box-shadow: var(--shadow); }
.tl-dr .label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--violet-d); margin-bottom: 8px; }
.tl-dr ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.article table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.article th, .article td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: var(--lav); font-weight: 700; color: var(--ink); }
.article tr:last-child td { border-bottom: 0; }
.cta-box {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  background: var(--grad); color: #fff; border-radius: 22px; padding: 26px 28px; margin: 36px 0;
}
.cta-box p { color: #fff !important; margin: 0; font-weight: 700; font-size: 1.1rem; max-width: 420px; }
.cta-box small { display: block; font-weight: 500; opacity: .88; font-size: .9rem; margin-top: 4px; }
.cta-box .btn { background: #fff; color: var(--violet-d); }
.callout { background: var(--lav); border-radius: 16px; padding: 18px 22px; margin: 0 0 1.4em; }
.callout p:last-child { margin: 0; }
.disclaimer { margin-top: 56px; padding: 20px 22px; border: 1px dashed var(--line); border-radius: 16px; font-size: .88rem; color: var(--muted); }
.disclaimer p { color: var(--muted); margin: 0; }

/* Responsive */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .slip { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; max-height: none; }
}
@media (max-width: 860px) {
  .hero-grid, .check-grid { grid-template-columns: 1fr; }
  .where, .deadlines { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; padding: 28px; }
  .teaser-art { display: none; }
  .nav-links a:not(.btn) { display: none; }
  .mock { transform: none; }
  .float-chip.one { left: 8px; }
  .float-chip.two { left: auto; right: 8px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .steps, .slip { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .mock { padding: 16px; }
  .float-chip { display: none; }
  .final { padding: 44px 22px; border-radius: 24px; }
  .brand span { font-size: .95rem; }
  .nav .btn-sm { padding: 9px 12px; font-size: .85rem; }
  .cta-box { padding: 22px; }
  .article table { min-width: 0; font-size: .9rem; }
  .article th, .article td { padding: 10px 12px; }
  .hero-cta .btn { width: 100%; }
}
.footer-bottom .powered { margin-top: 0; }
