/* Global styles - minimal B&W design */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Page content — middle section between header and footer */
.page-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

/* Header and Footer */
.header a {
  border-bottom: none;
  padding-bottom: 0;
}

.header {
  padding: 40px 20px;
  width: 100%;
  order: -1;
  display: flex;
  justify-content: center;
}

.footer {
  padding: 40px 20px;
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  color: #aaa;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.footer-logo {
  width: clamp(60px, 8vw, 120px);
  opacity: 0.25;
  align-self: flex-start;
}

.footer-left {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 80px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-links a,
.footer-contact a {
  color: inherit;
  border-bottom: none;
  font-size: inherit;
}

/* Links */
a {
  color: #333;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid #333;
  padding-bottom: 2px;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.6;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 16px;
}

p {
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Buttons */
button, input[type="button"], input[type="submit"] {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover {
  background: #fff;
  color: #000;
}

/* Plans page */
.logo {
  width: clamp(100px, 20vw, 320px);
}

.plans-intro {
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.plans-heading {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
}

.plans-subheading {
  font-size: 14px;
  color: #888;
  margin-bottom: 0;
}

.plans-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: 800px;
  padding-top: 40px;
}

.plan {
  border: 1px solid #000;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.plan + .plan {
  border-left: none;
}

.plan--featured {
  background: #000;
  color: #fff;
}

.plan-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 20px;
}

.plan-price {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.plan-netto {
  font-size: 22px;
  font-weight: 400;
  vertical-align: middle;
}

.plan-price-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 0;
}

.plan-for {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}

.plan-divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 28px 0;
}

.plan--featured .plan-divider {
  border-top-color: #2a2a2a;
}

.plan-features {
  flex: 1;
  font-size: 14px;
  margin-bottom: 32px;
}

.plan-features ul {
  list-style: none;
  padding: 0;
}

.plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan--featured .plan-features li {
  border-bottom-color: #1e1e1e;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: "—";
  font-size: 12px;
  opacity: 0.4;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-features li details {
  flex: 1;
}

.plan-features details summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  outline: none;
}

.plan-features details summary::-webkit-details-marker {
  display: none;
}

.feature-langs {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.55;
  line-height: 1.8;
}

.plan-cta {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  transition: all 0.2s;
  font-family: inherit;
}

.plan-cta:hover {
  background: #fff;
  color: #000;
}

.plan--featured .plan-cta {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.plan--featured .plan-cta:hover {
  background: transparent;
  color: #fff;
}

/* Plan form */
.plan-form-wrap {
  margin-top: auto;
}

.plan-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.plan-form input,
.plan-form textarea {
  width: 100%;
  padding: 11px 0;
  font-size: 13px;
  font-family: inherit;
  background: transparent;
  border: none;
  border-bottom: 1px solid #d0d0d0;
  color: inherit;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.plan-form input:focus,
.plan-form textarea:focus {
  border-bottom-color: #000;
}

.plan-form input::placeholder,
.plan-form textarea::placeholder {
  color: #bbb;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.plan-form textarea {
  resize: none;
  height: 96px;
  line-height: 1.5;
}

.plan-form button[type="submit"] {
  width: 100%;
  margin-top: 20px;
  padding: 13px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: inherit;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-form button[type="submit"]:hover {
  background: #fff;
  color: #000;
}

/* Featured plan (black bg) — inverted form colors */
.plan--featured .plan-form input,
.plan--featured .plan-form textarea {
  border-bottom-color: #3a3a3a;
}

.plan--featured .plan-form input:focus,
.plan--featured .plan-form textarea:focus {
  border-bottom-color: #fff;
}

.plan--featured .plan-form input::placeholder,
.plan--featured .plan-form textarea::placeholder {
  color: #666;
}

.plan--featured .plan-form button[type="submit"] {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.plan--featured .plan-form button[type="submit"]:hover {
  background: transparent;
  color: #fff;
}

/* Form feedback messages */
.form-success {
  font-size: 13px;
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  letter-spacing: 0.02em;
}

.plan--featured .form-success {
  border-color: #2a2a2a;
}

.form-error {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 8px;
}

/* Terms page */
.terms {
  max-width: 720px;
  width: 100%;
  line-height: 1.7;
}

.terms h1 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
}

.terms-updated {
  font-size: 12px;
  color: #888;
  margin-bottom: 40px;
  text-align: center;
}

.terms h2 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}

.terms p {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  white-space: pre-line;
}

.terms p strong {
  font-weight: 600;
}

/* Tour page */
.tour {
  max-width: 900px;
  width: 100%;
}

.tour h1 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.tour-subheading {
  font-size: 14px;
  color: #888;
  text-align: center;
  margin-bottom: 60px;
}

.tour-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.tour-section--reverse {
  flex-direction: row-reverse;
}

.tour-text {
  flex: 1;
  min-width: 0;
}

.tour-text h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tour-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0;
}

.tour-img {
  flex: 0 0 auto;
  min-width: 0;
}

.tour-img img {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.tour-demo {
  text-align: center;
  margin-top: 20px;
  padding-top: 60px;
  border-top: 1px solid #e8e8e8;
}

.tour-demo a {
  font-size: 16px;
  font-weight: 600;
  border-bottom: none;
  padding: 14px 32px;
  border: 1px solid #000;
  color: #000;
  transition: all 0.2s;
}

.tour-demo a:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  img {
    max-width: 90vw;
  }

  .plans-container {
    grid-template-columns: 1fr;
    padding: 24px 20px 40px;
  }

  .plan + .plan {
    border-left: 1px solid #000;
    border-top: none;
  }

  .logo {
    width: clamp(80px, 45vw, 240px);
  }

  .tour-section,
  .tour-section--reverse {
    flex-direction: column;
    gap: 20px;
  }

  .tour-section .tour-text {
    order: -1;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 20px;
  }

  .footer-left {
    flex-direction: column;
    gap: 24px;
  }

  .footer-logo {
    align-self: center;
    width: clamp(80px, 25vw, 140px);
  }
}
