* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

html {
  min-height: 100%;
}

@keyframes pageLoadFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

html.page-loading body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  z-index: 9998;
  opacity: 1;
  animation: pageLoadFade 0.6s ease-out 0.2s forwards;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #303030 0%, #1a1a1a 45%, #111111 100%);
  background-attachment: fixed;
  color: #ffffff;
  animation: pageLoadFade 0.5s ease-out;
  position: relative;
}

.site-header {
  background: rgba(36, 36, 36, 0.95);
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0 10rem;
}

.logo {
  max-width: 200px;
  max-height: 100px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: #1f7f10;
}

.header-action button {
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 30px;
  background: #1f7f10;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

main {
  padding: 0;
  max-width: none;
  margin: 0;
}

.hero-section {
  margin-bottom: 2rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  justify-items: start;
  gap: 2rem;
  min-height: 90vh;

  padding: 10rem 15rem;

  background: url('kuvat/hero-image.png') center/cover no-repeat;
  background-size: 110%;
}

.highlight {
  color: #1f7f10;
}

.hero-text {
  align-self: end;
  margin-bottom: 3rem;
  animation: slideInLeft 0.8s ease-out 0.3s backwards;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-text p {
  color: #dddddd;
  max-width: 620px;
  margin-bottom: 1.5rem;
}


.korttimyynti {
  background: rgba(44, 44, 44, 0.86);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  margin: 5rem auto 2rem;
  max-width: 1500px;
  padding: 5rem;
}

/* YLÄOSA */
.korttimyynti-header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.korttimyynti-text {
  max-width: 720px;
}

.korttimyynti-text h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 1rem;
  color: #1f7f10;
}

.korttimyynti-text p {
  color: #dddddd;
  line-height: 1.8;
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
}

/* TRUST BADGES */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;

  margin-top: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;

  padding: 0.8rem 1rem;

  background: rgba(255,255,255,0.045);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 999px;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.trust-item:hover {
  transform: translateY(-2px);

  border-color: rgba(31, 127, 16, 0.4);

  background: rgba(255,255,255,0.06);
}

.trust-item span {
  color: #1f7f10;
  font-weight: 800;
}

.trust-item p {
  margin: 0;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
}

.korttimyynti-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.korttimyynti-image img {
  width: 100%;
  max-width: 520px;
  max-height: 360px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* IMAGE GLOW */
.korttimyynti-image {
  position: relative;
}

.korttimyynti-image::before {
  content: "";

  position: absolute;

  inset: 12%;

  background: radial-gradient(
    circle,
    rgba(31, 127, 16, 0.2),
    transparent 72%
  );

  filter: blur(70px);

  z-index: 0;
}

.korttimyynti-image img {
  position: relative;
  z-index: 1;
}

/* BENEFITS SECTION */

.benefits-section {
  padding: 6rem 0;
}

.benefits-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 4rem;
}

.benefits-header {
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
}

.benefits-header h2 {
  color: #1f7f10;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-card {
  padding: 2.4rem 2rem;
  text-align: center;

  background: rgba(44, 44, 44, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 127, 16, 0.55);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #1f7f10;
}

.benefit-icon svg {
  width: 64px;
  height: 64px;
  stroke-width: 2.2;
}

.benefit-card:hover .benefit-icon svg {
  animation: iconWiggle 0.8s ease-in-out;
}

@keyframes iconWiggle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(-6deg) scale(1.08);
  }

  50% {
    transform: rotate(6deg) scale(1.12);
  }

  75% {
    transform: rotate(-3deg) scale(1.05);
  }
}

.benefit-card h3 {
  margin: 0 auto 1rem;
  max-width: 280px;

  color: #1f7f10;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
}

.benefit-card p {
  margin: 0 auto;
  max-width: 330px;

  color: #d8d8d8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.benefits-action {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .benefits-section {
    padding: 4rem 0;
  }

  .benefits-container {
    padding: 0 1.5rem;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefits-header {
    margin-bottom: 2.5rem;
  }
}




.ukk {
  padding: 5rem;
  margin: 0 auto 2rem;
  max-width: 1500px;
  width: calc(100% - 4rem);
}

.ukk h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin-bottom: 1rem;
  color: #1f7f10;
}

.ota-yhteytta {
  border-radius: 20px;
  padding: 5em;
  margin: 0 auto 3rem;
  max-width: 1800px;
  width: min(100%, 1500px);
}

/* LAYOUT */
.ota-yhteytta .contact-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* VASEN */
.contact-info {
  max-width: 620px;
  margin: 40px auto;
  padding: 10px 15px;
}

.contact-info h2 {
  font-size: 35px;
  margin-bottom: 28px;
  text-align: left;
}

.steps-timeline {
  display: grid;
  gap: 2rem;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.4rem;
  padding-bottom: 1rem;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1f7f10;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  z-index: 2;
  position: relative;
}

.step h3 {
  font-size: 24px;
  margin: 0 0 0.45rem;
  color: #ffffff;
}

.step p {
  font-size: 15px;
  color: #a8a8a8;
  margin: 0;
  line-height: 1.55;
}

/* OIKEA BOX (lomake) */
.ota-yhteytta .form-box {
  flex: 1;
  background: rgba(44, 44, 44, 0.86);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* lomakkeen otsikko */
.ota-yhteytta .form-box h2 {
  color: #1f7f10;
  margin-bottom: 1.5rem;
}

/* FORM */
.ota-yhteytta .contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ROW */
.ota-yhteytta .form-row {
  display: flex;
  gap: 16px;
}

.ota-yhteytta .form-field {
  flex: 1;
}

/* LABELIT */
.ota-yhteytta .contact-form label {
  color: #ffffff;
  font-weight: 600;
}

/* INPUTIT */
.ota-yhteytta .contact-form input,
.ota-yhteytta .contact-form textarea,
.ota-yhteytta .contact-form input[type="file"] {
  width: 100%;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 1rem;
  background: #161616;
  color: #fff;
}

/* FOCUS */
.ota-yhteytta .contact-form input:focus,
.ota-yhteytta .contact-form textarea:focus {
  outline: none;
  border-color: #1f7f10;
  box-shadow: 0 0 0 2px rgba(31, 127, 16, 0.4);
}

/* TEXTAREA */
.ota-yhteytta .contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* LINKKI */
.ota-yhteytta .contact-info a {
  color: #1f7f10;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ota-yhteytta .contact-container {
    flex-direction: column;
  }
}

.faq-list {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 768px) {
  .faq-list {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #ffffff;
}

.faq-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  margin: 0 0 1rem;
  color: #dddddd;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  padding-bottom: 1rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #555555;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  background: #1f1f1f;
  color: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8f8f8f;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1f7f10;
  box-shadow: 0 0 0 4px #1f7f10;
}

.site-header.header-scrolled {
  padding: 0.75rem 1.5rem;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
}

.reveal.visible {
  animation: slideUp 0.7s ease-out forwards;
}

.input-error {
  border-color: #e54242 !important;
  box-shadow: 0 0 0 3px rgba(229, 66, 66, 0.18);
}

.toast-message {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(24px);
  padding: 1rem 1.5rem;
  background: rgba(20, 20, 20, 0.95);
  color: #ffffff;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  z-index: 10000;
}

.toast-message.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

footer {
  text-align: center;
  padding: 1rem 1.5rem;
  color: #555555;
  max-width: 1100px;
  margin: 0 auto;
}

.btn {
  padding: 1rem 1.8rem;
  border: none;
  border-radius: 999px;
  background: #1f7f10;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;

  position: relative;
  overflow: hidden;

  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;

  box-shadow: 0 10px 30px rgba(31, 127, 16, 0.25);
}

.btn:hover {
  transform: translateY(-3px);
  background: #249412;
  box-shadow:
    0 18px 40px rgba(31, 127, 16, 0.4),
    0 0 24px rgba(31, 127, 16, 0.25);
}

.btn:active {
  transform: scale(0.98);
}


/* =========================================================
   MOBILE OPTIMIZATION
   Add this section at the end of styles.css.
   It keeps the desktop layout intact and rebuilds the layout
   for tablets and phones.
   ========================================================= */

@media (max-width: 1100px) {
  .header-content {
    padding: 0 3rem;
  }

  .hero-content {
    padding: 8rem 5rem;
    background-size: cover;
  }

  .korttimyynti,
  .ukk,
  .ota-yhteytta {
    width: calc(100% - 2rem);
    padding: 3.5rem 2.5rem;
  }

  .korttimyynti-header {
    gap: 2.5rem;
  }

  .benefits-container {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    background-attachment: scroll;
  }

  .site-header {
    width: 100%;
    margin-left: 0;
    padding: 0.85rem 1rem;
  }

  .header-content {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0;
  }

  .logo {
    max-width: 145px;
    max-height: 72px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
  }

  .site-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .header-action {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .header-action .btn,
  .header-action button {
    width: 100%;
    max-width: 320px;
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
  }

  .hero-section {
    width: 100%;
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .hero-content {
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding: 7rem 1.25rem 3rem;
    background-position: center top;
    background-size: cover;
    position: relative;
  }

  .hero-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.72) 72%,
        rgba(0, 0, 0, 0.9) 100%
      );
    pointer-events: none;
  }

  .hero-text {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
    line-height: 1.02;
    margin-bottom: 1rem;
  }

  .hero-text p {
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.95rem 1.2rem;
    font-size: 0.9rem;
  }

  .korttimyynti {
    width: calc(100% - 1.25rem);
    margin: 2.5rem auto 1rem;
    padding: 2rem 1.15rem;
    border-radius: 18px;
  }

  .korttimyynti-header {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 0;
  }

  .korttimyynti-text {
    max-width: none;
  }

  .korttimyynti-text h1,
  .benefits-header h2,
  .ukk h1 {
    font-size: clamp(1.9rem, 8vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .korttimyynti-text p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .trust-row {
    gap: 0.7rem;
  }

  .trust-item {
    width: 100%;
    justify-content: flex-start;
    border-radius: 16px;
    padding: 0.85rem 0.95rem;
  }

  .korttimyynti-image {
    order: -1;
  }

  .korttimyynti-image img {
    max-width: 320px;
    max-height: 240px;
  }

  .korttimyynti-image::before {
    inset: 18%;
    filter: blur(52px);
  }

  .benefits-section {
    padding: 3rem 0;
  }

  .benefits-container {
    padding: 0 1rem;
  }

  .benefits-header {
    margin-bottom: 1.8rem;
    text-align: left;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .benefit-card {
    padding: 1.7rem 1.25rem;
    border-radius: 20px;
  }

  .benefit-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
  }

  .benefit-icon svg {
    width: 52px;
    height: 52px;
  }

  .benefit-card h3 {
    font-size: 1.15rem;
  }

  .benefit-card p {
    font-size: 0.92rem;
  }

  .benefits-action {
    margin-top: 1.5rem;
  }

  .ukk {
    width: calc(100% - 1.25rem);
    padding: 2.5rem 1rem;
    margin-bottom: 1rem;
  }

  .faq-list {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .faq-question {
    padding: 1rem;
  }

  .faq-question h3 {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .faq-answer {
    padding: 0 1rem;
  }

  .faq-answer p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .ota-yhteytta {
    width: calc(100% - 1.25rem);
    padding: 2.5rem 1rem;
    margin-bottom: 2rem;
  }

  .ota-yhteytta .contact-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-info {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .contact-info h2,
  .ota-yhteytta .form-box h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
  }

  .steps-timeline {
    gap: 1.15rem;
  }

  .step {
    grid-template-columns: 42px 1fr;
    gap: 1rem;
    padding-bottom: 0.65rem;
  }

  .step-number {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .step h3 {
    font-size: 1.05rem;
  }

  .step p {
    font-size: 0.9rem;
  }

  .ota-yhteytta .form-box {
    width: 100%;
    padding: 1.35rem;
    border-radius: 18px;
  }

  .ota-yhteytta .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .ota-yhteytta .contact-form input,
  .ota-yhteytta .contact-form textarea,
  .ota-yhteytta .contact-form input[type="file"],
  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    padding: 0.95rem;
  }

  .ota-yhteytta .contact-form textarea {
    min-height: 130px;
  }

  footer {
    padding: 2rem 1rem;
  }

  footer .logo {
    max-width: 130px;
  }

  .site-header.header-scrolled {
    padding: 0.7rem 1rem;
  }
}

@media (max-width: 420px) {
  .site-nav {
    gap: 0.45rem 0.65rem;
  }

  .site-nav a {
    font-size: 0.72rem;
  }

  .hero-content {
    min-height: 70vh;
    padding: 6rem 1rem 2.5rem;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 12vw, 2.75rem);
  }

  .hero-text p {
    font-size: 0.94rem;
  }

  .korttimyynti,
  .ukk,
  .ota-yhteytta {
    width: calc(100% - 0.8rem);
  }

  .korttimyynti {
    padding: 1.6rem 0.95rem;
  }

  .benefits-container {
    padding: 0 0.7rem;
  }

  .benefit-card {
    padding: 1.45rem 1rem;
  }

  .ota-yhteytta .form-box {
    padding: 1.1rem;
  }
}
