/* ==========================================================
   R3w Development page
   ========================================================== */

/* Shared skeleton block colour inside the mock sites */
.devices i,
.anatomy i { display: block; border-radius: 6px; background: var(--sk); }

.devices__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-border);
}
.devices__bar i { width: 8px; height: 8px; border-radius: 50%; }
.devices__bar span { flex: 1; max-width: 160px; height: 14px; margin: 0 auto; border-radius: 999px; background: var(--sk); }

/* ---------- Hero: laptop and phone ---------- */

.devices { position: relative; padding: 0 40px 50px 0; }
.devices__desk { border-radius: 18px; overflow: hidden; }

.dv-page { display: grid; gap: 16px; padding: 18px; }
.dv-nav { display: flex; align-items: center; gap: 8px; }
.dv-nav i { width: 34px; height: 7px; }
.dv-nav .dv-logo { width: 24px; height: 24px; margin-right: auto; border-radius: 8px; background: var(--jade); }
.dv-hero {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 26px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sapphire), #021B4D);
}
.dv-hero i { background: rgba(255, 255, 255, .85); }
.dv-hero .dv-t1 { width: 70%; height: 14px; }
.dv-hero .dv-t2 { width: 45%; height: 14px; background: var(--jade); }
.dv-hero .dv-btn { width: 84px; height: 24px; margin-top: 6px; border-radius: 999px; background: var(--jade); }
.dv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dv-cards i { height: 56px; border-radius: 10px; }

.devices__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  padding: 8px;
  border-radius: 26px;
  background: #0A0F1C;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7);
  animation: bob 5s ease-in-out infinite;
}
.dv-page--phone { gap: 10px; padding: 12px 10px; border-radius: 19px; background: #F4F7FC; }
.dv-page--phone i { background: rgba(11, 23, 51, .1); }
.dv-page--phone .dv-nav .dv-burger { width: 16px; height: 10px; }
.dv-page--phone .dv-hero { padding: 16px 12px; gap: 7px; }
.dv-page--phone .dv-hero i { background: rgba(255, 255, 255, .85); }
.dv-page--phone .dv-hero .dv-t2,
.dv-page--phone .dv-hero .dv-btn { background: var(--jade); }
.dv-page--phone .dv-hero .dv-t1,
.dv-page--phone .dv-hero .dv-t2 { height: 9px; }
.dv-page--phone .dv-hero .dv-btn { width: 54px; height: 16px; }
.dv-page--phone .dv-cards { grid-template-columns: 1fr; }
.dv-page--phone .dv-cards i { height: 34px; }

@keyframes bob { 50% { transform: translateY(-8px); } }

/* build order: the laptop first, then the phone */
.devices .dv-page > * > i,
.devices .dv-page > * { opacity: 0; }
.devices.is-on .dv-page > * { animation: rise .5s cubic-bezier(.2, .7, .3, 1) both; }
.devices.is-on .dv-page > * > i { animation: rise .5s cubic-bezier(.2, .7, .3, 1) both; }
.devices.is-on .devices__desk .dv-nav { animation-delay: .1s; }
.devices.is-on .devices__desk .dv-hero { animation-delay: .3s; }
.devices.is-on .devices__desk .dv-hero i:nth-child(1) { animation-delay: .5s; }
.devices.is-on .devices__desk .dv-hero i:nth-child(2) { animation-delay: .65s; }
.devices.is-on .devices__desk .dv-hero i:nth-child(3) { animation-delay: .8s; }
.devices.is-on .devices__desk .dv-cards { animation-delay: .9s; }
.devices.is-on .devices__desk .dv-cards i:nth-child(1) { animation-delay: 1s; }
.devices.is-on .devices__desk .dv-cards i:nth-child(2) { animation-delay: 1.1s; }
.devices.is-on .devices__desk .dv-cards i:nth-child(3) { animation-delay: 1.2s; }
.devices.is-on .devices__desk .dv-nav i { animation-delay: .2s; }
.devices.is-on .devices__phone .dv-page > * { animation-delay: 1.4s; }
.devices.is-on .devices__phone .dv-nav i { animation-delay: 1.5s; }
.devices.is-on .devices__phone .dv-hero i { animation-delay: 1.7s; }
.devices.is-on .devices__phone .dv-cards i:nth-child(1) { animation-delay: 1.9s; }
.devices.is-on .devices__phone .dv-cards i:nth-child(2) { animation-delay: 2s; }

/* ---------- Example 1: a simple site scrolling itself ---------- */

.real-examples { margin-top: 22px; font-size: 15px; }
.real-examples a { color: var(--link); font-weight: 600; border-bottom: 2px solid var(--link-line); }

.anatomy { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.anatomy__window { border-radius: 18px; overflow: hidden; }
.anatomy__viewport { height: 300px; overflow: hidden; }
.anatomy__page { display: grid; gap: 14px; padding: 14px; }
.is-on .anatomy__page { animation: page-scroll 12s ease-in-out .6s infinite; }
@keyframes page-scroll {
  0%, 18%  { transform: translateY(0); }
  25%, 43% { transform: translateY(-200px); }
  50%, 68% { transform: translateY(-314px); }
  75%, 93% { transform: translateY(-372px); }
  100%     { transform: translateY(0); }
}

.a-nav { display: flex; align-items: center; gap: 8px; height: 22px; font-family: var(--font-head); font-size: 13px; }
.a-nav b { margin-right: auto; }
.a-nav i { width: 28px; height: 6px; }
.a-hero {
  display: grid;
  align-content: center;
  gap: 9px;
  height: 150px;
  padding: 0 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sapphire), #021B4D);
}
.a-hero i { background: rgba(255, 255, 255, .85); }
.a-hero .a-t1 { width: 65%; height: 13px; }
.a-hero .a-t2 { width: 40%; height: 13px; background: var(--jade); }
.a-btn { width: 74px; height: 22px; margin-top: 4px; border-radius: 999px !important; background: var(--jade) !important; }
.a-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; height: 100px; }
.a-services i { border-radius: 10px; }
.a-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 8px; height: 130px; }
.a-gallery i { border-radius: 8px; background: linear-gradient(135deg, rgba(0, 211, 251, .35), rgba(0, 66, 172, .45)); }
.a-gallery i:nth-child(even) { background: linear-gradient(135deg, rgba(131, 253, 128, .3), rgba(0, 66, 172, .4)); }
.a-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 130px; }
.a-form { display: grid; gap: 8px; align-content: start; }
.a-form i { height: 18px; }
.a-map {
  position: relative;
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, .25) 46%, rgba(255, 255, 255, .25) 54%, transparent 54%),
    linear-gradient(0deg, transparent 58%, rgba(255, 255, 255, .25) 58%, rgba(255, 255, 255, .25) 66%, transparent 66%),
    rgba(0, 211, 251, .18);
}
.a-map i {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--jade);
  animation: ping 1.6s ease-out infinite;
}

.anatomy__labels { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.anatomy__labels li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.anatomy__labels b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 12px;
}
.is-on .anatomy__labels li { animation: label-on 12s linear calc(.6s + var(--i) * 3s) infinite; }
.is-on .anatomy__labels b { animation: label-dot 12s linear calc(.6s + var(--i) * 3s) infinite; }
@keyframes label-on {
  0%, 22% { color: var(--text); }
  25%, 100% { color: var(--muted); }
}
@keyframes label-dot {
  0%, 22% { background: var(--jade); border-color: var(--jade); color: var(--ink); box-shadow: 0 0 12px rgba(131, 253, 128, .6); }
  25%, 100% { background: transparent; border-color: var(--border-strong); color: inherit; box-shadow: none; }
}

/* ---------- The iceberg ---------- */

.iceberg {
  position: relative;
  display: grid;
  grid-template-rows: 150px 20px 1fr;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.iceberg__ice {
  position: absolute;
  inset: 0;
  clip-path: polygon(44% 9%, 53% 3%, 61% 16%, 67% 30%, 80% 52%, 74% 82%, 54% 97%, 30% 88%, 20% 60%, 33% 30%, 38% 18%);
  background: linear-gradient(to bottom, rgba(234, 244, 255, .9) 0 31%, rgba(0, 211, 251, .16) 31% 100%);
}
.is-on .iceberg__ice { animation: drift 6s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(6px); } }

.iceberg__sky,
.iceberg__deep {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
}
.iceberg__deep {
  padding-bottom: 48px;
  background: linear-gradient(to bottom, rgba(0, 66, 172, .55), rgba(2, 16, 46, .9));
}
[data-theme="light"] .iceberg__deep { background: linear-gradient(to bottom, rgba(0, 150, 220, .35), rgba(0, 66, 172, .55)); }
[data-theme="light"] .iceberg__sky { background: linear-gradient(to bottom, #D6E6FA, #E8F1FC); }
[data-theme="light"] .iceberg__ice { background: linear-gradient(to bottom, #FFFFFF 0 31%, rgba(0, 211, 251, .22) 31% 100%); }
.iceberg em {
  position: absolute;
  left: 18px;
  top: 16px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.iceberg__deep em { top: auto; bottom: 16px; color: rgba(234, 240, 250, .75); }
.iceberg__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
/* dark glass so the labels stay readable over the white ice */
.iceberg__tags span {
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(6, 14, 32, .74);
  color: #EAF0FA;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
}
.is-on .iceberg__tags span { animation: rise .5s cubic-bezier(.2, .7, .3, 1) calc(.2s + var(--i) * .14s) both; }

.iceberg__wave {
  width: 200%;
  height: 20px;
  fill: rgba(0, 66, 172, .55);
}
[data-theme="light"] .iceberg__wave { fill: rgba(0, 150, 220, .35); }
.is-on .iceberg__wave { animation: wave 6s linear infinite; }
@keyframes wave { to { transform: translateX(-50%); } }

/* ---------- Side by side ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__col { padding: 30px; border-radius: var(--radius); }
.compare__col h3 { font-size: 20px; margin-bottom: 22px; }

/* ---------- Included everywhere ---------- */

.included { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.included li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  font-weight: 500;
  opacity: 0;
}
.included.is-on li { animation: rise .5s cubic-bezier(.2, .7, .3, 1) calc(var(--i) * .1s) both; }
.included svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--jade);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-theme="light"] .included svg { stroke: var(--sapphire); }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .compare { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .anatomy { grid-template-columns: 1fr; }
  .anatomy__labels { grid-template-columns: 1fr 1fr; }
  .included { grid-template-columns: 1fr; }
  .devices { padding-right: 24px; }
  .iceberg { min-height: 480px; }
}

/* ---------- After launch: two ways forward ---------- */

.after-flow { max-width: 760px; margin: 0 auto 40px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease;
}
.plan:hover { border-color: rgba(131, 253, 128, .5); transform: translateY(-4px); }
.plan__kicker {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.plan h3 { font-size: 24px; margin-bottom: 10px; }
.plan__price {
  width: fit-content;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--label-bg);
  color: var(--label);
  font-size: 13.5px;
  font-weight: 600;
}
.plan__text { color: var(--muted); font-size: 15.5px; }
.plan .ticks { margin-top: 18px; }
.plan .ticks li { font-size: 15px; }

/* mini timelines at the top of each plan */
.tl { display: grid; gap: 10px; margin-bottom: 24px; }
.tl small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.tl__track { position: relative; display: flex; align-items: center; justify-content: space-between; height: 18px; }

/* monthly: a steady line, every month lights up in turn */
.tl--monthly .tl__track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: rgba(131, 253, 128, .35);
}
.tl--monthly i {
  position: relative;
  width: 12px;
  height: 12px;
  border: 2px solid var(--jade);
  border-radius: 50%;
  background: var(--bg);
}
.tl--monthly.is-on i { animation: month-on 6s linear calc(var(--i) * 1s) infinite; }
@keyframes month-on {
  0%, 12%  { background: var(--jade); box-shadow: 0 0 0 5px rgba(131, 253, 128, .2), 0 0 12px var(--jade); }
  20%, 100% { background: var(--bg); box-shadow: none; }
}

/* on demand: the project ends, later only an occasional call */
.tl__done {
  position: absolute;
  left: 0;
  top: 8px;
  width: 38%;
  height: 2px;
  background: var(--jade);
  transform: scaleX(0);
  transform-origin: left;
}
.tl--ondemand.is-on .tl__done { animation: bar-grow 1.2s ease-out .2s forwards; }
.tl__end {
  position: absolute;
  left: 38%;
  top: 3px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--jade);
  opacity: 0;
}
.tl--ondemand.is-on .tl__end { animation: pop .4s ease 1.3s both; }
.tl__later {
  position: absolute;
  left: calc(38% + 10px);
  right: 0;
  top: 8px;
  border-top: 2px dashed var(--border-strong);
}
.tl__blip {
  position: absolute;
  left: var(--x);
  top: 4px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--border-strong);
}
.tl--ondemand.is-on .tl__blip { animation: blip 5s ease-out var(--d) infinite; }
@keyframes blip {
  0%       { background: var(--ocean); box-shadow: 0 0 0 0 rgba(0, 211, 251, .7); }
  20%      { background: var(--ocean); box-shadow: 0 0 0 10px rgba(0, 211, 251, 0); }
  30%, 100% { background: var(--border-strong); box-shadow: none; }
}

@media (max-width: 920px) {
  .plans { grid-template-columns: 1fr; }
}
