/* ===========================================================
   Taily — marketing site
   Palette (sampled from brand mark): deep pine green + brushed gold
   Display face: Bricolage Grotesque (echoes the app's rounded wordmark)
   Body face: system stack, for weight and legibility at small sizes
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&display=swap');

:root{
  --green-deep:   #0e4230;
  --green-darker: #082a1e;
  --green-mid:    #17553d;
  --green-line:   rgba(212,178,113,0.22);
  --gold:         #cda053;
  --gold-light:   #e9cd93;
  --gold-dim:     #a9834a;
  --cream:        #f6efdd;
  --cream-dim:    #cabf9f;
  --charcoal:     #1a1510;
  --charcoal-2:   #241d15;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1120px;
  --radius-lg: 28px;
  --radius-md: 18px;

  --paw-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='32' cy='43' rx='15' ry='12'/%3E%3Cellipse cx='13' cy='25' rx='7.2' ry='9.2'/%3E%3Cellipse cx='27' cy='13' rx='7' ry='9'/%3E%3Cellipse cx='41' cy='13' rx='7' ry='9'/%3E%3Cellipse cx='53' cy='26' rx='7.2' ry='9.2'/%3E%3C/svg%3E");
  --paw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23e9cd93' transform='rotate(-18 32 32)'%3E%3Cellipse cx='32' cy='43' rx='11' ry='9'/%3E%3Cellipse cx='16' cy='28' rx='5.4' ry='6.8'/%3E%3Cellipse cx='27' cy='18' rx='5.2' ry='6.6'/%3E%3Cellipse cx='39' cy='18' rx='5.2' ry='6.6'/%3E%3Cellipse cx='49' cy='29' rx='5.4' ry='6.8'/%3E%3C/g%3E%3C/svg%3E");
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--green-deep);
  color:var(--cream);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  color:var(--cream);
  margin:0 0 0.4em;
  letter-spacing:-0.01em;
}
p{ margin:0 0 1em; }
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-display);
  font-size:13px;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--gold-light);
  margin-bottom:14px;
}
.eyebrow .paw{ width:14px; height:14px; opacity:0.9; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- signature paw motif ---------- */
.paw{
  display:inline-block;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold) 60%, var(--gold-dim));
  -webkit-mask-image: var(--paw-mask);
  mask-image: var(--paw-mask);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-size:contain;
  mask-size:contain;
}

/* ---------- header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(8,42,30,0.86);
  backdrop-filter:saturate(140%) blur(14px);
  -webkit-backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid var(--green-line);
}
.site-header .container{
  display:flex;
  align-items:center;
  gap:16px;
  height:72px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  margin-right:auto;
}
.brand img{
  width:36px; height:36px;
  border-radius:9px;
}
.brand span{
  font-family:var(--font-display);
  font-weight:700;
  font-size:20px;
  letter-spacing:0.01em;
  color:var(--cream);
}
.lang-switch{
  display:flex;
  align-items:center;
  gap:2px;
  font-family:var(--font-display);
  font-size:13px;
  font-weight:600;
  letter-spacing:0.03em;
}
.lang-switch a{
  padding:6px 9px;
  border-radius:8px;
  text-decoration:none;
  color:var(--cream-dim);
}
.lang-switch a.active{
  color:var(--charcoal);
  background:var(--gold-light);
}
.lang-switch .sep{ color:var(--green-line); }

/* App Store badge */
.appstore-badge{
  display:inline-flex;
  align-items:center;
  gap:9px;
  background:#000;
  color:#fff;
  padding:8px 14px;
  border-radius:10px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,0.14);
  transition:transform 0.15s ease, background 0.15s ease;
  line-height:1.1;
}
.appstore-badge:hover{ transform:translateY(-1px); background:#111; }
.appstore-badge svg{ width:22px; height:22px; flex:none; }
.appstore-badge .badge-text{ display:flex; flex-direction:column; }
.appstore-badge .badge-text small{ font-size:10px; letter-spacing:0.02em; opacity:0.85; }
.appstore-badge .badge-text strong{ font-size:16px; font-family:var(--font-display); font-weight:600; }

/* ---------- hero ---------- */
.hero{
  position:relative;
  padding:88px 0 60px;
  overflow:hidden;
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(205,160,83,0.20), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(23,85,61,0.9), transparent 60%),
    var(--green-deep);
}
.hero-paws{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0.07;
  background-image: var(--paw-tile);
  background-size:220px 220px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero .container{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:40px;
  align-items:center;
}
.hero-copy h1{
  font-size:clamp(34px, 4.6vw, 56px);
  line-height:1.06;
  margin-bottom:0.3em;
}
.hero-copy h1 em{
  font-style:normal;
  color:var(--gold-light);
}
.hero-sub{
  font-size:19px;
  color:var(--cream-dim);
  max-width:46ch;
  margin-bottom:32px;
}
.hero-cta{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.hero-note{ font-size:13px; color:var(--cream-dim); }

.hero-visual{
  position:relative;
  display:flex;
  justify-content:center;
}
.phone-frame{
  position:relative;
  width:250px;
  border-radius:44px;
  padding:12px;
  background:linear-gradient(160deg, #2a2118, var(--charcoal) 60%);
  border:1px solid rgba(212,178,113,0.35);
  box-shadow:
    0 30px 70px -20px rgba(0,0,0,0.65),
    0 0 0 1px rgba(0,0,0,0.4) inset;
  animation: float 6s ease-in-out infinite;
}
.phone-frame::before{
  content:"";
  position:absolute;
  top:22px; left:50%;
  transform:translateX(-50%);
  width:78px; height:20px;
  background:var(--charcoal);
  border-radius:12px;
  z-index:2;
}
.phone-frame img{
  border-radius:32px;
  width:100%;
  height:auto;
  aspect-ratio:1320 / 2868;
  display:block;
  position:relative;
}
.hero-visual .phone-frame{ animation-delay:0s; }

@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-14px); }
}

/* ---------- feature sections ---------- */
.feature{
  padding:84px 0;
  border-top:1px solid var(--green-line);
}
.feature .container{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:center;
}
.feature.reverse .container{ direction:rtl; }
.feature.reverse .container > *{ direction:ltr; }

.feature-copy h2{ font-size:clamp(26px, 3vw, 34px); }
.feature-copy ul{
  list-style:none;
  margin:22px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.feature-copy li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  color:var(--cream-dim);
}
.feature-copy li .paw{
  width:16px; height:16px;
  margin-top:5px;
  flex:none;
}
.feature-copy li strong{ color:var(--cream); font-weight:600; }

.feature-visual{ display:flex; justify-content:center; }
.feature-visual .phone-frame{
  width:220px;
  animation:none;
}

/* ---------- privacy section ---------- */
.privacy-section{
  padding:90px 0;
  background:var(--green-darker);
  border-top:1px solid var(--green-line);
  border-bottom:1px solid var(--green-line);
  position:relative;
  text-align:center;
}
.privacy-section .container{ max-width:720px; }
.privacy-section h2{ font-size:clamp(28px,3.4vw,40px); }
.privacy-section p{ color:var(--cream-dim); font-size:18px; }
.privacy-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:40px;
  text-align:left;
}
.privacy-card{
  background:rgba(246,239,221,0.04);
  border:1px solid var(--green-line);
  border-radius:var(--radius-md);
  padding:22px;
}
.privacy-card .paw{ width:22px; height:22px; margin-bottom:14px; }
.privacy-card h3{ font-size:17px; margin-bottom:6px; }
.privacy-card p{ font-size:14.5px; color:var(--cream-dim); margin:0; }

/* ---------- final CTA ---------- */
.final-cta{
  padding:96px 0 100px;
  text-align:center;
  background:
    radial-gradient(700px 380px at 50% 0%, rgba(205,160,83,0.16), transparent 65%),
    var(--green-deep);
}
.final-cta h2{ font-size:clamp(30px,4vw,46px); max-width:16ch; margin:0 auto 0.35em; }
.final-cta p{ color:var(--cream-dim); font-size:18px; margin-bottom:34px; }
.final-cta .hero-cta{ justify-content:center; }

/* ---------- footer ---------- */
.site-footer{
  background:var(--charcoal);
  padding:56px 0 32px;
  border-top:1px solid rgba(212,178,113,0.18);
}
.footer-top{
  display:flex;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
  padding-bottom:32px;
  border-bottom:1px solid rgba(212,178,113,0.14);
}
.footer-brand{ max-width:320px; }
.footer-brand .brand{ margin-bottom:12px; }
.footer-brand p{ color:var(--cream-dim); font-size:14.5px; }
.footer-links{
  display:flex;
  gap:56px;
  flex-wrap:wrap;
}
.footer-col h4{
  font-size:12px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--gold-light);
  margin-bottom:14px;
}
.footer-col a{
  display:block;
  color:var(--cream-dim);
  text-decoration:none;
  font-size:14.5px;
  margin-bottom:10px;
}
.footer-col a:hover{ color:var(--cream); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding-top:24px;
  font-size:13px;
  color:var(--cream-dim);
}
.footer-disclaimer{
  max-width:640px;
  color:var(--cream-dim);
  opacity:0.75;
}

/* ---------- responsive ---------- */
@media (max-width: 880px){
  .hero .container{ grid-template-columns:1fr; text-align:center; }
  .hero-sub{ margin-left:auto; margin-right:auto; }
  .hero-cta{ justify-content:center; }
  .hero-visual{ order:-1; margin-bottom:8px; }
  .feature .container{ grid-template-columns:1fr; text-align:center; }
  .feature.reverse .container{ direction:ltr; }
  .feature-copy ul{ text-align:left; }
  .privacy-grid{ grid-template-columns:1fr; }
  .footer-top{ flex-direction:column; }
}
@media (max-width: 640px){
  .site-header .container{ gap:6px; }
  .brand span{ font-size:15px; }
  .brand img{ width:30px; height:30px; }
  .lang-switch{ font-size:12px; margin-left:auto; }
  .lang-switch a{ padding:5px 6px; }
  .site-header .appstore-badge{ padding:6px 8px; gap:6px; }
  .site-header .appstore-badge svg{ width:16px; height:16px; }
  .site-header .appstore-badge .badge-text small{ display:none; }
  .site-header .appstore-badge .badge-text strong{ font-size:12px; white-space:nowrap; }
}
@media (max-width: 560px){
  .site-header .container{ height:64px; }
  .hero{ padding:56px 0 40px; }
  .feature{ padding:64px 0; }
  .footer-links{ gap:32px; }
}
@media (max-width: 400px){
  .container{ padding:0 14px; }
  .site-header .brand span{ display:none; }
  .lang-switch{ font-size:11px; }
  .lang-switch a{ padding:4px 5px; }
  .site-header .appstore-badge{ padding:6px; }
  .site-header .appstore-badge .badge-text{ display:none; }
}
/* hero + final-cta CTA badges: never force one-line overflow */
.hero-cta .appstore-badge{ max-width:100%; }
.hero-cta{ row-gap:12px; }
@media (max-width: 360px){
  .appstore-badge .badge-text small{ font-size:9px; }
  .appstore-badge .badge-text strong{ font-size:14px; }
  .hero-copy h1{ font-size:clamp(28px, 8vw, 40px); }
}
