/*
Theme Name: Fotribu
Theme URI: https://tribuopen.com
Author: Fotribu
Description: Mobile-first experience for private collaborative photo albums.
Version: 1.0.1
Text Domain: fotribu
*/

:root {
  --ft-coral: #ff5a4f;
  --ft-orange: #ff8a3d;
  --ft-cream: #fff8ef;
  --ft-paper: #fffdf9;
  --ft-plum: #6a2357;
  --ft-ink: #1c1830;
  --ft-muted: #716b7d;
  --ft-line: rgba(28, 24, 48, 0.11);
  --ft-green: #3d9b7a;
  --ft-shadow: 0 24px 70px rgba(46, 30, 61, 0.14);
  --ft-soft-shadow: 0 10px 35px rgba(46, 30, 61, 0.09);
  --ft-radius: 28px;
  --ft-font: "Avenir Next", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin-top: 0 !important;
}

body {
  margin: 0;
  color: var(--ft-ink);
  background: var(--ft-paper);
  font-family: var(--ft-font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#wpadminbar {
  display: none !important;
}

body::selection {
  color: #fff;
  background: var(--ft-plum);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.ft-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.ft-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(28, 24, 48, 0.06);
  background: rgba(255, 253, 249, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.ft-header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ft-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.ft-brand-mark {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--ft-coral), var(--ft-orange));
  box-shadow: 0 8px 22px rgba(255, 90, 79, 0.28);
}

.ft-brand-mark::before,
.ft-brand-mark::after {
  position: absolute;
  width: 18px;
  height: 22px;
  content: "";
  border: 2px solid #fff;
  border-radius: 6px;
}

.ft-brand-mark::before {
  transform: translate(-4px, 2px) rotate(-8deg);
}

.ft-brand-mark::after {
  transform: translate(5px, -2px) rotate(8deg);
  background: rgba(255, 255, 255, 0.16);
}

.ft-brand-dot {
  position: relative;
  z-index: 2;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.ft-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 750;
}

.ft-nav a:not(.ft-button) {
  color: var(--ft-muted);
}

.ft-nav a:not(.ft-button):hover {
  color: var(--ft-ink);
}

.ft-button,
.wp-element-button,
.button,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 21px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--ft-coral), var(--ft-orange));
  box-shadow: 0 10px 25px rgba(255, 90, 79, 0.24);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ft-button:hover,
.wp-element-button:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 90, 79, 0.3);
}

.ft-button--ink {
  background: var(--ft-ink);
  box-shadow: 0 10px 25px rgba(28, 24, 48, 0.2);
}

.ft-button--ghost {
  color: var(--ft-ink);
  border: 1px solid var(--ft-line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.ft-button--ghost:hover {
  color: var(--ft-ink);
  box-shadow: var(--ft-soft-shadow);
}

.ft-button--small {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 14px;
}

.ft-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 96px;
  background:
    radial-gradient(circle at 8% 22%, rgba(255, 138, 61, 0.15), transparent 27%),
    linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
}

.ft-hero::after {
  position: absolute;
  right: -160px;
  bottom: -260px;
  width: 520px;
  height: 520px;
  content: "";
  border-radius: 50%;
  background: rgba(106, 35, 87, 0.05);
}

.ft-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  gap: 52px;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.28fr);
}

.ft-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 90, 79, 0.2);
  border-radius: 999px;
  color: #d74742;
  background: rgba(255, 90, 79, 0.08);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ft-eyebrow::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--ft-coral);
  box-shadow: 0 0 0 5px rgba(255, 90, 79, 0.12);
}

.ft-hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(49px, 6vw, 82px);
  font-weight: 900;
  letter-spacing: -0.068em;
  line-height: 0.96;
}

.ft-hero h1 em {
  color: var(--ft-coral);
  font-style: normal;
}

.ft-lead {
  max-width: 610px;
  margin: 25px 0 0;
  color: var(--ft-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.48;
}

.ft-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ft-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 25px;
  color: var(--ft-muted);
  font-size: 13px;
  font-weight: 700;
}

.ft-trust-row span::before {
  margin-right: 6px;
  color: var(--ft-green);
  content: "✓";
  font-weight: 900;
}

.ft-hero-visual {
  position: relative;
}

.ft-hero-photo {
  display: block;
  width: 100%;
  min-height: 510px;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 36px;
  box-shadow: var(--ft-shadow);
}

.ft-live-card {
  position: absolute;
  right: -18px;
  bottom: -26px;
  display: grid;
  width: min(330px, 72%);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(35, 24, 47, 0.2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  grid-template-columns: repeat(3, 1fr);
}

.ft-live-card strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.ft-live-card span {
  color: var(--ft-muted);
  font-size: 11px;
  font-weight: 700;
}

.ft-section {
  padding: 104px 0;
}

.ft-section--cream {
  background: var(--ft-cream);
}

.ft-section--ink {
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 90, 79, 0.2), transparent 28%),
    var(--ft-ink);
}

.ft-section-heading {
  max-width: 770px;
  margin-bottom: 50px;
}

.ft-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--ft-coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ft-section h2,
.ft-page h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 61px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.ft-section-heading p {
  margin: 18px 0 0;
  color: var(--ft-muted);
  font-size: 19px;
}

.ft-section--ink .ft-section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.ft-steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.ft-step {
  position: relative;
  min-height: 248px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--ft-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--ft-soft-shadow);
}

.ft-step-number {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  margin-bottom: 42px;
  border-radius: 14px;
  color: #fff;
  background: var(--ft-ink);
  font-size: 14px;
  font-weight: 900;
}

.ft-step h3,
.ft-feature h3,
.ft-usecase h3 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.ft-step p,
.ft-feature p,
.ft-usecase p {
  margin: 0;
  color: var(--ft-muted);
  font-size: 15px;
}

.ft-usecases {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}

.ft-usecase {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--ft-line);
  border-radius: 25px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 239, 0.8));
  box-shadow: var(--ft-soft-shadow);
}

.ft-usecase:nth-child(1),
.ft-usecase:nth-child(4) {
  grid-column: span 7;
}

.ft-usecase:nth-child(2),
.ft-usecase:nth-child(3) {
  grid-column: span 5;
}

.ft-usecase-icon,
.ft-feature-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 45px;
  border-radius: 16px;
  color: var(--ft-plum);
  background: #ffe9de;
  font-size: 24px;
}

.ft-privacy-grid {
  display: grid;
  align-items: center;
  gap: 70px;
  grid-template-columns: 0.9fr 1.1fr;
}

.ft-privacy-quote {
  margin: 0;
  font-size: clamp(40px, 5vw, 65px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1;
}

.ft-privacy-quote em {
  color: var(--ft-orange);
  font-style: normal;
}

.ft-features {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, 1fr);
}

.ft-feature {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.ft-feature p {
  color: rgba(255, 255, 255, 0.64);
}

.ft-pricing-grid {
  display: grid;
  align-items: stretch;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.ft-price {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--ft-line);
  border-radius: 27px;
  background: #fff;
  box-shadow: var(--ft-soft-shadow);
}

.ft-price--featured {
  color: #fff;
  border: 0;
  background: var(--ft-ink);
  box-shadow: var(--ft-shadow);
  transform: translateY(-12px);
}

.ft-price-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--ft-coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ft-price h3 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.ft-price-value {
  margin: 20px 0 8px;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.ft-price-value small {
  font-size: 14px;
  letter-spacing: 0;
}

.ft-price p {
  color: var(--ft-muted);
}

.ft-price--featured p {
  color: rgba(255, 255, 255, 0.66);
}

.ft-price ul {
  display: grid;
  gap: 11px;
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.ft-price li::before {
  margin-right: 8px;
  color: var(--ft-green);
  content: "✓";
  font-weight: 900;
}

.ft-price .ft-button {
  width: 100%;
  margin-top: auto;
}

.ft-viral-card {
  display: grid;
  align-items: center;
  gap: 50px;
  padding: 55px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 138, 61, 0.75), transparent 29%),
    linear-gradient(135deg, #6a2357, #2c183e);
  box-shadow: var(--ft-shadow);
  grid-template-columns: 1.1fr 0.9fr;
}

.ft-viral-card h2 {
  font-size: clamp(37px, 5vw, 62px);
}

.ft-share-bubble {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.ft-share-bubble strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.ft-faq {
  display: grid;
  gap: 12px;
  max-width: 850px;
}

.ft-faq details {
  padding: 21px 24px;
  border: 1px solid var(--ft-line);
  border-radius: 18px;
  background: #fff;
}

.ft-faq summary {
  cursor: pointer;
  font-weight: 800;
}

.ft-faq p {
  color: var(--ft-muted);
}

.ft-site-footer {
  padding: 55px 0 100px;
  color: rgba(255, 255, 255, 0.7);
  background: var(--ft-ink);
  font-size: 14px;
}

.ft-footer-grid {
  display: grid;
  gap: 35px;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.ft-site-footer .ft-brand {
  color: #fff;
}

.ft-site-footer h4 {
  margin: 0 0 12px;
  color: #fff;
}

.ft-site-footer a {
  display: block;
  margin: 7px 0;
}

.ft-page {
  min-height: 70vh;
  padding: 62px 0 110px;
}

.ft-page-header {
  max-width: 780px;
  margin-bottom: 42px;
}

.ft-page-content {
  max-width: 960px;
}

.ft-page-content > *:first-child {
  margin-top: 0;
}

.ft-flash {
  margin-bottom: 22px;
  padding: 15px 18px;
  border-radius: 14px;
  color: #2a654e;
  background: #e8f7f0;
  font-weight: 700;
}

.ft-flash--error {
  color: #8e3434;
  background: #fff0ef;
}

.ft-app-nav {
  display: none;
}

.ft-screen {
  max-width: 1080px;
}

.ft-panel {
  padding: 26px;
  border: 1px solid var(--ft-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--ft-soft-shadow);
}

.ft-panel + .ft-panel {
  margin-top: 18px;
}

.ft-form-grid {
  display: grid;
  gap: 17px;
  grid-template-columns: repeat(2, 1fr);
}

.ft-field {
  display: grid;
  gap: 7px;
}

.ft-field--wide {
  grid-column: 1 / -1;
}

.ft-field label {
  font-size: 13px;
  font-weight: 850;
}

.ft-field input,
.ft-field select,
.ft-field textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--ft-line);
  outline: 0;
  border-radius: 13px;
  color: var(--ft-ink);
  background: #fff;
}

.ft-field input:focus,
.ft-field select:focus,
.ft-field textarea:focus {
  border-color: var(--ft-coral);
  box-shadow: 0 0 0 4px rgba(255, 90, 79, 0.1);
}

.ft-album-grid {
  display: grid;
  gap: 17px;
  grid-template-columns: repeat(3, 1fr);
}

.ft-album-card {
  position: relative;
  min-height: 255px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--ft-line);
  border-radius: 25px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 61, 0.24), transparent 35%),
    #fff;
  box-shadow: var(--ft-soft-shadow);
}

.ft-album-card h3 {
  margin: 45px 0 7px;
  font-size: 25px;
  letter-spacing: -0.045em;
}

.ft-album-card p {
  color: var(--ft-muted);
  font-size: 14px;
}

.ft-album-tag {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: #8c3f32;
  background: #ffe9de;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  border: 0;
  border-radius: 15px;
  background: #fff5eb;
}

.woocommerce table.shop_table {
  overflow: hidden;
  border-color: var(--ft-line);
  border-radius: 18px;
}

@media (max-width: 980px) {
  .ft-nav a:not(.ft-button) {
    display: none;
  }

  .ft-hero-grid,
  .ft-privacy-grid,
  .ft-viral-card {
    grid-template-columns: 1fr;
  }

  .ft-hero-grid {
    gap: 38px;
  }

  .ft-hero-photo {
    min-height: auto;
  }

  .ft-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .ft-pricing-grid,
  .ft-album-grid {
    grid-template-columns: 1fr;
  }

  .ft-price--featured {
    transform: none;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 72px;
    font-size: 16px;
  }

  .ft-container {
    width: min(100% - 26px, 1180px);
  }

  .ft-site-header {
    position: relative;
  }

  .ft-header-inner {
    min-height: 66px;
  }

  .ft-nav .ft-button {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .ft-hero {
    padding: 40px 0 70px;
  }

  .ft-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ft-hero h1 {
    font-size: 49px;
  }

  .ft-hero-actions .ft-button {
    width: 100%;
  }

  .ft-hero-photo {
    border-width: 5px;
    border-radius: 24px;
  }

  .ft-live-card {
    right: 8px;
    bottom: -30px;
    width: calc(100% - 16px);
  }

  .ft-section {
    padding: 75px 0;
  }

  .ft-steps,
  .ft-features,
  .ft-form-grid,
  .ft-footer-grid {
    grid-template-columns: 1fr;
  }

  .ft-usecases {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ft-usecase:nth-child(n) {
    min-height: 200px;
    grid-column: auto;
  }

  .ft-viral-card {
    padding: 32px 23px;
    border-radius: 27px;
  }

  .ft-app-nav {
    position: fixed;
    z-index: 110;
    right: 10px;
    bottom: 8px;
    left: 10px;
    display: grid;
    min-height: 62px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    background: rgba(28, 24, 48, 0.94);
    box-shadow: 0 15px 45px rgba(28, 24, 48, 0.3);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    grid-template-columns: repeat(4, 1fr);
  }

  .ft-app-nav a {
    display: grid;
    place-items: center;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.73);
    font-size: 10px;
    font-weight: 750;
  }

  .ft-app-nav b {
    display: block;
    font-size: 20px;
    line-height: 1;
  }
}
