/* PD StudioX - "Studio Ink" web styles. No external fonts, frameworks or trackers. */
:root {
  --ink: #171a38;
  --ink-light: #3d3085;
  --violet: #735cfa;
  --pdf-a: #ff6b66;
  --pdf-b: #e33054;
  --word-a: #4d8cff;
  --word-b: #2652db;
  --txt-a: #1fd1a3;
  --txt-b: #08948a;
  --paper: #f2f2fa;
  --card: #ffffff;
  --text: #1b1d33;
  --muted: #5d5f78;
  --stroke: rgba(23, 26, 56, 0.08);
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0d14;
    --card: #1c1c26;
    --text: #ececf6;
    --muted: #a9abc4;
    --stroke: rgba(255, 255, 255, 0.07);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.6 var(--body);
}

a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--word-b); }
@media (prefers-color-scheme: dark) { a { color: #a99bff; } a:hover { color: #c7bdff; } }

:focus-visible { outline: 3px solid var(--txt-a); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--card); color: var(--text); padding: 8px 14px; border-radius: 10px; z-index: 10;
}
.skip:focus { left: 12px; }

/* Ink hero */
.inkwell {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 58%, rgba(115, 92, 250, 0.92) 100%);
  color: #fff;
  border-radius: 0 0 38px 38px;
  padding: 22px 0 64px;
  overflow: hidden;
}

.frame { width: min(1040px, 100% - 40px); margin-inline: auto; }

.topline {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 20px/1 var(--round); color: #fff; text-decoration: none;
}
.mark-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid; place-items: center; font-size: 16px;
}
.topline nav a {
  color: rgba(255, 255, 255, 0.86); font: 700 15px/1 var(--round); text-decoration: none;
  padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1);
}
.topline nav a[aria-current="page"], .topline nav a:hover { background: #fff; color: var(--ink); }

.hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; margin-top: 46px;
}
.hero-grid h1 {
  font: 900 clamp(34px, 6vw, 56px)/1.05 var(--round); margin: 0 0 14px; letter-spacing: -0.5px;
}
.hero-grid p.lede { font-size: 19px; color: rgba(255, 255, 255, 0.8); margin: 0 0 22px; max-width: 34em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li {
  font: 700 14px/1 var(--round); padding: 8px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

/* Folded-corner sheets, the app's signature badge */
.sheets { position: relative; height: 230px; }
.sheet {
  position: absolute; width: 118px; height: 148px;
  clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%);
  border-radius: 16px;
  display: grid; place-items: end center; padding-bottom: 22px;
  font: 900 22px/1 var(--round); color: #fff;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
}
.sheet::after {
  content: ""; position: absolute; top: 0; right: 0; width: 30%; height: 24%;
  background: rgba(255, 255, 255, 0.45); border-bottom-left-radius: 10px;
}
.sheet.pdf { background: linear-gradient(135deg, var(--pdf-a), var(--pdf-b)); left: 4%; top: 46px; transform: rotate(-14deg); }
.sheet.txt { background: linear-gradient(135deg, var(--txt-a), var(--txt-b)); right: 4%; top: 46px; transform: rotate(14deg); }
.sheet.word { background: linear-gradient(135deg, var(--word-a), var(--word-b)); left: calc(50% - 66px); top: 10px; width: 132px; height: 166px; z-index: 2; }

/* Content */
main { padding: 0 0 40px; }
.lift { margin-top: -34px; position: relative; }

.panel {
  background: var(--card); border: 1px solid var(--stroke); border-radius: 26px;
  padding: 28px clamp(20px, 4vw, 38px); margin-bottom: 22px;
  box-shadow: 0 14px 34px rgba(61, 48, 133, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.panel h2 { font: 850 26px/1.2 var(--round); margin: 0 0 6px; }
.panel h3 { font: 800 19px/1.3 var(--round); margin: 0 0 6px; }
.kicker {
  font: 900 12px/1 var(--round); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px;
}
.muted { color: var(--muted); }

.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 18px; }
.tool {
  border-radius: 22px; padding: 20px; border: 1px solid var(--stroke); background: var(--paper);
  position: relative; overflow: hidden;
}
.tool::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 6px;
}
.tool.from-pdf::before { background: linear-gradient(var(--pdf-a), var(--pdf-b)); }
.tool.from-word::before { background: linear-gradient(var(--word-a), var(--word-b)); }
.tool.from-txt::before { background: linear-gradient(var(--txt-a), var(--txt-b)); }
.pill {
  display: inline-block; font: 900 11px/1 var(--round); color: #fff; padding: 5px 9px; border-radius: 999px;
  margin-bottom: 8px;
}
.pill.pdf { background: linear-gradient(135deg, var(--pdf-a), var(--pdf-b)); }
.pill.word { background: linear-gradient(135deg, var(--word-a), var(--word-b)); }
.pill.txt { background: linear-gradient(135deg, var(--txt-a), var(--txt-b)); }
.tool ol { margin: 8px 0 0; padding-left: 20px; }
.tool li { margin: 3px 0; }

.faq details {
  border-top: 1px solid var(--stroke); padding: 14px 0;
}
.faq details:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer; font: 800 18px/1.35 var(--round); list-style: none; position: relative; padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(115, 92, 250, 0.14); color: var(--violet); font-weight: 900;
}
.faq details[open] summary::after { content: "-"; }
.faq p { margin: 10px 0 0; }

.contact {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  background: linear-gradient(135deg, var(--ink), var(--ink-light)); color: #fff; border: 0;
}
.contact .muted { color: rgba(255, 255, 255, 0.75); }
.mail-btn {
  display: inline-block; background: #fff; color: var(--ink); font: 850 17px/1 var(--round);
  padding: 16px 22px; border-radius: 18px; text-decoration: none; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}
.mail-btn:hover { color: var(--violet); }

/* Privacy ledger */
.ledger { display: grid; gap: 14px; }
.entry {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
}
.glyph {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink), var(--ink-light), var(--violet)); color: #fff;
  font: 900 18px/1 var(--round);
}
.entry p, .entry ul { margin: 6px 0 0; }
.entry ul { padding-left: 20px; }
table.facts { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 16px; }
table.facts th, table.facts td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--stroke); vertical-align: top; }
table.facts th { font: 800 15px/1.3 var(--round); width: 34%; }

footer { padding: 10px 0 40px; color: var(--muted); font-size: 15px; text-align: center; }
footer a { font-weight: 700; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .sheets { height: 190px; transform: scale(0.85); transform-origin: top center; }
  .contact { grid-template-columns: 1fr; }
  table.facts th { width: 40%; }
}

@media (prefers-reduced-motion: no-preference) {
  .sheet.word { animation: bob 5s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-6px); } }
}
