/* Emailwriter — marketing site (Apple-inspired layout, app-sourced palette) */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-tint: #eff6ff;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: rgba(15, 23, 42, 0.08);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1120px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border-radius: 8px;
  outline: 2px solid var(--blue);
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(244, 246, 248, 0.72);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand__icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
  color: var(--blue-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--text);
  border-radius: 980px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.btn-store:hover {
  opacity: 0.92;
  text-decoration: none;
  transform: scale(1.02);
}

.btn-store svg {
  width: 14px;
  height: 14px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 5rem;
}

.hero__mesh {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(29, 78, 216, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 20%, rgba(37, 99, 235, 0.06), transparent);
}

.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero__lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.1875rem;
  color: var(--muted);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px var(--shadow);
  transition: background 0.2s, transform 0.2s var(--ease);
}

.btn-primary:hover {
  background: var(--blue-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost:hover {
  text-decoration: underline;
}

.hero__compat {
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.article-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 2rem;
}

.article-hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.article-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.article-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.article-lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.6;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4.5rem;
}

.article-body h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.article-body p,
.article-body li {
  color: var(--muted);
  line-height: 1.7;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.article-cta {
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px var(--shadow);
}

.article-cta h2 {
  margin-top: 0;
}

.article-cta p {
  margin-bottom: 1rem;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

.section--tight {
  padding-top: 2rem;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
}

.section__subtitle {
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 1px 3px var(--shadow);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento__large {
  grid-column: span 7;
}

.bento__small {
  grid-column: span 5;
}

@media (max-width: 900px) {
  .bento__large,
  .bento__small {
    grid-column: span 12;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  box-shadow: 0 1px 3px var(--shadow);
}

.panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Pro */
.pro-band {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 1rem;
}

.pro-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pro-band > p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: #94a3b8;
  font-size: 1.0625rem;
}

.pro-list {
  list-style: none;
  margin: 0 auto 1.5rem;
  padding: 0;
  max-width: 28rem;
  text-align: left;
}

.pro-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: #e2e8f0;
  font-size: 0.9375rem;
}

.pro-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.pro-note {
  font-size: 0.8125rem;
  color: #94a3b8;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.5;
}

/* Privacy */
.privacy-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
}

.privacy-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.privacy-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--blue-tint);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}

/* FAQ */
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

details.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item .faq-body {
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Footer */
.site-footer {
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}
