/* Clearly — clearlynotes.com shared styles */
:root {
  --violet: #5b5ce6;
  --violet-dark: #4041c9;
  --violet-deep: #32339b;
  --ink: #171732;
  --muted: #56566e;
  --bg-soft: #f6f6fe;
  --line: #e6e6f4;
  --green: #16a34a;
  --serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--violet-dark); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

h1, h2, h3, .brand { font-family: var(--serif); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.12; margin: 0 0 20px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.2; margin: 0 0 16px; }
h3 { font-size: 1.22rem; margin: 0 0 8px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 700; color: var(--ink);
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: .95rem;
}
.site-nav a:hover { color: var(--violet-dark); }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: .85rem; }
.lang-switch a {
  color: var(--muted); text-decoration: none; padding: 3px 7px; border-radius: 7px;
}
.lang-switch a:hover { color: var(--violet-dark); background: var(--bg-soft); }
.lang-switch a.active { color: var(--violet-dark); font-weight: 700; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: var(--violet); color: #fff !important; text-decoration: none;
  font-weight: 600; font-size: .98rem;
  transition: background .15s ease;
}
.btn:hover { background: var(--violet-dark); }
.btn.small { padding: 8px 18px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--violet-dark) !important; border: 1.5px solid var(--violet); }
.btn.ghost:hover { background: var(--bg-soft); }

/* Language pills (live translation section) */
.lang-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.lang-pills span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 15px; font-size: .9rem; color: #333349; white-space: nowrap;
}
.lang-pills span.more { background: var(--violet); border-color: var(--violet); color: #fff; font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: 72px 0 40px; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .eyebrow {
  display: inline-block; background: #ebebfd; color: var(--violet-deep);
  padding: 5px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  margin-bottom: 18px;
}
.hero-ctas { display: flex; align-items: center; gap: 18px; margin: 26px 0 14px; flex-wrap: wrap; }
.hero-ctas .badge-link img { height: 54px; width: auto; display: block; }
.hero-meta { color: var(--muted); font-size: .92rem; }
.hero-meta span { white-space: nowrap; }
.hero-meta span + span::before { content: "·"; margin: 0 8px; color: var(--line); }
.hero-shot { text-align: center; }
.phone-shot {
  width: min(320px, 80%);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(50, 51, 155, .28);
}

/* Sections */
section { padding: 68px 0; }
section.soft { background: var(--bg-soft); }
.kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 700; color: var(--violet-dark); margin-bottom: 10px;
  font-family: var(--sans);
}

/* Feature grid */
.grid { display: grid; gap: 24px; margin-top: 36px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: #ebebfd;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.card p { color: var(--muted); margin: 6px 0 0; font-size: .97rem; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.shot figure { margin: 0; text-align: center; }
.shot img {
  border-radius: 22px; box-shadow: 0 16px 44px rgba(50, 51, 155, .18);
  width: 100%;
}
.shot figcaption { margin-top: 14px; font-weight: 600; }
.shot .sub { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }

/* Steps */
.steps { counter-reset: step; margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--violet); color: #fff; font-weight: 700; font-family: var(--serif);
  margin-bottom: 14px; font-size: 1.1rem;
}
.step p { color: var(--muted); margin: 6px 0 0; font-size: .97rem; }

/* Guide cards */
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.guide-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.guide-card:hover { border-color: var(--violet); box-shadow: 0 8px 24px rgba(50,51,155,.1); }
.guide-card h3 { color: var(--ink); }
.guide-card p { color: var(--muted); margin: 4px 0 10px; font-size: .95rem; }
.guide-card .more { color: var(--violet-dark); font-weight: 600; font-size: .92rem; }

/* FAQ */
.faq { max-width: 780px; margin: 36px auto 0; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 4px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem; padding: 14px 0;
  list-style: none; position: relative; padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--violet);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 18px; color: var(--muted); }
.faq .answer a { font-weight: 600; }

/* CTA band */
.cta-band { background: var(--violet); color: #fff; text-align: center; padding: 76px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: #dedeff; max-width: 40em; margin: 0 auto 30px; }
.cta-band .badge-link img { height: 56px; width: auto; }
.cta-band .fineprint { font-size: .88rem; color: #c3c3f7; margin-top: 18px; }

/* Footer */
.site-footer { background: #14142b; color: #b9b9d4; padding: 56px 0 36px; font-size: .93rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; }
.site-footer a { color: #b9b9d4; text-decoration: none; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer a.brand { display: flex; color: #fff; margin-bottom: 12px; }
.site-footer .legal { border-top: 1px solid #2a2a4a; margin-top: 40px; padding-top: 22px; color: #7d7da0; font-size: .85rem; }

/* Guide article pages */
.article-hero { background: var(--bg-soft); padding: 48px 0 40px; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.article-body { padding: 44px 0 24px; }
.article-body .container { max-width: 780px; }
.article-body h2 { margin-top: 44px; font-size: 1.55rem; }
.article-body h3 { margin-top: 28px; }
.article-body p, .article-body li { color: #333349; font-size: 1.03rem; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body .tip {
  background: var(--bg-soft); border-left: 4px solid var(--violet);
  border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 24px 0;
}
.article-body .tip p { margin: 0; }
.howto {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 30px; margin: 36px 0;
}
.howto h2 { margin-top: 0 !important; }
.howto ol { margin-bottom: 0; }
.article-shot { text-align: center; margin: 32px 0; }
.article-shot img { width: min(300px, 75%); border-radius: 22px; box-shadow: 0 16px 44px rgba(50,51,155,.18); }
.article-shot figcaption { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.download-box {
  display: flex; align-items: center; gap: 24px;
  background: var(--violet); color: #fff; border-radius: 16px;
  padding: 26px 30px; margin: 44px 0;
}
.download-box img.appicon { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; }
.download-box h3 { color: #fff; margin: 0 0 4px; }
.download-box p { color: #dedeff; margin: 0; font-size: .95rem; }
.download-box .badge-link { margin-left: auto; flex-shrink: 0; }
.download-box .badge-link img { height: 48px; width: auto; display: block; }
.related { padding: 8px 0 64px; }
.related .container { max-width: 780px; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin: 36px 0; font-size: .97rem; }
.compare-table th, .compare-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table th { font-family: var(--sans); font-size: .92rem; }
.compare-table thead th { border-bottom: 2px solid var(--ink); }
.compare-table td.yes { color: var(--green); font-weight: 600; }
.compare-table td.no { color: #b91c1c; }
.compare-table .hl { background: var(--bg-soft); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .phone-shot { width: min(240px, 70%); }
  .grid.cols-3, .steps, .shots { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-nav .nav-link { display: none; }
}
@media (max-width: 620px) {
  .grid.cols-3, .grid.cols-2, .steps, .shots, .guide-list { grid-template-columns: 1fr; }
  .download-box { flex-direction: column; text-align: center; }
  .download-box .badge-link { margin-left: 0; }
  section { padding: 52px 0; }
}
