/* PGHerd's overview page on creatively.dev (index.html in English, pl.html in Polish): light, in cashmere
   tones, with serif headlines. */
:root {
  --bg: #f3ece2;          /* cashmere */
  --bg-deep: #ebe2d5;
  --paper: #fbf8f3;
  --ink: #2a241f;
  --ink-soft: #5b5148;
  --ink-faint: #8b8075;
  --line: #e0d4c3;
  --line-soft: #e9dfd2;
  --camel: #a66d34;
  --camel-soft: rgba(166, 109, 52, .1);
  --navy: #1f2f45;
  --navy-hover: #2b3f5c;
  --radius: 16px;
  --max: 72rem;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--camel); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: .9em "SF Mono", ui-monospace, Menlo, monospace; background: var(--bg-deep); padding: .05em .35em; border-radius: 5px; color: var(--ink); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* Navigation */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(243, 236, 226, .82); backdrop-filter: saturate(160%) blur(16px);
          -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 2rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 650; font-size: 1.1rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.links { display: flex; gap: 1.6rem; margin-left: auto; font-size: .93rem; }
.links a { color: var(--ink-soft); }
.links a:hover { color: var(--ink); text-decoration: none; }
.lang { font-size: .9rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; background: var(--paper); }
.lang:hover { color: var(--ink); text-decoration: none; border-color: var(--ink-faint); }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.55rem; border-radius: 999px; font-weight: 600;
          font-size: 1rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary { background: var(--navy); color: #fbf8f3; box-shadow: 0 8px 22px rgba(31, 47, 69, .22); }
.button.primary:hover { background: var(--navy-hover); box-shadow: 0 12px 28px rgba(31, 47, 69, .28); }
.button.ghost { color: var(--ink); border: 1px solid var(--line); background: var(--paper); }
.button.ghost:hover { border-color: var(--ink-faint); }
.button.small { padding: .55rem 1.1rem; font-size: .92rem; }

/* Hero */
.hero { position: relative; padding: 5.5rem 0 0; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -10% -10% auto; height: 820px; pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 50% 25%, rgba(255, 252, 246, .95), transparent 70%),
              radial-gradient(ellipse 35% 35% at 18% 60%, rgba(166, 109, 52, .08), transparent 70%),
              radial-gradient(ellipse 35% 35% at 82% 60%, rgba(31, 47, 69, .06), transparent 70%); }
.hero > * { position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .95rem; border-radius: 999px; font-size: .85rem;
         color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); }
.badge b { color: var(--camel); font-weight: 600; }
.hero .icon { width: 112px; height: 112px; margin: 1.6rem auto 0; border-radius: 25px; filter: drop-shadow(0 16px 30px rgba(42, 36, 31, .22)); }
.hero h1 { margin: 1.3rem auto 0; max-width: 20ch; font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 6.2vw, 4.4rem);
           line-height: 1.06; letter-spacing: -.02em; color: var(--ink); }
.hero h1 .accent { display: block; color: var(--camel); font-style: italic; }
.hero .lead { margin: 1.4rem auto 0; max-width: 40rem; font-size: clamp(1.08rem, 1.9vw, 1.25rem); color: var(--ink-soft); }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.fineprint { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-faint); }

/* A screenshot in a window frame */
.window { margin: 4rem auto 0; max-width: 64rem; border-radius: 12px; background: var(--paper); border: 1px solid #d9cdbb;
          box-shadow: 0 40px 90px rgba(60, 45, 30, .20), 0 8px 24px rgba(60, 45, 30, .08); overflow: hidden; }
.window img { width: 100%; }
.hero .window { margin-bottom: -1px; }

/* Facts */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.1rem 1.5rem; text-align: center; }
.strip b { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.strip span { font-size: .9rem; color: var(--ink-faint); }

/* Sections */
section.block { padding: 7rem 0 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--camel); }
h2 { margin: .7rem 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; letter-spacing: -.015em; }
.intro { max-width: 44rem; margin: 1rem 0 0; font-size: 1.12rem; color: var(--ink-soft); }
.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }

/* A feature beside a picture */
.feature { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: center; padding-top: 6rem; }
.feature.flip > .text { order: 2; }
.feature h3 { margin: .6rem 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.9vw, 2.15rem); line-height: 1.18; letter-spacing: -.01em; }
.feature p { color: var(--ink-soft); margin: 1rem 0 0; }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 1.8rem; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--camel-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23a66d34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/.8rem no-repeat; }
.panel { border-radius: 20px; padding: 1.4rem; background: linear-gradient(160deg, #efe5d7, #e6dac9); border: 1px solid var(--line); }
.panel img { border-radius: 10px; margin: 0 auto; border: 1px solid #d9cdbb; box-shadow: 0 18px 40px rgba(60, 45, 30, .16); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem; }
.card { text-align: left; padding: 1.6rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-soft);
        box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 6px 18px rgba(60, 45, 30, .05);
        transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.card:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(60, 45, 30, .09); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--camel-soft); border: 1px solid rgba(166, 109, 52, .2); }
.card .ic svg { width: 22px; height: 22px; stroke: var(--camel); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h4 { margin: 1rem 0 .35rem; font-size: 1.06rem; letter-spacing: -.005em; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* Security */
.secure { margin-top: 7rem; border-radius: 26px; padding: 4rem; border: 1px solid var(--line); background: linear-gradient(165deg, #e9dfd1, #e2d6c5); }
.secure .grid { grid-template-columns: repeat(2, 1fr); margin-top: 2.4rem; }

/* AI */
.terminal { border-radius: 14px; background: #1f2a3a; border: 1px solid #2c3a50; overflow: hidden; box-shadow: 0 30px 70px rgba(31, 47, 69, .28); }
.terminal .bar { display: flex; gap: .45rem; padding: .8rem 1rem; border-bottom: 1px solid #2c3a50; background: #243246; }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a5a72; }
.terminal pre { margin: 0; padding: 1.3rem 1.4rem; overflow-x: auto; font: 14px/1.7 "SF Mono", ui-monospace, Menlo, Consolas, monospace; color: #e8e2d6; }
.terminal .p { color: #8fd1a8; }
.terminal .c { color: #8995a8; }
.terminal .k { color: #e0b27a; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 52rem; margin: 3rem auto 0; }
.price { text-align: left; padding: 2.2rem; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.price.best { border: 1.5px solid var(--camel); box-shadow: 0 24px 60px rgba(166, 109, 52, .14); }
.price h3 { margin: 0; font-size: 1rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .02em; }
.price .amount { margin: .6rem 0 0; font-family: var(--serif); font-size: 2.4rem; font-weight: 600; letter-spacing: -.01em; }
.price .amount small { display: block; margin-top: .2rem; font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
                       font-size: 1rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.price .checks { margin-top: 1.4rem; }
.price .button { margin-top: 1.6rem; }

/* FAQ */
.faq { max-width: 50rem; margin: 3rem auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; font-weight: 600; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem;
                      font-weight: 300; color: var(--ink-faint); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--camel); }
.faq details p { margin: 0 0 1.4rem; color: var(--ink-soft); }

/* Closing call */
.closing { margin: 8rem 0 0; text-align: center; padding: 5rem 2rem; border-radius: 26px; border: 1px solid var(--line);
           background: radial-gradient(ellipse 60% 90% at 50% 120%, rgba(166, 109, 52, .14), transparent 70%), var(--paper); }
.closing img { width: 84px; height: 84px; margin: 0 auto; border-radius: 19px; filter: drop-shadow(0 10px 22px rgba(42, 36, 31, .18)); }
.closing h2 { margin-top: 1.4rem; }
.closing p { color: var(--ink-soft); max-width: 34rem; margin: 1rem auto 0; }

/* Footer */
.foot { margin-top: 6rem; border-top: 1px solid var(--line); background: var(--bg-deep); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2.2rem 1.5rem 3rem; font-size: .9rem; color: var(--ink-faint); }
.foot nav { display: flex; gap: 1.4rem; }
.foot a { color: var(--ink-soft); }

/* Appearing on scroll, when JavaScript runs and motion isn't reduced */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .button, .card { transition: none; }
}

/* Narrow screens */
@media (max-width: 960px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 2.2rem; }
  .feature.flip > .text { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .secure { padding: 2.4rem 1.6rem; }
}
@media (max-width: 760px) {
  .links { display: none; }
  .topbar .wrap { gap: 1rem; }
  .topbar .lang { margin-left: auto; }
  .grid, .secure .grid, .pricing { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
  section.block { padding-top: 5rem; }
  .feature { padding-top: 4rem; }
  .terminal pre { font-size: 11px; padding: 1rem; }
}
