/* andikapdf.com - one stylesheet for every page. The app's own colours (approved icon set):
   graphite #202730 and red #C9363E. System fonts only: no font or script is fetched from anyone. */
:root {
  --ink: #202730; --ink-2: #3a4350; --soft: #5a6270; --line: #e3e6ea; --wash: #f5f6f8;
  --paper: #ffffff; --red: #c9363e; --red-dark: #a82a31; --red-wash: #fcf0f1; --dark: #1a2029;
  --radius: 14px; --wide: 1120px;
  --shadow: 0 1px 2px rgba(32, 39, 48, .06), 0 8px 24px rgba(32, 39, 48, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
       font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
button { font-family: inherit; }
a { color: var(--red-dark); text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid #e7838a; outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.soft { color: var(--soft); }
.small { font-size: 15px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 21px; letter-spacing: -.2px;
        color: var(--ink); text-decoration: none; margin-right: auto; }
.logo img { width: 30px; height: 30px; }
.logo span { white-space: nowrap; }
.logo b { color: var(--red); font-weight: 750; }
.menu { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.menu a { color: var(--ink-2); text-decoration: none; font-weight: 550; padding: 10px 10px; border-radius: 8px; }
.menu a:hover { background: var(--wash); color: var(--ink); }
.menu a[aria-current="page"] { color: var(--red-dark); background: var(--red-wash); }
.signin { color: var(--ink); font-weight: 650; text-decoration: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; }
.signin:hover { border-color: var(--ink-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
       padding: 11px 20px; border-radius: 10px; font-weight: 650; text-decoration: none; border: 2px solid transparent;
       background: var(--red); color: #fff; cursor: pointer; font-size: 16px; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn.big { min-height: 54px; padding: 14px 26px; font-size: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }

/* type */
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -1px; margin: 0 0 18px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.5px; margin: 0 0 14px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--soft); max-width: 640px; margin: 0; }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
          color: var(--red-dark); margin-bottom: 10px; }

/* sections */
section { padding: 72px 0; }
section.tight { padding: 44px 0; }
.wash { background: var(--wash); }
.hero { padding: 64px 0 56px; }
.hero .grid2 { align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 40px; }
.grid3 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) {
  .grid2 { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .grid3 { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
@media (min-width: 620px) and (max-width: 899px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.lift { box-shadow: var(--shadow); border-color: transparent; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--red-wash); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 14px; height: 8px;
                    border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 58px; margin: 0 0 24px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%;
                    background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* before / after: one picture, a Before/After switch made of two radio buttons (no script) */
.ba { position: relative; }
.ba input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ba-tabs { display: inline-flex; background: var(--wash); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.ba-tabs label { padding: 8px 16px; border-radius: 999px; font-weight: 650; font-size: 15px; cursor: pointer; color: var(--soft); min-height: 40px; display: inline-flex; align-items: center; }
#ba-before:checked ~ .ba-tabs label[for="ba-before"], #ba-after:checked ~ .ba-tabs label[for="ba-after"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
#ba-after:checked ~ .ba-tabs label[for="ba-after"] { color: var(--red-dark); }
#ba-before:focus-visible ~ .ba-tabs label[for="ba-before"], #ba-after:focus-visible ~ .ba-tabs label[for="ba-after"] { outline: 3px solid #e7838a; outline-offset: 2px; }
.ba-pic { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
#ba-before:checked ~ .ba-a, #ba-after:checked ~ .ba-b { display: none; }
.ba p { margin: 10px 2px 0; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--wash); }
.shot figcaption { padding: 10px 14px; font-size: 15px; color: var(--soft); border-top: 1px solid var(--line); background: var(--paper); }

/* pricing */
.plans { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper); }
.plan.pro { border: 2px solid var(--red); box-shadow: var(--shadow); }
.price { font-size: 40px; font-weight: 750; letter-spacing: -1px; margin: 6px 0 0; }
.price small { font-size: 17px; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--paper); min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--wash); font-size: 15px; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.y { color: var(--red-dark); font-weight: 700; }

/* questions */
details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin: 0 0 10px; background: var(--paper); }
summary { cursor: pointer; font-weight: 650; padding: 15px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 11px; font-size: 22px; color: var(--soft); }
details[open] summary::after { content: "\2212"; }
details p, details ul { margin-top: 0; }

/* download band */
.band { background: var(--dark); color: #fff; border-radius: 20px; padding: 40px; }
.band h2 { color: #fff; }
.band p { color: #c8cdd5; }
.band .btn.ghost { color: #fff; border-color: #4a5462; }
code { font-size: 14px; word-break: break-all; background: var(--wash); padding: 2px 6px; border-radius: 6px; }

/* legal pages */
.legal h2 { font-size: 24px; margin-top: 36px; }
.legal table { min-width: 560px; }

/* footer */
.foot { background: var(--wash); border-top: 1px solid var(--line); padding: 48px 0 36px; margin-top: 40px; font-size: 15px; color: var(--soft); }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-bottom: 28px; }
.foot h2 { font-size: 15px; letter-spacing: .4px; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--red-dark); text-decoration: underline; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .hero { padding: 40px 0; }
  .wrap { padding: 0 16px; }
  .band { padding: 28px 20px; }
  .menu a { padding: 10px 8px; }
  .top .btn { display: none; }
  .top .signin { order: 1; padding: 7px 14px; }
  .menu { order: 2; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* pay page */
.test { background: #fff4ce; border: 1px solid #e8d48a; padding: 8px 12px; border-radius: 8px; font-size: 15px; margin: 18px 0 0; }
.picks { display: grid; gap: 12px; margin: 24px 0 18px; }
.pick { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 2px solid var(--line);
        border-radius: 12px; padding: 16px 18px; cursor: pointer; min-height: 64px; }
.pick:has(input:checked) { border-color: var(--red); background: var(--red-wash); }
.pick:focus-within { outline: 3px solid #e7838a; outline-offset: 2px; }
.pick input { accent-color: var(--red); width: 20px; height: 20px; margin: 0; }
.pick b, .pick .soft { display: block; }
.pick .amount { margin-left: auto; font-weight: 700; white-space: nowrap; }
#pay { width: 100%; }

/* account page */
.acct { display: grid; gap: 10px; margin-top: 26px; max-width: 460px; }
.acct label { font-weight: 650; }
.acct input { font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; min-height: 50px; }
.acct input:focus { border-color: var(--red); outline: none; }
#code { letter-spacing: 6px; font-size: 22px; max-width: 220px; }
.gbtn { background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 600; width: 100%; }
.gbtn:hover { background: #f2f2f2; color: #1f1f1f; }
.gwrap { display: grid; gap: 10px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 15px; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.said { min-height: 24px; color: var(--red-dark); font-weight: 600; margin-top: 16px; }
.devlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dev { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between;
       border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--paper); }
.dev b { margin-right: 8px; }
.dev .small { display: block; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 10px;
         background: #e8f5ee; color: #1f6b44; }
.badge.wait { background: #fff4ce; color: #7a5b00; }

/* detailed comparison */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
table.compare { min-width: 460px; }
table.compare thead th { background: var(--paper); }
table.compare th[scope="col"]:not(:first-child), table.compare td { text-align: center; width: 22%; }
table.compare tbody th[scope="row"] { font-weight: 500; }
table.compare tr.group th { background: var(--wash); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); text-align: left; }
table.compare td.y { color: var(--red); font-size: 20px; font-weight: 700; }
table.compare td.n { color: #a7aeb8; }

[id] { scroll-margin-top: 84px; }
.tablewrap { position: relative; }
table.compare td, table.compare th { position: relative; }
@media (max-width: 560px) {
  table.compare { min-width: 0; font-size: 15px; }
  table.compare th[scope="col"]:not(:first-child), table.compare td { width: 64px; padding-left: 4px; padding-right: 4px; }
  table.compare td { font-size: 13px; }
  table.compare td.y { font-size: 18px; }
}
.btn.ghost.danger { color: var(--red-dark); border-color: #f0c4c7; }
.btn.ghost.danger:hover { border-color: var(--red); color: var(--red); }
