/* ==================================
   Global
================================== */

:root {
    --lavender: #8d6ccf;
    --lavender-light: #d7cbf0;
    --paper: #faf8f3;
    --text: #4a425d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Nunito", sans-serif;
    line-height: 1.7;
    color: var(--text);

    background:
        url("images/lavender.svg") repeat-y 50% 0%,
        var(--paper) url("images/graph-paper.svg");
}

.hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
}
.logo {
  display: inline-block;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.08em;

  color: var(--lavender);

  padding: 10px 18px;
  border-radius: 12px;

  background: rgba(141,108,207,0.35);   /* same glassy feel */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

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

  position: relative;
}
.logo::after {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 6px;

  width: 76%;   /* controls underline length */
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--lavender),
    transparent
  );

  opacity: 0.6;
}
/*.logo {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.08em;


  background: linear-gradient(90deg, #bca8ff, #8f7bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;


  text-align: center;
  margin-bottom: 0.5rem;


  text-shadow: 0 2px 8px rgba(168, 139, 255, 0.25);
}*/

/*.logo::after {
  content: "";
  display: block;
  width: 60%;
  max-width: 140px;
  height: 2px;
  margin: 6px auto 0;

  background: linear-gradient(90deg, transparent, #bca8ff, transparent);
  border-radius: 2px;
  opacity: 0.7;
}*/

/*.logo:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(168, 139, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}*/

h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: var(--lavender);
}

.eyebrow {
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 700;
    color: #7f73aa;
}

.clickcard {
    margin-top: 1rem;
    text-align: center;
    letter-spacing: .04em;
    font-weight: 400;
    font-style:italic;
    color: #a8a6b3;
}

.vine-divider svg {
  width: 100%;
  height: 50px;
  display: block;
}

.vine-divider {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.vine-lines path{
  animation: vine-drift 3s ease-in-out infinite alternate;

  transform-box: fill-box;
  transform-origin: center;
}

.vine-lines path:nth-child(1) {
  animation-duration: 5s;
  animation-delay: 0s;
}

.vine-lines path:nth-child(2) {
  animation-duration: 6.5s;
  animation-delay: -1s;
}

.vine-lines path:nth-child(3) {
  animation-duration: 4.5s;
  animation-delay: -2s;
}

.vine-lines path:nth-child(4) {
  animation-duration: 7s;
  animation-delay: -0.5s;
}

@keyframes vine-drift {
  from {
    transform: translate(0px, 0px);
  }
  to {
    transform: translate(4px, 6px);
  }
}

.lead {
    max-width: 42rem;
    margin: 1.5rem auto;
    font-size: 1.2rem;

    padding: 1.5rem;
    border-radius: 18px;

    background: rgba(255,255,255,0.5);
    border: 1px solid var(--lavender-light);

    box-shadow: 0 10px 30px rgba(141,108,207,0.12);
}

.cta {

    display: inline-block;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    background: var(--lavender);
    color: white;
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
}

/* ==================================
   Sections
================================== */

.intro,
footer {
    font-size: .8rem;
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

blockquote {

    font-size: 1rem;
    color: var(--lavender);
    text-align: center;
}

.cards {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(220px,1fr));*/
    gap: 1.5rem;

    max-width: 980px;
    margin: 2.5rem auto;
    margin-top: 1rem;
    padding: 0 1.5rem;

    perspective: 1000px;
}

/*this keeps the columns from being dumb*/
@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 699px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
/*end of this keeps the columns from being dumb*/

.single-card {
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  justify-content: center;

}
.flip-card {
    max-width: 980px;
    height: 220px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;

    transform-style: preserve-3d;
    transition: transform .6s;
}

.flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-card.flipped .back {
    box-shadow: 0 20px 50px rgba(141,108,207,0.35);
}

.front,
.back {
    position: absolute;
    inset: 0;

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

    padding: 1.4rem;

    box-shadow: 0 10px 30px rgba(141,108,207,0.12);
    background: rgba(255,255,255,0.75);
    border: 1px solid var(--lavender-light);
    border-radius: 18px;

    backface-visibility: hidden;
}

.flip-card.cta-card .front {
  background: linear-gradient(
    135deg,
    rgba(141,108,207,0.08),
    rgba(141,108,207,0.18)
  );
}

.flip-card.cta-card .back {
  background: linear-gradient(
    135deg,
    rgba(141,108,207,0.08),
    rgba(141,108,207,0.18)
  );
}
.back {
    overflow: hidden;
    padding: 1rem;
    transform: rotateY(180deg);
}

.back p {
    /*font-size: clamp(0.8rem, 1.1vw, 1rem);*/
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    line-height: 1.4;
}

.diagonal-back {
    /*position: relative;*/
    overflow: hidden;
    background: white;
}

.diagonal-back::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom right,
        transparent 49.5%,
        var(--lavender-light) 50%,
        transparent 50.5%
    );

    pointer-events: none;
}

.price-block {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* positioning */
.virtual {
    top: 1.2rem;
    left: 1.4rem;
    text-align: left;
}

.inperson {
    bottom: 1.2rem;
    right: 1.4rem;
    text-align: right;
}

/* BIG price */
.rate {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--lavender);
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(141,108,207,0.25);
}

.rate span {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
    margin-left: 0.2rem;
}

/* label */
.label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a85a3;
}
/* description text */
.desc {
  font-size: 0.75rem;
  line-height: 1.2;
  opacity: 0.8;
  margin-top: 4px;
}

/* slightly stronger pricing */
.rate {
  font-size: 1.9rem;   /* was 1.6rem */
}

/* highlight virtual */
.featured {
  position: absolute;
}

.featured .rate {
  color: #6f4fd3;
}

/* "most popular" tag */
.tag {
/*  position: absolute;*/
  top: -14px;
  left: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  background: var(--lavender);
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(141,108,207,0.3);
}

.price {
    position: absolute;
    font-weight: 700;
    color: var(--lavender);
}

.virtual {
    top: 1rem;
    left: 1rem;
}

.inperson {
    bottom: 1rem;
    right: 1rem;
}


.viber {
    text-align: center;
    opacity: .8;
}

.contacts {
    margin-top: 1.4rem;
    text-align: center;
    gap: 1rem;
}

footer {
    text-align: center;
    color: #7f73aa;
    opacity: .8;
}


/* ==================================
   Philosophy Drawer
================================== */


.drawer-button {

    display: block;
    margin: 0 auto;

    padding: 0.9rem 2.2rem;

    position: relative;

    background: white;

    border: 2px solid var(--lavender-light);
    border-bottom: none;

    border-radius: 24px 24px 0 0;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

.drawer{
max-width:760px;
margin:0 auto;
padding:0 1.5rem;
max-height:0;
overflow:hidden;
opacity:0;
transform:translateY(-10px);
transition:max-height .45s ease,opacity .35s ease,transform .35s ease;
}

.drawer.open{

max-height:700px;
opacity:1;
transform:translateY(0);
padding-bottom:2rem;
}

.drawer-card{
    /*background:#fff;*/
    border:1px solid var(--lavender-light);
    /*border-radius:0 0 18px 18px;*/
    border-radius: 18px;
    padding:2rem;
    /*box-shadow:0 16px 36px rgba(0,0,0,.08);*/
    box-shadow: 0 10px 30px rgba(141,108,207,0.12);
    background: rgba(255,255,255,0.75);
}


.drawer-button::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -12px;

    height: 14px;

    background: url("images/torn-edge.svg") repeat-x;

}
.drawer-button.open::after {
    opacity:0;
}
.drawer-button.open {

    margin-bottom: -1px;

}