/* Green Crane Studio
   Paleta własna (zieleń żurawia) + ciepły papier Folditori.
   Bez zewnętrznych fontów, skryptów i trackerów. */

:root {
  --pine: #16382c;
  --forest: #1b4d3a;
  --leaf: #2f7a56;
  --moss: #5aaa7a;
  --sage: #e7efe8;
  --mist: #f4f5f1;
  --paper: #f7f4ef;
  --card: #fffcf8;
  --ink: #16241e;
  --ink-soft: #4a554e;
  --line: rgba(22, 36, 30, 0.12);
  --shadow: 0 16px 40px rgba(22, 36, 30, 0.08);
  --radius: 1.25rem;
  --font-serif: "Palatino Linotype", Palatino, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --page: 68rem;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--mist);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
a:hover { color: var(--leaf); }

:focus-visible {
  outline: 3px solid var(--moss);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -10rem;
  z-index: 20;
  background: var(--pine);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 0.4rem;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; color: #fff; }

.wrap {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--mist) 86%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--pine);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.brand:hover { color: var(--pine); }
.brand img {
  width: 2.35rem;
  height: auto;
  flex: 0 0 auto;
}
.brand-name { white-space: nowrap; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--pine);
  border-bottom-color: var(--moss);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.15rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lang a {
  text-decoration: none;
  color: var(--ink-soft);
  border: 0;
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
}
.lang a[aria-current="true"],
.lang a[aria-current="page"] {
  color: var(--pine);
  background: var(--sage);
  border-bottom-color: transparent;
}
.lang a:hover { color: var(--pine); }

/* Main */
main { flex: 1; padding: 3.25rem 0 4.5rem; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
  margin-bottom: 3.25rem;
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .hero-visual { justify-self: end; }
  .hero.studio-hero { grid-template-columns: auto 1fr; align-items: center; gap: 1.75rem; }
}

.studio-hero .mark {
  width: 6.5rem;
  height: auto;
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}
.studio-hero h1 { margin-bottom: 0.55rem; }

.kicker {
  margin: 0 0 0.55rem;
  color: var(--leaf);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--pine);
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
}

h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }

.lede {
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36rem;
  text-wrap: pretty;
}

.hero-visual { position: relative; }

.logo-word {
  width: min(20rem, 100%);
  margin: 0 0 0.3rem;
}
.subtitle {
  margin: 0 0 1rem;
  color: var(--pine);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
}

/* Device mockup */
.device {
  width: min(16.25rem, 100%);
  margin: 0;
  background: var(--pine);
  border-radius: 2rem;
  padding: 0.62rem 0.48rem 0.7rem;
  box-shadow:
    0 0 0 1px rgba(22, 36, 30, 0.2),
    0 22px 50px rgba(22, 36, 30, 0.16);
}
.device img {
  width: 100%;
  border-radius: 1.4rem;
  background: #f7efe5;
}
.device figcaption { display: none; }

.foldi-aside {
  width: min(16rem, 70%);
  margin: 1.25rem auto 0;
  filter: drop-shadow(0 12px 18px rgba(22, 36, 30, 0.12));
}
@media (min-width: 860px) {
  .hero-visual .foldi-aside { display: none; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary {
  background: var(--pine);
  color: #fff;
}
.btn-primary:hover { background: #11291f; color: #fff; }

.btn-accent {
  background: var(--leaf);
  color: #fff;
}
.btn-accent:hover { background: #246547; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}
.btn-ghost:hover { background: var(--pine); color: #fff; }

/* Non-link store badge — must not look like a live install button. */
.btn-soon,
span.btn-soon {
  background: var(--sage);
  color: var(--pine);
  border: 1px solid color-mix(in srgb, var(--leaf) 35%, var(--sage));
  cursor: default;
  font-weight: 700;
}
span.btn-soon:hover { color: var(--pine); }
.product-copy .btn-soon { white-space: nowrap; }

/* Sections and cards */
.section { margin: 2.75rem 0 0; }
.section-head { margin-bottom: 1.25rem; }
.section-head .lede { margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-features { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.card, .panel, .product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card, .panel { padding: 1.35rem 1.4rem 1.45rem; }

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1.5rem;
}
@media (min-width: 860px) {
  .product {
    grid-template-columns: minmax(22rem, 1.35fr) auto;
    gap: 2.5rem;
    padding: 2.1rem 2.4rem;
  }
}

.product-copy .icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.05rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(22, 36, 30, 0.1);
}
.product-copy h2 { margin-bottom: 0.15rem; font-size: clamp(1.7rem, 2.5vw, 2.15rem); }
.product-copy .subtitle { margin: 0 0 0.85rem; }
.product-copy .lede { margin-bottom: 1.25rem; }
.product .device { justify-self: center; }

.feature h3 { margin-top: 0; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.panel p { margin: 0 0 1rem; color: var(--ink-soft); }
.panel p:last-child { margin-bottom: 0; }

.email {
  font-weight: 700;
  color: var(--pine);
  word-break: break-word;
}

.meta {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.meta code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--sage);
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
}

/* Privacy */
.policy {
  width: min(var(--measure), 100%);
  margin-inline: auto;
}
.policy-jump {
  display: flex;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  font-weight: 700;
}
.policy h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.policy h2 { margin-top: 1.7rem; font-size: 1.25rem; }
.policy .updated {
  color: var(--ink-soft);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.policy p { margin: 0 0 0.9rem; }
.policy + .policy {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--sage) 55%, var(--mist));
  padding: 2rem 0 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr auto;
    align-items: start;
    gap: 2rem;
  }
}
.footer-brand .brand { margin-bottom: 0.5rem; }
.footer-brand p { margin: 0; }
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
}
.site-footer a { color: var(--pine); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .lang {
  margin: 0;
  padding: 0;
  border: 0;
}
.footer-legal {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

/* 404 */
.notfound { text-align: center; padding: 2.5rem 0; }
.notfound .mark { width: 5.5rem; margin: 0 auto 1.25rem; border-radius: 1.2rem; }
.notfound .lede { margin-inline: auto; }

@media (max-width: 640px) {
  .lang {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
  }
  main { padding-top: 2rem; }
  .wrap { width: min(var(--page), calc(100% - 1.75rem)); }
  .brand-name { font-size: 0.98rem; }
}
